8725c92e0acb9024833335d1fe533bc4420f06dd
[gnulib.git] / ChangeLog
1 2011-11-19  Bruno Haible  <bruno@clisp.org>
2
3         Depend on module fcntl-h when AT_FDCWD is used.
4         * modules/utimens (Depends-on): Add fcntl-h.
5         * modules/areadlinkat (Depends-on): Likewise.
6         * modules/areadlinkat-with-size (Depends-on): Likewise.
7         * modules/faccessat (Depends-on): Likewise.
8         * modules/fchmodat (Depends-on): Likewise.
9         * modules/fchownat (Depends-on): Likewise.
10         * modules/getcwd (Depends-on): Likewise.
11         * modules/mkdirat (Depends-on): Likewise.
12         * modules/mkfifoat (Depends-on): Likewise.
13         * modules/readlinkat (Depends-on): Likewise.
14         * modules/symlinkat (Depends-on): Likewise.
15         * modules/dup2-tests (Depends-on): Likewise.
16         * modules/fdutimensat-tests (Depends-on): Likewise.
17         * modules/futimens-tests (Depends-on): Likewise.
18
19 2011-11-19  Bruno Haible  <bruno@clisp.org>
20
21         euidaccess: Update a comment.
22         * lib/euidaccess.c: Update comment about platforms with faccessat.
23
24 2011-11-19  Bruno Haible  <bruno@clisp.org>
25
26         openat: Fix file list.
27         * modules/openat (Files): Remove lib/at-func.c.
28
29 2011-11-19  Bruno Haible  <bruno@clisp.org>
30
31         fstatat: Simplify.
32         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
33         gnulib should define rpl_fstatat, there is a
34         "#define fstatat rpl_fstatat" in <sys/stat.h>.
35
36 2011-11-19  Bruno Haible  <bruno@clisp.org>
37
38         Ensure 'inline' can be used in tests/test-utimens-common.h.
39         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
40         * modules/futimens-tests (configure.ac): Likewise.
41         * modules/utimens-tests (configure.ac): Likewise.
42         * modules/utimensat-tests (configure.ac): Likewise.
43
44 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45
46         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
47         not hash_insert0.
48         (hash_insert_if_absent): Doc fix.
49
50 2011-11-19  Simon Josefsson  <simon@josefsson.org>
51
52         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
53
54 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
55
56         test-getcwd: disambiguate exit status
57         * tests/test-getcwd.c (test_long_name): Return 0..7.
58         (main): Exit with an unambiguous exit status.  The old
59         code yielded a mysterious mixture of two failure codes.
60
61         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
62         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
63         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
64         rpl_fstatat or fstatat.  This should fix the other problem
65         reported by Kai Habel in
66         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
67         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
68         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
69         and I reproduced it on a Solaris 8 host we still have in production.
70
71 2011-11-18  Jim Meyering  <meyering@redhat.com>
72
73         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
74         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
75         Add a sentence to the comment.
76         (hash_insert0): New function that simply calls hash_insert_if_absent.
77         * lib/hash.h (hash_insert_if_absent): Declare it.
78         (hash_insert0): Add deprecation attribute.
79         (_GL_ATTRIBUTE_DEPRECATED): Define.
80         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
81         not hash_insert0.
82         * NEWS: Mention it, even though it's not really an incompatible change.
83
84 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
85
86         openat: avoid compilation failure due to lack of <errno.h> inclusion
87         * lib/openat.c: Include <errno.h>.
88
89 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90
91         * modules/getcwd (Depends-on): Add fdopendir.
92         This fixes one of the two problems reported by Kai Habel in
93         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
94
95         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
96         stdalign problem reported by Ian Beckwith in
97         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
98         * modules/crypto/gc-arcfour (Depends-on):
99         Depend conditionally on crypto/arcfour.
100         * modules/crypto/gc-arctwo (Depends-on):
101         Depend conditionally on crypto/arctwo.
102         * modules/crypto/gc-des (Depends-on):
103         Depend conditionally on crypto/des.
104         * modules/crypto/gc-hmac-md5 (Depends-on):
105         Depend conditionally on crypto/hmac-md5.
106         * modules/crypto/gc-hmac-sha1 (Depends-on):
107         Depend conditionally on crypto/hmac-sha1.
108         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
109         * modules/crypto/gc-md4 (Depends-on):
110         Depend conditionally on crypto/md4.
111         * modules/crypto/gc-md5 (Depends-on):
112         Depend conditionally on crypto/md5.
113         * modules/crypto/gc-rijndael (Depends-on):
114         Depend conditionally on crypto/rijndael.
115         * modules/crypto/gc-sha1 (Depends-on):
116         Depend conditionally on crypto/sha1.
117         * modules/crypto/gc-arcfour:
118         * modules/crypto/gc-arctwo:
119         * modules/crypto/gc-des:
120         * modules/crypto/gc-hmac-md5:
121         * modules/crypto/gc-hmac-sha1:
122         * modules/crypto/gc-md2:
123         * modules/crypto/gc-md4:
124         * modules/crypto/gc-md5:
125         * modules/crypto/gc-rijndael:
126         * modules/crypto/gc-sha1:
127         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
128         now that the conditional dependencies do the work for us.
129
130 2011-11-17  Jim Meyering  <meyering@redhat.com>
131
132         tests: factor st_ctime-comparison out of two headers
133         * tests/test-utimens-common.h (ctime_compare): Define.
134         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
135         * tests/test-lutimens.h (test_lutimens): Likewise.
136         * tests/test-utimens.h (test_utimens): Likewise.
137
138         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
139         Invoke the test program via an init.sh-using wrapper.
140         * tests/test-getcwd.sh: New file.
141         * modules/getcwd-tests (Files): Add it.
142         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
143
144 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
145
146         gitlog-to-changelog: support multi-author commits.
147         The FSF cares about keeping track of all authors of patches to its
148         projects, but Git doesn't provide obvious support for multi-author
149         changesets. Consensus seems to be forming around the use of extra
150         Signed-off-by inspired lines in the log message formatted as
151         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
152         multi-author commits between version control systems.
153         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
154         log message and output in standard ChangeLog multi-author format.
155         Reported by Peter Rosin <peda@lysator.liu.se>
156
157 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
158             Bruno Haible  <bruno@clisp.org>
159
160         Fix some modules' file list.
161         * modules/fstatat (Files): Add m4/lstat.m4.
162         * modules/openat (Files): Likewise.
163         * modules/unlinkat (Files): Likewise.
164
165 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
166
167         maint.mk: fix tight-scope.mk generation in VPATH builds.
168         * top/maint.mk (tight-scope.mk): Make sure to prefix file
169         reference with $(srcdir) so that the file is found correctly even
170         when running `make syntax-check' in a VPATH build.
171
172 2011-11-13  Bruno Haible  <bruno@clisp.org>
173             Jim Meyering  <meyering@redhat.com>
174
175         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
176         * tests/init.sh (compare): Remove "No differences encountered" or
177         synonymous output from the 'diff' program.
178
179 2011-11-13  Bruno Haible  <bruno@clisp.org>
180
181         Makefile: Tweak indentation.
182         * Makefile: Use tab as first character in every line that contains rule
183         commands.
184
185 2011-11-13  Bruno Haible  <bruno@clisp.org>
186
187         Syntax check for copyright statements.
188         * check-copyright: New file.
189         * Makefile (sc_check_copyright): New rule.
190
191 2011-11-13  Simon Josefsson  <simon@josefsson.org>
192
193         * build-aux/git-version-gen: Add --prefix to configure the tag
194         match string.
195
196 2011-11-13  Simon Josefsson  <simon@josefsson.org>
197
198         * build-aux/git-version-gen: Add --help and --version.
199
200 2011-11-12  Jim Meyering  <meyering@redhat.com>
201
202         revamp the other test-exclude?.sh scripts to use init.sh, too
203         * tests/test-exclude1.sh: Use init.sh.
204         * tests/test-exclude2.sh: Likewise.
205         * tests/test-exclude3.sh: Likewise.
206         * tests/test-exclude4.sh: Likewise.
207         * tests/test-exclude5.sh: Likewise.
208         * tests/test-exclude6.sh: Likewise.
209         * tests/test-exclude7.sh: Likewise.
210         * tests/test-exclude8.sh: Likewise.
211         * modules/exclude-tests (Files): List init.sh.
212
213         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
214         These shell scripts ignored failure of the binary test-exclude,
215         so making the latter return 77 didn't cause them to be skipped.
216         * tests/test-exclude5.sh: Exit with test-exclude's error status
217         when that program fails.  Revamp to use init.sh.
218         * tests/test-exclude2.sh: Likewise.
219
220         test-exclude: fix a typo
221         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
222
223 2011-11-11  Bruno Haible  <bruno@clisp.org>
224
225         obstack: Fix compilation error on MSVC 9.
226         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
227
228 2011-11-11  Jim Meyering  <meyering@redhat.com>
229
230         test-exclude: skip tests rather than failing on deficient systems
231         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
232         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
233         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
234         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
235
236 2011-11-10  Bruno Haible  <bruno@clisp.org>
237
238         ptsname_r test: Avoid gcc warning on glibc systems.
239         * tests/test-ptsname_r.c (null_ptr): New function.
240         (test_errors): Use it.
241
242 2011-11-10  Bruno Haible  <bruno@clisp.org>
243
244         ptsname_r: Avoid compilation error on OSF/1 5.1.
245         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
247         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
248         function is not declared or incompatibly declared.
249         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
250         * modules/ptsname_r (Depends-on, configure.ac): Update.
251         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
252
253 2011-11-10  Bruno Haible  <bruno@clisp.org>
254
255         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
256         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
257         When cross-compiling, guess yes on all platforms except AIX.
258         Reported by Ludovic Courtès <ludo@gnu.org>.
259
260 2011-11-09  Bruno Haible  <bruno@clisp.org>
261
262         ptsname_r tests: Fix bugs.
263         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
264         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
265
266 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
267
268         fstatat: work with cross-compilation
269         Problem reported by Ludovic Courtès in
270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
271         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
272         "cross-compiling" and assume the bug is present.  Replace
273         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
274         an inverted sense, to be more conservative about our assumptions.
275         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
276
277 2011-11-09  Bruno Haible  <bruno@clisp.org>
278
279         Improve MODULES.html output.
280         * modules/mkfifoat (Description): Use the word "function".
281         * modules/readlinkat (Description): Likewise.
282         * modules/symlinkat (Description): Likewise.
283
284 2011-11-09  Eric Blake  <eblake@redhat.com>
285
286         ptsname_r-tests: new test module
287         * modules/ptsname_r-tests: New module.
288         * tests/test-ptsname_r.c: New file.
289
290         ptsname_r: new module
291         * modules/ptsname_r: New module.
292         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
293         * lib/ptsname.c (__ptsname_r): Split...
294         * lib/ptsname_r.c: ...into new file.
295         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
296         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
297         * modules/stdlib (Makefile.am): Substitute witnesses.
298         * lib/stdlib.in.h (ptsname_r): Declare it.
299         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
300         * MODULES.html.sh (Misc): Likewise.
301         * modules/ptsname (Depends-on): Alter dependency.
302         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
303
304 2011-11-09  Jim Meyering  <meyering@redhat.com>
305
306         announce-gen: be more concise when there's only one URL+tarball
307         * build-aux/announce-gen (get_tool_versions): When you distribute
308         only one type of tarball, combine the first two "Here are..."
309         sections and make the key-checking grammar independent of
310         how many tarballs there are.
311
312 2011-11-09  Eric Blake  <eblake@redhat.com>
313
314         openpty: provide a stub on mingw
315         * lib/pty.in.h (includes): Provide forward declarations.
316         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
317
318         raise: fix mingw handling of SIGPIPE
319         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
320
321 2011-11-08  Bruno Haible  <bruno@clisp.org>
322
323         More conditional dependencies.
324         * modules/faccessat (Depends-on): Add conditions.
325         * modules/fchmodat (Depends-on): Likewise.
326         * modules/fchownat (Depends-on): Likewise.
327         * modules/fstatat (Depends-on): Likewise.
328         * modules/mkfifoat (Depends-on): Likewise.
329         * modules/readlinkat (Depends-on): Likewise.
330         * modules/symlinkat (Depends-on): Likewise.
331         * modules/unlinkat (Depends-on): Likewise.
332         * modules/utimensat (Depends-on): Likewise.
333         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
334         * modules/linkat (Depends-on): Refine the conditions.
335         * modules/renameat (Depends-on): Likewise.
336
337 2011-11-08  Bruno Haible  <bruno@clisp.org>
338
339         faccessat: Move AC_LIBOBJ invocation to module description.
340         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
341         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
342         invocation from here...
343         * modules/faccessat (configure.ac): ... to here. Invoke
344         gl_PREREQ_FACCESSAT.
345
346 2011-11-08  Bruno Haible  <bruno@clisp.org>
347
348         faccessat: Simplify autoconf macro.
349         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
350         gl_FUNC_EUIDACCESS.
351
352 2011-11-08  Bruno Haible  <bruno@clisp.org>
353
354         renameat: Fix dependencies.
355         * modules/renameat (Depends-on): Add stdbool.
356
357 2011-11-08  Bruno Haible  <bruno@clisp.org>
358
359         mkfifoat: Fix module description.
360         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
361         not gl_UNISTD_MODULE_INDICATOR.
362
363 2011-11-08  Bruno Haible  <bruno@clisp.org>
364
365         fstatat: Remove unused dependency.
366         * modules/fstatat (Depends-on): Remove fstat.
367
368 2011-11-08  Simon Josefsson  <simon@josefsson.org>
369
370         GNUmakefile: behave when Makefile is missing.
371         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
372
373 2011-11-08  Bruno Haible  <bruno@clisp.org>
374
375         openat: Conditionalize dependencies.
376         * lib/openat.c: Reduce the scope of some #includes.
377         * modules/openat (Depends-on): Add conditions.
378
379 2011-11-07  Jim Meyering  <meyering@redhat.com>
380
381         maint.mk: extract GPG key ID without using a temporary file
382         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
383         without using a temporary file.  Based on a suggestion from Werner Koch
384         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
385
386 2011-11-07  Eric Blake  <eblake@redhat.com>
387
388         grantpt: fix typo
389         * lib/stdlib.in.h (grantpt): Check correct function.
390
391         maint.mk: silence new syntax check
392         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
393
394 2011-11-06  Bruno Haible  <bruno@clisp.org>
395
396         Doc about floating-point and math API.
397         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
398         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
399
400 2011-11-06  Bruno Haible  <bruno@clisp.org>
401
402         stdalign tests: Skip the test when compiled by Sun C.
403         * tests/test-stdalign.c (main): Skip the test on Sun C.
404
405 2011-11-06  Bruno Haible  <bruno@clisp.org>
406
407         ansi-c++-opt: Complete the 2011-06-05 change.
408         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
409         does not support namespaces, set the variable to "no", not to ":".
410
411 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
412
413         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
414
415 2011-11-06  Bruno Haible  <bruno@clisp.org>
416
417         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
418         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
419         (minus_zerol) [HP-UX]: New macro.
420         (unary_minus) [HP-UX]: New function.
421         (copysignl) [HP-UX]: Use unary_minus function.
422
423 2011-11-06  Bruno Haible  <bruno@clisp.org>
424
425         ldexp, ldexpf, ldexpl: Enhance tests.
426         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
427         and tests/test-ldexpl.c.
428         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
429         LDEXP, MIN_EXP, MAX_EXP): New macros.
430         Include test-ldexp.h.
431         (main): Just call test_function.
432         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
433         infinity.h, nan.h.
434         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
435         MAX_EXP): New macros.
436         Include test-ldexp.h.
437         (x, y): Remove variables.
438         (main): Just call test_function.
439         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
440         infinity.h, nan.h.
441         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
442         MAX_EXP): New macros.
443         Include test-ldexp.h.
444         (x, y): Remove variables.
445         (main): Just call test_function.
446         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
447         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
448         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
449         (Depends-on): Add isnand-nolibm, signbit, float.
450         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
451         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
452         (Depends-on): Add isnanf-nolibm, signbit, float.
453
454 2011-11-06  Bruno Haible  <bruno@clisp.org>
455
456         math tests: Cosmetics.
457         * tests/test-math-c++.cc: Reorder declarations.
458
459 2011-11-05  Bruno Haible  <bruno@clisp.org>
460
461         fma*: Simplify test.
462         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
463         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
464
465         Tests for module 'fmal'.
466         * modules/fmal-tests: New file.
467         * tests/test-fmal1.c: New file.
468         * tests/test-fmal2.c: New file.
469
470         New module 'fmal'.
471         * lib/math.in.h (fmal): New declaration.
472         * lib/fmal.c: New file.
473         * m4/fmal.m4: New file.
474         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
476         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
477         REPLACE_FMAL.
478         * modules/fmal: New file.
479         * doc/posix-functions/fmal.texi: Mention the new module and the various
480         bugs.
481
482         Tests for module 'fmaf'.
483         * modules/fmaf-tests: New file.
484         * tests/test-fmaf1.c: New file.
485         * tests/test-fmaf2.c: New file.
486
487         New module 'fmaf'.
488         * lib/math.in.h (fmaf): New declaration.
489         * lib/fmaf.c: New file.
490         * m4/fmaf.m4: New file.
491         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
493         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
494         REPLACE_FMAF.
495         * modules/fmaf: New file.
496         * doc/posix-functions/fmaf.texi: Mention the new module and the various
497         bugs.
498
499         Tests for module 'fma'.
500         * modules/fma-tests: New file.
501         * tests/test-fma1.c: New file.
502         * tests/test-fma1.h: New file.
503         * tests/test-fma2.c: New file.
504         * tests/test-fma2.h: New file.
505
506         New module 'fma'.
507         * lib/math.in.h (fma): New declaration.
508         * lib/fma.c: New file.
509         * m4/fma.m4: New file.
510         * m4/fegetround.m4: New file.
511         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
513         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
514         REPLACE_FMA.
515         * modules/fma: New file.
516         * doc/posix-functions/fma.texi: Mention the new module and the various
517         bugs.
518
519         Extend gl_MATHFUNC.
520         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
521         Support 'void' as argument type.
522         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
523
524 2011-11-05  Jim Meyering  <meyering@redhat.com>
525
526         maint.mk: also prohibit inclusion of dirent.h without use
527         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
528
529 2011-11-05  Bruno Haible  <bruno@clisp.org>
530
531         ldexpl tests: Avoid test failure on MSVC 9.
532         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
533         value. Needed in order to enforce the conversion from a value greater
534         than LDBL_MAX to Infinity.
535
536 2011-11-05  Bruno Haible  <bruno@clisp.org>
537
538         New modules 'at-internal', 'openat-h', split off from module 'openat'.
539         * modules/at-internal: New file, extracted from modules/openat.
540         * modules/openat-h: New file.
541         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
542         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
543         * modules/openat (Description): Add reference to POSIX function.
544         (Files): Remove lib/openat.h, lib/openat-proc.c.
545         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
546         intprops, unistd.
547         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
548         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
549         gl_FCNTL_MODULE_INDICATOR.
550         (Include): Remove unistd.h, openat.h.
551         * modules/areadlinkat (Files): Add lib/at-func.c.
552         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
553         openat-die, openat-h, save-cwd.
554         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
555         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
556         openat-die, openat-h, save-cwd, unistd.
557         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
558         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
559         openat-h, save-cwd. Remove fcntl-h, openat.
560         * modules/fchmodat (Files): Remove lib/openat.h.
561         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
562         openat, stdbool, unistd.
563         * modules/fchownat (Files): Remove lib/openat.h.
564         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
565         openat, stdbool, sys_stat.
566         * modules/fdopendir (Files): Remove lib/openat-priv.h,
567         lib/openat-proc.c.
568         (Depends-on): Add at-internal.
569         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
570         * modules/fstatat (Files): Remove lib/openat.h.
571         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
572         stdbool, unistd.
573         * modules/fts (Depends-on): Add openat-h.
574         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
575         openat.
576         * modules/mkdirat (Files): Remove lib/openat.h.
577         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
578         openat, stdbool, sys_stat.
579         * modules/mkfifoat (Files): Add lib/at-func.c.
580         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
581         openat-h, save-cwd. Remove fcntl-h, openat.
582         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
583         * modules/readlinkat (Files): Add lib/at-func.c.
584         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
585         openat-h, save-cwd. Remove fcntl-h, openat.
586         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
587         openat.
588         * modules/selinux-at (Files): Add lib/at-func.c.
589         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
590         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
591         * modules/symlinkat (Files): Add lib/at-func.c.
592         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
593         openat-h, save-cwd. Remove fcntl-h, openat.
594         * modules/unlinkat (Files): Remove lib/openat.h.
595         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
596         stdbool.
597         * modules/utimensat (Files): Add lib/at-func.c.
598         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
599         openat-die, openat-h, save-cwd.
600         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
601         * modules/fdutimensat-tests (Depends-on): Add openat.
602         * modules/fstatat-tests (Depends-on): Add openat-h.
603         * modules/readlinkat-tests (Depends-on): Add openat.
604         * modules/symlinkat-tests (Depends-on): Add openat.
605
606 2011-11-05  Bruno Haible  <bruno@clisp.org>
607
608         openat: Include <stdbool.h>.
609         * lib/openat.c: Include <stdbool.h>.
610
611 2011-11-04  Bruno Haible  <bruno@clisp.org>
612
613         fchownat, renameat, unlinkat: Fix dependencies.
614         * modules/fchownat (Depends-on): Add fstatat.
615         * modules/renameat (Depends-on): Likewise.
616         * modules/unlinkat (Depends-on): Likewise.
617
618 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
619
620         openat: remove direct dependency on dirent
621         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
622         and hasn't been needed ever since fdopendir was split into its own
623         module on 2009-08-31.
624         * modules/openat (Depends-on): Remove dirent.
625
626 2011-11-04  Bruno Haible  <bruno@clisp.org>
627
628         renameat: Optimize code size.
629         * modules/renameat (configure.ac): Don't compile at-func2.c if
630         REPLACE_RENAMEAT is 1.
631
632 2011-11-04  Bruno Haible  <bruno@clisp.org>
633
634         openat tests: Fix file list.
635         * modules/openat-tests (Files): Add tests/test-open.h.
636
637 2011-11-04  Bruno Haible  <bruno@clisp.org>
638
639         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
640         * modules/fchmodat (Depends-on): Add openat-die.
641         * modules/fchownat (Depends-on): Likewise.
642         * modules/linkat (Depends-on): Likewise.
643         * modules/renameat (Depends-on): Likewise.
644         * modules/openat (Depends-on): Add dirent.
645
646 2011-11-04  Jim Meyering  <meyering@redhat.com>
647
648         at-func*.c: fix comments
649         * lib/at-func2.c: Correct/improve first-line comment.
650         * lib/at-func.c: Correct grammar in first-line comment.
651
652 2011-11-04  Bruno Haible  <bruno@clisp.org>
653
654         New module 'mkdirat', split off from module 'openat'.
655         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
656         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
657         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
658         * modules/mkdirat: New file, extracted from modules/openat.
659         * modules/openat (Files): Remove lib/mkdirat.c.
660         (Depends-on): Remove mkdir.
661         (configure.ac): Remove AC_LIBOBJ of mkdirat.
662         (Include): Remove <sys/stat.h>.
663         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
664         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
665         tests/test-mkdir.h.
666         (Depends-on): Remove ignore-value.
667         (Makefile.am): Remove rules for test-mkdirat.
668         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
669         of module 'openat'.
670         * NEWS: Mention the change.
671
672 2011-11-04  Bruno Haible  <bruno@clisp.org>
673
674         closedir: Avoid warning on mingw.
675         * lib/closedir.c: Include <unistd.h>.
676
677 2011-11-04  Bruno Haible  <bruno@clisp.org>
678
679         New module 'fstatat', split off from module 'openat'.
680         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
681         defined.
682         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
683         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
684         gl_FUNC_FSTATAT.
685         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
686         * modules/fstatat: New file, extracted from modules/openat.
687         * modules/openat (Files): Remove lib/fstatat.c.
688         (Depends-on): Remove lstat.
689         (configure.ac): Remove AC_LIBOBJ of fstatat.
690         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
691         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
692         tests/test-lstat.h, tests/test-stat.h.
693         (Depends-on): Remove getcwd-lgpl.
694         (Makefile.am): Remove rules for test-fstatat.
695         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
696         of module 'openat'.
697         * NEWS: Mention the change.
698         * modules/getcwd (Depends-on): Add fstatat.
699         * modules/linkat (Depends-on): Likewise.
700         * modules/mkfifoat-tests (Depends-on): Likewise.
701         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
702
703 2011-11-03  Bruno Haible  <bruno@clisp.org>
704
705         New module 'unlinkat', split off from module 'openat'.
706         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
707         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
708         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
709         * modules/unlinkat: New file, extracted from modules/openat. Correct
710         the dependency conditions.
711         * modules/openat (Files): Remove lib/unlinkat.c.
712         (Depends-on): Remove rmdir, unlink.
713         (configure.ac): Remove AC_LIBOBJ of unlinkat.
714         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
715         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
716         tests/test-rmdir.h, tests/test-unlink.h.
717         (Depends-on): Remove unlinkdir.
718         (Makefile.am): Remove rules for test-unlinkat.
719         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
720         of module 'openat'.
721         * NEWS: Mention the change.
722         * modules/linkat-tests (Depends-on): Add unlinkat.
723         * modules/mkfifoat-tests (Depends-on): Likewise.
724         * modules/readlinkat-tests (Depends-on): Likewise.
725
726 2011-11-02  Bruno Haible  <bruno@clisp.org>
727
728         New module 'fchmodat', split off from module 'openat'.
729         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
730         defined.
731         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
732         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
733         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
734         * modules/fchmodat: New file, extracted from modules/openat.
735         * modules/openat (Files): Remove lib/fchmodat.c.
736         (configure.ac): Remove AC_LIBOBJ of fchmodat.
737         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
738         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
739         (Makefile.am): Remove rules for test-fchmodat.
740         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
741         of module 'openat'.
742         * NEWS: Mention the change.
743
744 2011-11-02  Jim Meyering  <meyering@redhat.com>
745
746         putenv: indent #definition of "environ" to placate cppi
747         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
748
749         gitlog-to-changelog: provide a ChangeLog-repair mechanism
750         Git logs are often treated as immutable, because editing them
751         changes the SHA1 checksums of all descendants.  Thus, errors in
752         git logs tend to stay there forever.  However, when we generate
753         a ChangeLog file -- typically for distribution -- from that git log,
754         we can actually make corrections in the generated file.  The key
755         lies in recording in machine-readable/applicable form the desired
756         corrections.  See --help for description and an example.
757         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
758         (usage): Describe it; alphabetize option descriptions.
759         (main): Honor the new option, carefully.
760
761 2011-11-01  Jim Meyering  <meyering@redhat.com>
762
763         gitlog-to-changelog: avoid an infloop
764         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
765         that ends up being empty.
766
767 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
768
769         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
770         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
771         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
772         contains (possibly-quoted) backslashes.  This should avoid
773         all-too-common shell bugs if COMPLICATED contains backslashes in
774         the "wrong" places.  Reported by David Evans in
775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
776         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
777         because we want ASCII ranges.  Is there some reason we don't use
778         the C locale everywhere in this script?
779         (func_module, top level): Avoid unwanted pathname expansion when
780         $repo_url_prefix or $repo_url_suffix_repl contain shell
781         metacharacters like '?' and '*'.
782
783 2011-11-01  Bruno Haible  <bruno@clisp.org>
784
785         fchownat: Improve description.
786         * modules/fchownat (Description): Add link to function.
787
788 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
789
790         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
791         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
793         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
794
795 2011-11-01  Bruno Haible  <bruno@clisp.org>
796
797         alignof: Avoid collision with stdalign module.
798         * lib/alignof.h (alignof): Remove macro.
799         * NEWS: Mention the change.
800         Reported by Paul Eggert.
801
802 2011-11-01  Bruno Haible  <bruno@clisp.org>
803
804         New module 'fchownat', split off from module 'openat'.
805         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
806         defined.
807         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
808         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
809         invoke gl_FUNC_FCHOWNAT.
810         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
811         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
812         * modules/fchownat: New file, extracted from modules/openat.
813         * modules/openat (Files): Remove lib/fchownat.c.
814         (Depends-on): Remove lchown.
815         (configure.ac): Remove AC_LIBOBJ of fchownat.
816         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
817         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
818         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
819         (Depends-on): Remove mgetgroups, usleep, stat-time.
820         (configure.ac): Remove test for getegid.
821         (Makefile.am): Remove rules for test-fchownat.
822         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
823         of module 'openat'.
824         * NEWS: Mention the change.
825
826 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
827
828         stdalign: port better to MSVC and to Sun C 5.11
829         This fixes some of the problems reported by Bruno Haible in
830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
831         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
832         shortcomings of MSVC and of Sun C 5.11.
833         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
834         around __declspec arg.
835         * modules/stdalign-tests (Files): Add tests/macros.h.
836         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
837         Include macros.h, for ASSERT.
838         (DECLARE_ALIGNED): Remove.
839         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
840         to catch bug), and to 1 if not (simplifies the rest of the code).
841         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
842         (CHECK_AUTO): Remove.
843         (CHECK_ALIGNED): Check only the alignment of the static vars,
844         since auto var alignment isn't supported by Sun C 5.11.
845         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
846         ASSERT failures are easier to diagnose.
847
848 2011-10-31  Bruno Haible  <bruno@clisp.org>
849
850         doc about some IRIX 5.3 problems.
851         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
852         on IRIX 5.3.
853         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
854         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
855         5.3.
856         * doc/posix-functions/grantpt.texi: Likewise.
857         * doc/posix-functions/unlockpt.texi: Likewise.
858         * doc/posix-functions/lgamma.texi: Likewise.
859         * doc/posix-functions/nextafter.texi: Likewise.
860         * doc/posix-functions/remainder.texi: Likewise.
861         * doc/posix-functions/select.texi: Mention misplaced declaration on
862         IRIX 5.3.
863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
864
865 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
866
867         gitlog-to-changelog: fix git-log invocation.
868         git-log mishandles date strings before 1970-01-01 UTC, and there is
869         no use to specify --since=1970-01-01 by default anyway.
870         * build-aux/gitlog-to-changelog: By default, when no --since option
871         was given, do not specify explicit --since option to git-log.
872
873 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
874
875         gitlog-to-changelog: new option --append-dot.
876         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
877         first non-blank line of each commit message terminated with a dot.
878
879 2011-10-30  Bruno Haible  <bruno@clisp.org>
880
881         ffsl, ffsll: Avoid compilation error due to 'restrict'.
882         * lib/ffsl.h: Include <config.h>.
883         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
884
885 2011-10-30  Jim Meyering  <meyering@redhat.com>
886
887         GNUmakefile: reenable "make syntax-check" for most projects
888         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
889         build-aux variable", "syntax-check" would do nothing but succeed with
890         the "No version control files detected..." diagnostic (unless you
891         happened to override _build-aux via cfg.mk).
892         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
893         to precede inclusion of maint.mk.  Otherwise, these variables would
894         be used undefined in any project that does not override the default.
895
896 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
897
898         gitlog-to-changelog: treat a message with only blank lines as empty.
899         * build-aux/gitlog-to-changelog: Move the code that removes leading and
900         trailing blank lines before the code that issues a warning about an
901         empty commit message.
902
903 2011-10-30  Jim Meyering  <meyering@redhat.com>
904
905         test-parse-datetime.c: avoid new DST-related false positive test failure
906         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
907         based on the time/date we'll convert, not the current time.
908         Otherwise, the moment we cross a DST boundary like today's in
909         Europe, (CEST to CET), that offset ends up being one hour off.
910
911 2011-10-27  Bruno Haible  <bruno@clisp.org>
912
913         fstat: Tweak documentation.
914         * modules/fstat (Description): More precise description.
915
916 2011-10-27  Bruno Haible  <bruno@clisp.org>
917
918         Update documentation regarding 'largefile' module.
919         * doc/posix-functions/fstat.texi: Tweak wording.
920         * doc/posix-functions/opendir.texi: Mention that the module fixes the
921         problems with huge directories and/or small ino_t types.
922         * doc/posix-functions/readdir.texi: Likewise.
923         * doc/posix-functions/rewinddir.texi: Likewise.
924
925 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
926
927         maint.mk: don't maintain a second build-aux variable.
928         * maint.mk (build_aux): Removed.  The maintainer-makefile module
929         depends on GNUmakefile, which already maintains a cfg.mk
930         overridable $(_build-aux) for projects with a non-standard
931         build-aux directory location, although without the $(srcdir)
932         prefix.  Use that variable consistently instead of introducing a
933         second one.  Adjust all call sites.
934
935 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
936
937         Add stdalign module and use it in other modules.
938         This is based on a previous proposal by Bruno Haible
939         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
940
941         stdalign: new module
942         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
943         * modules/stdalign: New files.
944         * MODULES.html.sh (c1x_core_properties): Add stdalign.
945         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
946
947         stdalign-tests: new module
948         * modules/stdalign-tests, tests/test-stdalign.c: New files.
949
950         argp: use stdalign
951         * lib/argp-parse.c: Include <stdalign.h>.
952         (alignof): Remove.
953         * modules/argp (Depends-on): Add stdalign.
954
955         crypto libraries: use stdalign
956         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
957         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
958         Do not include <stdlib.h> twice, in md4.c.
959         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
960         because we are accessing a pointer's bit-pattern, not a size.
961         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
962         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
963         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
964         * modules/crypto/sha512: Likewise.
965
966         sys_socket: use stdalign, not alignof
967         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
968         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
969
970 2011-10-27  Bruno Haible  <bruno@clisp.org>
971
972         raise test: Avoid a test failure on Linux/MIPS.
973         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
974         because 99 is a valid signal on Linux/MIPS.
975
976 2011-10-27  Bruno Haible  <bruno@clisp.org>
977
978         nonblocking tests: Fix test failure on Linux/MIPS.
979         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
980         Set to 270000.
981
982 2011-10-27  Bruno Haible  <bruno@clisp.org>
983
984         utimensat: Work around problem on Linux/hppa.
985         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
986         values.
987         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
988
989 2011-10-25  Jim Meyering  <meyering@redhat.com>
990
991         maint.mk: fix a bug in sc_prohibit_stddef_without_use
992         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
993         after symbols like NULL, size_t, etc.
994         Reported by Alfred M. Szmidt.
995
996         maint.mk: exempt ENODATA from a syntax-check rule
997         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
998         from the sc_prohibit_always-defined_macros syntax-check rule.
999         Add a comment.  See this for more details:
1000         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1001
1002 2011-10-23  Jim Meyering  <meyering@redhat.com>
1003
1004         fts: close parent dir FD before returning from post-traversal fts_read
1005         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1006         unlink A, even though an FD open on A remained.  This is suboptimal
1007         (holding a file descriptor open longer than needed), but otherwise not
1008         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1009         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1010         that represents a real problem: it causes the removal of A to fail
1011         with e.g., "rm: cannot remove `A': Device or resource busy"
1012
1013         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1014         directory file descriptors.  After completing the final, FTS_DP,
1015         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1016         cache, but then proceeded to add a new FD to it via the subsequent
1017         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1018         final file descriptor would be closed only via fts_close's call to
1019         fd_ring_clear.  Now, it is usually closed earlier, via the final
1020         FTS_DP-returning fts_read call.
1021         * lib/fts.c (restore_initial_cwd): New function, converted from
1022         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1023         Update callers.
1024         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1025         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1026
1027 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1028             Bruno Haible  <bruno@clisp.org>
1029             Jim Meyering  <jim@meyering.net>
1030
1031         readme-release: improve safety of release prep instructions.
1032         * README-release: Don't git pull all branches when only master
1033         is needed for the release process.
1034         Run make maintainer-clean before changing trees and merging.
1035         Don't try to run ./configure right after git pull in case files
1036         that influence the bootstrap process have changed, move the
1037         ./configure step to after running ./bootstrap.
1038         Don't bootstrap "one last time"... it's the first time!
1039
1040 2011-10-22  Bruno Haible  <bruno@clisp.org>
1041
1042         errno, strerror-override: Support for MSVC 10.
1043         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1044         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1045         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1046         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1047         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1048         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1049         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1050         Assign values compatible with MSVC 10.
1051         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1052         New macros.
1053         (GNULIB_defined_EWINSOCK): New macro.
1054         * lib/strerror-override.c (strerror_override): Update accordingly.
1055         * lib/strerror-override.h: Likewise.
1056         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1057         longer equal to the corresponding errno value.
1058         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1059
1060 2011-10-22  Bruno Haible  <bruno@clisp.org>
1061
1062         perror: Recognize when test program crashes.
1063         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1064         strerror, set gl_cv_func_perror_works to no.
1065         Reported by Daniel Richard G. <skunk@iskunk.org>.
1066
1067         perror: Fix indentation.
1068         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1069
1070 2011-10-22  Bruno Haible  <bruno@clisp.org>
1071
1072         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1073         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1074         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1075         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1076         functions, not as a macro.
1077         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1078         macros.
1079         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1080         absence of macro.
1081         Suggested by Eric Blake.
1082         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1083
1084 2011-10-21  Bruno Haible  <bruno@clisp.org>
1085
1086         relocatable-prog-wrapper: Don't leave object files behind.
1087         * build-aux/install-reloc: Re-synchronize list of .o files to be
1088         removed with list of compilation units.
1089
1090 2011-10-20  Bruno Haible  <bruno@clisp.org>
1091
1092         openpty, posix_openpt: Remove code duplication.
1093         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1094         * lib/openpty.c: Include <stdlib.h>.
1095         (openpty): Use posix_openpt on all platforms except IRIX.
1096         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1097
1098 2011-10-20  Bruno Haible  <bruno@clisp.org>
1099
1100         unlockpt: Detect invalid argument.
1101         * lib/unlockpt.c: Include <fcntl.h>.
1102         (unlockpt): Check whether fd is valid, using fcntl().
1103         * modules/unlockpt (Depends-on): Add fcntl-h.
1104
1105 2011-10-20  Bruno Haible  <bruno@clisp.org>
1106
1107         openpty: Avoid compilation error on AIX 6.1.
1108         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1109
1110 2011-10-20  Bruno Haible  <bruno@clisp.org>
1111
1112         posix_openpt: Support for OpenBSD.
1113         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1114         (posix_openpt) [OpenBSD]: New code.
1115         * lib/grantpt.c: Include <fcntl.h>.
1116         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1117         * modules/grantpt (Depends-on): Add fcntl-h.
1118
1119 2011-10-20  Bruno Haible  <bruno@clisp.org>
1120
1121         posix_openpt test: Coding style.
1122         * tests/test-posix_openpt.c: Use GNU coding style.
1123
1124 2011-10-20  Bruno Haible  <bruno@clisp.org>
1125
1126         grantpt: Support --avoid=pt_chown.
1127         * modules/grantpt (Files): Add lib/pty-private.h.
1128
1129 2011-10-20  Bruno Haible  <bruno@clisp.org>
1130
1131         posix_openpt: Fix autoconf macro.
1132         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1133         unneeded check for _getpty.
1134
1135 2011-10-20  Bruno Haible  <bruno@clisp.org>
1136
1137         openpty: Update comments.
1138         * lib/openpty.c: Add comments about Minix.
1139
1140 2011-10-19  Eric Blake  <eblake@redhat.com>
1141
1142         openpty: relax license
1143         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1144
1145         pt_chown: use configmake to simplify build
1146         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1147
1148         ptsname and others: relax license
1149         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1150         * modules/unlockpt (License): Likewise.
1151         * modules/pt_chown (License): Likewise.
1152         * modules/ptsname (License): Likewise.
1153         * modules/ttyname_r (License): Likewise.
1154
1155 2011-10-19  Jim Meyering  <meyering@redhat.com>
1156
1157         posix_openpt: remove spurious #endif
1158         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1159
1160 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1161
1162         maint.mk: Respect $(build_aux) in web-manual rule.
1163         * top/maint.mk (web-manual): Find gen-announce script in user's
1164         $(build_aux) directory instead of hard-coding 'build-aux'.
1165
1166 2011-10-19  Bruno Haible  <bruno@clisp.org>
1167
1168         posix_openpt: Fix compilation error.
1169         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1170         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1171         Mention the openpty module as an alternative.
1172
1173 2011-10-19  Bruno Haible  <bruno@clisp.org>
1174
1175         Support for old NeXTstep 3.3 frexp().
1176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1177         execution time of the test to 5 seconds.
1178         Reported by Daniel Richard G. <skunk@iskunk.org>.
1179
1180 2011-10-19  Bruno Haible  <bruno@clisp.org>
1181
1182         Support for old NeXTstep 3.3 sed.
1183         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1184         part, use /.../, not \|...|. Escape periods in the header file name.
1185         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1186         Reported by Daniel Richard G. <skunk@iskunk.org>.
1187
1188 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1189
1190         Support for old NeXTstep 3.3 gcc.
1191         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1192         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1193         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1194         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1195         * lib/regex.h (_Restrict_arr_): Likewise.
1196         * lib/regex_internal.h (re_token_t): Likewise.
1197         * lib/regexec.c (check_node_accept_bytes): Likewise.
1198         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1199
1200 2011-10-18  Eric Blake  <eblake@redhat.com>
1201
1202         posix_openpt: new module
1203         * modules/posix_openpt: New module.
1204         * m4/posix_openpt.m4: New file.
1205         * lib/posix_openpt.c: Likewise.
1206         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1207         (gl_STDLIB_H_DEFAULTS): Set defaults.
1208         * modules/stdlib (Makefile.am): Substitute macros.
1209         * lib/stdlib.in.h (posix_openpt): Declare.
1210         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1211         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1212         * modules/posix_openpt-tests: New test module.
1213         * tests/test-posix_openpt.c: New test.
1214
1215 2011-10-15  Bruno Haible  <bruno@clisp.org>
1216
1217         xstrtoll: Fix compilation failure.
1218         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1219         from lib/strtol.c.
1220         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1221         some platforms.
1222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1223
1224 2011-10-15  Bruno Haible  <bruno@clisp.org>
1225
1226         vasnprintf: Optimize bit search operation.
1227         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1229         gl_DOUBLE_EXPONENT_LOCATION.
1230         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1231         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1232         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1233         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1234         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1235         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1236         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1237         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1238         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1239
1240 2011-10-15  Bruno Haible  <bruno@clisp.org>
1241
1242         vasnprintf: Fix comments.
1243         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1244
1245 2011-10-14  Bruno Haible  <bruno@clisp.org>
1246
1247         Tests for module 'integer_length_ll'.
1248         * modules/integer_length_ll-tests: New file.
1249         * tests/test-integer_length_ll.c: New file.
1250
1251         New module 'integer_length_ll'.
1252         * lib/integer_length_ll.c: New file.
1253         * modules/integer_length_ll: New file.
1254
1255 2011-10-14  Bruno Haible  <bruno@clisp.org>
1256
1257         Tests for module 'integer_length_l'.
1258         * modules/integer_length_l-tests: New file.
1259         * tests/test-integer_length_l.c: New file.
1260
1261         New module 'integer_length_l'.
1262         * lib/integer_length_l.c: New file.
1263         * modules/integer_length_l: New file.
1264
1265 2011-10-14  Bruno Haible  <bruno@clisp.org>
1266
1267         Tests for module 'integer_length'.
1268         * modules/integer_length-tests: New file.
1269         * tests/test-integer_length.c: New file.
1270
1271         New module 'integer_length'.
1272         * lib/integer_length.h: New file.
1273         * lib/integer_length.c: New file.
1274         * modules/integer_length: New file.
1275
1276 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1277
1278         popen: Fix dependency conditions.
1279         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1280
1281 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1282
1283         perror: Fix autoconf test.
1284         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1285         <stdlib.h> and <string.h>.
1286
1287 2011-10-14  Bruno Haible  <bruno@clisp.org>
1288
1289         ffsl: Optimize on 64-bit platforms.
1290         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1291         unrolling.
1292
1293 2011-10-13  Bruno Haible  <bruno@clisp.org>
1294
1295         ffsl: Optimize on 32-bit platforms.
1296         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1297         use ffs() without a loop.
1298
1299         ffsl, ffsll: Optimize for GCC.
1300         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1301         * lib/ffsl.c (GCC_BUILTIN): New macro.
1302         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1303
1304 2011-10-13  Bruno Haible  <bruno@clisp.org>
1305
1306         ffs, bcopy, memset: Support symbol renaming via config.h.
1307         * lib/ffs.c: Include <config.h>.
1308         * lib/bcopy.c: Likewise.
1309         * lib/memset.c: Likewise.
1310
1311 2011-10-10  Bruno Haible  <bruno@clisp.org>
1312
1313         atanl: Simplify for platforms where 'long double' == 'double'.
1314         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1315         alternative implementation.
1316         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1317         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1318         * modules/atanl (Depends-on): Add atan. Update conditions.
1319
1320 2011-10-10  Bruno Haible  <bruno@clisp.org>
1321
1322         acosl: Simplify for platforms where 'long double' == 'double'.
1323         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1324         alternative implementation.
1325         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1326         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1327         * modules/acosl (Depends-on): Add acos. Update conditions.
1328
1329 2011-10-10  Bruno Haible  <bruno@clisp.org>
1330
1331         asinl: Simplify for platforms where 'long double' == 'double'.
1332         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1333         alternative implementation.
1334         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1335         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1336         * modules/asinl (Depends-on): Add asin. Update conditions.
1337
1338 2011-10-10  Bruno Haible  <bruno@clisp.org>
1339
1340         tanl: Simplify for platforms where 'long double' == 'double'.
1341         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1342         implementation.
1343         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1344         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1345         * modules/tanl (Depends-on): Add tan. Update conditions.
1346         (configure.ac): Don't compile trigl.c if
1347         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1348
1349 2011-10-10  Bruno Haible  <bruno@clisp.org>
1350
1351         cosl: Simplify for platforms where 'long double' == 'double'.
1352         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1353         implementation.
1354         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1355         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1356         * modules/cosl (Depends-on): Add cos. Update conditions.
1357         (configure.ac): Don't compile sincosl.c and trigl.c if
1358         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1359
1360 2011-10-10  Bruno Haible  <bruno@clisp.org>
1361
1362         sinl: Simplify for platforms where 'long double' == 'double'.
1363         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1364         implementation.
1365         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1366         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1367         * modules/sinl (Depends-on): Add sin. Update conditions.
1368         (configure.ac): Don't compile sincosl.c and trigl.c if
1369         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1370
1371 2011-10-10  Bruno Haible  <bruno@clisp.org>
1372
1373         logl: Simplify for platforms where 'long double' == 'double'.
1374         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1375         implementation.
1376         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1377         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1378         * modules/logl (Depends-on): Add log. Update conditions.
1379
1380 2011-10-10  Bruno Haible  <bruno@clisp.org>
1381
1382         expl: Simplify for platforms where 'long double' == 'double'.
1383         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1384         implementation.
1385         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1386         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1387         * modules/expl (Depends-on): Add exp. Update conditions.
1388
1389 2011-10-10  Bruno Haible  <bruno@clisp.org>
1390
1391         sqrtl: Simplify for platforms where 'long double' == 'double'.
1392         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1393         alternative implementation.
1394         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1395         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1396         * modules/sqrtl (Depends-on): Update conditions.
1397
1398 2011-10-10  Bruno Haible  <bruno@clisp.org>
1399
1400         ldexpl: Simplify for platforms where 'long double' == 'double'.
1401         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1402         alternative implementation.
1403         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1404         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1405         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1406
1407 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1408
1409         ffsll: set correct witness
1410         * modules/ffsll (configure.ac): Fix typo.
1411
1412 2011-10-10  Bruno Haible  <bruno@clisp.org>
1413
1414         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1415         * lib/printf-frexpl.c: Include <config.h>.
1416         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1417         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1418         second time.
1419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1420         gl_LONG_DOUBLE_VS_DOUBLE.
1421         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1422         conditions.
1423
1424 2011-10-10  Bruno Haible  <bruno@clisp.org>
1425
1426         frexpl: Simplify for platforms where 'long double' == 'double'.
1427         * lib/frexpl.c: Include <config.h>.
1428         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1429         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1430         time.
1431         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1432         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1433         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1434         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1435         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1436         conditions.
1437
1438 2011-10-10  Jim Meyering  <meyering@redhat.com>
1439
1440         test-renameat: don't leave behind a temporary file
1441         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1442           ERROR: files left in build directory after distclean:
1443           ./gltests/test-renameat.too
1444           make[1]: *** [distcleancheck] Error 1
1445         Reported by Tom G. Christensen.
1446
1447 2011-10-09  Bruno Haible  <bruno@clisp.org>
1448
1449         rint: Determine RINT_LIBM correctly on AIX 7.
1450         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1451         directly, not only through a function pointer. Also accept an optional
1452         4th argument with extra code.
1453         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1454         rintf() call by gcc when optimizing.
1455
1456         mathfunc.m4: Refactor.
1457         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1458         m4 variable.
1459
1460 2011-10-09  Bruno Haible  <bruno@clisp.org>
1461
1462         rintl: Simplify for platforms where 'long double' == 'double'.
1463         * lib/rintl.c: Include <config.h>.
1464         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1465         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1466         time.
1467         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1468         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1469         * modules/rintl (Depends-on): Add rint. Update conditions.
1470
1471 2011-10-09  Bruno Haible  <bruno@clisp.org>
1472
1473         roundl: Simplify for platforms where 'long double' == 'double'.
1474         * lib/roundl.c: Include <config.h>.
1475         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1476         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1477         time.
1478         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1479         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1480         * modules/roundl (Depends-on): Add round. Update conditions.
1481
1482 2011-10-09  Bruno Haible  <bruno@clisp.org>
1483
1484         truncl: Simplify for platforms where 'long double' == 'double'.
1485         * lib/truncl.c: Include <config.h>.
1486         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1487         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1488         time.
1489         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1490         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1491         * modules/truncl (Depends-on): Add trunc. Update conditions.
1492
1493 2011-10-09  Bruno Haible  <bruno@clisp.org>
1494
1495         ceill: Simplify for platforms where 'long double' == 'double'.
1496         * lib/ceill.c: Include <config.h>.
1497         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1498         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1499         time.
1500         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1501         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1502         * modules/ceill (Depends-on): Add ceil. Update conditions.
1503
1504 2011-10-09  Bruno Haible  <bruno@clisp.org>
1505
1506         floorl: Simplify for platforms where 'long double' == 'double'.
1507         * lib/floorl.c: Include <config.h>.
1508         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1509         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1510         time.
1511         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1512         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1513         * modules/floorl (Depends-on): Add floor. Update conditions.
1514
1515 2011-10-09  Bruno Haible  <bruno@clisp.org>
1516
1517         rint: Fix ordering constraints.
1518         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1519         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1520         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1521
1522 2011-10-09  Bruno Haible  <bruno@clisp.org>
1523
1524         copysignl: Simplify for platforms where 'long double' == 'double'.
1525         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1526         alternative.
1527         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1528         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1529         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1530
1531 2011-10-09  Bruno Haible  <bruno@clisp.org>
1532
1533         Tests for module 'rintl'.
1534         * modules/rintl-tests: New file.
1535         * tests/test-rintl.c: New file.
1536
1537         New module 'rintl'.
1538         * lib/math.in.h (rintl): New declaration.
1539         * lib/rintl.c: New file.
1540         * m4/rintl.m4: New file.
1541         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1543         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1544         * modules/rintl: New file.
1545         * tests/test-math-c++.cc: Check the declaration of rintl.
1546         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1547         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1548         * doc/posix-functions/rintl.texi: Mention the new module.
1549
1550 2011-10-09  Bruno Haible  <bruno@clisp.org>
1551
1552         Tests for module 'rintf'.
1553         * modules/rintf-tests: New file.
1554         * tests/test-rintf.c: New file.
1555
1556         New module 'rintf'.
1557         * lib/math.in.h (rintf): New declaration.
1558         * lib/rintf.c: New file.
1559         * m4/rintf.m4: New file.
1560         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1562         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1563         * modules/rintf: New file.
1564         * tests/test-math-c++.cc: Check the declaration of rintf.
1565         * doc/posix-functions/rintf.texi: Mention the new module.
1566
1567 2011-10-09  Bruno Haible  <bruno@clisp.org>
1568
1569         rint: Support for MSVC.
1570         * lib/math.in.h (rint): New declaration.
1571         * lib/rint.c: New file.
1572         * m4/rint.m4: New file.
1573         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1575         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1576         * modules/rint (Description): Fix.
1577         (Files): Add lib/rint.c, m4/rint.m4.
1578         (Depends-on): Add math.
1579         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1580         gl_MATH_MODULE_INDICATOR.
1581         * tests/test-math-c++.cc: Check the declaration of rint.
1582         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1583         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1584         * doc/posix-functions/rint.texi: Mention the replacement provided by
1585         the module.
1586
1587         rint tests: More tests.
1588         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1589         minus-zero.h, infinity.h, nan.h.
1590         (main): Skip the test if the current rounding mode is not standard. Add
1591         tests for negative numbers, minus zero, infinity, NaN.
1592         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1593         tests/nan.h.
1594         (Depends-on): Add isnand-nolibm.
1595
1596 2011-10-09  Bruno Haible  <bruno@clisp.org>
1597
1598         Tests for module 'copysignl'.
1599         * modules/copysignl-tests: New file.
1600         * tests/test-copysignl.c: New file.
1601
1602         New module 'copysignl'.
1603         * lib/math.in.h (copysignl): New declaration.
1604         * lib/copysignl.c: New file.
1605         * m4/copysignl.m4: New file.
1606         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1608         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1609         HAVE_COPYSIGNL.
1610         * modules/copysignl: New file.
1611         * tests/test-math-c++.cc: Check the declaration of copysignl.
1612         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1613         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1614         * doc/posix-functions/copysignl.texi: Mention the new module.
1615
1616 2011-10-09  Bruno Haible  <bruno@clisp.org>
1617
1618         Tests for module 'copysignf'.
1619         * modules/copysignf-tests: New file.
1620         * tests/test-copysignf.c: New file.
1621
1622         New module 'copysignf'.
1623         * lib/math.in.h (copysignf): New declaration.
1624         * lib/copysignf.c: New file.
1625         * m4/copysignf.m4: New file.
1626         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1628         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1629         HAVE_COPYSIGNF.
1630         * modules/copysignf: New file.
1631         * tests/test-math-c++.cc: Check the declaration of copysignf.
1632         * doc/posix-functions/copysignf.texi: Mention the new module.
1633
1634 2011-10-09  Bruno Haible  <bruno@clisp.org>
1635
1636         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1637         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1638         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1639         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1640         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1641         gl_SIGNAL_H_DEFAULTS.
1642
1643 2011-10-09  Bruno Haible  <bruno@clisp.org>
1644
1645         poll: Make macro safer.
1646         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1647         ac_cv_header_poll_h is not set.
1648
1649 2011-10-09  Bruno Haible  <bruno@clisp.org>
1650
1651         copysign: Provide replacement.
1652         * lib/math.in.h (copysign): New declaration.
1653         * lib/copysign.c: New file.
1654         * m4/copysign.m4: New file.
1655         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1657         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1658         HAVE_COPYSIGN.
1659         * modules/copysign (Description): Clarify.
1660         (Files): Add lib/copysign.c, m4/copysign.m4.
1661         (Depends-on): Add math, signbit.
1662         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1663         gl_MATH_MODULE_INDICATOR.
1664         * tests/test-math-c++.cc: Check the declaration of copysign.
1665         * doc/posix-functions/copysign.texi: Mention the effects of the module
1666         on Minix and MSVC.
1667
1668 2011-10-09  Bruno Haible  <bruno@clisp.org>
1669
1670         isinf: Ensure macro on AIX 5.1.
1671         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1672         macro.
1673         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1674
1675 2011-10-09  Bruno Haible  <bruno@clisp.org>
1676
1677         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1678         * modules/snprintf-posix-tests (configure.ac): Require
1679         gl_LONG_DOUBLE_VS_DOUBLE.
1680         * modules/sprintf-posix-tests (configure.ac): Likewise.
1681         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1682         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1683         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1684         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1685         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1686         tests on platforms where 'long double' is the same as 'double'.
1687         * tests/test-sprintf-posix.h (test_function): Likewise.
1688         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1689         * tests/test-vasprintf-posix.c (test_function): Likewise.
1690
1691         *printf: Fix for platforms where 'long double' == 'double'.
1692         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1693         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1694         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1695         * modules/fprintf-posix (Files): Likewise.
1696         * modules/obstack-printf-posix (Files): Likewise.
1697         * modules/snprintf-posix (Files): Likewise.
1698         * modules/sprintf-posix (Files): Likewise.
1699         * modules/vasnprintf (Files): Likewise.
1700         * modules/vasnprintf-posix (Files): Likewise.
1701         * modules/vasprintf-posix (Files): Likewise.
1702         * modules/vdprintf-posix (Files): Likewise.
1703         * modules/vfprintf-posix (Files): Likewise.
1704         * modules/vsnprintf-posix (Files): Likewise.
1705         * modules/vsprintf-posix (Files): Likewise.
1706         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1707         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1708         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1709         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1710         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1711         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1712         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1713
1714         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1715         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1716         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1717         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1718         'long double'.
1719         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1720
1721         isinf: Fix for platforms where 'long double' == 'double'.
1722         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1723         Don't blindly assume 80-bit 'long double'.
1724
1725         isfinite: Fix for platforms where 'long double' == 'double'.
1726         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1727         Don't blindly assume 80-bit 'long double'.
1728
1729         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1730         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1731         * modules/isfinite-tests (configure.ac): Require
1732         gl_LONG_DOUBLE_VS_DOUBLE.
1733         * modules/isinf-tests (configure.ac): Likewise.
1734         * modules/isnan-tests (configure.ac): Likewise.
1735         * modules/isnanl-tests (configure.ac): Likewise.
1736         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1737         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1738         tests on platforms where 'long double' is the same as 'double'.
1739         * tests/test-isinf.c (test_isinfl): Likewise.
1740         * tests/test-isnan.c (test_long_double): Likewise.
1741         * tests/test-isnanl.h (main): Likewise.
1742
1743 2011-10-08  Bruno Haible  <bruno@clisp.org>
1744
1745         Tests for module 'tanhf'.
1746         * modules/tanhf-tests: New file.
1747         * tests/test-tanhf.c: New file.
1748
1749         New module 'tanhf'.
1750         * lib/math.in.h (tanhf): New declaration.
1751         * lib/tanhf.c: New file.
1752         * m4/tanhf.m4: New file.
1753         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1755         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1756         * modules/tanhf: New file.
1757         * tests/test-math-c++.cc: Check the declaration of tanhf.
1758         * doc/posix-functions/tanhf.texi: Mention the new module.
1759
1760         tanh: Use a .m4 file.
1761         * m4/tanh.m4: New file.
1762         * modules/tanh (Files): Add it.
1763         (configure.ac): Just invoke gl_FUNC_TANH.
1764
1765 2011-10-08  Bruno Haible  <bruno@clisp.org>
1766
1767         Tests for module 'coshf'.
1768         * modules/coshf-tests: New file.
1769         * tests/test-coshf.c: New file.
1770
1771         New module 'coshf'.
1772         * lib/math.in.h (coshf): New declaration.
1773         * lib/coshf.c: New file.
1774         * m4/coshf.m4: New file.
1775         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1777         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1778         * modules/coshf: New file.
1779         * tests/test-math-c++.cc: Check the declaration of coshf.
1780         * doc/posix-functions/coshf.texi: Mention the new module.
1781
1782         cosh: Use a .m4 file.
1783         * m4/cosh.m4: New file.
1784         * modules/cosh (Files): Add it.
1785         (configure.ac): Just invoke gl_FUNC_COSH.
1786
1787 2011-10-08  Bruno Haible  <bruno@clisp.org>
1788
1789         Tests for module 'sinhf'.
1790         * modules/sinhf-tests: New file.
1791         * tests/test-sinhf.c: New file.
1792
1793         New module 'sinhf'.
1794         * lib/math.in.h (sinhf): New declaration.
1795         * lib/sinhf.c: New file.
1796         * m4/sinhf.m4: New file.
1797         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1799         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1800         * modules/sinhf: New file.
1801         * tests/test-math-c++.cc: Check the declaration of sinhf.
1802         * doc/posix-functions/sinhf.texi: Mention the new module.
1803
1804         sinh: Use a .m4 file.
1805         * m4/sinh.m4: New file.
1806         * modules/sinh (Files): Add it.
1807         (configure.ac): Just invoke gl_FUNC_SINH.
1808
1809 2011-10-08  Bruno Haible  <bruno@clisp.org>
1810
1811         Tests for module 'atan2f'.
1812         * modules/atan2f-tests: New file.
1813         * tests/test-atan2f.c: New file.
1814
1815         New module 'atan2f'.
1816         * lib/math.in.h (atan2f): New declaration.
1817         * lib/atan2f.c: New file.
1818         * m4/atan2f.m4: New file.
1819         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1821         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1822         * modules/atan2f: New file.
1823         * tests/test-math-c++.cc: Check the declaration of atan2f.
1824         * doc/posix-functions/atan2f.texi: Mention the new module.
1825
1826         atan2: Use a .m4 file.
1827         * m4/atan2.m4: New file.
1828         * modules/atan2 (Files): Add it.
1829         (configure.ac): Just invoke gl_FUNC_ATAN2.
1830
1831 2011-10-08  Bruno Haible  <bruno@clisp.org>
1832
1833         Tests for module 'atanf'.
1834         * modules/atanf-tests: New file.
1835         * tests/test-atanf.c: New file.
1836
1837         New module 'atanf'.
1838         * lib/math.in.h (atanf): New declaration.
1839         * lib/atanf.c: New file.
1840         * m4/atanf.m4: New file.
1841         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1843         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1844         * modules/atanf: New file.
1845         * tests/test-math-c++.cc: Check the declaration of atanf.
1846         * doc/posix-functions/atanf.texi: Mention the new module.
1847
1848         atan: Use a .m4 file.
1849         * m4/atan.m4: New file.
1850         * modules/atan (Files): Add it.
1851         (configure.ac): Just invoke gl_FUNC_ATAN.
1852
1853 2011-10-08  Bruno Haible  <bruno@clisp.org>
1854
1855         Tests for module 'acosf'.
1856         * modules/acosf-tests: New file.
1857         * tests/test-acosf.c: New file.
1858
1859         New module 'acosf'.
1860         * lib/math.in.h (acosf): New declaration.
1861         * lib/acosf.c: New file.
1862         * m4/acosf.m4: New file.
1863         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1865         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1866         * modules/acosf: New file.
1867         * tests/test-math-c++.cc: Check the declaration of acosf.
1868         * doc/posix-functions/acosf.texi: Mention the new module.
1869
1870         acos: Use a .m4 file.
1871         * m4/acos.m4: New file.
1872         * modules/acos (Files): Add it.
1873         (configure.ac): Just invoke gl_FUNC_ACOS.
1874
1875 2011-10-08  Bruno Haible  <bruno@clisp.org>
1876
1877         Tests for module 'asinf'.
1878         * modules/asinf-tests: New file.
1879         * tests/test-asinf.c: New file.
1880
1881         New module 'asinf'.
1882         * lib/math.in.h (asinf): New declaration.
1883         * lib/asinf.c: New file.
1884         * m4/asinf.m4: New file.
1885         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1887         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1888         * modules/asinf: New file.
1889         * tests/test-math-c++.cc: Check the declaration of asinf.
1890         * doc/posix-functions/asinf.texi: Mention the new module.
1891
1892         asin: Use a .m4 file.
1893         * m4/asin.m4: New file.
1894         * modules/asin (Files): Add it.
1895         (configure.ac): Just invoke gl_FUNC_ASIN.
1896
1897 2011-10-08  Bruno Haible  <bruno@clisp.org>
1898
1899         Tests for module 'tanf'.
1900         * modules/tanf-tests: New file.
1901         * tests/test-tanf.c: New file.
1902
1903         New module 'tanf'.
1904         * lib/math.in.h (tanf): New declaration.
1905         * lib/tanf.c: New file.
1906         * m4/tanf.m4: New file.
1907         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1909         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1910         * modules/tanf: New file.
1911         * tests/test-math-c++.cc: Check the declaration of tanf.
1912         * doc/posix-functions/tanf.texi: Mention the new module.
1913
1914         tan: Use a .m4 file.
1915         * m4/tan.m4: New file.
1916         * modules/tan (Files): Add it.
1917         (configure.ac): Just invoke gl_FUNC_TAN.
1918
1919 2011-10-08  Bruno Haible  <bruno@clisp.org>
1920
1921         Tests for module 'cosf'.
1922         * modules/cosf-tests: New file.
1923         * tests/test-cosf.c: New file.
1924
1925         New module 'cosf'.
1926         * lib/math.in.h (cosf): New declaration.
1927         * lib/cosf.c: New file.
1928         * m4/cosf.m4: New file.
1929         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1931         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1932         * modules/cosf: New file.
1933         * tests/test-math-c++.cc: Check the declaration of cosf.
1934         * doc/posix-functions/cosf.texi: Mention the new module.
1935
1936         cos: Use a .m4 file.
1937         * m4/cos.m4: New file.
1938         * modules/cos (Files): Add it.
1939         (configure.ac): Just invoke gl_FUNC_COS.
1940
1941 2011-10-08  Bruno Haible  <bruno@clisp.org>
1942
1943         Tests for module 'sinf'.
1944         * modules/sinf-tests: New file.
1945         * tests/test-sinf.c: New file.
1946
1947         New module 'sinf'.
1948         * lib/math.in.h (sinf): New declaration.
1949         * lib/sinf.c: New file.
1950         * m4/sinf.m4: New file.
1951         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1953         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1954         * modules/sinf: New file.
1955         * tests/test-math-c++.cc: Check the declaration of sinf.
1956         * doc/posix-functions/sinf.texi: Mention the new module.
1957
1958         sin: Use a .m4 file.
1959         * m4/sin.m4: New file.
1960         * modules/sin (Files): Add it.
1961         (configure.ac): Just invoke gl_FUNC_SIN.
1962
1963 2011-10-08  Bruno Haible  <bruno@clisp.org>
1964
1965         Tests for module 'powf'.
1966         * modules/powf-tests: New file.
1967         * tests/test-powf.c: New file.
1968
1969         New module 'powf'.
1970         * lib/math.in.h (powf): New declaration.
1971         * lib/powf.c: New file.
1972         * m4/powf.m4: New file.
1973         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1975         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1976         * modules/powf: New file.
1977         * tests/test-math-c++.cc: Check the declaration of powf.
1978         * doc/posix-functions/powf.texi: Mention the new module.
1979
1980         pow: Use a .m4 file.
1981         * m4/pow.m4: New file.
1982         * modules/pow (Files): Add it.
1983         (configure.ac): Just invoke gl_FUNC_POW.
1984
1985 2011-10-08  Bruno Haible  <bruno@clisp.org>
1986
1987         Tests for module 'log10f'.
1988         * modules/log10f-tests: New file.
1989         * tests/test-log10f.c: New file.
1990
1991         New module 'log10f'.
1992         * lib/math.in.h (log10f): New declaration.
1993         * lib/log10f.c: New file.
1994         * m4/log10f.m4: New file.
1995         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1997         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1998         * modules/log10f: New file.
1999         * tests/test-math-c++.cc: Check the declaration of log10f.
2000         * doc/posix-functions/log10f.texi: Mention the new module.
2001
2002         log10: Use a .m4 file.
2003         * m4/log10.m4: New file.
2004         * modules/log10 (Files): Add it.
2005         (configure.ac): Just invoke gl_FUNC_LOG10.
2006
2007 2011-10-08  Bruno Haible  <bruno@clisp.org>
2008
2009         Tests for module 'logf'.
2010         * modules/logf-tests: New file.
2011         * tests/test-logf.c: New file.
2012
2013         New module 'logf'.
2014         * lib/math.in.h (logf): New declaration.
2015         * lib/logf.c: New file.
2016         * m4/logf.m4: New file.
2017         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2019         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2020         * modules/logf: New file.
2021         * tests/test-math-c++.cc: Check the declaration of logf.
2022         * doc/posix-functions/logf.texi: Mention the new module.
2023
2024         log: Use a .m4 file.
2025         * m4/log.m4: New file.
2026         * modules/log (Files): Add it.
2027         (configure.ac): Just invoke gl_FUNC_LOG.
2028
2029 2011-10-08  Bruno Haible  <bruno@clisp.org>
2030
2031         Tests for module 'expf'.
2032         * modules/expf-tests: New file.
2033         * tests/test-expf.c: New file.
2034
2035         New module 'expf'.
2036         * lib/math.in.h (expf): New declaration.
2037         * lib/expf.c: New file.
2038         * m4/expf.m4: New file.
2039         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2041         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2042         * modules/expf: New file.
2043         * tests/test-math-c++.cc: Check the declaration of expf.
2044         * doc/posix-functions/expf.texi: Mention the new module.
2045
2046         exp: Use a .m4 file.
2047         * m4/exp.m4: New file.
2048         * modules/exp (Files): Add it.
2049         (configure.ac): Just invoke gl_FUNC_EXP.
2050
2051 2011-10-08  Bruno Haible  <bruno@clisp.org>
2052
2053         Tests for module 'sqrtf'.
2054         * modules/sqrtf-tests: New file.
2055         * tests/test-sqrtf.c: New file.
2056
2057         New module 'sqrtf'.
2058         * lib/math.in.h (sqrtf): New declaration.
2059         * lib/sqrtf.c: New file.
2060         * m4/sqrtf.m4: New file.
2061         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2063         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2064         * modules/sqrtf: New file.
2065         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2066         * doc/posix-functions/sqrtf.texi: Mention the new module.
2067
2068 2011-10-08  Bruno Haible  <bruno@clisp.org>
2069
2070         Tests: Avoid link failures w.r.t. libintl.
2071         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2072         $(LIBINTL).
2073         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2074         $(LIBINTL).
2075         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2076         against $(LIBINTL).
2077         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2078         $(LIBINTL).
2079         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2080         $(LIBINTL).
2081         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2082
2083 2011-10-08  Bruno Haible  <bruno@clisp.org>
2084
2085         pow tests: Defeat compiler optimizations.
2086         * tests/test-pow.c (main): Assign arguments to x and y before use.
2087
2088 2011-10-08  Bruno Haible  <bruno@clisp.org>
2089
2090         gnulib-tool: Improve last commit.
2091         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2092         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2093         ignore dependencies that are not among the modules list.
2094
2095 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2096
2097         gnulib-tool: don't follow dependencies to avoided modules
2098         This fixes a bug that is related to the previous one.
2099         * gnulib-tool (func_modules_transitive_closure)
2100         (func_emit_autoconf_snippets):
2101         Check whether a dependency is acceptable before using it.
2102         (--extract-dependencies): Report an error if --avoid is also used,
2103         since this combination of options is not yet supported.
2104
2105         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2106         Problem reported by Peter Dyballa in
2107         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2108         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2109         when echoing "$condition".
2110
2111 2011-10-07  Bruno Haible  <bruno@clisp.org>
2112
2113         Fix documentation about math functions on MacOS X.
2114         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2115         MacOS X 10.5.
2116         * doc/posix-functions/fdim.texi: Likewise.
2117         * doc/posix-functions/feclearexcept.texi: Likewise.
2118         * doc/posix-functions/fegetenv.texi: Likewise.
2119         * doc/posix-functions/fegetround.texi: Likewise.
2120         * doc/posix-functions/feholdexcept.texi: Likewise.
2121         * doc/posix-functions/feraiseexcept.texi: Likewise.
2122         * doc/posix-functions/fesetenv.texi: Likewise.
2123         * doc/posix-functions/fesetround.texi: Likewise.
2124         * doc/posix-functions/fetestexcept.texi: Likewise.
2125         * doc/posix-functions/feupdateenv.texi: Likewise.
2126         * doc/posix-functions/fmax.texi: Likewise.
2127         * doc/posix-functions/fmin.texi: Likewise.
2128         * doc/posix-functions/log2.texi: Likewise.
2129         * doc/posix-functions/modff.texi: Likewise.
2130         * doc/posix-functions/nan.texi: Likewise.
2131         * doc/posix-functions/nanf.texi: Likewise.
2132         * doc/posix-functions/nextafterf.texi: Likewise.
2133         * doc/posix-functions/remquo.texi: Likewise.
2134
2135 2011-10-07  Bruno Haible  <bruno@clisp.org>
2136
2137         modff: Drop assumption about library that defines modff.
2138         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2139         AC_CHECK_FUNCS.
2140         * modules/modff (Files): Add m4/mathfunc.m4.
2141
2142 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2143
2144         raise tests: Avoid a GCC warning.
2145         * tests/test-raise.c (handler): Use _Noreturn.
2146
2147 2011-10-07  Bruno Haible  <bruno@clisp.org>
2148
2149         Tests for module 'ldexpf'.
2150         * modules/ldexpf-tests: New file.
2151         * tests/test-ldexpf.c: New file.
2152
2153         New module 'ldexpf'.
2154         * lib/math.in.h (ldexpf): New declaration.
2155         * lib/ldexpf.c: New file.
2156         * m4/ldexpf.m4: New file.
2157         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2159         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2160         * modules/ldexpf: New file.
2161         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2162         * doc/posix-functions/ldexpf.texi: Mention the new module.
2163
2164 2011-10-06  Bruno Haible  <bruno@clisp.org>
2165
2166         frexpf: Work around problems on IRIX and mingw.
2167         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2169         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2170         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2171         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2172         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2173         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2174
2175 2011-10-06  Bruno Haible  <bruno@clisp.org>
2176
2177         fabsf: Drop assumption about library that defines fabsf.
2178         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2179         AC_CHECK_FUNCS.
2180         * modules/fabsf (Files): Add m4/mathfunc.m4.
2181
2182 2011-10-06  Bruno Haible  <bruno@clisp.org>
2183
2184         frexpf: Drop assumption about library that defines frexpf.
2185         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2186         'int *', 'float *', 'long double *', 'float', 'long double'.
2187         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2188         AC_CHECK_FUNCS.
2189         * modules/frexpf (Files): Add m4/mathfunc.m4.
2190
2191         Tests for module 'frexpf'.
2192         * modules/frexpf-tests: New file.
2193         * tests/test-frexpf.c: New file.
2194
2195         New module 'frexpf'.
2196         * lib/math.in.h (frexpf): New declaration.
2197         * lib/frexpf.c: New file.
2198         * m4/frexpf.m4: New file.
2199         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2201         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2202         * modules/frexpf: New file.
2203         * tests/test-math-c++.cc: Check the declaration of frexpf.
2204         * doc/posix-functions/frexpf.texi: Mention the new module.
2205
2206 2011-10-06  Bruno Haible  <bruno@clisp.org>
2207
2208         math: Sort function declarations of math.in.h.
2209         * lib/math.in.h (frexp, logb): Move declarations.
2210
2211 2011-10-05  Bruno Haible  <bruno@clisp.org>
2212
2213         Tests for module 'modff'.
2214         * modules/modff-tests: New file.
2215         * tests/test-modff.c: New file.
2216
2217         New module 'modff'.
2218         * lib/math.in.h (modff): New declaration.
2219         * lib/modff.c: New file.
2220         * m4/modff.m4: New file.
2221         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2223         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2224         * modules/modff: New file.
2225         * tests/test-math-c++.cc: Check the declaration of modff.
2226         * doc/posix-functions/modff.texi: Mention the new module.
2227
2228         modf tests: Make test sharper.
2229         * tests/test-modf.c (main): Strengthen upper bound.
2230
2231         modf: Use a .m4 file.
2232         * m4/modf.m4: New file.
2233         * modules/modf (Files): Add it.
2234         (configure.ac): Just invoke gl_FUNC_MODF.
2235
2236 2011-10-05  Bruno Haible  <bruno@clisp.org>
2237
2238         Tests for module 'fmodf'.
2239         * modules/fmodf-tests: New file.
2240         * tests/test-fmodf.c: New file.
2241
2242         New module 'fmodf'.
2243         * lib/math.in.h (fmodf): New declaration.
2244         * lib/fmodf.c: New file.
2245         * m4/fmodf.m4: New file.
2246         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2248         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2249         * modules/fmodf: New file.
2250         * tests/test-math-c++.cc: Check the declaration of fmodf.
2251         * doc/posix-functions/fmodf.texi: Mention the new module.
2252
2253         fmod: Use a .m4 file.
2254         * m4/fmod.m4: New file.
2255         * modules/fmod (Files): Add it.
2256         (configure.ac): Just invoke gl_FUNC_FMOD.
2257
2258 2011-10-05  Bruno Haible  <bruno@clisp.org>
2259
2260         Tests for module 'fabsf'.
2261         * modules/fabsf-tests: New file.
2262         * tests/test-fabsf.c: New file.
2263
2264         New module 'fabsf'.
2265         * lib/math.in.h (fabsf): New declaration.
2266         * lib/fabsf.c: New file.
2267         * m4/fabsf.m4: New file.
2268         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2270         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2271         * modules/fabsf: New file.
2272         * tests/test-math-c++.cc: Check the declaration of fabsf.
2273         * doc/posix-functions/fabsf.texi: Mention the new module.
2274
2275         fabs: Use a .m4 file.
2276         * m4/fabs.m4: New file.
2277         * modules/fabs (Files): Add it.
2278         (configure.ac): Just invoke gl_FUNC_FABS.
2279
2280 2011-10-05  Jim Meyering  <meyering@redhat.com>
2281
2282         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2283         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2284         ls -lL regression introduced in coreutils-8.12, it does so at the
2285         cost of an additional stat call in the common case.  Besides, now
2286         that the kernel change that prompted commit 95f7c57f has been reverted
2287         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2288         we have no use for commit 95f7c57f, "file-has-acl: use
2289         acl_extended_file_nofollow if available".
2290
2291 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2292
2293         file-has-acl: revert unintended change in behavior of ls -L
2294         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2295         derived from...
2296         (file_has_acl): ...code here.  Call it.
2297         This problem was introduced with 2011-07-22 commit 95f7c57f,
2298         "file-has-acl: use acl_extended_file_nofollow if available".
2299         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2300
2301 2011-10-03  Bruno Haible  <bruno@clisp.org>
2302
2303         poll: Avoid link errors on MSVC.
2304         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2305         * modules/poll (Depends-on): Add sockets.
2306         (Link): New section.
2307         * NEWS: Mention the change.
2308         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2309         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2310         $(LIB_POLL) instead of $(LIBSOCKET).
2311
2312 2011-10-03  Bruno Haible  <bruno@clisp.org>
2313
2314         sys_select tests: Fix link error on MSVC 9.
2315         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2316         with $(LIB_SELECT) instead of $(LIBSOCKET).
2317
2318 2011-10-03  Bruno Haible  <bruno@clisp.org>
2319
2320         sys_select: Fix compilation error on mingw.
2321         * lib/sys_select.in.h: On native Windows, include <io.h>.
2322
2323 2011-10-03  Bruno Haible  <bruno@clisp.org>
2324
2325         wmemset: Support for MSVC.
2326         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2327         whether wmemset() exists.
2328
2329 2011-10-03  Bruno Haible  <bruno@clisp.org>
2330
2331         wmemmove: Support for MSVC.
2332         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2333         whether wmemmove() exists.
2334
2335 2011-10-03  Bruno Haible  <bruno@clisp.org>
2336
2337         wmemcpy: Support for MSVC.
2338         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2339         whether wmemcpy() exists.
2340
2341 2011-10-03  Bruno Haible  <bruno@clisp.org>
2342
2343         wmemcmp: Support for MSVC.
2344         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2345         whether wmemcmp() exists.
2346
2347 2011-10-03  Bruno Haible  <bruno@clisp.org>
2348
2349         wmemchr: Support for MSVC.
2350         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2351         whether wmemchr() exists.
2352
2353 2011-10-03  Bruno Haible  <bruno@clisp.org>
2354
2355         glthread/*, strsignal: Support for MSVC.
2356         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2357         including <winsock.h> on MSVC 9.
2358         * lib/glthread/lock.h: Likewise.
2359         * lib/glthread/thread.h: Likewise.
2360         * lib/glthread/tls.h: Likewise.
2361         * lib/glthread/yield.h: Likewise.
2362         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2363         if HAVE_UNISTD_H is false.
2364         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2365
2366 2011-10-03  Bruno Haible  <bruno@clisp.org>
2367
2368         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2369         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2370         Set to 100000.
2371
2372 2011-10-03  Bruno Haible  <bruno@clisp.org>
2373
2374         acl: Fix specification.
2375         * lib/file-has-acl.c (file_has_acl): Fix specification.
2376
2377 2011-10-03  Bruno Haible  <bruno@clisp.org>
2378
2379         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2380         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2381         (compute_curr_prefix, shared_library_fullname,
2382         find_shared_library_fullname, get_shared_library_fullname, relocate):
2383         Use it together with PIC && INSTALLDIR.
2384         Reported by <jojelino@gmail.com>
2385         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2386
2387 2011-10-01  Jim Meyering  <meyering@redhat.com>
2388
2389         maint.mk: adjust a release-related rule not to require use of gzip
2390         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2391         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2392         projects that build only .tar.xz files.  Also fix an erroneous test.
2393
2394         test-linkat: don't leave behind a temporary file
2395         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2396         Otherwise, coreutils' "make distcheck" would fail with this:
2397           Only in /c/cu/tests/torture/coreutils/test/\
2398             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2399           make[2]: *** [my-distcheck] Error 1
2400
2401         float, math: add omitted file
2402         * lib/itold.c: Add file, required for yesterday's float change.
2403
2404 2011-10-01  Bruno Haible  <bruno@clisp.org>
2405
2406         isinf: Fix for OpenBSD/x86.
2407         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2408         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2409         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2410
2411 2011-10-01  Bruno Haible  <bruno@clisp.org>
2412
2413         isfinite: Fix syntax error in configure test.
2414         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2415
2416         isfinite: Fix typo.
2417         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2418         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2419
2420 2011-10-01  Bruno Haible  <bruno@clisp.org>
2421
2422         nonblocking tests: Fix test failure on Linux/IA-64.
2423         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2424         Set to 270000.
2425
2426 2011-10-01  Bruno Haible  <bruno@clisp.org>
2427
2428         mkfifoat tests: Fix a test failure on mingw.
2429         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2430         with error ENOSYS.
2431
2432 2011-09-30  Bruno Haible  <bruno@clisp.org>
2433
2434         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2435         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2436         'long double'. Set REPLACE_ITOLD.
2437         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2438         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2439         * lib/itold.c: New file.
2440         * modules/float (Files): Add lib/itold.c.
2441         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2442         (Makefile.am): Substitute REPLACE_ITOLD.
2443         * modules/math (Depends-on): Add float.
2444         (Makefile.am): Substitute REPLACE_ITOLD.
2445         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2446         * doc/posix-headers/math.texi: Likewise.
2447         * doc/posix-functions/logl.texi: Likewise.
2448
2449 2011-09-30  Bruno Haible  <bruno@clisp.org>
2450
2451         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2452         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2453         Set to 140000.
2454
2455 2011-09-30  Bruno Haible  <bruno@clisp.org>
2456
2457         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2458         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2459         invocation, say "right after AC_PROG_CC_STDC", not "right after
2460         AC_PROG_CC".
2461         Reported by Gary V. Vaughan <gary@gnu.org>.
2462
2463 2011-09-30  Bruno Haible  <bruno@clisp.org>
2464
2465         Centralize C99 requirement.
2466         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2467         * modules/stdarg (configure.ac-early): Invoke it instead of
2468         AC_PROG_CC_STDC.
2469         Reported by Gary V. Vaughan and Paul Eggert.
2470
2471 2011-09-29  Bruno Haible  <bruno@clisp.org>
2472
2473         float: Fix LDBL_MAX value on Linux/PowerPC.
2474         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2475         on Linux/PowerPC.
2476         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2477         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2478         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2479         platform.
2480         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2481
2482 2011-09-29  Bruno Haible  <bruno@clisp.org>
2483
2484         doc: Improve doc about gl_EARLY.
2485         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2486         AC_PROG_CC_STDC invocation.
2487         Reported by Gary V. Vaughan <gary@gnu.org>.
2488
2489 2011-09-28  Bruno Haible  <bruno@clisp.org>
2490
2491         fgetc, fputc, fread, fwrite tests: Fix link error.
2492         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2493         on non-MSVC platforms.
2494         * tests/test-fputc.c (main): Likewise.
2495         * tests/test-fread.c (main): Likewise.
2496         * tests/test-fwrite.c (main): Likewise.
2497         Reported by Jim Meyering.
2498
2499 2011-09-27  Bruno Haible  <bruno@clisp.org>
2500
2501         fputc, fwrite tests: Avoid test failure on MSVC.
2502         * tests/test-fgetc.c: Include msvc-inval.h.
2503         (main): Invoke gl_msvc_inval_ensure_handler.
2504         * tests/test-fputc.c: Include msvc-inval.h.
2505         (main): Invoke gl_msvc_inval_ensure_handler.
2506         * tests/test-fread.c: Include msvc-inval.h.
2507         (main): Invoke gl_msvc_inval_ensure_handler.
2508         * tests/test-fwrite.c: Include msvc-inval.h.
2509         (main): Invoke gl_msvc_inval_ensure_handler.
2510         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2511         * modules/fputc-tests (Depends-on): Likewise.
2512         * modules/fread-tests (Depends-on): Likewise.
2513         * modules/fwrite-tests (Depends-on): Likewise.
2514
2515 2011-09-27  Bruno Haible  <bruno@clisp.org>
2516
2517         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2518         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2519         (raise): Remove older, duplicated declaration.
2520         (_gl_raise_SIGPIPE): New declaration.
2521         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2522         (rpl_raise): Remove function.
2523         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2524         a gnulib-defined SIGPIPE here.
2525         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2526         'sigprocmask' has detected missing signal-blocking and the module
2527         'sigpipe' is enabled.
2528         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2529
2530 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2531
2532         base64-tests: avoid memory leak
2533         * tests/test-base64.c (main): Plug memory leak.
2534
2535         base32: new module
2536         * modules/base32: New module.
2537         * lib/base32.c: New file.
2538         * lib/base32.h: Likewise.
2539         * m4/base32.m4: Likewise.
2540         * modules/base32-tests: New test.
2541         * tests/test-base32.c: Likewise.
2542         * MODULES.html.sh (Misc): Mention it.
2543
2544 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2545
2546         gnulib: use more-standard license notice wording
2547         * gnulib-tool (func_emit_copyright_notice): When emitting a
2548         license notice into a file, use the standard wording as suggested
2549         by the current information for GNU maintainers, except say "file"
2550         rather than "program".  The new wording gives a license version
2551         number, which addresses an issue raised by Glenn Morris in
2552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2553         * m4/onceonly.m4: Use that same wording here, too.
2554
2555         dup2: minor simplification
2556         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2557         as lib/dup2.c no longer uses 'inline'.
2558
2559 2011-09-25  Bruno Haible  <bruno@clisp.org>
2560
2561         strings: Fix compilation error on MSVC.
2562         * lib/strings.in.h: Include <stddef.h> for size_t.
2563
2564 2011-09-25  Bruno Haible  <bruno@clisp.org>
2565
2566         fflush et al.: Document limitation on MSVC.
2567         * doc/posix-functions/fflush.texi: Document possible crash in handling
2568         mode other than DEFAULT_HANDLING.
2569         * doc/posix-functions/fgetc.texi: Likewise.
2570         * doc/posix-functions/fputc.texi: Likewise.
2571         * doc/posix-functions/fread.texi: Likewise.
2572         * doc/posix-functions/fwrite.texi: Likewise.
2573
2574 2011-09-25  Bruno Haible  <bruno@clisp.org>
2575
2576         msvc-inval: Allow three invalid parameter handling modes.
2577         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2578         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2579         macros.
2580         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2581         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2582         SANE_LIBRARY_HANDLING as a no-op.
2583         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2584         <stdlib.h>.
2585         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2586
2587 2011-09-25  Bruno Haible  <bruno@clisp.org>
2588
2589         msvc-inval: Make handler multithread-safe.
2590         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2591         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2592         declarations.
2593         (gl_msvc_inval_current): New declaration.
2594         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2595         Operate on the structure returned by gl_msvc_inval_current().
2596         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2597         Remove varaiables.
2598         (tls_index, tls_initialized): New variables.
2599         (not_per_thread): New variable.
2600         (gl_msvc_inval_current): New function.
2601         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2602         returned by gl_msvc_inval_current().
2603
2604 2011-09-25  Bruno Haible  <bruno@clisp.org>
2605
2606         msvc-inval: Install handler globally.
2607         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2608         !_MSC_VER.
2609         (gl_msvc_invalid_parameter_handler): Remove declaration.
2610         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2611         declarations.
2612         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2613         Install the handler globally, don't uninstall it.
2614         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2615         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2616         currently valid, call RaiseException instead.
2617         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2618         for !_MSC_VER.
2619
2620 2011-09-25  Bruno Haible  <bruno@clisp.org>
2621
2622         strerror_r-posix: Fix for MSVC 9.
2623         * lib/strerror_r.c (local_snprintf): New function.
2624         (snprintf): Define to local_snprintf, not to _snprintf.
2625
2626 2011-09-25  Bruno Haible  <bruno@clisp.org>
2627
2628         ftruncate: Support for MSVC 9.
2629         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2630         (chsize_nothrow): New function.
2631         (chsize): Redefine as a macro.
2632         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2633         * modules/ftruncate (Depends-on): Add msvc-inval.
2634
2635 2011-09-25  Bruno Haible  <bruno@clisp.org>
2636
2637         New module 'fstat'.
2638         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2639         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2640         * lib/fchdir.c (rpl_fstat): Remove function.
2641         * m4/fstat.m4: New file.
2642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2643         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2644         declared.
2645         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2646         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2647         * modules/fstat: New file.
2648         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2649         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2650         is set.
2651         * doc/posix-functions/fstat.texi: Mention the new module and the
2652         problem on MSVC.
2653         * NEWS: Mention the change.
2654         * modules/acl (Depends-on): Add fstat.
2655         * modules/chdir-safer (Depends-on): Likewise.
2656         * modules/chown (Depends-on): Likewise.
2657         * modules/copy-file (Depends-on): Likewise.
2658         * modules/fchdir (Depends-on): Likewise.
2659         * modules/fdopendir (Depends-on): Likewise.
2660         * modules/fopen (Depends-on): Likewise.
2661         * modules/fts (Depends-on): Likewise.
2662         * modules/getcwd (Depends-on): Likewise.
2663         * modules/isapipe (Depends-on): Likewise.
2664         * modules/linkat (Depends-on): Likewise.
2665         * modules/lseek (Depends-on): Likewise.
2666         * modules/mkdir-p (Depends-on): Likewise.
2667         * modules/open (Depends-on): Likewise.
2668         * modules/openat (Depends-on): Likewise.
2669         * modules/read-file (Depends-on): Likewise.
2670         * modules/renameat (Depends-on): Likewise.
2671         * modules/utimens (Depends-on): Likewise.
2672
2673 2011-09-25  Bruno Haible  <bruno@clisp.org>
2674
2675         linkat: Fix compilation on MSVC 9.
2676         * lib/linkat.c: Don't include <stdint.h>.
2677
2678 2011-09-25  Bruno Haible  <bruno@clisp.org>
2679
2680         fclose: Support for MSVC 9.
2681         * lib/fclose.c: Include msvc-inval.h.
2682         (fclose_nothrow): New function.
2683         (rpl_fclose): Use it.
2684         * modules/fclose (Depends-on): Add msvc-inval.
2685         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2686
2687 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2688
2689         dup2: minor simplifications
2690         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2691         that it's a performance win.
2692         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2693         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2694
2695 2011-09-24  Jim Meyering  <meyering@redhat.com>
2696
2697         test-futimens: avoid a warning from gcc -Wshadow
2698         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2699         to avoid a shadowing warning.
2700
2701 2011-09-24  Bruno Haible  <bruno@clisp.org>
2702
2703         fdopen: Support for MSVC 9.
2704         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2705         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2706         * lib/fdopen.c: Include msvc-inval.h.
2707         (fdopen_nothrow): New function.
2708         (rpl_fdopen): Use it.
2709         * modules/fdopen (Depends-on): Add msvc-inval.
2710         * modules/fclose-tests (Depends-on): Add fdopen.
2711         * modules/fflush-tests (Depends-on): Likewise.
2712         * modules/fgetc-tests (Depends-on): Likewise.
2713         * modules/fputc-tests (Depends-on): Likewise.
2714         * modules/fread-tests (Depends-on): Likewise.
2715         * modules/freopen-tests (Depends-on): Likewise.
2716         * modules/fseeko-tests (Depends-on): Likewise.
2717         * modules/ftello-tests (Depends-on): Likewise.
2718         * modules/fwrite-tests  (Depends-on): Likewise.
2719         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2720
2721 2011-09-24  Bruno Haible  <bruno@clisp.org>
2722
2723         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2724         * modules/fgetc-tests (Depends-on): Add unistd.
2725         * modules/fputc-tests (Depends-on): Likewise.
2726         * modules/fread-tests (Depends-on): Likewise.
2727         * modules/fwrite-tests (Depends-on): Likewise.
2728
2729 2011-09-24  Bruno Haible  <bruno@clisp.org>
2730
2731         dup: Simplify autoconf test.
2732         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2733         on gl_MSVC_INVAL's result.
2734
2735 2011-09-24  Bruno Haible  <bruno@clisp.org>
2736
2737         Tests for function fwrite().
2738         * modules/fwrite-tests: New file.
2739         * tests/test-fwrite.c: New file.
2740         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2741
2742         Tests for function fread().
2743         * modules/fread-tests: New file.
2744         * tests/test-fread.c: New file.
2745         * modules/stdio-tests (Depends-on): Add fread-tests.
2746
2747         Activate fputc tests.
2748         * modules/stdio-tests (Depends-on): Add fputc-tests.
2749
2750         Enhance fgetc, fputc tests.
2751         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2752         * tests/test-fputc.c (main): Likewise.
2753
2754 2011-09-24  Bruno Haible  <bruno@clisp.org>
2755
2756         write: Support for MSVC 9.
2757         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2758         is not 1.
2759         * lib/write.c (write_nothrow): New function.
2760         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2761         not 1. Use write_nothrow.
2762         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2763         invalid parameter handler.
2764         (gl_PREREQ_WRITE): New macro.
2765         * modules/write (Depends-on): Add msvc-inval.
2766         (configure.ac): Invoke gl_PREREQ_WRITE.
2767         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2768
2769 2011-09-24  Bruno Haible  <bruno@clisp.org>
2770
2771         read: Fix last commit.
2772         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2773
2774 2011-09-24  Bruno Haible  <bruno@clisp.org>
2775
2776         dup2: Fix last commit.
2777         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2778         (rpl_dup2): Disable fcntl workaround on native Windows.
2779
2780         sigprocmask: Make code safer.
2781         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2782         section that changes macro definitions for this compilation unit.
2783
2784 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2785
2786         dup2: clarify by coalescing Windows-specific material
2787         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2788         "msvc-nothrow.h"' to the Windows-specific section, so that the
2789         Emacs source need not contain these include files.
2790         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2791         Windows-specific fixes into this function rather than just the
2792         nothrow fix, as this shortens and clarifies the code.  Always
2793         define as a function, as that's a bit cleaner than having it be
2794         sometimes a function and sometimes a macro.
2795         (rpl_dup2): Move the Windows-specific stuff out of here and into
2796         ms_windows_dup2.  Don't protect the Haiku-related fix with
2797         "#if !defined __linux__", as the same code also works around
2798         a Linux kernel bug, and it doesn't add any system calls on any
2799         platform.  Add comment about FreeBSD 6.1.
2800
2801         sigprocmask: move #include directive
2802         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2803         Windows-specific section, so that the Emacs source need not
2804         contain msvc-inval.h.
2805
2806 2011-09-23  Bruno Haible  <bruno@clisp.org>
2807
2808         read: Support for MSVC 9.
2809         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2810         is not 1.
2811         * lib/read.c (read_nothrow): New function.
2812         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2813         read_nothrow.
2814         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2815         invalid parameter handler.
2816         (gl_PREREQ_READ): New macro.
2817         * modules/read (Depends-on): Add msvc-inval.
2818         (configure.ac): Invoke gl_PREREQ_READ.
2819         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2820
2821 2011-09-23  Bruno Haible  <bruno@clisp.org>
2822
2823         close: Support for MSVC 9.
2824         * lib/close.c: Include <errno.h>, msvc-inval.h.
2825         (close_nothrow): New function.
2826         (rpl_close): Use it.
2827         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2828         invalid parameter handler.
2829         * modules/close (Depends-on): Add msvc-inval.
2830         * modules/dup2-tests (Depends-on): Add close.
2831         * modules/dup3-tests (Depends-on): Likewise.
2832         * modules/fcntl-tests (Depends-on): Likewise.
2833         * modules/spawn-pipe-tests (Depends-on): Likewise.
2834         * modules/unistd-safer-tests (Depends-on): Likewise.
2835         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2836
2837 2011-09-23  Bruno Haible  <bruno@clisp.org>
2838
2839         New module 'dup'.
2840         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2841         Allow replacement.
2842         * lib/dup.c: New file.
2843         * lib/fchdir.c (rpl_dup): Remove function.
2844         * m4/dup.m4: New file.
2845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2846         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2847         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2848         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2849         * modules/dup: New file.
2850         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2851         'dup' module is in use.
2852         * modules/fdopendir (Depends-on): Add dup.
2853         * modules/fdutimensat-tests (Depends-on): Likewise.
2854         * modules/fts (Depends-on): Likewise.
2855         * modules/futimens-tests (Depends-on): Likewise.
2856         * modules/posix_spawnp-tests (Depends-on): Likewise.
2857         * modules/unistd-safer-tests (Depends-on): Likewise.
2858         * modules/utimens-tests (Depends-on): Likewise.
2859         * doc/posix-functions/dup.texi: Mention the new module and the problem
2860         on MSVC.
2861
2862 2011-09-23  Bruno Haible  <bruno@clisp.org>
2863
2864         getdtablesize: Support for MSVC 9.
2865         * lib/getdtablesize.c: Include msvc-inval.h.
2866         (_setmaxstdio_nothrow): New function.
2867         (_setmaxstdio): Redefine it.
2868         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2869         * modules/getdtablesize (Depends-on): Add msvc-inval.
2870         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2871
2872 2011-09-23  Bruno Haible  <bruno@clisp.org>
2873
2874         signal-h: Rename from signal.
2875         * modules/signal-h: Renamed from modules/signal.
2876         * modules/pthread_sigmask (Depends-on): Update.
2877         * modules/raise (Depends-on): Likewise.
2878         * modules/sigaction (Depends-on): Likewise.
2879         * modules/sigpipe (Depends-on): Likewise.
2880         * modules/sigprocmask (Depends-on): Likewise.
2881         * modules/sys_select (Depends-on): Likewise.
2882         * modules/signal-h-tests: Renamed from modules/signal-tests.
2883         (Files, Depends-on, Makefile.am): Update.
2884         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2885         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2886         (Files, Makefile.am): Update.
2887         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2888         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2889         * modules/signal: New placeholder file.
2890         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2891         * doc/posix-headers/signal.texi: Update.
2892         * NEWS: Mention the change.
2893
2894 2011-09-23  Bruno Haible  <bruno@clisp.org>
2895
2896         sigprocmask: Avoid crashes through signal() on MSVC 9.
2897         * lib/sigprocmask.c: Include msvc-inval.h.
2898         (signal_nothrow): New function.
2899         (signal): Redefine it.
2900         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2901         * modules/sigprocmask (Depends-on): Add msvc-inval.
2902         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2903
2904 2011-09-23  Bruno Haible  <bruno@clisp.org>
2905
2906         Tests for module 'raise'.
2907         * modules/raise-tests: New file.
2908         * tests/test-raise.c: New file.
2909
2910         raise: Support for MSVC.
2911         * lib/signal.in.h (raise): New declaration.
2912         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2913         for native Windows platforms.
2914         * m4/raise.m4: New file.
2915         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2916         HAVE_RAISE, REPLACE_RAISE.
2917         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2918         REPLACE_RAISE.
2919         * modules/raise (Status, Notice): Remove fields.
2920         (Files): Add m4/raise.m4.
2921         (Depends-on): Add signal, msvc-inval.
2922         (configure.ac): Use the common idioms.
2923         (Maintainer): Add me.
2924         * tests/test-signal-c++.cc: Check the signature of raise.
2925         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2926
2927 2011-09-23  Bruno Haible  <bruno@clisp.org>
2928
2929         pipe2: Fix compilation on pre-C99 compilers.
2930         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2931
2932 2011-09-23  Bruno Haible  <bruno@clisp.org>
2933
2934         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2935         * lib/msvc-nothrow.h: New file.
2936         * lib/msvc-nothrow.c: New file.
2937         * m4/msvc-nothrow.m4: New file.
2938         * modules/msvc-nothrow: New file.
2939         * lib/dup2.c: Include msvc-nothrow.h.
2940         (rpl_dup2): No need to protect _get_osfhandle call here.
2941         * lib/accept4.c: Include msvc-nothrow.h.
2942         * lib/error.c: Likewise.
2943         * lib/fcntl.c: Likewise.
2944         * lib/lseek.c: Likewise.
2945         * lib/nonblocking.c: Likewise.
2946         * lib/poll.c: Likewise.
2947         * lib/read.c: Likewise.
2948         * lib/select.c: Likewise.
2949         * lib/sockets.h: Likewise.
2950         * lib/sockets.c: Likewise.
2951         * lib/stdio-read.c: Likewise.
2952         * lib/stdio-write.c: Likewise.
2953         * lib/write.c: Likewise.
2954         * lib/w32sock.h: Likewise.
2955         * lib/w32spawn.h: Likewise.
2956         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2957         * lib/fsync.c: Likewise.
2958         * lib/isapipe.c: Likewise.
2959         * modules/dup2 (Depends-on): Add msvc-nothrow.
2960         * modules/accept4 (Depends-on): Likewise.
2961         * modules/error (Depends-on): Likewise.
2962         * modules/fcntl (Depends-on): Likewise.
2963         * modules/lseek (Depends-on): Likewise.
2964         * modules/nonblocking (Depends-on): Likewise.
2965         * modules/poll (Depends-on): Likewise.
2966         * modules/read (Depends-on): Likewise.
2967         * modules/select (Depends-on): Likewise.
2968         * modules/sockets (Depends-on): Likewise.
2969         * modules/sigpipe (Depends-on): Likewise.
2970         * modules/write (Depends-on): Likewise.
2971         * modules/accept (Depends-on): Likewise.
2972         * modules/bind (Depends-on): Likewise.
2973         * modules/connect (Depends-on): Likewise.
2974         * modules/gethostname (Depends-on): Likewise.
2975         * modules/getpeername (Depends-on): Likewise.
2976         * modules/getsockname (Depends-on): Likewise.
2977         * modules/getsockopt (Depends-on): Likewise.
2978         * modules/ioctl (Depends-on): Likewise.
2979         * modules/listen (Depends-on): Likewise.
2980         * modules/recv (Depends-on): Likewise.
2981         * modules/recvfrom (Depends-on): Likewise.
2982         * modules/send (Depends-on): Likewise.
2983         * modules/sendto (Depends-on): Likewise.
2984         * modules/setsockopt (Depends-on): Likewise.
2985         * modules/shutdown (Depends-on): Likewise.
2986         * modules/socket (Depends-on): Likewise.
2987         * modules/execute (Depends-on): Likewise.
2988         * modules/spawn-pipe (Depends-on): Likewise.
2989         * modules/flock (Depends-on): Likewise.
2990         * modules/fsync (Depends-on): Likewise.
2991         * modules/isapipe (Depends-on): Likewise.
2992         * tests/test-cloexec.c: Include msvc-nothrow.h.
2993         * tests/test-dup-safer.c: Likewise.
2994         * tests/test-dup2.c: Likewise.
2995         * tests/test-dup3.c: Likewise.
2996         * tests/test-fcntl.c: Likewise.
2997         * tests/test-pipe.c: Likewise.
2998         * tests/test-pipe2.c: Likewise.
2999         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3000         * modules/unistd-safer-tests (Depends-on): Likewise.
3001         * modules/dup2-tests (Depends-on): Likewise.
3002         * modules/dup3-tests (Depends-on): Likewise.
3003         * modules/fcntl-tests (Depends-on): Likewise.
3004         * modules/pipe-posix-tests (Depends-on): Likewise.
3005         * modules/pipe2-tests (Depends-on): Likewise.
3006
3007 2011-09-23  Bruno Haible  <bruno@clisp.org>
3008
3009         dup2: Make code more maintainable.
3010         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3011         (rpl_dup2): Use it.
3012         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3013         * modules/dup2 (configure.ac): Invoke it.
3014         Reported by Paul Eggert.
3015
3016 2011-09-23  Bruno Haible  <bruno@clisp.org>
3017
3018         msvc-inval: Fix compilation error.
3019         * lib/msvc-inval.h: Include <excpt.h>.
3020
3021 2011-09-23  Bruno Haible  <bruno@clisp.org>
3022
3023         mkdir: Tweak for MSVC 9.
3024         * lib/sys_stat.in.h: Update comments.
3025         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3026
3027         Tests for module 'chdir'.
3028         * modules/chdir-tests: New file.
3029         * tests/test-chdir.c: New file.
3030
3031         New module 'chdir'.
3032         * modules/chdir: New file.
3033         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3034         (chdir): New declaration.
3035         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3036         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3037         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3038         * tests/test-unistd-c++.cc: Check signature of chdir.
3039         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3040         * modules/chdir-long (Depends-on): Add chdir.
3041         * modules/fchdir (Depends-on): Likewise.
3042         * modules/rename (Depends-on): Likewise.
3043         * modules/savewd (Depends-on): Likewise.
3044
3045         rmdir: Support for mingw, MSVC 9.
3046         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3047         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3048
3049         getcwd: Tweak for MSVC 9.
3050         * lib/unistd.in.h: Update comments.
3051         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3052
3053 2011-09-22  Bruno Haible  <bruno@clisp.org>
3054
3055         strerror_r-posix: Avoid a link error on MSVC.
3056         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3057         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3058
3059 2011-09-22  Bruno Haible  <bruno@clisp.org>
3060
3061         select: Avoid link errors on MSVC.
3062         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3063         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3064         * modules/pselect (Link): Likewise.
3065         * NEWS: Mention the change.
3066         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3067         test-select-stdin against $(LIB_SELECT).
3068         * modules/pselect-tests (Makefile.am): Link test-pselect against
3069         $(LIB_SELECT).
3070
3071 2011-09-22  Bruno Haible  <bruno@clisp.org>
3072
3073         select: Avoid compilation error on MSVC.
3074         * lib/select.c: Don't include <stdbool.h>.
3075
3076 2011-09-21  Bruno Haible  <bruno@clisp.org>
3077
3078         Consolidate all uses of PATH_MAX in *.m4 files.
3079         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3080         macros.
3081         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3082         and gl_PATHMAX_SNIPPET.
3083         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3084         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3085         * modules/chdir-long (Files): Add m4/pathmax.m4.
3086         * modules/getcwd (Files): Likewise.
3087
3088 2011-09-21  Bruno Haible  <bruno@clisp.org>
3089
3090         ftruncate: Un-deprecate, concentrate on Win32 support.
3091         * modules/ftruncate (Status, Notice): Remove sections.
3092         (Depends-on): Add largefile.
3093         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3094         non-mingw platforms.
3095         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3096         include <io.h>.
3097         * modules/perror-tests (Depends-on): Add ftruncate.
3098         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3099         'ftruncate' module.
3100
3101 2011-09-21  Bruno Haible  <bruno@clisp.org>
3102
3103         Add dependencies to new dirent related modules.
3104         * modules/opendir (Depends-on): Add closedir.
3105         * modules/getcwd (Depends-on): Add opendir, closedir.
3106         * modules/dirent-safer-tests (Depends-on): Likewise.
3107         * modules/fdopendir-tests (Depends-on): Likewise.
3108         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3109         * modules/renameat-tests (Depends-on): Likewise.
3110
3111 2011-09-21  Bruno Haible  <bruno@clisp.org>
3112
3113         opendir: Avoid compilation error on mingw.
3114         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3115         * modules/opendir (Depends-on): Add unistd.
3116
3117 2011-09-21  Bruno Haible  <bruno@clisp.org>
3118
3119         ftruncate tests: Avoid a test failure on mingw.
3120         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3121
3122 2011-09-21  Bruno Haible  <bruno@clisp.org>
3123
3124         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3125         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3126         native Windows.
3127
3128 2011-09-21  Bruno Haible  <bruno@clisp.org>
3129
3130         New module 'fdopen'.
3131         * lib/stdio.in.h (fdopen): New declaration.
3132         * lib/fdopen.c: New file.
3133         * m4/fdopen.m4: New file.
3134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3135         REPLACE_FDOPEN.
3136         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3137         REPLACE_FDOPEN.
3138         * modules/fdopen: New file.
3139         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3140         * tests/test-stdio-c++.cc: Check signature of fdopen.
3141         * doc/posix-functions/fdopen.texi: Mention the new module.
3142
3143 2011-09-21  Bruno Haible  <bruno@clisp.org>
3144
3145         unlockpt tests: Avoid test failure on NetBSD 5.1.
3146         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3147         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3148
3149 2011-09-21  Bruno Haible  <bruno@clisp.org>
3150
3151         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3152         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3153         * tests/test-getlogin_r.c (main): Likewise.
3154
3155 2011-09-20  Bruno Haible  <bruno@clisp.org>
3156
3157         time tests: Don't require pid_t.
3158         * doc/posix-headers/time.texi: Revert last change.
3159         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3160         * tests/test-time.c: Comment out the check for pid_t.
3161
3162 2011-09-20  Bruno Haible  <bruno@clisp.org>
3163
3164         fsync tests: Avoid a test failure on mingw.
3165         * tests/test-fsync.c (main): Allow a failure with EIO.
3166
3167 2011-09-20  Bruno Haible  <bruno@clisp.org>
3168
3169         euidaccess: Update comments.
3170         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3171
3172 2011-09-20  Bruno Haible  <bruno@clisp.org>
3173
3174         Ensure EBADF returns for socket functions on mingw.
3175         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3176         descriptor is invalid.
3177         * lib/bind.c (rpl_bind): Likewise.
3178         * lib/connect.c (rpl_connect): Likewise.
3179         * lib/getpeername.c (rpl_getpeername): Likewise.
3180         * lib/getsockname.c (rpl_getsockname): Likewise.
3181         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3182         * lib/listen.c (rpl_listen): Likewise.
3183         * lib/recv.c (rpl_recv): Likewise.
3184         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3185         * lib/send.c (rpl_send): Likewise.
3186         * lib/sendto.c (rpl_sendto): Likewise.
3187         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3188         * lib/shutdown.c (rpl_shutdown): Likewise.
3189
3190 2011-09-20  Bruno Haible  <bruno@clisp.org>
3191
3192         select tests: EBADF tests.
3193         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3194         test_bad_fd): New functions.
3195         (test_function): Invoke also test_bad_fd.
3196
3197 2011-09-20  Bruno Haible  <bruno@clisp.org>
3198
3199         Tests for module 'posix_spawn_file_actions_addopen.
3200         * modules/posix_spawn_file_actions_addopen-tests: New file.
3201         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3202
3203         Tests for module 'posix_spawn_file_actions_adddup2'.
3204         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3205         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3206
3207         Tests for module 'posix_spawn_file_actions_addclose'.
3208         * modules/posix_spawn_file_actions_addclose-tests: New file.
3209         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3210
3211 2011-09-20  Bruno Haible  <bruno@clisp.org>
3212
3213         Tests for module 'unlockpt'.
3214         * modules/unlockpt-tests: New file.
3215         * tests/test-unlockpt.c: New file.
3216         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3217
3218         Tests for module 'grantpt'.
3219         * modules/grantpt-tests: New file.
3220         * tests/test-grantpt.c: New file.
3221         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3222
3223 2011-09-20  Bruno Haible  <bruno@clisp.org>
3224
3225         freopen tests: EBADF tests.
3226         * tests/test-freopen.c: Include errno.h, unistd.h.
3227         (main): Add tests for EBADF, commented out for the moment.
3228
3229         fclose tests: EBADF tests.
3230         * tests/test-fclose.c (main): Add tests for EBADF.
3231
3232         fflush tests: EBADF tests.
3233         * tests/test-fflush.c: Include errno.h, macros.h.
3234         (main): Add tests for EBADF.
3235
3236         ftello tests: EBADF tests.
3237         * tests/test-ftello4.sh: New file.
3238         * tests/test-ftello4.c: New file.
3239         * modules/ftello-tests (Files): Add them.
3240         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3241
3242         fseeko tests: EBADF tests.
3243         * tests/test-fseeko4.sh: New file.
3244         * tests/test-fseeko4.c: New file.
3245         * modules/fseeko-tests (Files): Add them.
3246         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3247
3248         Tests for function fputc().
3249         * modules/fputc-tests: New file.
3250         * tests/test-fputc.c: New file.
3251         * modules/stdio-tests (Depends-on): Add fputc-tests.
3252
3253         Tests for function fgetc().
3254         * modules/fgetc-tests: New file.
3255         * tests/test-fgetc.c: New file.
3256         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3257
3258         Tests for function fdopen().
3259         * modules/fdopen-tests: New file.
3260         * tests/test-fdopen.c: New file.
3261         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3262
3263         Tests for module 'vdprintf'.
3264         * modules/vdprintf-tests: New file.
3265         * tests/test-vdprintf.c: New file.
3266
3267         Tests for module 'dprintf'.
3268         * modules/dprintf-tests: New file.
3269         * tests/test-dprintf.c: New file.
3270
3271 2011-09-20  Bruno Haible  <bruno@clisp.org>
3272
3273         Tests for module 'ioctl'.
3274         * modules/ioctl-tests: New file.
3275         * tests/test-ioctl.c: New file.
3276
3277 2011-09-20  Bruno Haible  <bruno@clisp.org>
3278
3279         fcntl tests: EBADF tests.
3280         * tests/test-fcntl.c (main): Add more tests for EBADF.
3281
3282 2011-09-20  Bruno Haible  <bruno@clisp.org>
3283
3284         utimensat tests: EBADF tests.
3285         * tests/test-utimensat.c (main): Add tests for EBADF.
3286
3287         renameat tests: EBADF tests.
3288         * tests/test-renameat.c (main): Add tests for EBADF.
3289
3290         mkfifoat tests: EBADF tests.
3291         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3292
3293         readlinkat tests: EBADF tests.
3294         * tests/test-readlinkat.c (main): Add tests for EBADF.
3295
3296         symlinkat tests: EBADF tests.
3297         * tests/test-symlinkat.c (main): Add tests for EBADF.
3298
3299         linkat tests: EBADF tests.
3300         * tests/test-linkat.c (main): Add tests for EBADF.
3301
3302         Tests for module 'faccessat'.
3303         * modules/faccessat-tests: New file.
3304         * tests/test-faccessat.c: New file.
3305
3306         fdopendir tests: EBADF tests.
3307         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3308
3309         openat tests: EBADF tests.
3310         * tests/test-fchownat.c (main): Add tests for EBADF.
3311         * tests/test-fstatat.c (main): Likewise.
3312         * tests/test-mkdirat.c (main): Likewise.
3313         * tests/test-openat.c (main): Likewise.
3314         * tests/test-unlinkat.c (main): Likewise.
3315         * tests/test-fchmodat.c: New file.
3316         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3317         (Makefile.am): Also run 'test-fchmodat'.
3318
3319 2011-09-20  Bruno Haible  <bruno@clisp.org>
3320
3321         utimens, futimens, fdutimensat tests: EBADF tests.
3322         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3323
3324         Tests for function fstat().
3325         * modules/fstat-tests: New file.
3326         * tests/test-fstat.c: New file.
3327         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3328
3329 2011-09-20  Bruno Haible  <bruno@clisp.org>
3330
3331         test-ttyname_r tests: EBADF tests.
3332         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3333
3334         Tests for module 'isatty'.
3335         * modules/isatty-tests: New file.
3336         * tests/test-isatty.c: New file.
3337
3338         Tests for module 'write'.
3339         * modules/write-tests: New file.
3340         * tests/test-write.c: New file.
3341
3342         Tests for module 'read'.
3343         * modules/read-tests: New file.
3344         * tests/test-read.c: New file.
3345
3346         pwrite tests: EBADF tests.
3347         * tests/test-pwrite.c (main): Add tests for EBADF.
3348
3349         pread tests: EBADF tests.
3350         * tests/test-pread.c (main): Add tests for EBADF.
3351
3352         lseek tests: EBADF tests.
3353         * tests/test-lseek.c (main): Add more tests for EBADF.
3354
3355         Tests for module 'ftruncate'.
3356         * modules/ftruncate-tests: New file.
3357         * tests/test-ftruncate.sh: New file.
3358         * tests/test-ftruncate.c: New file.
3359
3360         fsync tests: EBADF tests.
3361         * tests/test-fsync.c (main): Add more tests for EBADF.
3362
3363         fdatasync tests: EBADF tests.
3364         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3365
3366         Tests for module 'fchown'.
3367         * modules/fchown-tests: New file.
3368         * tests/test-fchown.c: New file.
3369
3370         Tests for module 'fchmod'.
3371         * modules/fchmod-tests: New file.
3372         * tests/test-fchmod.c: New file.
3373
3374         fchdir tests: EBADF tests.
3375         * tests/test-fchdir.c (main): Add more tests for EBADF.
3376
3377         dup2 tests: EBADF tests.
3378         * tests/test-dup2.c (main): Add more tests for EBADF.
3379
3380         Tests for module 'dup'.
3381         * modules/dup-tests: New file.
3382         * tests/test-dup.c: New file.
3383
3384         Tests for module 'close'.
3385         * modules/close-tests: New file.
3386         * tests/test-close.c: New file.
3387
3388 2011-09-20  Bruno Haible  <bruno@clisp.org>
3389
3390         Tests for module 'shutdown'.
3391         * modules/shutdown-tests: New file.
3392         * tests/test-shutdown.c: New file.
3393
3394         Tests for module 'setsockopt'.
3395         * modules/setsockopt-tests: New file.
3396         * tests/test-setsockopt.c: New file.
3397
3398         Tests for module 'sendto'.
3399         * modules/sendto-tests: New file.
3400         * tests/test-sendto.c: New file.
3401
3402         Tests for module 'send'.
3403         * modules/send-tests: New file.
3404         * tests/test-send.c: New file.
3405
3406         Tests for module 'recvfrom'.
3407         * modules/recvfrom-tests: New file.
3408         * tests/test-recvfrom.c: New file.
3409
3410         Tests for module 'recv'.
3411         * modules/recv-tests: New file.
3412         * tests/test-recv.c: New file.
3413
3414         Tests for module 'listen'.
3415         * modules/listen-tests: New file.
3416         * tests/test-listen.c: New file.
3417
3418         Tests for module 'getsockopt'.
3419         * modules/getsockopt-tests: New file.
3420         * tests/test-getsockopt.c: New file.
3421
3422         Tests for module 'getsockname'.
3423         * modules/getsockname-tests: New file.
3424         * tests/test-getsockname.c: New file.
3425
3426         Tests for module 'getpeername'.
3427         * modules/getpeername-tests: New file.
3428         * tests/test-getpeername.c: New file.
3429
3430         Tests for module 'connect'.
3431         * modules/connect-tests: New file.
3432         * tests/test-connect.c: New file.
3433
3434         Tests for module 'bind'.
3435         * modules/bind-tests: New file.
3436         * tests/test-bind.c: New file.
3437
3438         accept4 tests: Fix for native Windows.
3439         * tests/test-accept4.c: Include sockets.h.
3440         (main): Invoke gl_sockets_startup.
3441         * modules/accept4-tests (Depends-on): Add sockets.
3442
3443         accept tests: Fix for native Windows.
3444         * tests/test-accept.c: Include sockets.h.
3445         (main): Invoke gl_sockets_startup.
3446         * modules/accept-tests (Depends-on): Add sockets.
3447
3448 2011-09-19  Bruno Haible  <bruno@clisp.org>
3449
3450         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3451         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3452         do...while(0).
3453         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3454         Suggested by Paul Eggert.
3455
3456 2011-09-19  Bruno Haible  <bruno@clisp.org>
3457
3458         sched: Ensure pid_t is defined.
3459         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3460         not define pid_t.
3461         * lib/sched.in.h: Include <sys/types.h>.
3462         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3464
3465 2011-09-19  Bruno Haible  <bruno@clisp.org>
3466
3467         msvc-inval: Ensure the entire expansion is a single statement.
3468         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3469         of braces.
3470
3471 2011-09-19  Jim Meyering  <meyering@redhat.com>
3472
3473         tests: use printf, not echo in init.sh's warn_ function
3474         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3475         misbehave when given strings containing a backslash or starting
3476         with e.g., -n.  James Youngman suggested setting IFS.
3477
3478 2011-09-19  Eric Blake  <eblake@redhat.com>
3479
3480         futimens: enhance test
3481         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3482         closed non-negative fd.
3483
3484         date: accept 'hence' as opposite of 'ago'
3485         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3486         * tests/test-parse-datetime.c (main): Enhance test.
3487         Suggested by Jesse Wilson.
3488
3489 2011-09-19  Jim Meyering  <meyering@redhat.com>
3490
3491         getcwd: don't fail in a deep directory on a system without openat
3492         Before this change, getcwd would fail when called from a directory
3493         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3494         the non-openat implementation used "..", "../..", "../../..", etc.
3495         to access ancestor directories.  With too many, that string would
3496         be longer than PATH_MAX.
3497         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3498         using gnulib's openat replacement.
3499         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3500         we're using the replacement function.
3501
3502 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3503
3504         maint.mk: avoid warnings from perl about missing files
3505         * top/maint.mk (def_sym_regex): Ignore files listed in
3506         $(gl_other_headers_) that do not exist, say because a project
3507         does not use a corresponding module.
3508
3509 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3510
3511         stat: use pathmax.h only if needed
3512         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3513         This is better for Emacs, which does not have a mingw port and
3514         therefore can avoid the pathmax module.
3515
3516         utimens: remove dependency on dup2
3517         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3518         to work around the Linux kernel bug.
3519         * modules/utimens (Depends-on): Remove dup2.
3520
3521 2011-09-18  Bruno Haible  <bruno@clisp.org>
3522
3523         inet_ntop, inet_pton: Look for it also in libresolv.
3524         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3525         libnsl, search for it in libresolv.
3526         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3527         Needed on Solaris 7.
3528
3529 2011-09-18  Bruno Haible  <bruno@clisp.org>
3530
3531         accept, accept4 tests: Avoid link error on Solaris.
3532         * modules/accept-tests (Makefile.am): Link test-accept against
3533         $(LIBSOCKET).
3534         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3535         $(LIBSOCKET).
3536
3537         accept4: Avoid link error on Solaris.
3538         * modules/accept4 (Link): New section.
3539
3540         socket functions: Avoid link errors on Solaris.
3541         * modules/accept (Depends-on): Add socketlib.
3542         (Link): New section.
3543         * modules/bind (Depends-on): Add socketlib.
3544         (Link): New section.
3545         * modules/connect (Depends-on): Add socketlib.
3546         (Link): New section.
3547         * modules/getpeername (Depends-on): Add socketlib.
3548         (Link): New section.
3549         * modules/getsockname (Depends-on): Add socketlib.
3550         (Link): New section.
3551         * modules/getsockopt (Depends-on): Add socketlib.
3552         (Link): New section.
3553         * modules/listen (Depends-on): Add socketlib.
3554         (Link): New section.
3555         * modules/recv (Depends-on): Add socketlib.
3556         (Link): New section.
3557         * modules/recvfrom (Depends-on): Add socketlib.
3558         (Link): New section.
3559         * modules/send (Depends-on): Add socketlib.
3560         (Link): New section.
3561         * modules/sendto (Depends-on): Add socketlib.
3562         (Link): New section.
3563         * modules/setsockopt (Depends-on): Add socketlib.
3564         (Link): New section.
3565         * modules/shutdown (Depends-on): Add socketlib.
3566         (Link): New section.
3567         * modules/socket (Depends-on): Add socketlib.
3568         (Link): New section.
3569
3570 2011-09-18  Bruno Haible  <bruno@clisp.org>
3571
3572         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3573         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3574         than 5 seconds.
3575         * modules/ptsname-tests (configure.ac): Test for alarm.
3576
3577 2011-09-18  Bruno Haible  <bruno@clisp.org>
3578
3579         posix_spawn_file_actions_add*: Fix module dependencies.
3580         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3581         posix_spawn_file_actions_init.
3582         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3583         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3584
3585 2011-09-18  Bruno Haible  <bruno@clisp.org>
3586
3587         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3588         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3589         * tests/test-renameat.c (main): Likewise.
3590
3591 2011-09-18  Bruno Haible  <bruno@clisp.org>
3592
3593         Tests for module 'accept4'.
3594         * modules/accept4-tests: New file.
3595         * tests/test-accept4.c: New file.
3596
3597 2011-09-18  Bruno Haible  <bruno@clisp.org>
3598
3599         Tests for module 'accept'.
3600         * modules/accept-tests: New file.
3601         * tests/test-accept.c: New file.
3602
3603 2011-09-18  Bruno Haible  <bruno@clisp.org>
3604
3605         dup2: Support for MSVC.
3606         * lib/dup2.c: Include msvc-inval.h.
3607         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3608         _get_osfhandle calls.
3609         * modules/dup2 (Depends-on): Add msvc-inval.
3610         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3611
3612         New module 'msvc-inval'.
3613         * lib/msvc-inval.h: New file.
3614         * lib/msvc-inval.c: New file.
3615         * m4/msvc-inval.m4: New file.
3616         * modules/msvc-inval: New file.
3617
3618 2011-09-17  Bruno Haible  <bruno@clisp.org>
3619
3620         Tests for module 'pclose'.
3621         * modules/pclose-tests: New file.
3622
3623         New module 'pclose'.
3624         * lib/stdio.in.h (pclose): New declaration.
3625         * lib/pclose.c: New file.
3626         * m4/pclose.m4: New file.
3627         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3628         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3629         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3630         * modules/pclose: New file.
3631         * modules/popen-tests (Depends-on): Add pclose.
3632         * modules/popen-safer-tests (Depends-on): Likewise.
3633         * doc/posix-functions/pclose.texi: Mention the new module.
3634
3635 2011-09-17  Bruno Haible  <bruno@clisp.org>
3636
3637         popen: Support for MSVC.
3638         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3639         * lib/popen.c (popen): Provide alternate definition for native Windows.
3640         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3642         * modules/popen (Depends-on, configure.ac): Update condition.
3643         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3644         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3645         fixed.
3646
3647 2011-09-17  Bruno Haible  <bruno@clisp.org>
3648
3649         isnanl, isnand, isnanf: Work around MSVC bug.
3650         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3651
3652 2011-09-17  Bruno Haible  <bruno@clisp.org>
3653
3654         sys_socket tests: Fix recent mistake.
3655         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3656
3657 2011-09-17  Bruno Haible  <bruno@clisp.org>
3658
3659         putenv: Support for MSVC.
3660         * modules/putenv (Depends-on): Add environ.
3661         * lib/putenv.c (environ): Disable declaration.
3662         * lib/unistd.in.h: Update comment.
3663
3664 2011-09-17  Bruno Haible  <bruno@clisp.org>
3665
3666         math: Avoid macro redefinition warnings on MSVC.
3667         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3668         Undefine before redefining.
3669
3670 2011-09-17  Bruno Haible  <bruno@clisp.org>
3671
3672         doc: Mention functions which are declared as macros.
3673         * doc/posix-functions/*[fl].texi: Mention that some functions are
3674         defined as macros with arguments only.
3675
3676 2011-09-17  Bruno Haible  <bruno@clisp.org>
3677
3678         Add dependencies to new dirent related modules.
3679         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3680         * modules/fts (Depends-on): Likewise.
3681         * modules/glob (Depends-on): Likewise.
3682         * modules/savedir (Depends-on): Likewise.
3683         * modules/scandir (Depends-on): Likewise.
3684         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3685         * modules/fdopendir (Depends-on): Add opendir.
3686
3687 2011-09-17  Bruno Haible  <bruno@clisp.org>
3688
3689         inet_pton: Support for MSVC on Windows Vista or newer.
3690         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3691         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3692         HAVE_DECL_INET_PTON is defined.
3693         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3694         On platforms with <winsock2.h>, test whether inet_pton is declared in
3695         <ws2tcpip.h>. If so, arrange to replace it.
3696         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3697         REPLACE_INET_PTON.
3698         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3699         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3700         (Depends-on, configure.ac): Update condition.
3701         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3702
3703 2011-09-17  Bruno Haible  <bruno@clisp.org>
3704
3705         inet_ntop: Support for MSVC on Windows Vista or newer.
3706         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3707         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3708         HAVE_DECL_INET_NTOP is defined.
3709         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3710         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3711         <ws2tcpip.h>. If so, arrange to replace it.
3712         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3713         REPLACE_INET_NTOP.
3714         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3715         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3716         (Depends-on, configure.ac): Update condition.
3717         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3718
3719 2011-09-16  Eric Blake  <eblake@redhat.com>
3720
3721         test-fsync: yet another enhancement
3722         * tests/test-fsync.c (main): Also test behavior on read-only text
3723         file.
3724
3725 2011-09-16  Bruno Haible  <bruno@clisp.org>
3726
3727         Enhance fsync, fdatasync tests.
3728         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3729         * tests/test-fdatasync.c (main): Likewise.
3730
3731 2011-09-16  Bruno Haible  <bruno@clisp.org>
3732
3733         Support for MSVC compiler: Ensure mode_t gets defined.
3734         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3735         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3737         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3738         * tests/test-fcntl-h.c: Check that mode_t is defined.
3739         * tests/test-sys_stat.c: Likewise.
3740         * tests/test-sys_types.c: Likewise.
3741         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3742         * doc/posix-headers/sys_stat.texi: Likewise.
3743         * doc/posix-headers/sys_types.texi: Likewise.
3744
3745 2011-09-16  Bruno Haible  <bruno@clisp.org>
3746
3747         sys_stat: Support for MSVC.
3748         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3749         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3750         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3751         MSVC.
3752
3753 2011-09-16  Bruno Haible  <bruno@clisp.org>
3754
3755         Support for MSVC compiler: Ensure off_t gets defined.
3756         * lib/unistd.in.h: Include <sys/types.h>.
3757         * tests/test-fcntl-h.c: Check that off_t is defined.
3758         * tests/test-sys_stat.c: Likewise.
3759         * tests/test-sys_types.c: Likewise.
3760
3761 2011-09-16  Eric Blake  <eblake@redhat.com>
3762
3763         fdatasync: port to Solaris
3764         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3765         * modules/fdatasync (Link): Document it.
3766         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3767
3768         fdatasync: port to MacOS X 10.7
3769         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3770         declared.
3771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3772         * modules/unistd (Makefile.am): Substitute it.
3773         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3774         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3775
3776         fdatasync: minor improvements
3777         * modules/fdatasync (Depends-on): Add condition for fsync.
3778         * lib/fdatasync.c (fdatasync): Add comment.
3779         * tests/test-unistd-c++.cc: Test fdatasync.
3780
3781         unistd: update refs to newer POSIX
3782         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3783         Suggested by Bruno Haible.
3784
3785         fdatasync: new module
3786         * modules/fsync (Description): Document difference to fdatasync.
3787         * modules/fdatasync: New module.
3788         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3789         * lib/fdatasync.c (fdatasync): Likewise.
3790         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3791         defaults.
3792         * modules/unistd (Makefile.am): Set witnesses.
3793         * lib/unistd.in.h (fdatasync): Declare.
3794         * MODULES.html.sh: Document it.
3795         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3796         * modules/fdatasync-tests: New test.
3797         * tests/test-fdatasync.c: Likewise.
3798
3799 2011-09-16  Eric Blake  <eblake@redhat.com>
3800
3801         test-fsync: enhance tests
3802         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3803         * tests/test-fsync.c (main): Enhance test.
3804
3805 2011-09-15  Bruno Haible  <bruno@clisp.org>
3806
3807         Support for MSVC compiler: Ensure ssize_t gets defined.
3808         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3809         * doc/posix-headers/stdio.texi: Likewise.
3810         * modules/stdio (Depends-on): Add ssize_t.
3811         * modules/sys_socket (Depends-on): Likewise.
3812         * modules/sys_types (Depends-on): Likewise.
3813         * modules/sys_uio (Depends-on): Likewise.
3814         * modules/unistd (Depends-on): Likewise.
3815         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3816         * tests/test-sys_types.c: Check that ssize_t is defined.
3817
3818 2011-09-14  Bruno Haible  <bruno@clisp.org>
3819
3820         Avoid using #, the m4 comment starter character, near brackets.
3821         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3822         delimiter character in sed expressions.
3823         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3824         Suggested by Eric Blake.
3825
3826         Properly quote AC_CHECK_DECLS' 4th argument.
3827         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3828         argument.
3829         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3830         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3831         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3832         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3833         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3834         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3835         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3836         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3837         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3838         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3839         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3840         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3841         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3842         * m4/isinf.m4 (gl_ISINF): Likewise.
3843         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3844         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3845         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3846         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3847         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3848         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3849         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3850         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3851         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3852         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3853         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3854         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3856         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3858         Reported by Eric Blake.
3859
3860         Properly quote AC_CHECK_DECL's 4th argument.
3861         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3862         argument.
3863         * m4/argp.m4 (gl_ARGP): Likewise.
3864         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3865         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3866         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3867         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3868         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3869         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3871         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3872         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3873         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3874         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3875         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3876         Reported by Eric Blake.
3877
3878 2011-09-14  Eric Blake  <eblake@redhat.com>
3879
3880         opendir: avoid compile warning
3881         * lib/opendir.c (includes): Always include errno.h.
3882         Reported by Tatsuro MATSUOKA.
3883
3884 2011-09-14  Jim Meyering  <meyering@redhat.com>
3885
3886         maint.mk: sc_tight_scope: propagate failure from sub-make
3887         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3888         Reported by Martin von Gagern.
3889
3890 2011-09-13  Bruno Haible  <bruno@clisp.org>
3891
3892         tempname: Support for MSVC.
3893         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3894         MSVC.
3895         * modules/tempname (Depends-on): Add fcntl-h.
3896
3897 2011-09-13  Bruno Haible  <bruno@clisp.org>
3898
3899         sys_time: Support for MSVC.
3900         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3901         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3902         include <winsock2.h>.
3903         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3904         function declarations that collide with POSIX.
3905         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3906         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3907
3908 2011-09-13  Bruno Haible  <bruno@clisp.org>
3909
3910         stat: Support for MSVC.
3911         * lib/stat.c: Include pathmax.h.
3912         * modules/stat (Depends-on): Add pathmax.
3913
3914         pathmax: Support for native Windows.
3915         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3916
3917 2011-09-12  Bruno Haible  <bruno@clisp.org>
3918
3919         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3920         * lib/dirent.in.h (struct dirent): New type.
3921         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3922         DT_WHT): New macros.
3923         (DIR): New type.
3924         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3925         (readdir, rewinddir): New declarations.
3926         * lib/dirent-private.h: New file.
3927         * lib/opendir.c: New file.
3928         * lib/readdir.c: New file.
3929         * lib/rewinddir.c: New file.
3930         * lib/closedir.c: New file.
3931         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3932         * m4/opendir.m4: New file.
3933         * m4/readdir.m4: New file.
3934         * m4/rewinddir.m4: New file.
3935         * m4/closedir.m4: New file.
3936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3937         REPLACE_CLOSEDIR here.
3938         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3939         readdir, rewinddir are declared.
3940         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3941         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3942         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3943         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3944         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3945         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3946         * modules/opendir: New file.
3947         * modules/readdir: New file.
3948         * modules/rewinddir: New file.
3949         * modules/closedir: New file.
3950         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3951         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3952         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3953         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3954         * NEWS: Mention the 'fchdir' change.
3955
3956 2011-09-11  Bruno Haible  <bruno@clisp.org>
3957
3958         asm-underscore.m4: Support for MSVC.
3959         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3960         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3961
3962 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3963
3964         Doc about crypt functions.
3965         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3966         needing for _GNU_SOURCE to get crypt.
3967         * doc/posix-functions/encrypt.texi: Likewise.
3968         * doc/posix-functions/setkey.texi: Likewise.
3969
3970 2011-09-11  Bruno Haible  <bruno@clisp.org>
3971
3972         doc: Update regarding MSVC 9.
3973         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3974         tested".
3975         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3976         * doc/posix-headers/*.texi: Likewise.
3977         * doc/pastposix-functions/*.texi: Likewise.
3978         * doc/glibc-functions/*.texi: Likewise.
3979         * doc/glibc-headers/*.texi: Likewise.
3980
3981 2011-09-11  Bruno Haible  <bruno@clisp.org>
3982
3983         unistd et al.: Don't assume <unistd.h> exists.
3984         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3985         does not exist.
3986         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3987         exist. But include <stdlib.h>.
3988         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3989         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3990         symlink() does not exist.
3991         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3992         include <io.h> instead.
3993         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3994         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3995         include <direct.h> instead.
3996         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3997         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3998         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3999         <io.h> instead.
4000         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4001         correctly if the system does not have hard links.
4002         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4003         <direct.h> instead.
4004         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4005         it when looking for function declarations.
4006         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4007         <direct.h> and <io.h> instead.
4008         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4009
4010 2011-09-11  Bruno Haible  <bruno@clisp.org>
4011
4012         strcase: Support for MSVC.
4013         * modules/strcase (Status, Notice): Remove obsoletion mark.
4014         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4015         * doc/posix-functions/strncasecmp.texi: Likewise.
4016
4017         strings: Don't assume <strings.h> exists.
4018         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4019         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4020         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4021         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4022
4023 2011-09-11  Bruno Haible  <bruno@clisp.org>
4024
4025         dirent: Don't assume <dirent.h> exists.
4026         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4027         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4028         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4029         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4030
4031 2011-09-11  Bruno Haible  <bruno@clisp.org>
4032
4033         Fix wint_t on MSVC.
4034         * lib/wchar.in.h (wint_t): On MSVC, override it.
4035         * lib/wctype.in.h (wint_t): Likewise.
4036         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4037         MSVC.
4038         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4039         * doc/posix-headers/wctype.texi: Likewise.
4040
4041 2011-09-11  Bruno Haible  <bruno@clisp.org>
4042
4043         sys_types: Fix typo.
4044         * lib/sys_types.in.h: Fix typo in comment.
4045         Reported by Paul Eggert.
4046
4047         Support for MSVC compiler: Ensure size_t gets defined.
4048         * modules/strings (Depends-on): Add 'sys_types'.
4049         * modules/sys_uio (Depends-on): Likewise.
4050         * lib/sys_uio.in.h: Update comment.
4051
4052         C++ tests for module 'sys_types'.
4053         * modules/sys_types-c++-tests: New file.
4054         * tests/test-sys_types-c++.cc: New file.
4055
4056         Tests for module 'sys_types'.
4057         * modules/sys_types-tests: New file.
4058         * tests/test-sys_types.c: New file.
4059
4060         New module 'sys_types'.
4061         * lib/sys_types.in.h: New file.
4062         * m4/sys_types_h.m4: New file.
4063         * modules/sys_types: New file.
4064         * doc/posix-headers/sys_types.texi: Mention the new module and the
4065         size_t problem on MSVC 9.
4066
4067 2011-09-11  Bruno Haible  <bruno@clisp.org>
4068
4069         Support for MSVC compiler: Avoid division by a literal 0.
4070         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4071         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4072         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4073         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4074         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4075         * tests/infinity.h: New file.
4076         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4077         on MSVC.
4078         * tests/test-ceilf1.c: Include infinity.h.
4079         (main): Use Infinityf.
4080         * tests/test-ceil1.c: Include infinity.h.
4081         (main): Use Infinityd.
4082         * tests/test-ceill.c: Include infinity.h.
4083         (main): Use Infinityl.
4084         * tests/test-dprintf-posix.c: Include infinity.h.
4085         (test_function): Use Infinityd.
4086         * tests/test-floorf1.c: Include infinity.h.
4087         (main): Use Infinityf.
4088         * tests/test-floor1.c: Include infinity.h.
4089         (main): Use Infinityd.
4090         * tests/test-floorl.c: Include infinity.h.
4091         (main): Use Infinityl.
4092         * tests/test-fprintf-posix.c: Include infinity.h.
4093         (test_function): Use Infinityd.
4094         * tests/test-frexp.c: Include infinity.h.
4095         (main): Use Infinityd.
4096         * tests/test-frexpl.c: Include infinity.h.
4097         (main): Use Infinityl.
4098         * tests/test-isfinite.c: Include infinity.h.
4099         (test_isfinitef): Use Infinityf.
4100         (test_isfinited): Use Infinityd.
4101         (test_isfinitel): Use Infinityl.
4102         * tests/test-isinf.c: Include infinity.h.
4103         (test_isinff): Use Infinityf.
4104         (test_isinfd): Use Infinityd.
4105         (test_isinfl): Use Infinityl.
4106         * tests/test-isnan.c: Include infinity.h.
4107         (test_float): Use Infinityf.
4108         (test_double): Use Infinityd.
4109         (test_long_double): Use Infinityl.
4110         * tests/test-isnanf.h: Include infinity.h.
4111         (main): Use Infinityf.
4112         * tests/test-isnand.h: Include infinity.h.
4113         (main): Use Infinityd.
4114         * tests/test-isnanl.h: Include infinity.h.
4115         (main): Use Infinityl.
4116         * tests/test-ldexpl.c: Include infinity.h.
4117         (main): Use Infinityl.
4118         * tests/test-printf-posix.h: Include infinity.h.
4119         (test_function): Use Infinityd.
4120         * tests/test-roundf1.c: Include infinity.h.
4121         (main): Use Infinityf.
4122         * tests/test-round1.c: Include infinity.h.
4123         (main): Use Infinityd.
4124         * tests/test-roundl.c: Include infinity.h.
4125         (main): Use Infinityl.
4126         * tests/test-signbit.c: Include infinity.h.
4127         (test_signbitf): Use Infinityf.
4128         (test_signbitd): Use Infinityd.
4129         (test_signbitl): Use Infinityl.
4130         * tests/test-snprintf-posix.h: Include infinity.h.
4131         (test_function): Use Infinityd, Infinityl.
4132         * tests/test-sprintf-posix.h: Include infinity.h.
4133         (test_function): Use Infinityd, Infinityl.
4134         * tests/test-truncf1.c: Include infinity.h.
4135         (main): Use Infinityf.
4136         * tests/test-trunc1.c: Include infinity.h.
4137         (main): Use Infinityd.
4138         * tests/test-truncl.c: Include infinity.h.
4139         (main): Use Infinityl.
4140         * tests/test-vasnprintf-posix.c: Include infinity.h.
4141         (test_function): Use Infinityd, Infinityl.
4142         * tests/test-vasprintf-posix.c: Include infinity.h.
4143         (test_function): Use Infinityd, Infinityl.
4144         * modules/ceilf-tests (Files): Add tests/infinity.h.
4145         * modules/ceil-tests (Files): Likewise.
4146         * modules/ceill-tests (Files): Likewise.
4147         * modules/dprintf-posix-tests (Files): Likewise.
4148         * modules/floorf-tests (Files): Likewise.
4149         * modules/floor-tests (Files): Likewise.
4150         * modules/floorl-tests (Files): Likewise.
4151         * modules/fprintf-posix-tests (Files): Likewise.
4152         * modules/frexp-tests (Files): Likewise.
4153         * modules/frexp-nolibm-tests (Files): Likewise.
4154         * modules/frexpl-tests (Files): Likewise.
4155         * modules/frexpl-nolibm-tests (Files): Likewise.
4156         * modules/isfinite-tests (Files): Likewise.
4157         * modules/isinf-tests (Files): Likewise.
4158         * modules/isnan-tests (Files): Likewise.
4159         * modules/isnanf-tests (Files): Likewise.
4160         * modules/isnanf-nolibm-tests (Files): Likewise.
4161         * modules/isnand-tests (Files): Likewise.
4162         * modules/isnand-nolibm-tests (Files): Likewise.
4163         * modules/isnanl-tests (Files): Likewise.
4164         * modules/isnanl-nolibm-tests (Files): Likewise.
4165         * modules/ldexpl-tests (Files): Likewise.
4166         * modules/printf-posix-tests (Files): Likewise.
4167         * modules/roundf-tests (Files): Likewise.
4168         * modules/round-tests (Files): Likewise.
4169         * modules/roundl-tests (Files): Likewise.
4170         * modules/signbit-tests (Files): Likewise.
4171         * modules/snprintf-posix-tests (Files): Likewise.
4172         * modules/sprintf-posix-tests (Files): Likewise.
4173         * modules/truncf-tests (Files): Likewise.
4174         * modules/trunc-tests (Files): Likewise.
4175         * modules/truncl-tests (Files): Likewise.
4176         * modules/vasnprintf-posix-tests (Files): Likewise.
4177         * modules/vasprintf-posix-tests (Files): Likewise.
4178         * modules/vdprintf-posix-tests (Files): Likewise.
4179         * modules/vfprintf-posix-tests (Files): Likewise.
4180         * modules/vprintf-posix-tests (Files): Likewise.
4181         * modules/vsnprintf-posix-tests (Files): Likewise.
4182         * modules/vsprintf-posix-tests (Files): Likewise.
4183         * modules/xprintf-posix-tests (Files): Likewise.
4184
4185 2011-09-11  Bruno Haible  <bruno@clisp.org>
4186
4187         Ensure pid_t gets defined.
4188         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4189         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4190         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4191         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4192         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4193         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4194         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4195         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4196         * tests/test-fcntl-h.c: Check that pid_t is defined.
4197         * tests/test-sched.c: Likewise.
4198         * tests/test-termios.c: Likewise.
4199         * tests/test-time.c: Likewise.
4200         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4201         * doc/posix-headers/signal.texi: Likewise.
4202         * doc/posix-headers/sys_types.texi: Likewise.
4203         * doc/posix-headers/time.texi: Likewise.
4204
4205 2011-09-11  Bruno Haible  <bruno@clisp.org>
4206
4207         acl: Fix compilation on Solaris 10 (older version).
4208         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4209         of ACE_EVERYONE.
4210         * lib/set-mode-acl.c (qset_acl): Likewise.
4211         Reported by Christian Jullien <eligis@orange.fr>.
4212
4213 2011-09-10  Bruno Haible  <bruno@clisp.org>
4214
4215         iconv, unsetenv: Add support for MSVC compiler.
4216         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4217         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4218
4219 2011-09-10  Bruno Haible  <bruno@clisp.org>
4220
4221         *printf: Add support for MSVC compiler.
4222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4223         handles the exception caused by the %n directive. When cross-compiling,
4224         guess no on native Windows.
4225         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4226         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4227         emulate it through vsnprintf.
4228         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4229         * doc/posix-functions/dprintf.texi: Update documentation regarding
4230         MSVC 9.
4231         * doc/posix-functions/fprintf.texi: Likewise.
4232         * doc/posix-functions/printf.texi: Likewise.
4233         * doc/posix-functions/snprintf.texi: Likewise.
4234         * doc/posix-functions/sprintf.texi: Likewise.
4235         * doc/posix-functions/swprintf.texi: Likewise.
4236         * doc/posix-functions/vdprintf.texi: Likewise.
4237         * doc/posix-functions/vfprintf.texi: Likewise.
4238         * doc/posix-functions/vprintf.texi: Likewise.
4239         * doc/posix-functions/vsnprintf.texi: Likewise.
4240         * doc/posix-functions/vsprintf.texi: Likewise.
4241         * doc/glibc-functions/asprintf.texi: Likewise.
4242         * doc/glibc-functions/obstack_printf.texi: Likewise.
4243         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4244         * doc/glibc-functions/vasprintf.texi: Likewise.
4245
4246 2011-09-10  Bruno Haible  <bruno@clisp.org>
4247
4248         nocrash: Add support for native Windows.
4249         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4250
4251 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4252             Bruno Haible  <bruno@clisp.org>
4253
4254         absolute-header, include-next: Add support for MSVC compiler.
4255         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4256         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4257         directory separator in #line directives.
4258         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4259         recognize also backslash as directory separator in #line directives.
4260
4261 2011-09-08  Jim Meyering  <meyering@redhat.com>
4262
4263         maint.mk: mark the post-release commit log with "maint: " prefix
4264         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4265         one-line commit-log summary.
4266
4267 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4268             Bruno Haible  <bruno@clisp.org>
4269
4270         Doc about crypt functions.
4271         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4272         systems.
4273         * doc/posix-functions/encrypt.texi: Likewise.
4274         * doc/posix-functions/setkey.texi: Likewise.
4275
4276 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4277
4278         * lib/gc.h: Fix copyright header.
4279
4280 2011-09-07  Bruno Haible  <bruno@clisp.org>
4281
4282         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4283         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4284         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4285
4286 2011-09-07  Bruno Haible  <bruno@clisp.org>
4287
4288         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4289         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4290         * lib/freopen.c: Likewise.
4291         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4292         * lib/lstat.c: Likewise.
4293         * lib/stat.c: Likewise.
4294         * lib/open.c: Use different syntax for include of <fcntl.h>.
4295         * lib/openat.c: Include fcntl.h again, explicitly.
4296
4297 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4298
4299         parse-datetime: document the newly accepted format
4300         * doc/parse-datetime.texi (Combined date and time of day items):
4301         New section.
4302
4303 2011-09-06  Bruno Haible  <bruno@clisp.org>
4304
4305         acl: Fix a test failure on newer Solaris 10 with ZFS.
4306         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4307         ENOSYS as no ACL.
4308         Reported by Jim Meyering.
4309
4310 2011-09-06  Bruno Haible  <bruno@clisp.org>
4311
4312         acl: Update for AIX >= 5.3 with NFS.
4313         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4314         ENOSYS as no ACL.
4315
4316         acl: Fix a test failure on AIX >= 5.3 with NFS.
4317         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4318         as no ACL.
4319
4320 2011-09-06  Bruno Haible  <bruno@clisp.org>
4321
4322         acl: Fix a test failure on IRIX 6.5 with NFS.
4323         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4324         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4325         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4326         * lib/copy-acl.c (qcopy_acl): Likewise.
4327
4328 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4329
4330         openat: port to AIX 7.1 with large files
4331         AIX 7.1 does a "#define openat open64at" if large files are in use,
4332         so we can't simply #undef openat.  Use the orig_openat trick (similar
4333         to orig_open in lib/open.c) to work around the problem.  Problem
4334         reported by Kevin Brott for GNU tar, in the thread containing
4335         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4336         * lib/openat.c (__need_system_fcntl_h): Define first.
4337         Include <fcntl.h> and <sys/types.h> before undefining.
4338         (orig_openat) [HAVE_OPENAT]: New inline function.
4339         (openat) [HAVE_OPENAT]: Do not undef.
4340         (rpl_openat): Use orig_openat, not openat.
4341
4342 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4343             Bruno Haible  <bruno@clisp.org>
4344
4345         acl: Avoid errors on NonStop Kernel.
4346         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4347         ENOTSUP errors.
4348
4349 2011-09-05  Bruno Haible  <bruno@clisp.org>
4350
4351         acl: Clean up Solaris code.
4352         * lib/acl-internal.h: Remove no-op #if.
4353         * lib/file-has-acl.c: Likewise.
4354         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4355         * lib/copy-acl.c (qcopy_acl): Likewise.
4356
4357 2011-09-05  Bruno Haible  <bruno@clisp.org>
4358
4359         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4360         binaries built on the original Solaris 10.
4361         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4362         trivial.
4363
4364 2011-09-05  Bruno Haible  <bruno@clisp.org>
4365
4366         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4367         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4368         10.
4369         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4370         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4371         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4372         instead of acl_get, facl_get, acl_set, facl_set.
4373
4374 2011-09-05  Bruno Haible  <bruno@clisp.org>
4375
4376         copy-file: Try unit tests on more file systems.
4377         * tests/test-copy-file-1.sh: New file.
4378         * tests/test-copy-file-2.sh: New file.
4379         * modules/copy-file-tests (Files): Add them.
4380         (Makefile.am): Add them to TESTS.
4381
4382         acl: Try unit tests on more file systems.
4383         * tests/test-file-has-acl-1.sh: New file.
4384         * tests/test-file-has-acl-2.sh: New file.
4385         * tests/test-set-mode-acl-1.sh: New file.
4386         * tests/test-set-mode-acl-2.sh: New file.
4387         * tests/test-copy-acl-1.sh: New file.
4388         * tests/test-copy-acl-2.sh: New file.
4389         * modules/acl-tests (Files): Add them.
4390         (Makefile.am): Add them to TESTS.
4391
4392 2011-09-04  Bruno Haible  <bruno@clisp.org>
4393
4394         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4395         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4396         10.
4397         (OLD_ALLOW, OLD_DENY): New macros.
4398         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4399         ACE_ACCESS_ALLOWED_ACE_TYPE.
4400         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4401         ACE_ACCESS_DENIED_ACE_TYPE.
4402         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4403         (NEW_ACE_EXECUTE): Fix value.
4404         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4405         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4406         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4407         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4408         NEW_ACE_SYNCHRONIZE): New macros.
4409         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4410         instead of acl_fromtext, acl_set, facl_set.
4411         Fixes a coreutils/tests/cp/perm failure.
4412
4413 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4414
4415         openat: test for fstatat (..., 0) bug
4416         Further testing with tar suggests that fstatat (..., 0)
4417         does not work in general, on AIX 7.1; see
4418         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4419         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4420         replacement fstatat (which is what older AIX releases were using
4421         anyway).
4422         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4423         use is now changed to orig_fstatat.  This was probably the right
4424         thing to do anyway.
4425         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4426         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4427         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4428         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4429         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4430         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4431         if the bug is found.
4432
4433         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4434         This tests for another fstatat bug on AIX 7.1:
4435         fstatat (AT_FDCWD, ..., 0) does not work.  See
4436         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4437         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4438         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4439         (rpl_fstatat): Adjust so that it works around either (or both)
4440         bugs if present.
4441         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4442
4443 2011-09-03  Karl Berry  <karl@gnu.org>
4444
4445         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4446         in index entries.
4447
4448 2011-09-02  Bruno Haible  <bruno@clisp.org>
4449
4450         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4451         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4452         values of AR, ARFLAGS, RANLIB.
4453         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4454
4455 2011-09-02  Bruno Haible  <bruno@clisp.org>
4456
4457         Find 'ar' program that fits with --host argument.
4458         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4459
4460 2011-09-02  Bruno Haible  <bruno@clisp.org>
4461
4462         tests: init.sh: Support any non-GNU diff.
4463         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4464         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4465         Solaris 8.
4466
4467 2011-09-02  Bruno Haible  <bruno@clisp.org>
4468
4469         tests: init.sh: work also with any non-GNU diff that supports -u
4470         * tests/init.sh: Relax check for diff -u support.
4471         Rather than checking for GNU diff via --version, simply check
4472         for support for -u itself.  Useful at least on OpenBSD 4.9,
4473         AIX 7.1, IRIX 6.5, and Solaris 10.
4474
4475 2011-09-01  Bruno Haible  <bruno@clisp.org>
4476
4477         strtoimax, strtoumax: Document problem on HP-UX 11.
4478         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4479         * doc/posix-functions/strtoumax.texi: Likewise.
4480
4481 2011-09-01  Bruno Haible  <bruno@clisp.org>
4482
4483         strtoumax: Avoid link error on OSF/1 with DTK cc.
4484         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4485         defined as a function.
4486         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4487         strtoumax is defined, not whether it is declared.
4488
4489 2011-09-01  Bruno Haible  <bruno@clisp.org>
4490
4491         strtoimax: Avoid link error on OSF/1 with DTK cc.
4492         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4493         defined as a function.
4494         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4495         strtoimax is defined, not whether it is declared.
4496
4497 2011-09-01  Bruno Haible  <bruno@clisp.org>
4498
4499         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4500         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4501         as a function.
4502         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4503         whether it is declared.
4504
4505 2011-09-01  Bruno Haible  <bruno@clisp.org>
4506
4507         imaxabs: Avoid link error on OSF/1 with DTK cc.
4508         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4509         as a function.
4510         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4511         whether it is declared.
4512
4513 2011-09-01  Bruno Haible  <bruno@clisp.org>
4514
4515         Tests for module 'strtoumax'.
4516         * modules/strtoumax-tests: New file.
4517         * tests/test-strtoumax.c: New file.
4518
4519         Tests for module 'strtoimax'.
4520         * modules/strtoimax-tests: New file.
4521         * tests/test-strtoimax.c: New file.
4522
4523         Tests for module 'imaxdiv'.
4524         * modules/imaxdiv-tests: New file.
4525         * tests/test-imaxdiv.c: New file.
4526
4527         Tests for module 'imaxabs'.
4528         * modules/imaxabs-tests: New file.
4529         * tests/test-imaxabs.c: New file.
4530
4531 2011-09-01  Bruno Haible  <bruno@clisp.org>
4532
4533         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4534         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4535         pthread_create.
4536
4537 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4538
4539         openat: work around AIX 7.1 fstatat issue
4540         This should fix the problem that was not properly fixed
4541         in the previous change, dated 2011-08-30.
4542         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4543         __need_system_stat_h defined.
4544         (orig_fstatat) [HAVE_FSTATAT]: New function.
4545         (rpl_fstatat): Go back to the old way of doing things,
4546         except call orig_fstatat instead of fstatat.
4547         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4548         Remove unnecessary check whether fstatat fills in st_size etc.
4549
4550 2011-09-01  Bruno Haible  <bruno@clisp.org>
4551
4552         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4553         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4554         just include the system's header.
4555
4556 2011-08-31  Jim Meyering  <meyering@redhat.com>
4557
4558         tests: avoid spurious assertion failure in test-float.c on ppc64
4559         * tests/test-float.c (test_long_double): Comment out an assertion,
4560         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4561         with gcc-4.4.4.
4562
4563         maint: indent with spaces, not TABs
4564         I need to get in the habit of running gnulib's "make check".
4565         Both of these would have been caught.
4566         * m4/largefile.m4: Indent with spaces, not TABs.
4567         * lib/parse-datetime.y (iso_8601_time): Likewise.
4568         Spotted by Pádraig Brady.
4569
4570         test-parse-datetime.c: accommodate a relatively strict gcc warning
4571         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4572         to avoid a warning from gcc's -Werror=missing-declarations.
4573         Insert a few spaces-before-funcall-parenthesis.
4574
4575 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4576
4577         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4578         The parser now accepts ISO 8601 date-time strings with "T" as the
4579         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4580         with a space between the date and time strings.  Now it also parses
4581         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4582         variants like "2004-02-29T16:21:42.333-07:00"
4583         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4584         of day representation using the 'T' separator character.
4585         * doc/parse-datetime.texi (General date syntax): replace use of
4586         deprecated --iso-8601 option with --rfc-3339 in example of date
4587         command output formats that can be parsed.
4588         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4589         lib/parse-datetime.y.
4590         (gmt_offset): New function.
4591         (main): Add additional test cases to validate ISO8601 extended
4592         date and time of day parsing.
4593
4594 2011-08-31  Bruno Haible  <bruno@clisp.org>
4595
4596         freopen: Documentation.
4597         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4598         name.
4599         Reported by Claudio Bley <claudio.bley@gmail.com>.
4600
4601 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4602
4603         freopen: Don't crash if the filename argument is NULL.
4604         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4605         NULL.
4606
4607 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4608
4609         openat: work around AIX 7.1 fstatat bug
4610         Problem reported by Kevin Brott for GNU tar, in the thread containing
4611         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4612         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4613         FSTATAT_ST_SIZE_ETC_BROKEN.
4614         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4615         rpl_fstatat.
4616         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4617         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4618         AC_CHECK_FUNCS_ONCE for fstatat.
4619         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4620         fchmodat, mkdirat, openat and unlinkat.
4621
4622 2011-08-30  Bruno Haible  <bruno@clisp.org>
4623
4624         Avoid endless recursions if config.h includes some header files.
4625         * lib/fopen.c (__need_FILE): Define already before including config.h.
4626         * lib/freopen.c (__need_FILE): Likewise.
4627         * lib/open.c (__need_system_fcntl_h): Likewise.
4628         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4629         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4630         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4631
4632 2011-08-25  Karl Berry  <karl@gnu.org>
4633
4634         * config/srclist.txt (ylwrap): new try.
4635         * build-aux/ylwrap: new file.
4636
4637 2011-08-23  Bruno Haible  <bruno@clisp.org>
4638
4639         tmpdir: Use a good default directory on native Windows.
4640         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4641         (P_tmpdir): Default to _P_tmpdir on native Windows.
4642         (path_search): On native Windows, try the value returned by GetTempPath
4643         before trying P_tmpdir.
4644         * modules/tmpdir (Depends-on): Add pathmax.
4645         Suggested by John Darrington <john@darrington.wattle.id.au>.
4646
4647 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4648
4649         doc: fix typo in README-release
4650         * top/README-release: Capitalize first word of a sentence.
4651
4652 2011-08-19  Jim Meyering  <meyering@redhat.com>
4653
4654         fts: do not exhaust memory when processing million-entry directories
4655         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4656         directory would require about 256*N bytes of memory.  Thus, it was
4657         easy to construct a directory too large to be processed by any of
4658         those tools.  With this change, fts' maximum memory utilization is
4659         now limited to around 30MB.
4660         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4661         (fts_read): When we've processed the final entry (i.e., when
4662         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4663         using the parent entry to read any remaining entries.  Dispatch
4664         depending on what fts_build returns:
4665         - NULL+stop, aka failure: stop
4666         - NULL otherwise: move up in the dir hierarchy
4667         - non-NULL: handle this new entry
4668         (fts_build): Declare and use new local, continue_readdir.
4669         Prepare to be called from fts_read, when the entries
4670         from a partially-read directory have just been exhausted.
4671         In that case, we'll skip the opendir and instead use the parent's
4672         fts_dirp and derive dir_fd from that.
4673         Finally, in the readdir loop, if we read max_entries entries,
4674         exit the loop ensuring *not* to call closedir.  This is required
4675         so that fts_dirp can be reused on a subsequent call.
4676         Prompted by Ben England's report of memory exhaustion in find
4677         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4678
4679         maint: fts: move decl of `dp' down into while loop; split a long line
4680         * lib/fts.c (fts_build): No semantic change.
4681
4682         fts: add/use new struct member, fts_dirp
4683         We are about to use this to manage any directory with
4684         too many entries to read all of them into memory at once.
4685         To do that, we'll need to save the DIR* pointer in each
4686         affected FTSENT struct.
4687         * lib/fts_.h: Include <dirent.h>.
4688         (struct FTSENT) [fts_dirp]: New member.
4689         * lib/fts.c (closedir_and_clear): Define.
4690         Use it in place of closedir so that we are sure to
4691         clear the new fts_dirp member when done with it.
4692         (fts_alloc): Initialize the new member.
4693         (fts_lfree): Free, if needed.
4694
4695         maint: fts: give __opendir2 a new parameter and rename
4696         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4697         than surreptitiously using sole caller's "dir_fd".
4698         (fts_opendir): Rename from __opendir2.
4699
4700         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4701         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4702
4703         maint: fts.c: correct off-by-one indentation
4704         * lib/fts.c (fts_build): Correct indentation, change style
4705         of a couple of block comments, and bracing style.
4706
4707         maint: fts.c: move __opendir2 #define "up" out of function body
4708         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4709
4710         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4711         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4712         out for a long time and besides was useful only on BSD systems.
4713
4714 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4715
4716         regex: port to Stratus OpenVOS
4717         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4718         define to empty, rather than attempting nonportable optimizations.
4719         Problem reported by Paul Green in:
4720         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4721         and fix suggested by Eric Blake in:
4722         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4723
4724 2011-08-17  Eric Blake  <eblake@redhat.com>
4725
4726         getcwd: fix test failures on mingw
4727         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4728         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4729         test if long directory cannot be created, and allow mingw errno.
4730
4731         getcwd-lgpl: fix m4 to match relaxed test for BSD
4732         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4733         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4734         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4735         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4736         signature problem.
4737
4738         getcwd: fix compilation on mingw64
4739         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4740         getcwd.
4741         Reported by Marc-André Lureau.
4742
4743         pipe2: silence compiler warning
4744         * lib/pipe2.c (pipe2): Hide label if it is not used.
4745
4746 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4747
4748         relocatable-prog: fix link error
4749         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4750         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4751         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4752         into modules/relocatable-lib without noticing that
4753         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4754         also needs to build relocatable.c.
4755
4756 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4757
4758         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4760         shell code: it contained a 'break' that was not in a loop.
4761         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4762         via a shell-language loop; this may have been true in old Autoconf
4763         versions, but it's not true in Autoconf 2.68.  I found this bug
4764         when testing coreutils git on Solaris 8, whose shell complains
4765         about the syntax error.
4766
4767 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4768
4769         * lib/base64.c: Fix comment to reference RFC 4648.
4770         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4771         <gvtulder@gmail.com>.
4772
4773 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4774
4775         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4776
4777         po/Makefile.in.in: fix make -q problem
4778         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4779         rule, since there's no file named 'check-macro-version' and its
4780         use as a file breaks make -q.
4781         (all): Don't depend on check-macro-version.
4782         (CHECK_MACRO_VERSION): New macro.
4783         (stamp-po): Use it.
4784
4785         configmake: fix make -q problem
4786         * modules/configmake (configmake.h): Update configmake.h's time stamp
4787         even if the file does not change.  Otherwise, 'make -q' fails.
4788         Problem reported by Simon Josefsson in
4789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4790
4791 2011-08-11  Jim Meyering  <meyering@redhat.com>
4792
4793         git-version-gen: correct the advice in a comment
4794         * build-aux/git-version-gen: Correct comment.
4795         Don't recommend to list .tarball-version in .gitignore.
4796
4797 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4798
4799         base64: fix off-by-one buffer size bug
4800         Problem and (trivial) fix reported by Gijs van Tulder in
4801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4802         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4803         * tests/test-base64.c (main): Catch the bug.
4804
4805 2011-08-10  Eric Blake  <eblake@redhat.com>
4806
4807         closein: correct comments
4808         * lib/closein.c (close_stdin): Improve comments.
4809
4810 2011-08-09  Bruno Haible  <bruno@clisp.org>
4811
4812         More tests for 'fseeko'.
4813         * tests/test-fseeko3.c: New file, from Eric Blake.
4814         * tests/test-fseeko3.sh: New file.
4815         * modules/fseeko-tests (Files): Add them.
4816         (TESTS): Add test-fseeko3.sh.
4817         (check_PROGRAMS): Add test-fseeko3.
4818
4819 2011-08-09  Eric Blake  <eblake@redhat.com>
4820
4821         fseeko: remove unneeded hack
4822         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4823
4824         fseeko: fix bug on glibc
4825         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4826         Reported by John W. Eaton.
4827
4828 2011-08-08  Bruno Haible  <bruno@clisp.org>
4829
4830         unictype/base: Fix interoperability with preinstalled libunistring.
4831         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4832         Reported by Simon Josefsson.
4833
4834 2011-08-08  Bruno Haible  <bruno@clisp.org>
4835
4836         iswblank: Detect declaration correctly.
4837         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4838         AC_CHECK_DECLS invocation.
4839
4840 2011-08-08  Bruno Haible  <bruno@clisp.org>
4841
4842         tcgetsid: Detect declaration correctly.
4843         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4844         AC_CHECK_DECLS invocation.
4845         Reported by Simon Josefsson.
4846
4847 2011-08-08  Eric Blake  <eblake@redhat.com>
4848
4849         largefile: fix typo that regressed large file support
4850         * modules/largefile (configure.ac-early): Fix section name.
4851
4852 2011-08-06  Karl Berry  <karl@gnu.org>
4853
4854         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4855         a separate module.
4856
4857 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4858
4859         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4860         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4861         get prototype for free.
4862
4863 2011-08-04  Bruno Haible  <bruno@clisp.org>
4864
4865         Tests for module 'pathmax'.
4866         * modules/pathmax-tests: New file.
4867         * tests/test-pathmax.c: New file.
4868
4869         canonicalize-lgpl: Support larger filenames on the Hurd.
4870         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4871         Reported by Paul Eggert.
4872
4873         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4874         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4875         * lib/chdir-long.h: Include pathmax.h.
4876         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4877         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4878         (PATH_MAX): Remove code that is done by pathmax.h.
4879         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4880         * lib/tmpfile.c: Add a comment.
4881         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4882         * modules/chdir-long (Depends-on): Add pathmax.
4883         * modules/getcwd (Depends-on): Add pathmax.
4884         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4885         is not defined.
4886         * doc/posix-headers/limits.texi: Mention the pathmax module.
4887         * NEWS: Mention the change.
4888
4889 2011-08-02  Bruno Haible  <bruno@clisp.org>
4890
4891         pthread_sigmask: Actually use results of gl_THREADLIB.
4892         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4893         gl_THREADLIB, not gl_[]THREADLIB.
4894         Reported by Eric Blake.
4895
4896 2011-08-02  Jim Meyering  <meyering@redhat.com>
4897
4898         maint.mk: relax the default _gl_TS_function_match regexp
4899         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4900         space between function name and "(" in an "extern" declaration.
4901         That would fail to match a decl with no space there: extern void foo();
4902
4903 2011-07-31  Iain Nicol  <iain@thenicols.net>
4904
4905         git-version-gen: document that EXTRA_DIST must include .version
4906         * build-aux/git-version-gen: In the how-to-use comment, document
4907         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4908         will fail when run from an unpacked distribution tarball.
4909
4910 2011-08-01  Bruno Haible  <bruno@clisp.org>
4911
4912         wctype-h: Fix last change.
4913         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4914         REPLACE_TOWLOWER to 0.
4915         Reported by Sam Steingold <sds@gnu.org>.
4916
4917 2011-07-31  Bruno Haible  <bruno@clisp.org>
4918
4919         frexpl: Update autoconf test.
4920         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4921         according to changes of 2011-06-20.
4922
4923 2011-07-31  Bruno Haible  <bruno@clisp.org>
4924
4925         sys_utsname: Add support for Minix.
4926         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4927         <sys/utsname.h>.
4928         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4929         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4930
4931 2011-07-31  Bruno Haible  <bruno@clisp.org>
4932
4933         strings: Add support for Minix.
4934         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4935         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4936         * doc/posix-headers/strings.texi: Document the Minix problem.
4937
4938 2011-07-31  Bruno Haible  <bruno@clisp.org>
4939
4940         wctype-h: Add support for Minix.
4941         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4942         REPLACE_TOWLOWER.
4943         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4944         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4945         REPLACE_ISWCNTRL.
4946
4947 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4948
4949         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4950         This is a performance improvement for 64-bit hosts: it causes the
4951         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4952
4953 2011-07-31  Bruno Haible  <bruno@clisp.org>
4954
4955         stdioext: Add support for Minix.
4956         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4957         * lib/fpurge.c (fpurge): Likewise.
4958         * lib/freadahead.c (freadahead): Likewise.
4959         * lib/freadable.c (freadable): Likewise.
4960         * lib/freading.c (freading): Likewise.
4961         * lib/freadptr.c (freadptr): Likewise.
4962         * lib/freadseek.c (freadptrinc): Likewise.
4963         * lib/fseeko.c (rpl_fseeko): Likewise.
4964         * lib/fseterr.c (fseterr): Likewise.
4965         * lib/fwritable.c (fwritable): Likewise.
4966         * lib/fwriting.c (fwriting): Likewise.
4967         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4968         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4969
4970 2011-07-31  Bruno Haible  <bruno@clisp.org>
4971
4972         errno: Port to Minix.
4973         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4974         ECONNABORTED are defined.
4975         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4976         GNULIB_defined_ECONNABORTED): New macros.
4977         * lib/strerror-override.h (strerror_override): Test also
4978         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4979         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4980         ECONNABORTED.
4981         * doc/posix-headers/errno.texi: Mention the Minix problem.
4982
4983 2011-07-31  Bruno Haible  <bruno@clisp.org>
4984
4985         Work around declaration collisions on Minix.
4986         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4987         defined, set REPLACE_MBSINIT.
4988         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4989         defined, set REPLACE_MBRTOWC.
4990         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4991         set REPLACE_MBRLEN.
4992         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4993         defined, set REPLACE_MBSRTOWCS.
4994         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4995         defined, set REPLACE_WCRTOMB.
4996         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4997         defined, set REPLACE_WCSRTOMBS.
4998
4999 2011-07-31  Bruno Haible  <bruno@clisp.org>
5000
5001         Add support for Minix with ACK compiler.
5002         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5003         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5004         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5005
5006 2011-07-31  Bruno Haible  <bruno@clisp.org>
5007
5008         Documentation about Minix.
5009         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5010         * doc/glibc-headers/*.texi: Likewise.
5011         * doc/posix-functions/*.texi: Likewise.
5012         * doc/glibc-functions/*.texi: Likewise.
5013
5014 2011-07-31  Bruno Haible  <bruno@clisp.org>
5015
5016         snippet/warn-on-use: Fix indentation.
5017         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5018
5019 2011-07-25  Jim Meyering  <meyering@redhat.com>
5020
5021         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5022         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5023         commands.
5024
5025 2011-07-27  Jim Meyering  <meyering@redhat.com>
5026
5027         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5028         * top/maint.mk (gl_extract_significant_defines_): Now that
5029         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5030         gnulib/lib/signal.in.h, and now that we recommend to
5031         define-if-undefined those two symbols in application code,
5032         we must filter them out of the "significant" list.
5033         This avoids a "make syntax-check" failure in coreutils.
5034
5035 2011-07-26  Eric Blake  <eblake@redhat.com>
5036
5037         warnings: add comments about previous patch
5038         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5039         * m4/include_next.m4: Likewise.
5040         * m4/warn-on-use.m4: Likewise.
5041         * m4/warnings.m4: Likewise, and simplify use.
5042         Suggested by Stefano Lattarini.
5043
5044         include-next, warnings: support older autoconf
5045         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5046         AS_VAR_PUSHDEF in a way that works with older autoconf.
5047         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5048         Reported by Daniel P. Berrange.
5049
5050 2011-07-25  Bruno Haible  <bruno@clisp.org>
5051
5052         fseek, ftell: Fix doc.
5053         * doc/posix-functions/fseek.texi: Reword statement about
5054         AC_SYS_LARGEFILE.
5055         * doc/posix-functions/ftell.texi: Likewise.
5056
5057 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5058             Bruno Haible  <bruno@clisp.org>
5059
5060         Add dependencies to the 'largefile' module.
5061         * modules/fopen (Depends-on): Add 'largefile'.
5062         * modules/freopen (Depends-on): Likewise.
5063         * modules/fseeko (Depends-on): Likewise.
5064         * modules/ftello (Depends-on): Likewise.
5065         * modules/glob (Depends-on): Likewise.
5066         * modules/lseek (Depends-on): Likewise.
5067         * modules/lstat (Depends-on): Likewise.
5068         * modules/mkostemp (Depends-on): Likewise.
5069         * modules/mkostemps (Depends-on): Likewise.
5070         * modules/mkstemp (Depends-on): Likewise.
5071         * modules/mkstemps (Depends-on): Likewise.
5072         * modules/open (Depends-on): Likewise.
5073         * modules/openat (Depends-on): Likewise.
5074         * modules/pread (Depends-on): Likewise.
5075         * modules/pwrite (Depends-on): Likewise.
5076         * modules/scandir (Depends-on): Likewise.
5077         * modules/stat (Depends-on): Likewise.
5078         * modules/tmpfile (Depends-on): Likewise.
5079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5080         since the containing module now depends on the largefile module.
5081         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5082         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5083         off_t is fixed by gnulib.
5084         * doc/posix-functions/freopen.texi: Likewise.
5085         * doc/posix-functions/fseeko.texi: Likewise.
5086         * doc/posix-functions/fstatat.texi: Likewise.
5087         * doc/posix-functions/ftello.texi: Likewise.
5088         * doc/posix-functions/glob.texi: Likewise.
5089         * doc/posix-functions/lseek.texi: Likewise.
5090         * doc/posix-functions/lstat.texi: Likewise.
5091         * doc/posix-functions/mkstemp.texi: Likewise.
5092         * doc/posix-functions/open.texi: Likewise.
5093         * doc/posix-functions/openat.texi: Likewise.
5094         * doc/posix-functions/pread.texi: Likewise.
5095         * doc/posix-functions/pwrite.texi: Likewise.
5096         * doc/posix-functions/scandir.texi: Likewise.
5097         * doc/posix-functions/stat.texi: Likewise.
5098         * doc/posix-functions/tmpfile.texi: Likewise.
5099         * doc/glibc-functions/mkostemp.texi: Likewise.
5100         * doc/glibc-functions/mkostemps.texi: Likewise.
5101         * doc/glibc-functions/mkstemps.texi: Likewise.
5102
5103 2011-07-25  Bruno Haible  <bruno@clisp.org>
5104
5105         fcntl: Move AC_LIBOBJ invocation to module description.
5106         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5107         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5108
5109         fcntl: Remove call-in from fchdir.m4.
5110         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5112
5113         dup3: Remove potential call-in from fchdir.m4.
5114         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5116
5117         dup2: Move AC_LIBOBJ invocation to module description.
5118         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5119         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5120         Don't invoke AC_LIBOBJ.
5121         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5122
5123         dup2: Remove call-in from fchdir.m4.
5124         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5126
5127         fclose: Move AC_LIBOBJ invocation to module description.
5128         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5129         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5130         to 1.
5131         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5132
5133         fclose: Remove call-in from close.m4.
5134         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5135         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5136
5137         close: Move AC_LIBOBJ invocation to module description.
5138         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5139         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5140         1.
5141         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5142
5143         close: Remove call-in from fchdir.m4.
5144         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5146
5147         open: Move AC_LIBOBJ invocation to module description.
5148         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5149         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5150         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5151
5152         open: Remove call-in from fchdir.m4.
5153         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5155
5156         fchdir: Start to remove gl_REPLACE_* idiom.
5157         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5158         (gl_FUNC_FCHDIR): Invoke it.
5159
5160 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5161
5162         * lib/ftell.c (ftell): Comment out cast.
5163
5164         close: use gl_REPLACE_FCLOSE only if defined
5165         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5166         is defined.  The close module doesn't depend on the fclose module
5167         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5169         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5170
5171 2011-07-24  Jim Meyering  <meyering@redhat.com>
5172
5173         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5174         * tests/test-select.h (test_function): Declare as "static".
5175
5176 2011-07-24  Bruno Haible  <bruno@clisp.org>
5177
5178         doc: Mention the effects of AC_SYS_LARGEFILE.
5179         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5180         on this function.
5181         * doc/posix-functions/aio_error.texi: Likewise.
5182         * doc/posix-functions/aio_fsync.texi: Likewise.
5183         * doc/posix-functions/aio_read.texi: Likewise.
5184         * doc/posix-functions/aio_return.texi: Likewise.
5185         * doc/posix-functions/aio_suspend.texi: Likewise.
5186         * doc/posix-functions/aio_write.texi: Likewise.
5187         * doc/posix-functions/fgetpos.texi: Likewise.
5188         * doc/posix-functions/fopen.texi: Likewise.
5189         * doc/posix-functions/freopen.texi: Likewise.
5190         * doc/posix-functions/fsetpos.texi: Likewise.
5191         * doc/posix-functions/fstatvfs.texi: Likewise.
5192         * doc/posix-functions/ftruncate.texi: Likewise.
5193         * doc/posix-functions/ftw.texi: Likewise.
5194         * doc/posix-functions/getrlimit.texi: Likewise.
5195         * doc/posix-functions/glob.texi: Likewise.
5196         * doc/posix-functions/lio_listio.texi: Likewise.
5197         * doc/posix-functions/lockf.texi: Likewise.
5198         * doc/posix-functions/mkstemp.texi: Likewise.
5199         * doc/posix-functions/mmap.texi: Likewise.
5200         * doc/posix-functions/nftw.texi: Likewise.
5201         * doc/posix-functions/openat.texi: Likewise.
5202         * doc/posix-functions/opendir.texi: Likewise.
5203         * doc/posix-functions/posix_fadvise.texi: Likewise.
5204         * doc/posix-functions/posix_fallocate.texi: Likewise.
5205         * doc/posix-functions/pread.texi: Likewise.
5206         * doc/posix-functions/pwrite.texi: Likewise.
5207         * doc/posix-functions/readdir.texi: Likewise.
5208         * doc/posix-functions/readdir_r.texi: Likewise.
5209         * doc/posix-functions/rewinddir.texi: Likewise.
5210         * doc/posix-functions/scandir.texi: Likewise.
5211         * doc/posix-functions/seekdir.texi: Likewise.
5212         * doc/posix-functions/setrlimit.texi: Likewise.
5213         * doc/posix-functions/statvfs.texi: Likewise.
5214         * doc/posix-functions/telldir.texi: Likewise.
5215         * doc/posix-functions/tmpfile.texi: Likewise.
5216         * doc/posix-functions/truncate.texi: Likewise.
5217         * doc/glibc-functions/fallocate.texi: Likewise.
5218         * doc/glibc-functions/fstatfs.texi: Likewise.
5219         * doc/glibc-functions/fts_children.texi: Likewise.
5220         * doc/glibc-functions/fts_read.texi: Likewise.
5221         * doc/glibc-functions/getdirentries.texi: Likewise.
5222         * doc/glibc-functions/mkostemp.texi: Likewise.
5223         * doc/glibc-functions/mkostemps.texi: Likewise.
5224         * doc/glibc-functions/mkstemps.texi: Likewise.
5225         * doc/glibc-functions/preadv.texi: Likewise.
5226         * doc/glibc-functions/pwritev.texi: Likewise.
5227         * doc/glibc-functions/sendfile.texi: Likewise.
5228         * doc/glibc-functions/statfs.texi: Likewise.
5229
5230 2011-07-24  Bruno Haible  <bruno@clisp.org>
5231
5232         doc: Fix typo.
5233         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5234
5235 2011-07-24  Bruno Haible  <bruno@clisp.org>
5236
5237         doc: Mention fsusage.
5238         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5239
5240 2011-07-24  Bruno Haible  <bruno@clisp.org>
5241
5242         doc: Mention new glibc headers and functions.
5243         * doc/glibc-headers/gshadow.texi: New file.
5244         * doc/glibc-functions/endsgent.texi: New file.
5245         * doc/glibc-functions/fgetsgent.texi: New file.
5246         * doc/glibc-functions/fgetsgent_r.texi: New file.
5247         * doc/glibc-functions/getsgent.texi: New file.
5248         * doc/glibc-functions/getsgent_r.texi: New file.
5249         * doc/glibc-functions/getsgnam.texi: New file.
5250         * doc/glibc-functions/getsgnam_r.texi: New file.
5251         * doc/glibc-functions/putsgent.texi: New file.
5252         * doc/glibc-functions/setsgent.texi: New file.
5253         * doc/glibc-functions/sgetsgent.texi: New file.
5254         * doc/glibc-functions/sgetsgent_r.texi: New file.
5255         * doc/glibc-functions/malloc_info.texi: New file.
5256         * doc/glibc-functions/preadv.texi: New file.
5257         * doc/glibc-functions/pwritev.texi: New file.
5258         * doc/glibc-functions/register_printf_modifier.texi: New file.
5259         * doc/glibc-functions/register_printf_specifier.texi: New file.
5260         * doc/glibc-functions/register_printf_type.texi: New file.
5261         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5262         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5263         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5264         * doc/glibc-functions/pthread_getname_np.texi: New file.
5265         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5266         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5267         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5268         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5269         * doc/glibc-functions/pthread_setname_np.texi: New file.
5270         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5271         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5272         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5273         * doc/glibc-functions/qsort_r.texi: New file.
5274         * doc/glibc-functions/quick_exit.texi: New file.
5275         * doc/glibc-functions/syncfs.texi: New file.
5276         * doc/gnulib.texi: Include them.
5277         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5278         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5279         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5280         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5281         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5282         * doc/glibc-functions/execvpe.texi: Likewise.
5283
5284 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5285
5286         ftell: don't include <unistd.h>
5287         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5288         guaranteed to define off_t, and the ftell module depends on the
5289         stdio module.
5290
5291         ftell: do not assume wraparound signed arithmetic
5292         * lib/ftell.c: Include <limits.h>.
5293         (ftell): Don't assume wraparound signed arithmetic.
5294
5295 2011-07-24  Bruno Haible  <bruno@clisp.org>
5296
5297         close: No longer depend on module 'fclose'.
5298         * modules/close (Depends-on): Remove fclose.
5299         * NEWS: Mention the change.
5300         Suggested by Sam Steingold <sds@gnu.org>.
5301
5302 2011-07-24  Bruno Haible  <bruno@clisp.org>
5303
5304         fsusage: Enable large volume support on AIX >= 5.2.
5305         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5306         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5307         instead of STAT_STATVFS.
5308         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5309
5310         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5312         f_blocks field only on MacOS X.
5313
5314         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5315         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5316         * modules/fsusage (Depends-on): Add largefile.
5317
5318 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5319
5320         * README: Modernize discussion of signed integers.
5321         Assuming overflow wraparound is no longer safe.
5322         Mention ones' complement and signed magnitude.
5323
5324 2011-07-22  Bruno Haible  <bruno@clisp.org>
5325
5326         select tests, pselect tests: Refactor.
5327         * tests/test-select.h: New file, extracted from tests/test-select.c.
5328         (select_fn): New type.
5329         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5330         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5331         test_pipe): Add my_select argument.
5332         (test_function): Renamed from main. Add my_select argument.
5333         * tests/test-select.c: Move most code to tests/test-select.h. Include
5334         test-select.h.
5335         * modules/select-tests (Files): Add tests/test-select.h.
5336         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5337         (my_select, main): New functions.
5338         * modules/pselect-tests (Files): Add tests/test-select.h,
5339         tests/macros.h, tests/signature.h.
5340         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5341         (configure.ac): Check for <sys/wait.h>.
5342
5343 2011-07-22  Bruno Haible  <bruno@clisp.org>
5344
5345         sys_select tests: Check the signature of FD_*.
5346         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5347         signature tests from here...
5348         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5349         here.
5350         * modules/sys_select-tests (Files): Add tests/signature.h.
5351
5352 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5353
5354         largefile: new module, replacing large-inode
5355         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5356         * MODULES.html.sh: Add largefile, remove large-inode.
5357         * modules/largefile, m4/largefile.m4: New files.
5358         * modules/large-inode, m4/large-inode.m4: Remove.
5359
5360         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5362         implementations that use only 32 bits to count blocks.
5363         On typical hosts with 1024-byte blocks, this fails with file
5364         systems as small as 4 TiB.  Problem reported by Herb Wartens
5365         <http://debbugs.gnu.org/9140> and this should also fix a similar
5366         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5367
5368         large-inode: New module
5369         * MODULES.html.sh: Add it.
5370         * modules/large-inode, m4/large-inode.m4: New files.
5371
5372         extensions: Enable extensions on MacOS X 10.5 and later.
5373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5374
5375 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5376
5377         file-has-acl: use acl_extended_file_nofollow if available
5378         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5379         (acl_extended_file): New macro.
5380         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5381         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5382
5383 2011-07-21  Bruno Haible  <bruno@clisp.org>
5384
5385         Declare system functions in a way that works with C++.
5386         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5387         declare fdopendir as extern "C".
5388         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5389         declare frexpl as extern "C".
5390         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5391         declare gai_strerror as extern "C".
5392         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5393         programs, declare gai_strerror as extern "C".
5394         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5395         declare getlogin_r as extern "C".
5396         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5397         as extern "C".
5398         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5399         declare ldexpl as extern "C".
5400         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5401         as extern "C".
5402         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5403         program, declare getmntinfo as extern "C".
5404         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5405         stpncpy as extern "C".
5406         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5407         program, declare __xpg_strerror_r as extern "C".
5408         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5409         strndup as extern "C".
5410         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5411         declare memset and bzero as extern "C".
5412         Reported by Sam Steingold <sds@gnu.org>.
5413
5414 2011-07-12  Jim Meyering  <meyering@redhat.com>
5415
5416         maint.mk: prohibit inclusion of "verify.h" without use
5417         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5418
5419 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5420
5421         timer-time: A new module to check for timer_settime()
5422         * m4/timer_time.m4: Check for the posix function.
5423         * modules/timer-time: Add the new module.
5424         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5425         Mention it.
5426
5427 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5428             Bruno Haible  <bruno@clisp.org>
5429
5430         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5431         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5432         not defined, assume POSIX threads and look for pthread_sigmask in
5433         $LIBS, without changing $CPPFLAGS.
5434
5435 2011-07-19  Bruno Haible  <bruno@clisp.org>
5436
5437         strstr: Update cross-compilation guess.
5438         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5439         CPUs, guess no, in view of glibc
5440         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5441         Suggested by Eric Blake. Reported by Reuben Thomas.
5442
5443 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5444
5445         getopt-gnu: suppress core dumps from detection code
5446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5447         to suppress core dumps that may well occur on glibc systems.
5448         * modules/getopt-gnu: Depend on nocrash.
5449
5450 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5451
5452         pthread_sigmask: ensure usleep is declared
5453         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5454         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5455
5456 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5457
5458         doc: Document NonStop portability issues.
5459         * doc/posix-functions/sigaction.texi (sigaction):
5460         * doc/posix-headers/signal.texi (signal.h):
5461         Document NonStop.  See Joachim Schmitz in
5462         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5463
5464 2011-07-15  Bruno Haible  <bruno@clisp.org>
5465
5466         ffsl, ffsll: Avoid unportable behaviour.
5467         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5468
5469 2011-07-15  Bruno Haible  <bruno@clisp.org>
5470
5471         ffs: More tests.
5472         * tests/test-ffs.c (NBITS): New macro.
5473         (main): Add more tests.
5474         * tests/test-ffsl.c (NBITS): New macro.
5475         (main): Add more tests.
5476         * tests/test-ffsll.c (NBITS): New macro.
5477         (main): Add more tests.
5478
5479 2011-07-15  Eric Blake  <eblake@redhat.com>
5480
5481         ffsl, ffsll: new modules
5482         * modules/ffsl: New file.
5483         * modules/ffsll: Likewise.
5484         * m4/ffsl.m4: Likewise.
5485         * m4/ffsll.m4: Likewise.
5486         * lib/ffsl.c: Likewise.
5487         * lib/ffsl.h: Likewise.
5488         * lib/ffsll.c: Likewise.
5489         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5490         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5491         * modules/string (Makefile.am): Substitute witnesses.
5492         * lib/strings.in.h (ffsl, ffsll): Declare.
5493         * modules/ffsl-tests: New test file.
5494         * modules/ffsll-tests: Likewise.
5495         * tests/test-ffsl.c: Likewise.
5496         * tests/test-ffsll.c: Likewise.
5497         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5498         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5499         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5500
5501         ffs: fix m4 prerequisite
5502         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5503
5504         ffs: avoid undefined behavior
5505         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5506         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5507         Reported by Bruno Haible.
5508
5509 2011-07-12  Bruno Haible  <bruno@clisp.org>
5510
5511         pthread_sigmask: Rely on module 'threadlib'.
5512         * modules/pthread_sigmask (Depends-on): Add threadlib.
5513         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5514         is defined.
5515
5516 2011-07-12  Bruno Haible  <bruno@clisp.org>
5517
5518         regex: Depend on module 'strcase'.
5519         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5520
5521 2011-07-12  Jim Meyering  <meyering@redhat.com>
5522
5523         warn-on-use: fix typo in file name
5524         * modules/snippet/warn-on-use (Files): Correct file name:
5525         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5526
5527 2011-07-12  Bruno Haible  <bruno@clisp.org>
5528
5529         strings: Document module.
5530         * doc/posix-headers/strings.texi: Mention module 'strings'.
5531
5532 2011-07-12  Bruno Haible  <bruno@clisp.org>
5533
5534         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5535         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5536         (Files, Makefile.am): Update.
5537         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5538         * modules/stdlib (Depends-on): Update.
5539
5540 2011-07-12  Bruno Haible  <bruno@clisp.org>
5541
5542         * NEWS: Mention the changes.
5543
5544         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5545         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5546         (Files, Makefile.am): Update.
5547         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5548         * modules/arpa_inet (Depends-on): Update.
5549         * modules/ctype (Depends-on): Update.
5550         * modules/dirent (Depends-on): Update.
5551         * modules/fcntl-h (Depends-on): Update.
5552         * modules/glob (Depends-on): Update.
5553         * modules/iconv-h (Depends-on): Update.
5554         * modules/inttypes-incomplete (Depends-on): Update.
5555         * modules/langinfo (Depends-on): Update.
5556         * modules/locale (Depends-on): Update.
5557         * modules/math (Depends-on): Update.
5558         * modules/netdb (Depends-on): Update.
5559         * modules/poll-h (Depends-on): Update.
5560         * modules/pty (Depends-on): Update.
5561         * modules/search (Depends-on): Update.
5562         * modules/signal (Depends-on): Update.
5563         * modules/spawn (Depends-on): Update.
5564         * modules/stdio (Depends-on): Update.
5565         * modules/stdlib (Depends-on): Update.
5566         * modules/string (Depends-on): Update.
5567         * modules/strings (Depends-on): Update.
5568         * modules/sys_file (Depends-on): Update.
5569         * modules/sys_ioctl (Depends-on): Update.
5570         * modules/sys_select (Depends-on): Update.
5571         * modules/sys_socket (Depends-on): Update.
5572         * modules/sys_stat (Depends-on): Update.
5573         * modules/sys_time (Depends-on): Update.
5574         * modules/sys_times (Depends-on): Update.
5575         * modules/sys_utsname (Depends-on): Update.
5576         * modules/sys_wait (Depends-on): Update.
5577         * modules/termios (Depends-on): Update.
5578         * modules/time (Depends-on): Update.
5579         * modules/unistd (Depends-on): Update.
5580         * modules/wchar (Depends-on): Update.
5581         * modules/wctype-h (Depends-on): Update.
5582         * MODULES.html.sh (Support for building libraries and executables):
5583         Update.
5584
5585         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5586         * modules/snippet/unused-parameter: Renamed from
5587         modules/unused-parameter.
5588         (Files, Makefile.am): Update.
5589         * build-aux/snippet/unused-parameter.h: Renamed from
5590         build-aux/unused-parameter.h.
5591         * modules/selinux-h (Depends-on): Update.
5592         * modules/unistr/base (Depends-on): Update.
5593         * MODULES.html.sh (Core language properties): Update.
5594
5595         Rename module 'link-warning' to 'snippet/link-warning'.
5596         * modules/snippet/link-warning: Renamed from modules/link-warning.
5597         (Files, Makefile.am): Update.
5598         * build-aux/snippet/link-warning.h: Renamed from
5599         build-aux/link-warning.h.
5600         * MODULES.html.sh (Support for building libraries and executables):
5601         Update.
5602
5603         Rename module 'c++defs' to 'snippet/c++defs'.
5604         * modules/snippet/c++defs: Renamed from modules/c++defs.
5605         (Files, Makefile.am): Update.
5606         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5607         * modules/arpa_inet (Depends-on): Update.
5608         * modules/ctype (Depends-on): Update.
5609         * modules/dirent (Depends-on): Update.
5610         * modules/fcntl-h (Depends-on): Update.
5611         * modules/glob (Depends-on): Update.
5612         * modules/iconv-h (Depends-on): Update.
5613         * modules/langinfo (Depends-on): Update.
5614         * modules/locale (Depends-on): Update.
5615         * modules/math (Depends-on): Update.
5616         * modules/netdb (Depends-on): Update.
5617         * modules/poll-h (Depends-on): Update.
5618         * modules/pty (Depends-on): Update.
5619         * modules/search (Depends-on): Update.
5620         * modules/signal (Depends-on): Update.
5621         * modules/spawn (Depends-on): Update.
5622         * modules/stdio (Depends-on): Update.
5623         * modules/stdlib (Depends-on): Update.
5624         * modules/string (Depends-on): Update.
5625         * modules/strings (Depends-on): Update.
5626         * modules/sys_ioctl (Depends-on): Update.
5627         * modules/sys_select (Depends-on): Update.
5628         * modules/sys_socket (Depends-on): Update.
5629         * modules/sys_stat (Depends-on): Update.
5630         * modules/sys_time (Depends-on): Update.
5631         * modules/sys_wait (Depends-on): Update.
5632         * modules/termios (Depends-on): Update.
5633         * modules/time (Depends-on): Update.
5634         * modules/unistd (Depends-on): Update.
5635         * modules/wchar (Depends-on): Update.
5636         * modules/wctype-h (Depends-on): Update.
5637
5638         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5639         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5640         (Files, Makefile.am): Update.
5641         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5642         * modules/argv-iter (Depends-on): Update.
5643         * modules/arpa_inet (Depends-on): Update.
5644         * modules/dirent (Depends-on): Update.
5645         * modules/fcntl-h (Depends-on): Update.
5646         * modules/fnmatch (Depends-on): Update.
5647         * modules/getopt-posix (Depends-on): Update.
5648         * modules/glob (Depends-on): Update.
5649         * modules/iconv-h (Depends-on): Update.
5650         * modules/inttypes-incomplete (Depends-on): Update.
5651         * modules/locale (Depends-on): Update.
5652         * modules/math (Depends-on): Update.
5653         * modules/netdb (Depends-on): Update.
5654         * modules/search (Depends-on): Update.
5655         * modules/signal (Depends-on): Update.
5656         * modules/spawn (Depends-on): Update.
5657         * modules/stdio (Depends-on): Update.
5658         * modules/stdlib (Depends-on): Update.
5659         * modules/string (Depends-on): Update.
5660         * modules/strings (Depends-on): Update.
5661         * modules/sys_socket (Depends-on): Update.
5662         * modules/sys_stat (Depends-on): Update.
5663         * modules/sys_time (Depends-on): Update.
5664         * modules/sys_times (Depends-on): Update.
5665         * modules/sys_utsname (Depends-on): Update.
5666         * modules/time (Depends-on): Update.
5667         * modules/unistd (Depends-on): Update.
5668         * modules/wchar (Depends-on): Update.
5669         * MODULES.html.sh (Support for building libraries and executables):
5670         Update.
5671
5672 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5673
5674         Improvements on _Noreturn and related modules.
5675
5676         modules/_Exit-tests: test _Noreturn too
5677         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5678         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5679         (main): Use them.
5680
5681         stdnoreturn, stdnoreturn-tests: remove modules
5682         They're not needed here and a bit premature for use elsewhere.  See
5683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5684         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5685         * tests/test-stdnoreturn.c: Remove files.
5686         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5687         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5688         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5689         and using noreturn.
5690         * modules/openat, modules/sigpipe-die, modules/xalloc:
5691         * modules/xmemdup0, modules/xstrtol:
5692         Remove dependency on stdnoreturn.
5693
5694         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5695         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5696         Reparenthesize to avoid GCC warning.
5697         Support Microsoft's syntax.
5698         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5699
5700         _Noreturn-tests: remove module
5701         * modules/_Noreturn-tests: Remove.
5702         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5703         * tests/test-_Noreturn.c: Remove.
5704         * tests/test-stdnoreturn.c: Merge from the old
5705         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5706
5707 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         _Noreturn, stdnoreturn, and related modules.
5710
5711         * top/maint.mk: Adjust to new noreturn support.
5712         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5713         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5714
5715         xalloc: use stdnoreturn.h
5716         * lib/xalloc.h: Include <stdnoreturn.h>.
5717         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5718         * modules/xalloc (Depends-on): Add stdnoreturn.
5719
5720         xstrtol: use stdnoreturn.h
5721         * lib/xstrtol.h: Include <stdnoreturn.h>.
5722         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5723         * modules/xstrtol (Depends-on): Add stdnoreturn.
5724
5725         xmemdup0: use stdnoreturn.h
5726         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5727         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5728         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5729
5730         sigpipe-die: use stdnoreturn.h
5731         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5732         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5733         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5734
5735         openat: use stdnoreturn.h
5736         * lib/openat.h: Include <stdnoreturn.h>.
5737         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5738         * modules/openat (Depends-on): Add stdnoreturn.
5739
5740         * lib/openat-die.c (openat_save_fail): Modernize comment.
5741
5742         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5743
5744         * lib/glthread/thread.h: Modernize comment.
5745
5746         obstack: use _Noreturn
5747         * lib/obstack.c (__attribute__): Remove macro.
5748         (print_and_abort): Use _Noreturn.
5749
5750         c-stack: use _Noreturn
5751         * lib/c-stack.c (die, overflow_handler, segv_handler):
5752         Use _Noreturn rather than __attribute__((noreturn)).
5753
5754         argmatch-tests, exclude_tests: use _Noreturn
5755         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5756         Remove.
5757         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5758
5759         stdlib: use _Noreturn
5760         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5761         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5762         * modules/stdlib (Depends-on): Add _Noreturn.
5763         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5764
5765         stdnoreturn-tests: new module
5766         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5767
5768         stdnoreturn: new module
5769         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5770         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5771
5772         _Noreturn-tests: new module
5773         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5774
5775         _Noreturn: new module
5776         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5777         New section, mentioning it.
5778         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5779
5780         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5781
5782 2011-07-11  Eric Blake  <eblake@redhat.com>
5783
5784         ffs: new module
5785         * modules/ffs: New file.
5786         * m4/ffs.m4: Likewise.
5787         * lib/ffs.c: Likewise.
5788         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5789         * modules/strings (Makefile.am): Substitute witness.
5790         (Depends-on): Add c++defs.
5791         * lib/strings.in.h (ffs): Declare.
5792         * modules/ffs-tests: New test file.
5793         * tests/test-ffs.c: Test new module.
5794         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5795         * doc/posix-functions/ffs.texi (ffs): Likewise.
5796
5797         regex: avoid compiler warning
5798         * lib/regex.c (includes): Include <strings.h>, for use of
5799         strcasecmp in regcomp.c.
5800         Reported by Joachim Schmitz.
5801
5802 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5803
5804         stdint: respect system's intmax_t if INTMAX_MAX
5805         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5806         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5807         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5808         long but int64_t is long long, and where we will clash with the
5809         system intmax_t if we override it.  See
5810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5811         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5812         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5813         similarly for UINTMAX_C.
5814
5815 2011-07-08  Bruno Haible  <bruno@clisp.org>
5816
5817         pthread_sigmask tests: Avoid a compiler warning.
5818         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5819         non-zero.
5820
5821         sigprocmask tests: A better way to avoid a compiler warning.
5822         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5823         (main): Complain if system() returns non-zero.
5824         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5825
5826 2011-07-08  Bruno Haible  <bruno@clisp.org>
5827
5828         pthread_sigmask: Work around IRIX bug.
5829         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5830         bug.
5831         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5832         there may be unblocked pending signals.
5833         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5834
5835 2011-07-08  Bruno Haible  <bruno@clisp.org>
5836
5837         pthread_sigmask: Work around Cygwin bug.
5838         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5839         bug.
5840         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5841         the system's pthread_sigmask function.
5842         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5843
5844 2011-07-08  Bruno Haible  <bruno@clisp.org>
5845
5846         pthread_sigmask: Work around bug in single-threaded implementation.
5847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5848         FreeBSD, HP-UX, Solaris bug.
5849         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5850         * lib/pthread_sigmask.c: Include <stddef.h>.
5851         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5852         the system's pthread_sigmask function.
5853         * modules/pthread_sigmask (configure.ac): Invoke
5854         gl_PREREQ_PTHREAD_SIGMASK.
5855         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5856         HP-UX, Solaris.
5857
5858 2011-07-08  Eric Blake  <eblake@redhat.com>
5859
5860         test-sigprocmask: avoid compiler warning
5861         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5862         * tests/test-sigprocmask.c (main): Use it to silence warning.
5863         Reported by Jim Meyering.
5864
5865         test-snprintf: avoid compiler warning
5866         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5867         * tests/test-vsnprintf.c (main): Likewise.
5868         Reported by Jim Meyering.
5869
5870 2011-07-08  Bruno Haible  <bruno@clisp.org>
5871
5872         Tests for module 'pthread_sigmask'.
5873         * modules/pthread_sigmask-tests: New file.
5874         * tests/test-pthread_sigmask1.c: New file, based on
5875         tests/test-sigprocmask.c.
5876         * tests/test-pthread_sigmask2.c: New file.
5877
5878 2011-07-08  Jim Meyering  <meyering@redhat.com>
5879
5880         test-getopt.h: avoid warning about an unused variable
5881         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5882
5883 2011-07-07  Jim Meyering  <meyering@redhat.com>
5884
5885         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5886         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5887         now that it no longer contains leading TABs.
5888         Remove unused "url=FIXME" statement.
5889
5890 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5891
5892         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5893         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5894         When gl_THREADLIB is not in use, assume that the POSIX sematics
5895         are desired.  This is better for Emacs, which uses POSIX semantics
5896         on GNUish and/or POSIXish platforms, and does not use threads at
5897         all otherwise.
5898
5899         pthread_sigmask: fix typo when testing for libraries
5900         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5901         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5902
5903 2011-07-08  Eric Blake  <eblake@redhat.com>
5904
5905         fts: introduce FTS_NOATIME
5906         * lib/fts_.h (FTS_NOATIME): New bit flag.
5907         (FTS_OPTIONMASK): Adjust.
5908         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5909         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5910
5911 2011-07-08  Bruno Haible  <bruno@clisp.org>
5912
5913         Tests for module 'thread'.
5914         * modules/thread-tests: New file.
5915         * tests/test-thread_self.c: New file.
5916         * tests/test-thread_create.cc: New file.
5917
5918 2011-07-08  Bruno Haible  <bruno@clisp.org>
5919
5920         thread: Avoid gcc warnings when using gl_thread_self().
5921         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5922         'void *'.
5923         (gl_thread_self_pointer): Update.
5924
5925 2011-07-07  Bruno Haible  <bruno@clisp.org>
5926
5927         signal-c++-tests: Check declaration of pthread_sigmask.
5928         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5929         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5930         $(LIB_PTHREAD_SIGMASK).
5931
5932 2011-07-07  Bruno Haible  <bruno@clisp.org>
5933
5934         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5935         * lib/signal.in.h (pthread_sigmask): Override if
5936         REPLACE_PTHREAD_SIGMASK is 1.
5937         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5938         REPLACE_PTHREAD_SIGMASK.
5939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5940         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5941         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5942         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5943         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5944
5945 2011-07-07  Bruno Haible  <bruno@clisp.org>
5946
5947         pthread_sigmask: Ensure declaration in <signal.h>.
5948         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5949         include <pthread.h>.
5950         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5951         problem.
5952
5953 2011-07-07  Bruno Haible  <bruno@clisp.org>
5954
5955         pthread_sigmask: Document the module.
5956         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5957
5958 2011-07-07  Bruno Haible  <bruno@clisp.org>
5959
5960         pthread_sigmask: Follow gnulib conventions.
5961         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5962         gl_PTHREAD_SIGMASK.
5963         * modules/pthread_sigmask (configure.ac): Update.
5964
5965 2011-07-07  Bruno Haible  <bruno@clisp.org>
5966
5967         pthread_sigmask: Make declaration C++ safe.
5968         * lib/signal.in.h: In two special conditions, just do an #include_next.
5969         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5970         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5971         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5972         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5973         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5974         not REPLACE_PTHREAD_MASK.
5975         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5976         not REPLACE_PTHREAD_MASK.
5977         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5978
5979 2011-07-07  Bruno Haible  <bruno@clisp.org>
5980
5981         pthread_sigmask: Fix return value.
5982         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5983         * lib/pthread_sigmask.c: New file.
5984         * modules/pthread_sigmask (Files): Add it.
5985         (configure.ac): Invoke AC_LIBOBJ.
5986
5987 2011-07-07  Eric Blake  <eblake@redhat.com>
5988
5989         getopt: more portable argv creation
5990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5991         const, use char arrays rather than strings.
5992         Suggested by Paul Eggert.
5993
5994 2011-07-07  Bruno Haible  <bruno@clisp.org>
5995
5996         Tests for module 'sigprocmask'.
5997         * modules/sigprocmask-tests: New file.
5998         * tests/test-sigprocmask.c: New file.
5999
6000 2011-07-07  Bruno Haible  <bruno@clisp.org>
6001
6002         float tests: Tweak.
6003         * tests/test-float.c (main): Tweak skip message.
6004
6005 2011-07-07  Eric Blake  <eblake@redhat.com>
6006
6007         getopt: avoid compiler warning during configure
6008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6009         assigning string literals to non-const pointer.
6010
6011         getopt-gnu: avoid crash in glibc getopt
6012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6013         * tests/test-getopt.h (test_getopt): Enhance test.
6014         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6015         * doc/posix-functions/getopt.texi (getopt): Document it.
6016         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6017         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6018         Likewise.
6019
6020 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6021
6022         getopt: handle W; without long options in getopt [BZ #12922]
6023         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6024         but no long options are defined, just return 'W'.
6025
6026 2011-07-07  Bruno Haible  <bruno@clisp.org>
6027
6028         Avoid literal tabs.
6029         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6030         variable containing a tab instead of a literal tab.
6031         Reported by Jim Meyering.
6032
6033 2011-07-07  Bruno Haible  <bruno@clisp.org>
6034
6035         Comments.
6036         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6037
6038 2011-07-06  Bruno Haible  <bruno@clisp.org>
6039
6040         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6041         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6042         <winsock2.h>.
6043         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6044         lib/sys_socket.in.h.
6045         (close, gethostname): Hide declarations from <winsock2.h>.
6046         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6047         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6048         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6049         (select): Don't override if gnulib's <sys/select.h> was already
6050         included.
6051         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6052         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6053         setsockopt, shutdown, select): Tweak indentation.
6054
6055 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6056
6057         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6058         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6059         in an application that does not use the sys_select module.
6060
6061 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6062
6063         poll: do not return 0 on timeout=-1
6064         * lib/poll.c: Loop with yield if no events occured
6065
6066 2011-07-06  Eric Blake  <eblake@redhat.com>
6067
6068         pthread_sigmask: always replace when not using pthread
6069         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6070         replacement when using some threading other than pthread.  Fix
6071         logic bug.
6072
6073 2011-07-06  Bruno Haible  <bruno@clisp.org>
6074
6075         Comments.
6076         * m4/printf.m4: Update comments about mingw.
6077
6078 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6079
6080         sys_select: define sigset_t more portably
6081         * lib/sys_select.in.h: Always include <sys/types.h>, since
6082         we now need sigset_t and mingw defines it there.
6083         Include <signal.h> before split inclusion guard, to avoid
6084         mishaps on Solaris, whose <signal.h> eventually includes us.
6085         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6086         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6087         which come from ...
6088         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6089         gl_CHECK_TYPE_SIGSET_T.
6090         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6091         does the real work.
6092         * modules/sys_select (Depends-on): Add 'signal'.
6093
6094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6095         Suggested by Bruno Haible.
6096
6097         pselect: Use pthread_sigmask, not sigprocmask.
6098         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6099         multithreaded apps better than sigprocmask does.
6100         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6101         sigprocmask directly.
6102
6103 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6104
6105         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6106         Don't #undef,  since we don't need any underlying pselect.
6107         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6108         (Depends-on): Add select.
6109         (Link): Add $(LIBSOCKET).
6110         These changes suggested by Bruno Haible.
6111
6112         pselect: document better
6113         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6114         * doc/posix-functions/pselect.texi (pselect): Document new module.
6115
6116         pthread_sigmask: new module
6117         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6118         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6119         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6120         This is done only as a macro; I don't know how well that'll
6121         work for C++.  Move <sys/types.h> include before the include_next,
6122         to avoid mishap on Solaris.
6123         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6124         * modules/signal (Makefile.am): Substitute the check's results.
6125         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6126
6127         test-pselect: new module
6128         * modules/pselect-tests, tests/test-pselect.c: New files.
6129         * tests/test-select.c, tests/test-sys_select-c++.cc:
6130         If TEST_PSELECT is defined, test pselect instead of testing select.
6131
6132         * tests/test-sys_select.c (sigset_t): Test for it, too.
6133         Suggested by Bruno Haible.
6134
6135 2011-07-05  Eric Blake  <eblake@redhat.com>
6136
6137         snprintf: guarantee %1$d, for libintl
6138         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6139         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6140         * doc/posix-functions/snprintf.texi (snprintf): Update.
6141         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6142         * tests/test-snprintf.c (main): Enhance test.
6143         * tests/test-vsnprintf.c (main): Likewise.
6144
6145 2011-07-05  Jim Meyering  <meyering@redhat.com>
6146
6147         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6148         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6149         per Bruno's request, to accommodate this idiom (no space after "#")
6150         even when the function is inside an #if block:
6151         char *
6152         gets (char *s)
6153         #undef gets
6154         {
6155           ...
6156         }
6157
6158 2011-07-04  Jim Meyering  <meyering@redhat.com>
6159
6160         maint: indent with spaces, not TABs, and add a rule to check this
6161         * tests/test-userspec.c: Indent with spaces, not TABs.
6162         * tests/test-argp.c: Likewise.
6163         * tests/test-c-stack2.sh: Likewise.
6164         * tests/test-parse-duration.sh: Likewise
6165         * m4/strtod.m4: Likewise.
6166         * m4/alloca.m4: Likewise.
6167         * m4/pselect.m4: Likewise.
6168         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6169
6170 2011-07-03  Jim Meyering  <meyering@redhat.com>
6171
6172         maint.mk: correct omissions in prohibit_argmatch_without_use check
6173         This rule would mistakenly report that argmatch.h is included without
6174         use even when both the argmatch and invalid_arg macro were used.
6175         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6176         of argmatch and invalid_arg.
6177
6178 2011-07-03  Bruno Haible  <bruno@clisp.org>
6179
6180         Comments about EINTR.
6181         * lib/safe-read.h: Explain the purpose of this module.
6182         * lib/safe-write.h: Likewise.
6183         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6184         module.
6185         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6186         module.
6187         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6188
6189 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6190
6191         xnanosleep: Rewrite to use new dtotimespec module.
6192         It has the conversion code that used to be in xnanosleep.
6193         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6194         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6195         (TIME_T_MAX): Remove.
6196         (xnanosleep): Rewrite in terms of dtotimespec.
6197         * modules/xnanosleep (Depends-on): Add dtotimespec.
6198         Remove intprops, stdbool.
6199
6200         timespec-add, timespec-sub: new modules
6201         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6202         * lib/timespec-add.c, lib/timespec-sub.c:
6203         * modules/timespec-add, modules/timespec-sub: New files.
6204
6205         dtotimespec: new module
6206         * lib/timespec.h (dtotimespec): New decl.
6207         * lib/dtotimespec.c, modules/dtotimespec: New files.
6208
6209         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6210
6211         pselect: new module
6212         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6213         (pselect): New decls.
6214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6215         since the standard pselect decl uses 'restrict'.
6216         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6217         HAVE_PSELECT, REPLACE_PSELECT.
6218         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6219         HAVE_PSELECT, REPLACE_PSELECT.
6220         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6221
6222         sys_select: don't depend on sys_socket
6223         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6225         This fix works on GNU and GNU-like platforms, but has not been tested
6226         on native Windows.
6227         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6229         gl_HEADER_SYS_SOCKET.
6230         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6231         gl_PREREQ_SYS_H_WINSOCK2.
6232
6233 2011-06-29  Eric Blake  <eblake@redhat.com>
6234
6235         pipe2: fix C89 compile problem
6236         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6237         Reported by Bruno Haible.
6238
6239         pipe, pipe2: don't corrupt fd on error
6240         * lib/pipe.c (pipe): Leave fd unchanged on error.
6241         * lib/pipe2.c (pipe2): Likewise.
6242         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6243         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6244
6245 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6246
6247         mmap-anon: do not use regular expressions inadvertently
6248         * m4/mmap-anon.m4: Remove trailing period from strings sought
6249         in the output.
6250
6251 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6252
6253         nanosleep: fix integer overflow problem
6254         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6255         arithmetic wraps around on overflow.
6256
6257         nanosleep: simplify carrying
6258         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6259         first call to the underyling nanosleep, not for the last one.
6260         This doesn't fix any bugs, but it simplifies the computation of
6261         the remaining delay.  Found while auditing integer overflow issues.
6262
6263         dup2: remove test for existence of fcntl
6264         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6265         "#if HAVE_FCNTL", in the configure-time test program.
6266         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6267         and therefore speeds up "configure" a bit.  Found while
6268         adding the dup2 module to Emacs.
6269
6270 2011-06-24  Eric Blake  <eblake@redhat.com>
6271
6272         maint.mk: enhance useless header checks
6273         * top/maint.mk (_sc_header_without_use): Check both include
6274         styles.
6275         (sc_prohibit_assert_without_use)
6276         (sc_prohibit_close_stream_without_use)
6277         (sc_prohibit_getopt_without_use)
6278         (sc_prohibit_quotearg_without_use)
6279         (sc_prohibit_quote_without_use)
6280         (sc_prohibit_long_options_without_use)
6281         (sc_prohibit_inttostr_without_use)
6282         (sc_prohibit_ignore_value_without_use)
6283         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6284         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6285         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6286         (sc_prohibit_hash_pjw_without_use)
6287         (sc_prohibit_safe_read_without_use)
6288         (sc_prohibit_argmatch_without_use)
6289         (sc_prohibit_canonicalize_without_use)
6290         (sc_prohibit_root_dev_ino_without_use)
6291         (sc_prohibit_openat_without_use)
6292         (sc_prohibit_c_ctype_without_use)
6293         (sc_prohibit_signal_without_use)
6294         (sc_prohibit_stdio--_without_use)
6295         (sc_prohibit_stdio-safer_without_use)
6296         (sc_prohibit_strings_without_use)
6297         (sc_prohibit_intprops_without_use)
6298         (sc_prohibit_stddef_without_use)
6299         (sc_prohibit_xfreopen_without_use): Update clients.
6300
6301 2011-06-24  Jim Meyering  <meyering@redhat.com>
6302
6303         syntax-check: keep one maint.mk rule in sync with its header
6304         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6305         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6306         I prefer to avoid temporary files here, so use <(...), but that
6307         is not supported by /bin/sh, so...
6308         (SHELL): Define to /bin/bash.
6309
6310 2011-06-24  Eric Blake  <eblake@redhat.com>
6311
6312         maint.mk: update sc_prohibit_intprops_without_use
6313         * top/maint.mk (_intprops_names): Match recent changes.
6314
6315 2011-06-24  Bruno Haible  <bruno@clisp.org>
6316
6317         strerror-override: No-op tweak.
6318         * lib/strerror-override.h (strerror_override): Reorder conditions,
6319         for consistency with lib/strerror-override.c.
6320
6321 2011-06-23  Eric Blake  <eblake@redhat.com>
6322
6323         maint.mk: test further PATH_MAX issues
6324         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6325         (sc_prohibit_path_max_allocation): ...and also test alloca.
6326         Suggested by Jim Meyering.
6327
6328 2011-06-22  Eric Blake  <eblake@redhat.com>
6329
6330         maint.mk: add syntax-check to avoid char[PATH_MAX]
6331         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6332
6333         stat: be robust to PATH_MAX definition
6334         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6335         * modules/stat (Depends-on): Add verify.
6336
6337         link: work around IRIX bug
6338         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6339         * lib/link.c (rpl_link): Work around it.
6340         * tests/test-link.h (test_link): Enhance test.
6341         * doc/posix-functions/link.texi (link): Document the bug.
6342
6343         getopt: silence clang warning
6344         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6345         dereference.
6346         Reported by Gustavo Martin Domato.
6347
6348 2011-06-22  Jim Meyering  <meyering@redhat.com>
6349
6350         bootstrap: do not insert a blank line into each .gitignore file
6351         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6352
6353 2011-06-21  Eric Blake  <eblake@redhat.com>
6354
6355         perror: test for output mismatch
6356         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6357         perror on IRIX.
6358
6359         strerror_r: fix OpenBSD behavior on out-of-range
6360         * lib/strerror_r.c (strerror_r): Always use maximal string.
6361         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6362
6363         strerror_r: fix OpenBSD behavior on 0
6364         * lib/strerror-override.c (strerror_override): Also override 0
6365         when needed.
6366         * lib/strerror-override.h (strerror_override): Likewise.
6367         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6368         earlier.
6369         * lib/strerror_r.c (strerror_r): Likewise.
6370         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6371         behavior...
6372         (gl_FUNC_STRERROR_0): ...into new macro.
6373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6374         is overridden.
6375         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6376         * modules/strerror-override (Files): Add strerror.m4.
6377         (configure.ac): Also provide override for 0 when needed.
6378         * doc/posix-functions/strerror.texi (strerror): Document this.
6379         * doc/posix-functions/perror.texi (perror): Likewise.
6380
6381         perror: adjust array size
6382         * modules/perror (Depends-on): Add strerror-override.
6383         * lib/perror.c (perror): Use it to avoid magic number.
6384
6385         strerror-override: reduce size
6386         * lib/strerror-override.c (strerror_override): Use fewer lines.
6387
6388 2011-06-20  Bruno Haible  <bruno@clisp.org>
6389
6390         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6391         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6392
6393 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6394
6395         alloca: port to compilers that can optimize like GCC 4.6.0
6396         * lib/alloca.c (find_stack_direction): New signature, taken from
6397         Autoconf git.  This works with GCC 4.6.0.  This code should never
6398         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6399         be used with other compilers that optimize as well as GCC 4.6.0 does.
6400         (alloca): Adjust to new signature.
6401         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6402         New macro, which patches Autoconf in a similar way.
6403
6404         c-stack: stop worrying about stack direction
6405         * lib/c-stack.c (find_stack_direction): Remove.
6406         (segv_handler): Don't worry about stack direction growth, as it's
6407         too much of a pain to configure this correctly, given how compilers
6408         are optimizing-away our stack-growth detection code.  Instead, assume
6409         that any access to just before or just after the stack is OK.
6410         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6411         Don't require AC_FUNC_ALLOCA; no longer needed.
6412
6413 2011-06-20  Eric Blake  <eblake@redhat.com>
6414
6415         test-stat: don't allocate PATH_MAX bytes
6416         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6417         PATH_MAX-sized buffer.
6418         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6419         * modules/stat-tests (Depends-on): Likewise.
6420         * tests/test-fstatat.c (includes): Drop pathmax.h.
6421         * tests/test-stat.c (includes): Likewise.
6422         Reported by Bruno Haible.
6423
6424 2011-06-20  Bruno Haible  <bruno@clisp.org>
6425
6426         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6427         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6428         * lib/float.c: New file.
6429         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6430         REPLACE_FLOAT_LDBL.
6431         * modules/float (Files): Add lib/float.c.
6432         (configure.ac): Invoke AC_LIBOBJ.
6433         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6434
6435 2011-06-20  Bruno Haible  <bruno@clisp.org>
6436
6437         Tests for module 'float'.
6438         * modules/float-tests: New file.
6439         * tests/test-float.c: New file.
6440
6441 2011-06-19  Bruno Haible  <bruno@clisp.org>
6442
6443         isinf: Coding style.
6444         * lib/isinf.c: Use GNU coding style.
6445
6446 2011-06-19  Bruno Haible  <bruno@clisp.org>
6447
6448         linkat test: Avoid test failure on AIX 7.1.
6449         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6450         * tests/test-link.h (test_link): Likewise.
6451
6452 2011-06-19  Bruno Haible  <bruno@clisp.org>
6453
6454         pread test: Avoid test failure on OpenBSD 4.9.
6455         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6456
6457 2011-06-19  Bruno Haible  <bruno@clisp.org>
6458
6459         sprintf-posix: Fix test failure on AIX 7.1.
6460         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6461         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6462         on AIX.
6463         * doc/posix-functions/fprintf.texi: Likewise.
6464         * doc/posix-functions/printf.texi: Likewise.
6465         * doc/posix-functions/snprintf.texi: Likewise.
6466         * doc/posix-functions/sprintf.texi: Likewise.
6467         * doc/posix-functions/vdprintf.texi: Likewise.
6468         * doc/posix-functions/vfprintf.texi: Likewise.
6469         * doc/posix-functions/vprintf.texi: Likewise.
6470         * doc/posix-functions/vsnprintf.texi: Likewise.
6471         * doc/posix-functions/vsprintf.texi: Likewise.
6472
6473 2011-06-19  Bruno Haible  <bruno@clisp.org>
6474
6475         roundl-ieee: Fix test failure on AIX 7.1.
6476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6477         * doc/posix-functions/roundl.texi: Mention problem with negative
6478         arguments.
6479
6480 2011-06-19  Bruno Haible  <bruno@clisp.org>
6481
6482         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6483         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6484         * doc/posix-functions/round.texi: Mention problem with negative
6485         arguments.
6486         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6487
6488 2011-06-19  Bruno Haible  <bruno@clisp.org>
6489
6490         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6491         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6492         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6493         * doc/posix-functions/roundf.texi: Mention problem with negative
6494         arguments.
6495         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6496
6497 2011-06-19  Bruno Haible  <bruno@clisp.org>
6498
6499         ceilf-ieee: Work around bug on MacOS X 10.5.
6500         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6501
6502         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6503         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6504         IEEE compliant, avoid compiler optimizations.
6505         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6506         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6507         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6508         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6509         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6510         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6511         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6512         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6513         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6514         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6515
6516 2011-06-19  Bruno Haible  <bruno@clisp.org>
6517
6518         ceilf-ieee: Work around bug on AIX 7.1.
6519         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6520         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6521
6522 2011-06-19  Bruno Haible  <bruno@clisp.org>
6523
6524         ceil-ieee: Work around bug on AIX 7.1.
6525         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6526         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6527
6528 2011-06-18  Bruno Haible  <bruno@clisp.org>
6529
6530         fsync test: Avoid test failure on MacOS X and AIX.
6531         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6532         EINVAL.
6533
6534 2011-06-18  Bruno Haible  <bruno@clisp.org>
6535
6536         openat, fdopendir tests: Fix link errors.
6537         * modules/openat-tests (Depends-on): Add progname.
6538         * modules/fdopendir-tests (Depends-on): Likewise.
6539         * tests/test-fchownat.c: Include progname.h.
6540         (main): Call set_program_name.
6541         * tests/test-fstatat.c: Include progname.h.
6542         (main): Call set_program_name.
6543         * tests/test-mkdirat.c: Include progname.h.
6544         (main): Call set_program_name.
6545         * tests/test-openat.c: Include progname.h.
6546         (main): Call set_program_name.
6547         * tests/test-unlinkat.c: Include progname.h.
6548         (main): Call set_program_name.
6549         * tests/test-fdopendir.c: Include progname.h.
6550         (main): Call set_program_name.
6551
6552 2011-06-18  Bruno Haible  <bruno@clisp.org>
6553
6554         Doc update.
6555         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6556         HP-UX.
6557         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6558
6559 2011-06-18  Bruno Haible  <bruno@clisp.org>
6560
6561         getcwd tests: Avoid compilation error on HP-UX 11.31.
6562         * modules/getcwd-tests (Depends-on): Add pathmax.
6563         * tests/test-getcwd.c: Include pathmax.h.
6564
6565 2011-06-18  Bruno Haible  <bruno@clisp.org>
6566
6567         isfinite, isinf: Fix link error on AIX 6 and 7.
6568         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6569         needed, also test the macro with a 'float' argument.
6570         * m4/isinf.m4 (gl_ISINF): Likewise.
6571
6572 2011-06-18  Bruno Haible  <bruno@clisp.org>
6573
6574         getloadavg: Don't clobber LIBS. Regression from previous commit.
6575         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6576         AC_CHECK_LIB from here...
6577         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6578         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6579         gl_func_getloadavg_done.
6580         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6581
6582 2011-06-18  Bruno Haible  <bruno@clisp.org>
6583
6584         clean-temp: Improve documentation.
6585         * lib/clean-temp.h: Explain better how to use this module.
6586         Reported by John Darrington <john@darrington.wattle.id.au>.
6587
6588 2011-06-17  Bruno Haible  <bruno@clisp.org>
6589
6590         pread, pwrite: Avoid cc warning on AIX.
6591         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6592         (pwrite): Likewise.
6593
6594 2011-06-17  Bruno Haible  <bruno@clisp.org>
6595
6596         spawn-pipe tests: Fix link error.
6597         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6599
6600 2011-06-17  Bruno Haible  <bruno@clisp.org>
6601
6602         Tests: Remove unnecessary dependency.
6603         * modules/canonicalize-tests (Depends-on): Remove progname.
6604         * modules/chown-tests (Depends-on): Likewise.
6605         * modules/dirname-tests (Depends-on): Likewise.
6606         * modules/fdopendir-tests (Depends-on): Likewise.
6607         * modules/fdutimensat-tests (Depends-on): Likewise.
6608         * modules/hash-tests (Depends-on): Likewise.
6609         * modules/lchown-tests (Depends-on): Likewise.
6610         * modules/linkat-tests (Depends-on): Likewise.
6611         * modules/renameat-tests (Depends-on): Likewise.
6612         * modules/spawn-pipe-tests (Depends-on): Likewise.
6613         * modules/utimensat-tests (Depends-on): Likewise.
6614
6615 2011-06-17  Bruno Haible  <bruno@clisp.org>
6616
6617         spawn-pipe tests: Fix link error.
6618         * tests/test-spawn-pipe-child.c: Undefine fflush.
6619
6620 2011-06-17  Bruno Haible  <bruno@clisp.org>
6621
6622         Fix tests link errors.
6623         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6624         * modules/chown-tests (Makefile.am): Don't link test-chown with
6625         LIBINTL.
6626         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6627         LIBINTL.
6628         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6629         LIBINTL.
6630         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6631         LIBINTL.
6632
6633 2011-06-16  Bruno Haible  <bruno@clisp.org>
6634
6635         crypto/gc-sha1: Fix recent regression.
6636         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6637         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6638
6639         crypto/gc-md5: Fix recent regression.
6640         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6641
6642         crypto/gc-md4: Fix recent regression.
6643         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6644         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6645
6646         crypto/gc-arctwo: Fix recent regression.
6647         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6648         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6649
6650         crypto/gc-rijndael: Fix recent regression.
6651         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6652         (configure.ac): Invoke AC_LIBOBJ here.
6653         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6655
6656         crypto/gc-hmac-sha1: Fix recent regression.
6657         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6658         (configure.ac): Invoke AC_LIBOBJ here.
6659         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6661
6662         crypto/gc-hmac-md5: Fix recent regression.
6663         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6664         (configure.ac): Invoke AC_LIBOBJ here.
6665         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6667
6668         crypto/gc-des: Fix recent regression.
6669         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6670         (configure.ac): Invoke AC_LIBOBJ here.
6671         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6673
6674         crypto/gc-arcfour: Fix recent regression.
6675         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6676         (configure.ac): Invoke AC_LIBOBJ here.
6677         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6679
6680 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6681
6682         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6683         After the 2011-05-21 change, this macro requires
6684         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6685         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6686
6687 2011-06-16  Bruno Haible  <bruno@clisp.org>
6688
6689         fprintftime: Move AC_LIBOBJ invocations to module description.
6690         * m4/fprintftime.m4: Remove file.
6691         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6692         (configure.ac): Remove gl_FPRINTFTIME call.
6693         (Makefile.am): Augment lib_SOURCES.
6694         Reported by Jim Meyering.
6695
6696 2011-06-16  Bruno Haible  <bruno@clisp.org>
6697
6698         tmpfile-safer: Finish 2011-05-23 commit.
6699         * m4/stdio-safer.m4: Really remove file.
6700         Reported by Jim Meyering.
6701
6702 2011-06-16  Bruno Haible  <bruno@clisp.org>
6703
6704         syntax-check: Fix typo.
6705         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6706         printf-posix.m4.
6707         Reported by Jim Meyering.
6708
6709 2011-06-13  Jim Meyering  <meyering@redhat.com>
6710
6711         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6712         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6713
6714 2011-05-23  Bruno Haible  <bruno@clisp.org>
6715
6716         yesno: Move AC_LIBOBJ invocations to module description.
6717         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6718         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6719
6720 2011-05-23  Bruno Haible  <bruno@clisp.org>
6721
6722         xstrtol: Move AC_LIBOBJ invocations to module description.
6723         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6724         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6725
6726 2011-05-23  Bruno Haible  <bruno@clisp.org>
6727
6728         xstrtold: Move AC_LIBOBJ invocations to module description.
6729         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6730         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6731
6732 2011-05-23  Bruno Haible  <bruno@clisp.org>
6733
6734         xstrtod: Move AC_LIBOBJ invocations to module description.
6735         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6736         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6737
6738 2011-05-23  Bruno Haible  <bruno@clisp.org>
6739
6740         xnanosleep: Move AC_LIBOBJ invocations to module description.
6741         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6742         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6743
6744 2011-05-23  Bruno Haible  <bruno@clisp.org>
6745
6746         xgetcwd: Move AC_LIBOBJ invocations to module description.
6747         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6748         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6749
6750 2011-05-23  Bruno Haible  <bruno@clisp.org>
6751
6752         xalloc: Move AC_LIBOBJ invocations to module description.
6753         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6754         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6755
6756 2011-05-23  Bruno Haible  <bruno@clisp.org>
6757
6758         write-any-file: Move AC_LIBOBJ invocations to module description.
6759         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6760         invocation.
6761         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6762
6763 2011-05-23  Bruno Haible  <bruno@clisp.org>
6764
6765         utimens: Move AC_LIBOBJ invocations to module description.
6766         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6767         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6768
6769 2011-05-23  Bruno Haible  <bruno@clisp.org>
6770
6771         utimecmp: Move AC_LIBOBJ invocations to module description.
6772         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6773         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6774
6775 2011-05-23  Bruno Haible  <bruno@clisp.org>
6776
6777         userspec: Move AC_LIBOBJ invocations to module description.
6778         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6779         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6780
6781 2011-05-23  Bruno Haible  <bruno@clisp.org>
6782
6783         unlinkdir: Move AC_LIBOBJ invocations to module description.
6784         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6785         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6786
6787 2011-05-23  Bruno Haible  <bruno@clisp.org>
6788
6789         unistd-safer: Move AC_LIBOBJ invocations to module description.
6790         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6791         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6792
6793 2011-05-23  Bruno Haible  <bruno@clisp.org>
6794
6795         tempname: Move AC_LIBOBJ invocations to module description.
6796         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6797         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6798
6799 2011-05-23  Bruno Haible  <bruno@clisp.org>
6800
6801         strftime: Move AC_LIBOBJ invocations to module description.
6802         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6803         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6804
6805 2011-05-23  Bruno Haible  <bruno@clisp.org>
6806
6807         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6808         * m4/stdlib-safer.m4: Remove file.
6809         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6810         (configure.ac): Remove gl_STDLIB_SAFER call.
6811         (Makefile.am): Augment lib_SOURCES.
6812
6813 2011-05-23  Bruno Haible  <bruno@clisp.org>
6814
6815         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6816         * m4/stdio-safer.m4: Remove file.
6817         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6818         (configure.ac): Remove gl_TMPFILE_SAFER call.
6819         (Makefile.am): Augment lib_SOURCES.
6820
6821 2011-05-23  Bruno Haible  <bruno@clisp.org>
6822
6823         popen-safer: Move AC_LIBOBJ invocations to module description.
6824         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6825         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6826         (configure.ac): Remove gl_POPEN_SAFER call.
6827         (Makefile.am): Augment lib_SOURCES.
6828
6829 2011-05-23  Bruno Haible  <bruno@clisp.org>
6830
6831         freopen-safer: Move AC_LIBOBJ invocations to module description.
6832         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6833         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6834         (configure.ac): Remove gl_FREOPEN_SAFER call.
6835         (Makefile.am): Augment lib_SOURCES.
6836
6837 2011-05-23  Bruno Haible  <bruno@clisp.org>
6838
6839         fopen-safer: Move AC_LIBOBJ invocations to module description.
6840         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6841         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6842         (configure.ac): Remove gl_FOPEN_SAFER call.
6843         (Makefile.am): Augment lib_SOURCES.
6844
6845 2011-05-23  Bruno Haible  <bruno@clisp.org>
6846
6847         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6848         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6849         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6850
6851 2011-05-23  Bruno Haible  <bruno@clisp.org>
6852
6853         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6854         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6855         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6856
6857 2011-05-23  Bruno Haible  <bruno@clisp.org>
6858
6859         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6860         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6861         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6862
6863 2011-05-23  Bruno Haible  <bruno@clisp.org>
6864
6865         settime: Move AC_LIBOBJ invocations to module description.
6866         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6867         * modules/settime (Makefile.am): Augment lib_SOURCES.
6868
6869 2011-05-23  Bruno Haible  <bruno@clisp.org>
6870
6871         savedir: Move AC_LIBOBJ invocations to module description.
6872         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6873         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6874
6875 2011-05-23  Bruno Haible  <bruno@clisp.org>
6876
6877         save-cwd: Move AC_LIBOBJ invocations to module description.
6878         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6879         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6880
6881 2011-05-23  Bruno Haible  <bruno@clisp.org>
6882
6883         same: Move AC_LIBOBJ invocations to module description.
6884         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6885         * modules/same (Makefile.am): Augment lib_SOURCES.
6886
6887 2011-05-23  Bruno Haible  <bruno@clisp.org>
6888
6889         safe-write: Move AC_LIBOBJ invocations to module description.
6890         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6891         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6892         instead of gl_SAFE_WRITE.
6893         (Makefile.am): Augment lib_SOURCES.
6894
6895 2011-05-23  Bruno Haible  <bruno@clisp.org>
6896
6897         safe-read: Move AC_LIBOBJ invocations to module description.
6898         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6899         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6900         of gl_SAFE_READ.
6901         (Makefile.am): Augment lib_SOURCES.
6902
6903 2011-05-23  Bruno Haible  <bruno@clisp.org>
6904
6905         safe-alloc: Move AC_LIBOBJ invocations to module description.
6906         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6907         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6908
6909 2011-05-23  Bruno Haible  <bruno@clisp.org>
6910
6911         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6912         * m4/rijndael.m4: Remove file.
6913         * modules/crypto/rijndael (Files): Remove it.
6914         (configure.ac): Remove gl_RIJNDAEL call.
6915         (Makefile.am): Augment lib_SOURCES.
6916
6917 2011-05-23  Bruno Haible  <bruno@clisp.org>
6918
6919         readtokens: Move AC_LIBOBJ invocations to module description.
6920         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6921         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6922
6923 2011-05-23  Bruno Haible  <bruno@clisp.org>
6924
6925         read-file: Move AC_LIBOBJ invocations to module description.
6926         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6927         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6928         of gl_FUNC_READ_FILE.
6929         (Makefile.am): Augment lib_SOURCES.
6930
6931 2011-05-23  Bruno Haible  <bruno@clisp.org>
6932
6933         quotearg: Move AC_LIBOBJ invocations to module description.
6934         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6935         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6936
6937 2011-05-23  Bruno Haible  <bruno@clisp.org>
6938
6939         quote: Move AC_LIBOBJ invocations to module description.
6940         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6941         * modules/quote (Makefile.am): Augment lib_SOURCES.
6942
6943 2011-05-23  Bruno Haible  <bruno@clisp.org>
6944
6945         posixver: Move AC_LIBOBJ invocations to module description.
6946         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6947         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6948
6949 2011-05-23  Bruno Haible  <bruno@clisp.org>
6950
6951         posixtm: Move AC_LIBOBJ invocations to module description.
6952         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6953         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6954
6955 2011-05-23  Bruno Haible  <bruno@clisp.org>
6956
6957         physmem: Move AC_LIBOBJ invocations to module description.
6958         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6959         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6960
6961 2011-05-23  Bruno Haible  <bruno@clisp.org>
6962
6963         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6964         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6965         invocation.
6966         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6967
6968 2011-05-23  Bruno Haible  <bruno@clisp.org>
6969
6970         mpsort: Move AC_LIBOBJ invocations to module description.
6971         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6972         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6973
6974 2011-05-23  Bruno Haible  <bruno@clisp.org>
6975
6976         modechange: Move AC_LIBOBJ invocations to module description.
6977         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6978         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6979
6980 2011-05-23  Bruno Haible  <bruno@clisp.org>
6981
6982         mkdir-p: Move AC_LIBOBJ invocations to module description.
6983         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6984         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6985
6986 2011-05-23  Bruno Haible  <bruno@clisp.org>
6987
6988         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6989         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6990         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6991
6992 2011-05-23  Bruno Haible  <bruno@clisp.org>
6993
6994         mgetgroups: Move AC_LIBOBJ invocations to module description.
6995         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6996         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6997
6998 2011-05-23  Bruno Haible  <bruno@clisp.org>
6999
7000         memxor: Move AC_LIBOBJ invocations to module description.
7001         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7002         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7003
7004 2011-05-23  Bruno Haible  <bruno@clisp.org>
7005
7006         memcoll: Move AC_LIBOBJ invocations to module description.
7007         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7008         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7009
7010 2011-05-23  Bruno Haible  <bruno@clisp.org>
7011
7012         memcasecmp: Move AC_LIBOBJ invocations to module description.
7013         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7014         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7015
7016 2011-05-23  Bruno Haible  <bruno@clisp.org>
7017
7018         crypto/md5: Move AC_LIBOBJ invocations to module description.
7019         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7020         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7021
7022 2011-05-23  Bruno Haible  <bruno@clisp.org>
7023
7024         crypto/md4: Move AC_LIBOBJ invocations to module description.
7025         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7026         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7027
7028 2011-05-23  Bruno Haible  <bruno@clisp.org>
7029
7030         crypto/md2: Move AC_LIBOBJ invocations to module description.
7031         * m4/md2.m4: Remove file.
7032         * modules/crypto/md2 (Files): Remove it.
7033         (configure.ac): Remove gl_MD2 call.
7034         (Makefile.am): Augment lib_SOURCES.
7035
7036 2011-05-23  Bruno Haible  <bruno@clisp.org>
7037
7038         long-options: Move AC_LIBOBJ invocations to module description.
7039         * m4/long-options.m4: Remove file.
7040         * modules/long-options (Files): Remove it.
7041         (configure.ac): Remove gl_LONG_OPTIONS call.
7042         (Makefile.am): Augment lib_SOURCES.
7043
7044 2011-05-23  Bruno Haible  <bruno@clisp.org>
7045
7046         i-ring: Move AC_LIBOBJ invocations to module description.
7047         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7048         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7049
7050 2011-05-23  Bruno Haible  <bruno@clisp.org>
7051
7052         idcache: Move AC_LIBOBJ invocations to module description.
7053         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7054         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7055
7056 2011-05-23  Bruno Haible  <bruno@clisp.org>
7057
7058         human: Move AC_LIBOBJ invocations to module description.
7059         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7060         * modules/human (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7065         * m4/hmac-sha1.m4: Remove file.
7066         * modules/crypto/hmac-sha1 (Files): Remove it.
7067         (configure.ac): Remove gl_HMAC_SHA1 call.
7068         (Makefile.am): Augment lib_SOURCES.
7069
7070 2011-05-23  Bruno Haible  <bruno@clisp.org>
7071
7072         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7073         * m4/hmac-md5.m4: Remove file.
7074         * modules/crypto/hmac-md5 (Files): Remove it.
7075         (configure.ac): Remove gl_HMAC_MD5 call.
7076         (Makefile.am): Augment lib_SOURCES.
7077
7078 2011-05-23  Bruno Haible  <bruno@clisp.org>
7079
7080         hash: Move AC_LIBOBJ invocations to module description.
7081         * m4/hash.m4: Remove file.
7082         * modules/hash (Files): Remove it.
7083         (configure.ac): Remove gl_HASH call.
7084         (Makefile.am): Augment lib_SOURCES.
7085
7086 2011-05-23  Bruno Haible  <bruno@clisp.org>
7087
7088         hard-locale: Move AC_LIBOBJ invocations to module description.
7089         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7090         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7091
7092 2011-05-23  Bruno Haible  <bruno@clisp.org>
7093
7094         getugroups: Move AC_LIBOBJ invocations to module description.
7095         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7096         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7097
7098 2011-05-23  Bruno Haible  <bruno@clisp.org>
7099
7100         gettime: Move AC_LIBOBJ invocations to module description.
7101         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7102         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7103
7104 2011-05-23  Bruno Haible  <bruno@clisp.org>
7105
7106         getndelim2: Move AC_LIBOBJ invocations to module description.
7107         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7108         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7109
7110 2011-05-23  Bruno Haible  <bruno@clisp.org>
7111
7112         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7113         * m4/gc-pbkdf2-sha1.m4: Remove file.
7114         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7115         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7116         (Makefile.am): Augment lib_SOURCES.
7117
7118 2011-05-23  Bruno Haible  <bruno@clisp.org>
7119
7120         fts: Move AC_LIBOBJ invocations to module description.
7121         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7122         * modules/fts (configure.ac): ... to here.
7123
7124 2011-05-23  Bruno Haible  <bruno@clisp.org>
7125
7126         file-type: Move AC_LIBOBJ invocations to module description.
7127         * m4/file-type.m4: Remove file.
7128         * modules/file-type (Files): Remove it.
7129         (configure.ac): Remove gl_FILE_TYPE call.
7130         (Makefile.am): Augment lib_SOURCES.
7131
7132 2011-05-23  Bruno Haible  <bruno@clisp.org>
7133
7134         filenamecat*: Respect rules for use of AC_LIBOBJ.
7135         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7136         Remove AC_LIBOBJ invocation.
7137         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7138         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7139
7140 2011-05-23  Bruno Haible  <bruno@clisp.org>
7141
7142         filemode: Move AC_LIBOBJ invocations to module description.
7143         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7144         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7145
7146 2011-05-23  Bruno Haible  <bruno@clisp.org>
7147
7148         openat-safer: Move AC_LIBOBJ invocations to module description.
7149         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7150         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7151
7152 2011-05-23  Bruno Haible  <bruno@clisp.org>
7153
7154         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7155         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7156         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7157
7158 2011-05-23  Bruno Haible  <bruno@clisp.org>
7159
7160         exclude: Move AC_LIBOBJ invocations to module description.
7161         * m4/exclude.m4: Remove file.
7162         * modules/exclude (Files): Remove it.
7163         (configure.ac): Remove gl_EXCLUDE call.
7164         (Makefile.am): Augment lib_SOURCES.
7165
7166 2011-05-23  Bruno Haible  <bruno@clisp.org>
7167
7168         dirname*: Respect rules for use of AC_LIBOBJ.
7169         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7170         invocations.
7171         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7172         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7173
7174 2011-05-23  Bruno Haible  <bruno@clisp.org>
7175
7176         dirent-safer: Move AC_LIBOBJ invocations to module description.
7177         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7178         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7179
7180 2011-05-23  Bruno Haible  <bruno@clisp.org>
7181
7182         crypto/des: Move AC_LIBOBJ invocations to module description.
7183         * m4/des.m4: Remove file.
7184         * modules/crypto/des (Files): Remove it.
7185         (configure.ac): Remove gl_DES call.
7186         (Makefile.am): Augment lib_SOURCES.
7187
7188 2011-05-23  Bruno Haible  <bruno@clisp.org>
7189
7190         cycle-check: Move AC_LIBOBJ invocations to module description.
7191         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7192         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7193
7194 2011-05-23  Bruno Haible  <bruno@clisp.org>
7195
7196         c-strtold: Move AC_LIBOBJ invocations to module description.
7197         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7198         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7199
7200 2011-05-23  Bruno Haible  <bruno@clisp.org>
7201
7202         c-strtod: Move AC_LIBOBJ invocations to module description.
7203         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7204         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7205
7206 2011-05-23  Bruno Haible  <bruno@clisp.org>
7207
7208         crc: Move AC_LIBOBJ invocations to module description.
7209         * m4/crc.m4: Remove file.
7210         * modules/crc (Files): Remove it.
7211         (configure.ac): Remove gl_CRC call.
7212         (Makefile.am): Augment lib_SOURCES.
7213
7214 2011-05-23  Bruno Haible  <bruno@clisp.org>
7215
7216         close-stream: Move AC_LIBOBJ invocations to module description.
7217         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7218         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7219
7220 2011-05-23  Bruno Haible  <bruno@clisp.org>
7221
7222         closeout: Move AC_LIBOBJ invocations to module description.
7223         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7224         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7225
7226 2011-05-23  Bruno Haible  <bruno@clisp.org>
7227
7228         closein: Move AC_LIBOBJ invocations to module description.
7229         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7230         * modules/closein (Makefile.am): Augment lib_SOURCES.
7231
7232 2011-05-23  Bruno Haible  <bruno@clisp.org>
7233
7234         cloexec: Move AC_LIBOBJ invocations to module description.
7235         * m4/cloexec.m4: Remove file.
7236         * modules/cloexec (Files): Remove it.
7237         (configure.ac): Remove gl_CLOEXEC call.
7238         (Makefile.am): Augment lib_SOURCES.
7239
7240 2011-05-23  Bruno Haible  <bruno@clisp.org>
7241
7242         check-version: Move AC_LIBOBJ invocations to module description.
7243         * m4/check-version.m4: Remove file.
7244         * modules/check-version (Files): Remove it.
7245         (configure.ac): Remove gl_CHECK_VERSION call.
7246         (Makefile.am): Augment lib_SOURCES.
7247
7248 2011-05-23  Bruno Haible  <bruno@clisp.org>
7249
7250         chdir-safer: Move AC_LIBOBJ invocations to module description.
7251         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7252         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7253
7254 2011-05-23  Bruno Haible  <bruno@clisp.org>
7255
7256         canonicalize: Move AC_LIBOBJ invocations to module description.
7257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7258         AC_LIBOBJ invocation.
7259         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7260
7261 2011-05-23  Bruno Haible  <bruno@clisp.org>
7262
7263         canon-host: Move AC_LIBOBJ invocations to module description.
7264         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7265         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7266         instead of gl_CANON_HOST.
7267         (Makefile.am): Augment lib_SOURCES.
7268
7269 2011-05-23  Bruno Haible  <bruno@clisp.org>
7270
7271         backupfile: Move AC_LIBOBJ invocations to module description.
7272         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7273         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7274
7275 2011-05-23  Bruno Haible  <bruno@clisp.org>
7276
7277         argmatch: Move AC_LIBOBJ invocations to module description.
7278         * m4/argmatch.m4: Remove file.
7279         * modules/argmatch (Files): Remove it.
7280         (configure.ac): Remove gl_ARGMATCH call.
7281         (Makefile.am): Augment lib_SOURCES.
7282
7283 2011-05-23  Bruno Haible  <bruno@clisp.org>
7284
7285         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7286         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7287         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7288
7289 2011-05-23  Bruno Haible  <bruno@clisp.org>
7290
7291         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7292         * m4/arcfour.m4: Remove file.
7293         * modules/crypto/arcfour (Files): Remove it.
7294         (configure.ac): Remove gl_ARCFOUR call.
7295         (Makefile.am): Augment lib_SOURCES.
7296
7297 2011-05-22  Bruno Haible  <bruno@clisp.org>
7298
7299         write: Move AC_LIBOBJ invocations to module description.
7300         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7301         * modules/write (configure.ac): ... to here.
7302
7303 2011-05-22  Bruno Haible  <bruno@clisp.org>
7304
7305         wmemset: Move AC_LIBOBJ invocations to module description.
7306         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7307         here...
7308         * modules/wmemset (configure.ac): ... to here.
7309
7310 2011-05-22  Bruno Haible  <bruno@clisp.org>
7311
7312         wmemmove: Move AC_LIBOBJ invocations to module description.
7313         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7314         here...
7315         * modules/wmemmove (configure.ac): ... to here.
7316
7317 2011-05-22  Bruno Haible  <bruno@clisp.org>
7318
7319         wmemcpy: Move AC_LIBOBJ invocations to module description.
7320         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7321         here...
7322         * modules/wmemcpy (configure.ac): ... to here.
7323
7324 2011-05-22  Bruno Haible  <bruno@clisp.org>
7325
7326         wmemcmp: Move AC_LIBOBJ invocations to module description.
7327         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7328         here...
7329         * modules/wmemcmp (configure.ac): ... to here.
7330
7331 2011-05-22  Bruno Haible  <bruno@clisp.org>
7332
7333         wmemchr: Move AC_LIBOBJ invocations to module description.
7334         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7335         here...
7336         * modules/wmemchr (configure.ac): ... to here.
7337
7338 2011-05-22  Bruno Haible  <bruno@clisp.org>
7339
7340         wcswidth: Move AC_LIBOBJ invocations to module description.
7341         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7342         here...
7343         * modules/wcswidth (configure.ac): ... to here.
7344
7345 2011-05-22  Bruno Haible  <bruno@clisp.org>
7346
7347         wcwidth: Respect rules for use of AC_LIBOBJ.
7348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7349         invocation from here...
7350         * modules/wcwidth (configure.ac): ... to here.
7351         (Depends-on): Update conditions.
7352
7353 2011-05-22  Bruno Haible  <bruno@clisp.org>
7354
7355         wctype: Move AC_LIBOBJ invocations to module description.
7356         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7357         invocation from here...
7358         * modules/wctype (configure.ac): ... to here.
7359         (Depends-on): Update conditions.
7360
7361 2011-05-22  Bruno Haible  <bruno@clisp.org>
7362
7363         wctrans: Move AC_LIBOBJ invocations to module description.
7364         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7365         invocation from here...
7366         * modules/wctrans (configure.ac): ... to here.
7367
7368 2011-05-22  Bruno Haible  <bruno@clisp.org>
7369
7370         wctomb: Move AC_LIBOBJ invocations to module description.
7371         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7372         invocations from here...
7373         * modules/wctomb (configure.ac): ... to here.
7374
7375 2011-05-22  Bruno Haible  <bruno@clisp.org>
7376
7377         wctob: Move AC_LIBOBJ invocations to module description.
7378         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7379         gl_PREREQ_WCTOB invocations from here...
7380         * modules/wctob (configure.ac): ... to here.
7381         (Depends-on): Update conditions.
7382
7383 2011-05-22  Bruno Haible  <bruno@clisp.org>
7384
7385         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7386         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7387         here...
7388         * modules/wcsxfrm (configure.ac): ... to here.
7389
7390 2011-05-22  Bruno Haible  <bruno@clisp.org>
7391
7392         wcstok: Move AC_LIBOBJ invocations to module description.
7393         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7394         * modules/wcstok (configure.ac): ... to here.
7395
7396 2011-05-22  Bruno Haible  <bruno@clisp.org>
7397
7398         wcsstr: Move AC_LIBOBJ invocations to module description.
7399         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7400         * modules/wcsstr (configure.ac): ... to here.
7401
7402 2011-05-22  Bruno Haible  <bruno@clisp.org>
7403
7404         wcsspn: Move AC_LIBOBJ invocations to module description.
7405         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7406         * modules/wcsspn (configure.ac): ... to here.
7407
7408 2011-05-22  Bruno Haible  <bruno@clisp.org>
7409
7410         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7411         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7412         gl_PREREQ_WCSRTOMBS invocations from here...
7413         * modules/wcsrtombs (configure.ac): ... to here.
7414
7415 2011-05-22  Bruno Haible  <bruno@clisp.org>
7416
7417         wcsrchr: Move AC_LIBOBJ invocations to module description.
7418         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7419         here...
7420         * modules/wcsrchr (configure.ac): ... to here.
7421
7422 2011-05-22  Bruno Haible  <bruno@clisp.org>
7423
7424         wcspbrk: Move AC_LIBOBJ invocations to module description.
7425         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7426         here...
7427         * modules/wcspbrk (configure.ac): ... to here.
7428
7429 2011-05-22  Bruno Haible  <bruno@clisp.org>
7430
7431         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7432         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7433         gl_PREREQ_WCSNRTOMBS invocations from here...
7434         * modules/wcsnrtombs (configure.ac): ... to here.
7435
7436 2011-05-22  Bruno Haible  <bruno@clisp.org>
7437
7438         wcsnlen: Move AC_LIBOBJ invocations to module description.
7439         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7440         here...
7441         * modules/wcsnlen (configure.ac): ... to here.
7442
7443 2011-05-22  Bruno Haible  <bruno@clisp.org>
7444
7445         wcsncpy: Move AC_LIBOBJ invocations to module description.
7446         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7447         here...
7448         * modules/wcsncpy (configure.ac): ... to here.
7449
7450 2011-05-22  Bruno Haible  <bruno@clisp.org>
7451
7452         wcsncmp: Move AC_LIBOBJ invocations to module description.
7453         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7454         here...
7455         * modules/wcsncmp (configure.ac): ... to here.
7456
7457 2011-05-22  Bruno Haible  <bruno@clisp.org>
7458
7459         wcsncat: Move AC_LIBOBJ invocations to module description.
7460         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7461         here...
7462         * modules/wcsncat (configure.ac): ... to here.
7463
7464 2011-05-22  Bruno Haible  <bruno@clisp.org>
7465
7466         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7467         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7468         from here...
7469         * modules/wcsncasecmp (configure.ac): ... to here.
7470
7471 2011-05-22  Bruno Haible  <bruno@clisp.org>
7472
7473         wcslen: Move AC_LIBOBJ invocations to module description.
7474         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7475         * modules/wcslen (configure.ac): ... to here.
7476
7477 2011-05-22  Bruno Haible  <bruno@clisp.org>
7478
7479         wcsdup: Move AC_LIBOBJ invocations to module description.
7480         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7481         * modules/wcsdup (configure.ac): ... to here.
7482
7483 2011-05-22  Bruno Haible  <bruno@clisp.org>
7484
7485         wcscspn: Move AC_LIBOBJ invocations to module description.
7486         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7487         here...
7488         * modules/wcscspn (configure.ac): ... to here.
7489
7490 2011-05-22  Bruno Haible  <bruno@clisp.org>
7491
7492         wcscpy: Move AC_LIBOBJ invocations to module description.
7493         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7494         * modules/wcscpy (configure.ac): ... to here.
7495
7496 2011-05-22  Bruno Haible  <bruno@clisp.org>
7497
7498         wcscoll: Move AC_LIBOBJ invocations to module description.
7499         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7500         here...
7501         * modules/wcscoll (configure.ac): ... to here.
7502
7503 2011-05-22  Bruno Haible  <bruno@clisp.org>
7504
7505         wcscmp: Move AC_LIBOBJ invocations to module description.
7506         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7507         * modules/wcscmp (configure.ac): ... to here.
7508
7509 2011-05-22  Bruno Haible  <bruno@clisp.org>
7510
7511         wcschr: Move AC_LIBOBJ invocations to module description.
7512         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7513         * modules/wcschr (configure.ac): ... to here.
7514
7515 2011-05-22  Bruno Haible  <bruno@clisp.org>
7516
7517         wcscat: Move AC_LIBOBJ invocations to module description.
7518         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7519         * modules/wcscat (configure.ac): ... to here.
7520
7521 2011-05-22  Bruno Haible  <bruno@clisp.org>
7522
7523         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7524         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7525         here...
7526         * modules/wcscasecmp (configure.ac): ... to here.
7527
7528 2011-05-22  Bruno Haible  <bruno@clisp.org>
7529
7530         wcrtomb: Move AC_LIBOBJ invocations to module description.
7531         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7532         invocations from here...
7533         * modules/wcrtomb (configure.ac): ... to here.
7534
7535 2011-05-22  Bruno Haible  <bruno@clisp.org>
7536
7537         wcpncpy: Move AC_LIBOBJ invocations to module description.
7538         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7539         here...
7540         * modules/wcpncpy (configure.ac): ... to here.
7541
7542 2011-05-22  Bruno Haible  <bruno@clisp.org>
7543
7544         wcpcpy: Move AC_LIBOBJ invocations to module description.
7545         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7546         * modules/wcpcpy (configure.ac): ... to here.
7547
7548 2011-05-22  Bruno Haible  <bruno@clisp.org>
7549
7550         waitpid: Move AC_LIBOBJ invocations to module description.
7551         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7552         invocation from here...
7553         * modules/waitpid (configure.ac): ... to here.
7554
7555 2011-05-22  Bruno Haible  <bruno@clisp.org>
7556
7557         utimensat: Move AC_LIBOBJ invocations to module description.
7558         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7559         here...
7560         * modules/utimensat (configure.ac): ... to here.
7561
7562 2011-05-22  Bruno Haible  <bruno@clisp.org>
7563
7564         usleep: Move AC_LIBOBJ invocations to module description.
7565         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7566         here...
7567         * modules/usleep (configure.ac): ... to here.
7568
7569 2011-05-22  Bruno Haible  <bruno@clisp.org>
7570
7571         unlockpt: Move AC_LIBOBJ invocations to module description.
7572         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7573         gl_PREREQ_UNLOCKPT invocations from here...
7574         * modules/unlockpt (configure.ac): ... to here.
7575
7576 2011-05-22  Bruno Haible  <bruno@clisp.org>
7577
7578         unlink: Respect rules for use of AC_LIBOBJ.
7579         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7580         * modules/unlink (configure.ac): ... to here.
7581
7582 2011-05-22  Bruno Haible  <bruno@clisp.org>
7583
7584         uname: Move AC_LIBOBJ invocations to module description.
7585         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7587         here...
7588         * modules/uname (configure.ac): ... to here.
7589
7590 2011-05-22  Bruno Haible  <bruno@clisp.org>
7591
7592         ttyname_r: Move AC_LIBOBJ invocations to module description.
7593         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7594         gl_PREREQ_TTYNAME_R invocations from here...
7595         * modules/ttyname_r (configure.ac): ... to here.
7596
7597 2011-05-22  Bruno Haible  <bruno@clisp.org>
7598
7599         tsearch: Move AC_LIBOBJ invocations to module description.
7600         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7601         invocations from here...
7602         * modules/tsearch (configure.ac): ... to here.
7603
7604 2011-05-22  Bruno Haible  <bruno@clisp.org>
7605
7606         towctrans: Move AC_LIBOBJ invocations to module description.
7607         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7608         AC_LIBOBJ invocation from here...
7609         * modules/towctrans (configure.ac): ... to here.
7610
7611 2011-05-22  Bruno Haible  <bruno@clisp.org>
7612
7613         tmpfile: Move AC_LIBOBJ invocations to module description.
7614         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7615         invocations from here...
7616         * modules/tmpfile (configure.ac): ... to here.
7617
7618 2011-05-22  Bruno Haible  <bruno@clisp.org>
7619
7620         times: Move AC_LIBOBJ invocations to module description.
7621         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7622         * modules/times (configure.ac): ... to here.
7623
7624 2011-05-22  Bruno Haible  <bruno@clisp.org>
7625
7626         time_r: Move AC_LIBOBJ invocations to module description.
7627         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7628         invocations from here...
7629         * modules/time_r (configure.ac): ... to here.
7630
7631 2011-05-22  Bruno Haible  <bruno@clisp.org>
7632
7633         timegm: Move AC_LIBOBJ invocations to module description.
7634         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7635         invocations from here...
7636         * modules/timegm (configure.ac): ... to here.
7637
7638 2011-05-22  Bruno Haible  <bruno@clisp.org>
7639
7640         tcgetsid: Move AC_LIBOBJ invocations to module description.
7641         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7642         and gl_PREREQ_TCGETSID invocations from here...
7643         * modules/tcgetsid (configure.ac): ... to here.
7644         (Depends-on): Update conditions.
7645
7646 2011-05-22  Bruno Haible  <bruno@clisp.org>
7647
7648         symlinkat: Move AC_LIBOBJ invocations to module description.
7649         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7650         here...
7651         * modules/symlinkat (configure.ac): ... to here.
7652
7653 2011-05-22  Bruno Haible  <bruno@clisp.org>
7654
7655         symlink: Move AC_LIBOBJ invocations to module description.
7656         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7657         here...
7658         * modules/symlink (configure.ac): ... to here.
7659
7660 2011-05-22  Bruno Haible  <bruno@clisp.org>
7661
7662         strverscmp: Move AC_LIBOBJ invocations to module description.
7663         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7665         from here...
7666         * modules/strverscmp (configure.ac): ... to here.
7667
7668 2011-05-22  Bruno Haible  <bruno@clisp.org>
7669
7670         strtok_r: Move AC_LIBOBJ invocations to module description.
7671         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7672         and gl_PREREQ_STRTOK_R invocations from here...
7673         * modules/strtok_r (configure.ac): ... to here.
7674         (Depends-on): Update conditions.
7675
7676 2011-05-22  Bruno Haible  <bruno@clisp.org>
7677
7678         strtoumax: Move AC_LIBOBJ invocations to module description.
7679         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7680         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7681         from here...
7682         * modules/strtoumax (configure.ac): ... to here.
7683
7684 2011-05-22  Bruno Haible  <bruno@clisp.org>
7685
7686         strtoimax: Move AC_LIBOBJ invocations to module description.
7687         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7688         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7689         from here...
7690         * modules/strtoimax (configure.ac): ... to here.
7691
7692 2011-05-22  Bruno Haible  <bruno@clisp.org>
7693
7694         strtoull: Move AC_LIBOBJ invocations to module description.
7695         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7696         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7697         from here...
7698         * modules/strtoull (configure.ac): ... to here.
7699
7700 2011-05-22  Bruno Haible  <bruno@clisp.org>
7701
7702         strtoll: Move AC_LIBOBJ invocations to module description.
7703         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7705         here...
7706         * modules/strtoll (configure.ac): ... to here.
7707
7708 2011-05-22  Bruno Haible  <bruno@clisp.org>
7709
7710         strtoul: Move AC_LIBOBJ invocations to module description.
7711         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7712         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7713         * modules/strtoul (configure.ac): ... to here.
7714
7715 2011-05-22  Bruno Haible  <bruno@clisp.org>
7716
7717         strtol: Move AC_LIBOBJ invocations to module description.
7718         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7719         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7720         * modules/strtol (configure.ac): ... to here.
7721
7722 2011-05-22  Bruno Haible  <bruno@clisp.org>
7723
7724         strtod: Move AC_LIBOBJ invocations to module description.
7725         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7726         invocations from here...
7727         * modules/strtod (configure.ac): ... to here.
7728
7729 2011-05-22  Bruno Haible  <bruno@clisp.org>
7730
7731         strstr*: Move AC_LIBOBJ invocations to module description.
7732         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7733         invocations from here...
7734         * modules/strstr-simple (configure.ac): ... to here.
7735         * modules/strstr (configure.ac): ... and here.
7736
7737 2011-05-22  Bruno Haible  <bruno@clisp.org>
7738
7739         strsignal: Move AC_LIBOBJ invocations to module description.
7740         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7741         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7742         * modules/strsignal (configure.ac): ... to here.
7743         (Depends-on): Update conditions.
7744
7745 2011-05-22  Bruno Haible  <bruno@clisp.org>
7746
7747         strsep: Move AC_LIBOBJ invocations to module description.
7748         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7750         here...
7751         * modules/strsep (configure.ac): ... to here.
7752
7753 2011-05-22  Bruno Haible  <bruno@clisp.org>
7754
7755         strptime: Move AC_LIBOBJ invocations to module description.
7756         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7757         gl_PREREQ_STRPTIME invocations from here...
7758         * modules/strptime (configure.ac): ... to here.
7759
7760 2011-05-22  Bruno Haible  <bruno@clisp.org>
7761
7762         strpbrk: Move AC_LIBOBJ invocations to module description.
7763         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7765         here...
7766         * modules/strpbrk (configure.ac): ... to here.
7767
7768 2011-05-22  Bruno Haible  <bruno@clisp.org>
7769
7770         strnlen: Move AC_LIBOBJ invocations to module description.
7771         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7772         invocations from here...
7773         * modules/strnlen (configure.ac): ... to here.
7774
7775 2011-05-22  Bruno Haible  <bruno@clisp.org>
7776
7777         strndup: Move AC_LIBOBJ invocations to module description.
7778         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7779         invocations from here...
7780         * modules/strndup (configure.ac): ... to here.
7781         (Depends-on): Update conditions.
7782
7783 2011-05-22  Bruno Haible  <bruno@clisp.org>
7784
7785         strncat: Move AC_LIBOBJ invocations to module description.
7786         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7787         invocations from here...
7788         * modules/strncat (configure.ac): ... to here.
7789
7790 2011-05-22  Bruno Haible  <bruno@clisp.org>
7791
7792         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7793         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7794         invocations from here...
7795         * modules/strdup (configure.ac): ... to here.
7796         * modules/strdup-posix (configure.ac): ... and here.
7797
7798 2011-05-22  Bruno Haible  <bruno@clisp.org>
7799
7800         strcspn: Move AC_LIBOBJ invocations to module description.
7801         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7802         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7803         here...
7804         * modules/strcspn (configure.ac): ... to here.
7805
7806 2011-05-22  Bruno Haible  <bruno@clisp.org>
7807
7808         strchrnul: Move AC_LIBOBJ invocations to module description.
7809         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7810         gl_PREREQ_STRCHRNUL invocations from here...
7811         * modules/strchrnul (configure.ac): ... to here.
7812
7813 2011-05-22  Bruno Haible  <bruno@clisp.org>
7814
7815         strcasestr*: Move AC_LIBOBJ invocations to module description.
7816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7817         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7818         * modules/strcasestr-simple (configure.ac): ... to here.
7819         * modules/strcasestr (configure.ac): ... and here.
7820
7821 2011-05-22  Bruno Haible  <bruno@clisp.org>
7822
7823         strcase: Move AC_LIBOBJ invocations to module description.
7824         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7825         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7826         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7827         gl_PREREQ_STRNCASECMP invocations from here...
7828         * modules/strcase (configure.ac): ... to here.
7829
7830 2011-05-22  Bruno Haible  <bruno@clisp.org>
7831
7832         stpncpy: Move AC_LIBOBJ invocations to module description.
7833         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7834         here...
7835         * modules/stpncpy (configure.ac): ... to here.
7836
7837 2011-05-22  Bruno Haible  <bruno@clisp.org>
7838
7839         stpcpy: Move AC_LIBOBJ invocations to module description.
7840         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7841         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7842         here...
7843         * modules/stpcpy (configure.ac): ... to here.
7844
7845 2011-05-21  Bruno Haible  <bruno@clisp.org>
7846
7847         stat: Move AC_LIBOBJ invocations to module description.
7848         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7849         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7850         here...
7851         * modules/stat (configure.ac): ... to here.
7852
7853 2011-05-21  Bruno Haible  <bruno@clisp.org>
7854
7855         sleep: Move AC_LIBOBJ invocations to module description.
7856         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7857         * modules/sleep (configure.ac): ... to here.
7858
7859 2011-05-21  Bruno Haible  <bruno@clisp.org>
7860
7861         signbit: Move AC_LIBOBJ invocations to module description.
7862         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7863         * modules/signbit (configure.ac): ... to here.
7864
7865 2011-05-21  Bruno Haible  <bruno@clisp.org>
7866
7867         sigprocmask: Move AC_LIBOBJ invocations to module description.
7868         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7869         gl_PREREQ_SIGPROMASK invocations from here...
7870         * modules/sigprocmask (configure.ac): ... to here.
7871
7872 2011-05-21  Bruno Haible  <bruno@clisp.org>
7873
7874         sigaction: Move AC_LIBOBJ invocations to module description.
7875         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7876         gl_PREREQ_SIGACTION invocations from here...
7877         * modules/sigaction (configure.ac): ... to here.
7878
7879 2011-05-21  Bruno Haible  <bruno@clisp.org>
7880
7881         sig2str: Move AC_LIBOBJ invocations to module description.
7882         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7883         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7884         here...
7885         * modules/sig2str (configure.ac): ... to here.
7886
7887 2011-05-21  Bruno Haible  <bruno@clisp.org>
7888
7889         setlocale: Move AC_LIBOBJ invocations to module description.
7890         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7891         gl_PREREQ_SETLOCALE invocations from here...
7892         * modules/setlocale (configure.ac): ... to here.
7893
7894 2011-05-21  Bruno Haible  <bruno@clisp.org>
7895
7896         unsetenv: Move AC_LIBOBJ invocations to module description.
7897         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7898         and gl_PREREQ_UNSETENV invocations from here...
7899         * modules/unsetenv (configure.ac): ... to here.
7900         (Depends-on): Update.
7901
7902 2011-05-21  Bruno Haible  <bruno@clisp.org>
7903
7904         setenv: Move AC_LIBOBJ invocations to module description.
7905         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7906         here...
7907         * modules/setenv (configure.ac): ... to here.
7908
7909 2011-05-21  Bruno Haible  <bruno@clisp.org>
7910
7911         selinux-h: Move AC_LIBOBJ invocations to module description.
7912         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7913         AC_LIBOBJ invocation from here...
7914         * modules/selinux-h (configure.ac): ... to here.
7915
7916 2011-05-21  Bruno Haible  <bruno@clisp.org>
7917
7918         select: Respect rules for use of AC_LIBOBJ.
7919         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7920         here...
7921         * modules/select (configure.ac): ... to here.
7922
7923 2011-05-21  Bruno Haible  <bruno@clisp.org>
7924
7925         scandir: Move AC_LIBOBJ invocations to module description.
7926         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7927         invocations from here...
7928         * modules/scandir (configure.ac): ... to here.
7929
7930 2011-05-21  Bruno Haible  <bruno@clisp.org>
7931
7932         rpmatch: Move AC_LIBOBJ invocations to module description.
7933         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7934         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7935         here...
7936         * modules/rpmatch (configure.ac): ... to here.
7937
7938 2011-05-21  Bruno Haible  <bruno@clisp.org>
7939
7940         rmdir: Respect rules for use of AC_LIBOBJ.
7941         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7942         * modules/rmdir (configure.ac): ... to here.
7943
7944 2011-05-21  Bruno Haible  <bruno@clisp.org>
7945
7946         renameat: Move AC_LIBOBJ invocations to module description.
7947         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7948         here...
7949         * modules/renameat (configure.ac): ... to here.
7950
7951 2011-05-21  Bruno Haible  <bruno@clisp.org>
7952
7953         rename: Respect rules for use of AC_LIBOBJ.
7954         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7955         here...
7956         * modules/rename (configure.ac): ... to here.
7957
7958 2011-05-21  Bruno Haible  <bruno@clisp.org>
7959
7960         remove: Move AC_LIBOBJ invocations to module description.
7961         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7962         here...
7963         * modules/remove (configure.ac): ... to here.
7964
7965 2011-05-21  Bruno Haible  <bruno@clisp.org>
7966
7967         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7968         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7969         macro.
7970         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7971         * modules/relocatable-lib (configure.ac): ... to here.
7972         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7973         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7978         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7979         here...
7980         * modules/relocatable-prog (configure.ac): ... to here.
7981
7982 2011-05-21  Bruno Haible  <bruno@clisp.org>
7983
7984         regex: Move AC_LIBOBJ invocations to module description.
7985         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7986         invocations from here...
7987         * modules/regex (configure.ac): ... to here.
7988
7989 2011-05-21  Bruno Haible  <bruno@clisp.org>
7990
7991         realloc-*: Move AC_LIBOBJ invocations to module description.
7992         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7993         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7994         AC_LIBOBJ invocations from here...
7995         * modules/realloc-gnu (configure.ac): ... to here.
7996         * modules/realloc-posix (configure.ac): ... and here.
7997
7998 2011-05-21  Bruno Haible  <bruno@clisp.org>
7999
8000         readutmp: Move AC_LIBOBJ invocations to module description.
8001         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8002         * modules/readutmp (configure.ac): ... to here.
8003
8004 2011-05-21  Bruno Haible  <bruno@clisp.org>
8005
8006         readlinkat: Move AC_LIBOBJ invocations to module description.
8007         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8008         here...
8009         * modules/readlinkat (configure.ac): ... to here.
8010
8011 2011-05-21  Bruno Haible  <bruno@clisp.org>
8012
8013         readlink: Move AC_LIBOBJ invocations to module description.
8014         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8015         gl_PREREQ_READLINK invocations from here...
8016         * modules/readlink (configure.ac): ... to here.
8017
8018 2011-05-21  Bruno Haible  <bruno@clisp.org>
8019
8020         readline: Move AC_LIBOBJ invocations to module description.
8021         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8022         gl_PREREQ_READLINE invocations from here...
8023         * modules/readline (configure.ac): ... to here.
8024
8025 2011-05-21  Bruno Haible  <bruno@clisp.org>
8026
8027         read: Move AC_LIBOBJ invocations to module description.
8028         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8029         * modules/read (configure.ac): ... to here.
8030
8031 2011-05-21  Bruno Haible  <bruno@clisp.org>
8032
8033         rawmemchr: Move AC_LIBOBJ invocations to module description.
8034         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8036         from here...
8037         * modules/rawmemchr (configure.ac): ... to here.
8038
8039 2011-05-21  Bruno Haible  <bruno@clisp.org>
8040
8041         random_r: Move AC_LIBOBJ invocations to module description.
8042         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8043         gl_PREREQ_RANDOM_R invocations from here...
8044         * modules/random_r (configure.ac): ... to here.
8045
8046 2011-05-21  Bruno Haible  <bruno@clisp.org>
8047
8048         pwrite: Move AC_LIBOBJ invocations to module description.
8049         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8050         * modules/pwrite (configure.ac): ... to here.
8051
8052 2011-05-21  Bruno Haible  <bruno@clisp.org>
8053
8054         putenv: Move AC_LIBOBJ invocations to module description.
8055         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8056         * modules/putenv (configure.ac): ... to here.
8057
8058 2011-05-21  Bruno Haible  <bruno@clisp.org>
8059
8060         login_tty: Move AC_LIBOBJ invocations to module description.
8061         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8062         * modules/login_tty (configure.ac): ... to here.
8063
8064 2011-05-21  Bruno Haible  <bruno@clisp.org>
8065
8066         openpty: Move AC_LIBOBJ invocations to module description.
8067         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8068         * modules/openpty (configure.ac): ... to here.
8069
8070 2011-05-21  Bruno Haible  <bruno@clisp.org>
8071
8072         forkpty: Move AC_LIBOBJ invocations to module description.
8073         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8074         * modules/forkpty (configure.ac): ... to here.
8075
8076 2011-05-21  Bruno Haible  <bruno@clisp.org>
8077
8078         ptsname: Move AC_LIBOBJ invocations to module description.
8079         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8080         invocations from here...
8081         * modules/ptsname (configure.ac): ... to here.
8082
8083 2011-05-21  Bruno Haible  <bruno@clisp.org>
8084
8085         pread: Move AC_LIBOBJ invocations to module description.
8086         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8087         * modules/pread (configure.ac): ... to here.
8088
8089 2011-05-21  Bruno Haible  <bruno@clisp.org>
8090
8091         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8092         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8093         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8094         * modules/posix_spawn (configure.ac): ... to here.
8095         * modules/posix_spawnp (configure.ac): ... and here.
8096
8097 2011-05-21  Bruno Haible  <bruno@clisp.org>
8098
8099         popen: Move AC_LIBOBJ invocations to module description.
8100         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8101         invocations from here...
8102         * modules/popen (configure.ac): ... to here.
8103
8104 2011-05-21  Bruno Haible  <bruno@clisp.org>
8105
8106         poll: Move AC_LIBOBJ invocations to module description.
8107         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8108         invocations from here...
8109         * modules/poll (configure.ac): ... to here.
8110
8111 2011-05-21  Bruno Haible  <bruno@clisp.org>
8112
8113         pipe-posix: Move AC_LIBOBJ invocations to module description.
8114         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8115         * modules/pipe-posix (configure.ac): ... to here.
8116
8117 2011-05-21  Bruno Haible  <bruno@clisp.org>
8118
8119         openat: Respect rules for use of AC_LIBOBJ.
8120         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8121         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8122         * modules/openat (configure.ac): ... to here.
8123
8124 2011-05-21  Bruno Haible  <bruno@clisp.org>
8125
8126         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8127         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8128         invocation from here...
8129         * modules/obstack-printf (configure.ac): ... to here.
8130         * modules/obstack-printf-posix (configure.ac): ... and here.
8131
8132 2011-05-21  Bruno Haible  <bruno@clisp.org>
8133
8134         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8135         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8136         from here...
8137         * modules/nl_langinfo (configure.ac): ... to here.
8138
8139 2011-05-21  Bruno Haible  <bruno@clisp.org>
8140
8141         nanosleep: Move AC_LIBOBJ invocations to module description.
8142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8143         gl_PREREQ_NANOSLEEP invocations from here...
8144         * modules/nanosleep (configure.ac): ... to here.
8145
8146 2011-05-21  Bruno Haible  <bruno@clisp.org>
8147
8148         mountlist: Move AC_LIBOBJ invocations to module description.
8149         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8150         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8151         * modules/mountlist (configure.ac): ... to here.
8152
8153 2011-05-21  Bruno Haible  <bruno@clisp.org>
8154
8155         mktime: Respect rules for use of AC_LIBOBJ.
8156         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8157         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8158         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8159         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8160         * modules/mktime (configure.ac): ... to here.
8161         * modules/mktime-internal (configure.ac): ... and here.
8162         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8163
8164 2011-05-21  Bruno Haible  <bruno@clisp.org>
8165
8166         mkstemps: Move AC_LIBOBJ invocations to module description.
8167         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8168         here...
8169         * modules/mkstemps (configure.ac): ... to here.
8170
8171 2011-05-21  Bruno Haible  <bruno@clisp.org>
8172
8173         mkstemp: Move AC_LIBOBJ invocations to module description.
8174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8175         gl_PREREQ_MKSTEMP invocations from here...
8176         * modules/mkstemp (configure.ac): ... to here.
8177
8178 2011-05-21  Bruno Haible  <bruno@clisp.org>
8179
8180         mkostemps: Move AC_LIBOBJ invocations to module description.
8181         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8182         here...
8183         * modules/mkostemps (configure.ac): ... to here.
8184
8185 2011-05-21  Bruno Haible  <bruno@clisp.org>
8186
8187         mkostemp: Move AC_LIBOBJ invocations to module description.
8188         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8189         gl_PREREQ_MKOSTEMP invocations from here...
8190         * modules/mkostemp (configure.ac): ... to here.
8191
8192 2011-05-21  Bruno Haible  <bruno@clisp.org>
8193
8194         mknod: Move AC_LIBOBJ invocations to module description.
8195         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8196         * modules/mknod (configure.ac): ... to here.
8197
8198 2011-05-21  Bruno Haible  <bruno@clisp.org>
8199
8200         mkfifoat: Move AC_LIBOBJ invocations to module description.
8201         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8202         here...
8203         * modules/mkfifoat (configure.ac): ... to here.
8204
8205 2011-05-21  Bruno Haible  <bruno@clisp.org>
8206
8207         mkfifo: Respect rules for use of AC_LIBOBJ.
8208         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8209         here...
8210         * modules/mkfifo (configure.ac): ... to here.
8211
8212 2011-05-21  Bruno Haible  <bruno@clisp.org>
8213
8214         mkdtemp: Move AC_LIBOBJ invocations to module description.
8215         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8216         invocations from here...
8217         * modules/mkdtemp (configure.ac): ... to here.
8218
8219 2011-05-21  Bruno Haible  <bruno@clisp.org>
8220
8221         mkdir: Move AC_LIBOBJ invocations to module description.
8222         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8223         * modules/mkdir (configure.ac): ... to here.
8224
8225 2011-05-21  Bruno Haible  <bruno@clisp.org>
8226
8227         memset: Move AC_LIBOBJ invocations to module description.
8228         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8230         here...
8231         * modules/memset (configure.ac): ... to here.
8232
8233 2011-05-21  Bruno Haible  <bruno@clisp.org>
8234
8235         memrchr: Move AC_LIBOBJ invocations to module description.
8236         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8237         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8238         here...
8239         * modules/memrchr (configure.ac): ... to here.
8240
8241 2011-05-21  Bruno Haible  <bruno@clisp.org>
8242
8243         mempcpy: Move AC_LIBOBJ invocations to module description.
8244         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8246         here...
8247         * modules/mempcpy (configure.ac): ... to here.
8248
8249 2011-05-21  Bruno Haible  <bruno@clisp.org>
8250
8251         memmove: Move AC_LIBOBJ invocations to module description.
8252         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8254         here...
8255         * modules/memmove (configure.ac): ... to here.
8256
8257 2011-05-21  Bruno Haible  <bruno@clisp.org>
8258
8259         memmem*: Move AC_LIBOBJ invocations to module description.
8260         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8261         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8262         here...
8263         (gl_FUNC_MEMMEM): ... and here...
8264         * modules/memmem-simple (configure.ac): ... to here.
8265         * modules/memmem (configure.ac): ... and here.
8266
8267 2011-05-21  Bruno Haible  <bruno@clisp.org>
8268
8269         memcpy: Move AC_LIBOBJ invocations to module description.
8270         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8272         here...
8273         * modules/memcpy (configure.ac): ... to here.
8274
8275 2011-05-21  Bruno Haible  <bruno@clisp.org>
8276
8277         memcmp: Simplify autoconf macro.
8278         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8279         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8280         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8281
8282 2011-05-21  Bruno Haible  <bruno@clisp.org>
8283
8284         memcmp: Move AC_LIBOBJ invocations to module description.
8285         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8286         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8287         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8288         * modules/memcmp (configure.ac): ... to here.
8289         (Depends-on): Update conditions.
8290
8291 2011-05-21  Bruno Haible  <bruno@clisp.org>
8292
8293         memchr: Respect rules for use of AC_LIBOBJ.
8294         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8295         invocations from here...
8296         * modules/memchr (configure.ac): ... to here.
8297
8298 2011-05-21  Bruno Haible  <bruno@clisp.org>
8299
8300         mbtowc: Move AC_LIBOBJ invocations to module description.
8301         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8302         invocations from here...
8303         * modules/mbtowc (configure.ac): ... to here.
8304
8305 2011-05-21  Bruno Haible  <bruno@clisp.org>
8306
8307         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8308         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8309         gl_PREREQ_MBSRTOWCS invocations from here...
8310         * modules/mbsrtowcs (configure.ac): ... to here.
8311
8312 2011-05-21  Bruno Haible  <bruno@clisp.org>
8313
8314         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8315         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8316         gl_PREREQ_MBSNRTOWCS invocations from here...
8317         * modules/mbsnrtowcs (configure.ac): ... to here.
8318
8319 2011-05-21  Bruno Haible  <bruno@clisp.org>
8320
8321         mbsinit: Move AC_LIBOBJ invocations to module description.
8322         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8323         invocations from here...
8324         * modules/mbsinit (configure.ac): ... to here.
8325
8326 2011-05-21  Bruno Haible  <bruno@clisp.org>
8327
8328         mbrlen: Move AC_LIBOBJ invocations to module description.
8329         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8330         invocations from here...
8331         * modules/mbrlen (configure.ac): ... to here.
8332
8333 2011-05-21  Bruno Haible  <bruno@clisp.org>
8334
8335         mbrtowc: Respect rules for use of AC_LIBOBJ.
8336         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8337         invocations from here...
8338         * modules/mbrtowc (configure.ac): ... to here.
8339
8340 2011-05-21  Bruno Haible  <bruno@clisp.org>
8341
8342         malloc-*: Move AC_LIBOBJ invocations to module description.
8343         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8344         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8345         AC_LIBOBJ invocations from here...
8346         * modules/malloc-gnu (configure.ac): ... to here.
8347         * modules/malloc-posix (configure.ac): ... and here.
8348
8349 2011-05-21  Bruno Haible  <bruno@clisp.org>
8350
8351         lstat, openat: Respect rules for use of AC_LIBOBJ.
8352         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8353         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8354         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8355         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8356         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8357         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8358         here.
8359         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8360
8361 2011-05-21  Bruno Haible  <bruno@clisp.org>
8362
8363         lseek: Move AC_LIBOBJ invocations to module description.
8364         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8365         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8366         * modules/lseek (configure.ac): ... to here.
8367
8368 2011-05-21  Bruno Haible  <bruno@clisp.org>
8369
8370         linkat: Move AC_LIBOBJ invocations to module description.
8371         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8372         here...
8373         * modules/linkat (configure.ac): ... to here.
8374
8375 2011-05-21  Bruno Haible  <bruno@clisp.org>
8376
8377         link: Respect rules for use of AC_LIBOBJ.
8378         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8379         * modules/link (configure.ac): ... to here.
8380
8381 2011-05-21  Bruno Haible  <bruno@clisp.org>
8382
8383         lchown: Move AC_LIBOBJ invocations to module description.
8384         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8385         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8386         * modules/lchown (configure.ac): ... to here.
8387
8388 2011-05-21  Bruno Haible  <bruno@clisp.org>
8389
8390         iswctype: Move AC_LIBOBJ invocations to module description.
8391         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8392         here...
8393         * modules/iswctype (configure.ac): ... to here.
8394
8395 2011-05-21  Bruno Haible  <bruno@clisp.org>
8396
8397         iswblank: Move AC_LIBOBJ invocations to module description.
8398         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8399         here...
8400         * modules/iswblank (configure.ac): ... to here.
8401
8402 2011-05-21  Bruno Haible  <bruno@clisp.org>
8403
8404         atanl: Move AC_LIBOBJ invocations to module description.
8405         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8406         * modules/atanl (configure.ac): ... to here.
8407
8408 2011-05-21  Bruno Haible  <bruno@clisp.org>
8409
8410         acosl: Move AC_LIBOBJ invocations to module description.
8411         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8412         * modules/acosl (configure.ac): ... to here.
8413
8414 2011-05-21  Bruno Haible  <bruno@clisp.org>
8415
8416         asinl: Respect rules for use of AC_LIBOBJ.
8417         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8418         * modules/asinl (configure.ac): ... to here.
8419
8420 2011-05-21  Bruno Haible  <bruno@clisp.org>
8421
8422         tanl: Move AC_LIBOBJ invocations to module description.
8423         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8424         * modules/tanl (configure.ac): ... to here.
8425
8426 2011-05-21  Bruno Haible  <bruno@clisp.org>
8427
8428         cosl: Move AC_LIBOBJ invocations to module description.
8429         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8430         * modules/cosl (configure.ac): ... to here.
8431
8432 2011-05-21  Bruno Haible  <bruno@clisp.org>
8433
8434         sinl: Move AC_LIBOBJ invocations to module description.
8435         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8436         * modules/sinl (configure.ac): ... to here.
8437
8438 2011-05-21  Bruno Haible  <bruno@clisp.org>
8439
8440         logl: Move AC_LIBOBJ invocations to module description.
8441         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8442         * modules/logl (configure.ac): ... to here.
8443
8444 2011-05-21  Bruno Haible  <bruno@clisp.org>
8445
8446         expl: Move AC_LIBOBJ invocations to module description.
8447         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8448         * modules/expl (configure.ac): ... to here.
8449
8450 2011-05-21  Bruno Haible  <bruno@clisp.org>
8451
8452         roundl: Move AC_LIBOBJ invocations to module description.
8453         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8454         * modules/roundl (configure.ac): ... to here.
8455
8456 2011-05-21  Bruno Haible  <bruno@clisp.org>
8457
8458         round: Move AC_LIBOBJ invocations to module description.
8459         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8460         * modules/round (configure.ac): ... to here.
8461
8462 2011-05-21  Bruno Haible  <bruno@clisp.org>
8463
8464         roundf: Move AC_LIBOBJ invocations to module description.
8465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8466         * modules/roundf (configure.ac): ... to here.
8467
8468 2011-05-21  Bruno Haible  <bruno@clisp.org>
8469
8470         truncl: Move AC_LIBOBJ invocations to module description.
8471         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8472         * modules/truncl (configure.ac): ... to here.
8473
8474 2011-05-21  Bruno Haible  <bruno@clisp.org>
8475
8476         trunc: Move AC_LIBOBJ invocations to module description.
8477         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8478         * modules/trunc (configure.ac): ... to here.
8479
8480 2011-05-21  Bruno Haible  <bruno@clisp.org>
8481
8482         truncf: Move AC_LIBOBJ invocations to module description.
8483         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8484         * modules/truncf (configure.ac): ... to here.
8485
8486 2011-05-21  Bruno Haible  <bruno@clisp.org>
8487
8488         ceill: Move AC_LIBOBJ invocations to module description.
8489         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8490         * modules/ceill (configure.ac): ... to here.
8491
8492 2011-05-21  Bruno Haible  <bruno@clisp.org>
8493
8494         ceil: Move AC_LIBOBJ invocations to module description.
8495         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8496         * modules/ceil (configure.ac): ... to here.
8497
8498 2011-05-21  Bruno Haible  <bruno@clisp.org>
8499
8500         ceilf: Move AC_LIBOBJ invocations to module description.
8501         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8502         * modules/ceilf (configure.ac): ... to here.
8503
8504 2011-05-21  Bruno Haible  <bruno@clisp.org>
8505
8506         floorl: Respect rules for use of AC_LIBOBJ.
8507         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8508         * modules/floorl (configure.ac): ... to here.
8509
8510 2011-05-21  Bruno Haible  <bruno@clisp.org>
8511
8512         floor: Respect rules for use of AC_LIBOBJ.
8513         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8514         * modules/floor (configure.ac): ... to here.
8515
8516 2011-05-21  Bruno Haible  <bruno@clisp.org>
8517
8518         floorf: Move AC_LIBOBJ invocations to module description.
8519         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8520         * modules/floorf (configure.ac): ... to here.
8521
8522 2011-05-20  Bruno Haible  <bruno@clisp.org>
8523
8524         sqrtl: Respect rules for use of AC_LIBOBJ.
8525         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8526         * modules/sqrtl (configure.ac): ... to here.
8527
8528 2011-05-20  Bruno Haible  <bruno@clisp.org>
8529
8530         ldexpl: Respect rules for use of AC_LIBOBJ.
8531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8532         * modules/ldexpl (configure.ac): ... to here.
8533
8534 2011-05-20  Bruno Haible  <bruno@clisp.org>
8535
8536         frexpl*: Respect rules for use of AC_LIBOBJ.
8537         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8538         invocation from here...
8539         * modules/frexpl (configure.ac): ... to here.
8540         * modules/frexpl-nolibm (configure.ac): ... and here.
8541
8542 2011-05-20  Bruno Haible  <bruno@clisp.org>
8543
8544         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8545         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8546         invocation from here...
8547         * modules/frexp (configure.ac): ... to here.
8548         * modules/frexp-nolibm (configure.ac): ... and here.
8549
8550 2011-05-20  Bruno Haible  <bruno@clisp.org>
8551
8552         isnan: Respect rules for use of AC_LIBOBJ.
8553         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8554         invocations here.
8555         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8556         REPLACE_ISNAN.
8557         * modules/isnand (configure.ac): Likewise.
8558         * modules/isnanl (configure.ac): Likewise.
8559
8560 2011-05-20  Bruno Haible  <bruno@clisp.org>
8561
8562         isnanl*: Respect rules for use of AC_LIBOBJ.
8563         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8564         invocation from here...
8565         * modules/isnanl (configure.ac): ... to here.
8566         * modules/isnanl-nolibm (configure.ac): ... and here.
8567
8568 2011-05-20  Bruno Haible  <bruno@clisp.org>
8569
8570         isnand*: Move AC_LIBOBJ invocations to module description.
8571         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8572         invocation from here...
8573         * modules/isnand (configure.ac): ... to here.
8574         * modules/isnand-nolibm (configure.ac): ... and here.
8575
8576 2011-05-20  Bruno Haible  <bruno@clisp.org>
8577
8578         isnanf*: Move AC_LIBOBJ invocations to module description.
8579         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8580         invocation from here...
8581         * modules/isnanf (configure.ac): ... to here.
8582         * modules/isnanf-nolibm (configure.ac): ... and here.
8583
8584 2011-05-20  Bruno Haible  <bruno@clisp.org>
8585
8586         isnan*: Separate the AC_LIBOBJ invocations.
8587         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8588         AC_LIBOBJ invocation.
8589         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8590         here.
8591         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8592         AC_LIBOBJ invocation.
8593         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8594         here.
8595         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8596         AC_LIBOBJ invocation.
8597         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8598         here.
8599         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8600
8601 2011-05-08  Bruno Haible  <bruno@clisp.org>
8602
8603         isinf: Move AC_LIBOBJ invocations to module description.
8604         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8605         * modules/isinf (configure.ac): ... to here.
8606
8607 2011-05-08  Bruno Haible  <bruno@clisp.org>
8608
8609         isfinite: Move AC_LIBOBJ invocations to module description.
8610         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8611         * modules/isfinite (configure.ac): ... to here.
8612
8613 2011-05-08  Bruno Haible  <bruno@clisp.org>
8614
8615         isblank: Move AC_LIBOBJ invocations to module description.
8616         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8617         here...
8618         * modules/isblank (configure.ac): ... to here.
8619
8620 2011-05-08  Bruno Haible  <bruno@clisp.org>
8621
8622         isapipe: Move AC_LIBOBJ invocations to module description.
8623         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8624         gl_PREREQ_ISAPIPE invocations from here...
8625         * modules/isapipe (configure.ac): ... to here.
8626         (Depends-on): Update condition.
8627
8628 2011-05-08  Bruno Haible  <bruno@clisp.org>
8629
8630         ioctl: Move AC_LIBOBJ invocations to module description.
8631         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8632         invocations from here...
8633         * modules/ioctl (configure.ac): ... to here.
8634         (Depends-on): Update condition.
8635
8636 2011-05-08  Bruno Haible  <bruno@clisp.org>
8637
8638         imaxdiv: Move AC_LIBOBJ invocations to module description.
8639         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8640         invocations from here...
8641         * modules/imaxdiv (configure.ac): ... to here.
8642
8643 2011-05-08  Bruno Haible  <bruno@clisp.org>
8644
8645         imaxabs: Move AC_LIBOBJ invocations to module description.
8646         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8647         invocations from here...
8648         * modules/imaxabs (configure.ac): ... to here.
8649
8650 2011-05-08  Bruno Haible  <bruno@clisp.org>
8651
8652         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8653         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8654         AC_LIBOBJ invocations from here...
8655         * modules/getaddrinfo (configure.ac): ... to here.
8656         (Depends-on): Add conditions.
8657
8658 2011-05-08  Bruno Haible  <bruno@clisp.org>
8659
8660         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8661         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8662         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8663         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8664         (gl_PREREQ_INET_PTON): ... from here.
8665         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8666         gl_PREREQ_INET_PTON here.
8667         (Depends-on): Update condition.
8668
8669 2011-05-08  Bruno Haible  <bruno@clisp.org>
8670
8671         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8672         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8673         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8674         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8675         (gl_PREREQ_INET_NTOP): ... from here.
8676         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8677         gl_PREREQ_INET_NTOP here.
8678         (Depends-on): Update condition.
8679
8680 2011-05-08  Bruno Haible  <bruno@clisp.org>
8681
8682         iconv_open: Move AC_LIBOBJ invocations to module description.
8683         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8684         AC_LIBOBJ invocations from here...
8685         * modules/iconv_open (configure.ac): ... to here.
8686
8687 2011-05-08  Bruno Haible  <bruno@clisp.org>
8688
8689         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8690         If module 'iconv_open' is among the main modules and module
8691         'iconv_open-utf' is among the tests dependencies, then
8692         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8693         return the special iconv_t values. Therefore iconv() and iconv_close()
8694         must support these special iconv_t values, already in lib, not only in
8695         tests.
8696         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8697         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8698         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8699         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8700         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8701         (Depends-on): Add the dependencies of iconv_open-utf.
8702         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8703         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8704         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8705
8706 2011-05-08  Bruno Haible  <bruno@clisp.org>
8707
8708         group-member: Move AC_LIBOBJ invocations to module description.
8709         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8710         gl_PREREQ_GROUP_MEMBER invocations from here...
8711         * modules/group-member (configure.ac): ... to here.
8712
8713 2011-05-08  Bruno Haible  <bruno@clisp.org>
8714
8715         grantpt: Move AC_LIBOBJ invocations to module description.
8716         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8717         invocations from here...
8718         * modules/grantpt (configure.ac): ... to here.
8719
8720 2011-05-08  Bruno Haible  <bruno@clisp.org>
8721
8722         glob: Move AC_LIBOBJ invocations to module description.
8723         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8724         from here...
8725         * modules/glob (configure.ac): ... to here.
8726
8727 2011-05-08  Bruno Haible  <bruno@clisp.org>
8728
8729         getusershell: Move AC_LIBOBJ invocations to module description.
8730         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8731         Move AC_LIBOBJ invocation from here...
8732         * modules/getusershell (configure.ac): ... to here.
8733         (Depends-on): Update condition.
8734
8735 2011-05-08  Bruno Haible  <bruno@clisp.org>
8736
8737         gettimeofday: Move AC_LIBOBJ invocations to module description.
8738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8739         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8740         gl_PREREQ_GETTIMEOFDAY invocations from here...
8741         * modules/gettimeofday (configure.ac): ... to here.
8742
8743 2011-05-08  Bruno Haible  <bruno@clisp.org>
8744
8745         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8746         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8747         just gl_FUNC_TZSET.
8748         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8749         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8751         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8752
8753 2011-05-08  Bruno Haible  <bruno@clisp.org>
8754
8755         getsubopt: Move AC_LIBOBJ invocations to module description.
8756         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8757         gl_PREREQ_GETSUBOPT invocations from here...
8758         * modules/getsubopt (configure.ac): ... to here.
8759
8760 2011-05-08  Bruno Haible  <bruno@clisp.org>
8761
8762         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8763         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8764         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8765         * modules/getpass-gnu (configure.ac): ... to here.
8766
8767 2011-05-08  Bruno Haible  <bruno@clisp.org>
8768
8769         getpass: Move AC_LIBOBJ invocations to module description.
8770         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8771         gl_PREREQ_GETPASS invocations from here...
8772         * modules/getpass (configure.ac): ... to here.
8773
8774 2011-05-08  Bruno Haible  <bruno@clisp.org>
8775
8776         getpagesize: Move AC_LIBOBJ invocations to module description.
8777         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8778         from here...
8779         * modules/getpagesize (configure.ac): ... to here.
8780
8781 2011-05-08  Bruno Haible  <bruno@clisp.org>
8782
8783         getopt: Move AC_LIBOBJ invocations to module description.
8784         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8785         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8786         invocations from here...
8787         * modules/getopt-gnu (configure.ac): ... to here.
8788         * modules/getopt-posix (configure.ac): ... and here.
8789         (Depends-on): Update condition.
8790
8791 2011-05-08  Bruno Haible  <bruno@clisp.org>
8792
8793         getopt, argp: Respect rules for use of AC_LIBOBJ.
8794         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8795         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8796         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8797         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8798
8799 2011-05-08  Bruno Haible  <bruno@clisp.org>
8800
8801         getlogin_r: Move AC_LIBOBJ invocations to module description.
8802         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8803         gl_PREREQ_GETLOGIN_R invocations from here...
8804         * modules/getlogin_r (configure.ac): ... to here.
8805
8806 2011-05-08  Bruno Haible  <bruno@clisp.org>
8807
8808         getlogin: Move AC_LIBOBJ invocations to module description.
8809         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8810         here...
8811         * modules/getlogin (configure.ac): ... to here.
8812
8813 2011-05-08  Bruno Haible  <bruno@clisp.org>
8814
8815         getloadavg: Move AC_LIBOBJ invocations to module description.
8816         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8817         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8818         * modules/getloadavg (configure.ac): ... to here.
8819
8820 2011-05-08  Bruno Haible  <bruno@clisp.org>
8821
8822         gethrxtime: Move AC_LIBOBJ invocations to module description.
8823         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8824         LIB_GETHRXTIME from here...
8825         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8826         invocations from here...
8827         * modules/gethrxtime (configure.ac): ... to here.
8828
8829 2011-05-08  Bruno Haible  <bruno@clisp.org>
8830
8831         gethostname: Move AC_LIBOBJ invocations to module description.
8832         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8833         gl_PREREQ_GETHOSTNAME invocations from here...
8834         * modules/gethostname (configure.ac): ... to here.
8835
8836 2011-05-08  Bruno Haible  <bruno@clisp.org>
8837
8838         getgroups: Move AC_LIBOBJ invocations to module description.
8839         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8840         here...
8841         * modules/getgroups (configure.ac): ... to here.
8842
8843 2011-05-08  Bruno Haible  <bruno@clisp.org>
8844
8845         getdtablesize: Move AC_LIBOBJ invocations to module description.
8846         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8847         invocation from here...
8848         * modules/getdtablesize (configure.ac): ... to here.
8849
8850 2011-05-08  Bruno Haible  <bruno@clisp.org>
8851
8852         getdomainname: Move AC_LIBOBJ invocations to module description.
8853         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8854         gl_PREREQ_GETDOMAINNAME invocations from here...
8855         * modules/getdomainname (configure.ac): ... to here.
8856
8857 2011-05-08  Bruno Haible  <bruno@clisp.org>
8858
8859         getline: Move AC_LIBOBJ invocations to module description.
8860         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8861         invocations from here...
8862         * modules/getline (configure.ac): ... to here.
8863
8864 2011-05-08  Bruno Haible  <bruno@clisp.org>
8865
8866         getline: Simplify.
8867         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8868         It's already handled through the module dependency.
8869
8870 2011-05-08  Bruno Haible  <bruno@clisp.org>
8871
8872         getdelim: Move AC_LIBOBJ invocations to module description.
8873         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8874         and gl_PREREQ_GETDELIM invocations from here...
8875         * modules/getdelim (configure.ac): ... to here.
8876         (Depends-on): Fix condition.
8877
8878 2011-05-08  Bruno Haible  <bruno@clisp.org>
8879
8880         getcwd: Move AC_LIBOBJ invocations to module description.
8881         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8882         invocations from here...
8883         * modules/getcwd (configure.ac): ... to here.
8884
8885 2011-05-08  Bruno Haible  <bruno@clisp.org>
8886
8887         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8888         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8889         here...
8890         * modules/getcwd-lgpl (configure.ac): ... to here.
8891
8892 2011-05-07  Bruno Haible  <bruno@clisp.org>
8893
8894         crypto/gc: Move AC_LIBOBJ invocations to module description.
8895         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8896         * modules/crypto/gc (configure.ac): ... to here.
8897
8898 2011-05-07  Bruno Haible  <bruno@clisp.org>
8899
8900         fwriting: Move AC_LIBOBJ invocations to module description.
8901         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8902         here...
8903         * modules/fwriting (configure.ac): ... to here.
8904
8905 2011-05-07  Bruno Haible  <bruno@clisp.org>
8906
8907         fwritable: Move AC_LIBOBJ invocations to module description.
8908         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8909         here...
8910         * modules/fwritable (configure.ac): ... to here.
8911
8912 2011-05-07  Bruno Haible  <bruno@clisp.org>
8913
8914         futimens: Move AC_LIBOBJ invocations to module description.
8915         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8916         here...
8917         * modules/futimens (configure.ac): ... to here.
8918
8919 2011-05-07  Bruno Haible  <bruno@clisp.org>
8920
8921         ftruncate: Move AC_LIBOBJ invocations to module description.
8922         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8923         gl_PREREQ_FTRUNCATE invocations from here...
8924         * modules/ftruncate (configure.ac): ... to here.
8925
8926 2011-05-07  Bruno Haible  <bruno@clisp.org>
8927
8928         fsync: Move AC_LIBOBJ invocations to module description.
8929         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8930         invocations from here...
8931         * modules/fsync (configure.ac): ... to here.
8932
8933 2011-05-07  Bruno Haible  <bruno@clisp.org>
8934
8935         fsusage: Move AC_LIBOBJ invocations to module description.
8936         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8937         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8938         * modules/fsusage (configure.ac): ... to here.
8939
8940 2011-05-07  Bruno Haible  <bruno@clisp.org>
8941
8942         freopen: Move AC_LIBOBJ invocations to module description.
8943         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8944         invocations from here...
8945         * modules/freopen (configure.ac): ... to here.
8946
8947 2011-05-07  Bruno Haible  <bruno@clisp.org>
8948
8949         free: Move AC_LIBOBJ invocations to module description.
8950         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8951         invocations from here...
8952         * modules/free (configure.ac): ... to here.
8953
8954 2011-05-07  Bruno Haible  <bruno@clisp.org>
8955
8956         freadable: Move AC_LIBOBJ invocations to module description.
8957         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8958         here...
8959         * modules/freadable (configure.ac): ... to here.
8960
8961 2011-05-07  Bruno Haible  <bruno@clisp.org>
8962
8963         fpurge: Move AC_LIBOBJ invocations to module description.
8964         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8965         invocations from here...
8966         * modules/fpurge (configure.ac): ... to here.
8967
8968 2011-05-07  Bruno Haible  <bruno@clisp.org>
8969
8970         fpending: Move AC_LIBOBJ invocations to module description.
8971         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8972         gl_FUNC_FPENDING.
8973         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8974         invocations from here...
8975         * modules/fpending (configure.ac): ... to here.
8976
8977 2011-05-07  Bruno Haible  <bruno@clisp.org>
8978
8979         fopen: Move AC_LIBOBJ invocations to module description.
8980         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8981         invocations from here...
8982         * modules/fopen (configure.ac): ... to here.
8983
8984 2011-05-07  Bruno Haible  <bruno@clisp.org>
8985
8986         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8987         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8988         gl_FUNC_FNMATCH_POSIX.
8989         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8990         invocations from here...
8991         * modules/fnmatch (configure.ac): ... to here.
8992         * modules/fnmatch-gnu (configure.ac): ... and here.
8993
8994 2011-05-07  Bruno Haible  <bruno@clisp.org>
8995
8996         flock: Move AC_LIBOBJ invocations to module description.
8997         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8998         invocations from here...
8999         * modules/flock (configure.ac): ... to here.
9000
9001 2011-05-07  Bruno Haible  <bruno@clisp.org>
9002
9003         fileblocks: Move AC_LIBOBJ invocations to module description.
9004         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9005         gl_PREREQ_FILEBLOCKS invocations from here...
9006         * modules/fileblocks (configure.ac): ... to here.
9007
9008 2011-05-06  Bruno Haible  <bruno@clisp.org>
9009
9010         fflush: Move AC_LIBOBJ invocations to module description.
9011         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9012         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9013         invocations from here...
9014         * modules/fflush (configure.ac): ... to here.
9015
9016 2011-05-06  Bruno Haible  <bruno@clisp.org>
9017
9018         fdopendir: Move AC_LIBOBJ invocations to module description.
9019         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9020         here...
9021         * modules/fdopendir (configure.ac): ... to here.
9022         (Depends-on): Improve conditions.
9023
9024 2011-05-06  Bruno Haible  <bruno@clisp.org>
9025
9026         _Exit: Move AC_LIBOBJ invocations to module description.
9027         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9028         invocations from here...
9029         * modules/_Exit (configure.ac): ... to here.
9030
9031 2011-05-21  Bruno Haible  <bruno@clisp.org>
9032
9033         euidaccess: Respect rules for use of AC_LIBOBJ.
9034         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9036         from here...
9037         * modules/euidaccess (configure.ac): ... to here.
9038
9039 2011-05-06  Bruno Haible  <bruno@clisp.org>
9040
9041         error: Move AC_LIBOBJ invocations to module description.
9042         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9043         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9044         invocations from here...
9045         * modules/error (configure.ac): ... to here.
9046
9047 2011-05-06  Bruno Haible  <bruno@clisp.org>
9048
9049         duplocale: Move AC_LIBOBJ invocations to module description.
9050         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9051         gl_PREREQ_DUPLOCALE invocations from here...
9052         * modules/duplocale (configure.ac): ... to here.
9053
9054 2011-05-05  Bruno Haible  <bruno@clisp.org>
9055
9056         dirfd: Move AC_LIBOBJ invocations to module description.
9057         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9058         gl_FUNC_DIRFD.
9059         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9060         here...
9061         * modules/dirfd (configure.ac): ... to here.
9062         (Depends-on): Fix condition.
9063
9064 2011-05-05  Bruno Haible  <bruno@clisp.org>
9065
9066         chown: Respect rules for use of AC_LIBOBJ.
9067         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9068         * modules/chown (configure.ac): ... to here.
9069
9070 2011-05-05  Bruno Haible  <bruno@clisp.org>
9071
9072         chdir-long: Move AC_LIBOBJ invocations to module description.
9073         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9074         gl_PREREQ_CHDIR_LONG invocations from here...
9075         * modules/chdir-long (configure.ac): ... to here.
9076
9077 2011-05-05  Bruno Haible  <bruno@clisp.org>
9078
9079         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9080         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9081         from here...
9082         * modules/canonicalize-lgpl (configure.ac): ... to here.
9083
9084 2011-05-05  Bruno Haible  <bruno@clisp.org>
9085
9086         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9087         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9088         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9089         REPLACE_CALLOC.
9090         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9091         * modules/calloc-gnu (configure.ac): Likewise.
9092
9093 2011-05-05  Bruno Haible  <bruno@clisp.org>
9094
9095         btowc: Move AC_LIBOBJ invocations to module description.
9096         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9097         invocations from here...
9098         * modules/btowc (configure.ac): ... to here.
9099
9100 2011-05-21  Bruno Haible  <bruno@clisp.org>
9101
9102         atexit: Move AC_LIBOBJ invocations to module description.
9103         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9104         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9105         here...
9106         * modules/atexit (configure.ac): ... to here.
9107
9108 2011-05-05  Bruno Haible  <bruno@clisp.org>
9109
9110         atoll: Move AC_LIBOBJ invocations to module description.
9111         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9112         invocations from here...
9113         * modules/atoll (configure.ac): ... to here.
9114
9115 2011-05-05  Bruno Haible  <bruno@clisp.org>
9116
9117         argz: Move AC_LIBOBJ invocations to module description.
9118         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9119         * modules/argz (configure.ac): ... to here.
9120
9121 2011-05-05  Bruno Haible  <bruno@clisp.org>
9122
9123         alphasort: Move AC_LIBOBJ invocations to module description.
9124         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9125         gl_PREREQ_ALPHASORT invocations from here...
9126         * modules/alphasort (configure.ac): ... to here.
9127
9128 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9129
9130         verify: new macro verify_expr; verify_true deprecated
9131         * NEWS: Mention this.
9132         * doc/verify.texi (Compile-time Assertions): Document this.
9133         * lib/verify.h (verify_true): Deprecate.
9134         (verify_expr): New macro.
9135         * tests/test-verify.c (function): Test verify_expr.
9136
9137 2011-06-14  Jim Meyering  <meyering@redhat.com>
9138
9139         init.sh: give more portable redirection-related advice in a comment
9140         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9141         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9142         for lots of discussion.  Stefano Lattarini suggested the solution
9143         of putting "9>&2" after the command.  Reported by Bruno Haible.
9144
9145 2011-06-13  Bruno Haible  <bruno@clisp.org>
9146
9147         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9148         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9149         'none'.
9150
9151 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9152
9153         ftoastr: use strtof only if HAVE_STRTOF
9154         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9156         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9157         * modules/ftoastr (configure.ac): Check for strtof.
9158
9159 2011-06-13  Bruno Haible  <bruno@clisp.org>
9160
9161         gnulib-tool: Addendum to 2011-06-08 commit.
9162         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9163         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9164
9165 2011-06-13  Bruno Haible  <bruno@clisp.org>
9166
9167         fseeko: Provide a non-inline replacement of fseek().
9168         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9169         * modules/fseeko (Depends-on): Add fseek.
9170         * modules/fseek (License): Change to LGPLv2+.
9171
9172 2011-06-13  Bruno Haible  <bruno@clisp.org>
9173
9174         ftello: Provide a non-inline replacement of ftell().
9175         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9176         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9177         not have ftello() (such as on mingw).
9178         * modules/ftello (Depends-on): Add ftell.
9179         * modules/ftell (License): Change to LGPLv2+.
9180
9181 2011-05-07  Bruno Haible  <bruno@clisp.org>
9182
9183         ftell: Move AC_LIBOBJ invocations to module description.
9184         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9185         * modules/ftell (configure.ac): ... to here.
9186
9187 2011-05-07  Bruno Haible  <bruno@clisp.org>
9188
9189         ftello: Respect rules for use of AC_LIBOBJ.
9190         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9191         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9192         here...
9193         * modules/ftello (configure.ac): ... to here.
9194
9195 2011-05-07  Bruno Haible  <bruno@clisp.org>
9196
9197         fseeko: Simplify.
9198         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9199         (gl_FUNC_FSEEKO): Inline it here.
9200
9201 2011-05-07  Bruno Haible  <bruno@clisp.org>
9202
9203         fseek: Move AC_LIBOBJ invocations to module description.
9204         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9205         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9206         * modules/fseek (configure.ac): ... to here.
9207
9208 2011-05-07  Bruno Haible  <bruno@clisp.org>
9209
9210         fseek: Respect rules for use of AC_LIBOBJ.
9211         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9212         here...
9213         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9214
9215 2011-05-07  Bruno Haible  <bruno@clisp.org>
9216
9217         fseeko: Respect rules for use of AC_LIBOBJ.
9218         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9219         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9220         here...
9221         * modules/fseeko (configure.ac): ... to here.
9222
9223 2011-06-13  Bruno Haible  <bruno@clisp.org>
9224
9225         gnulib-tool: Allow comments in the 'Depends-on' section.
9226         * doc/gnulib.texi (Module description): Mention comment syntax in the
9227         Depends-on section.
9228         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9229
9230 2011-06-13  Bruno Haible  <bruno@clisp.org>
9231
9232         file-set.h: guard __attibute__ use, now that it's not always defined
9233         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9234         versions that support it.  This fixes a coreutils build failure with
9235         the vendor cc on HP-UX 11.31.
9236
9237 2011-06-12  Bruno Haible  <bruno@clisp.org>
9238
9239         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9240         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9241         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9242         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9243         (acl, aclsort): New declarations.
9244         (aclv_nontrivial): New declaration.
9245         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9246         (file_has_acl): Read also the second kind of HP-UX ACLs.
9247         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9248         kind of HP-UX ACLs if the first kind fails.
9249         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9250         second kind of HP-UX ACLs.
9251         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9252         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9253         agree.
9254         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9255         hpuxjfs.
9256         Handle hpuxjfs.
9257         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9258         hpuxjfs.
9259         Handle hpuxjfs.
9260         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9261         (func_test_same_acls): Use both lsacl and getacl.
9262         Handle hpuxjfs.
9263         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9264         (func_test_same_acls): Use both lsacl and getacl.
9265         Handle hpuxjfs.
9266
9267 2011-06-12  Bruno Haible  <bruno@clisp.org>
9268
9269         acl: Complete the 2010-08-10 fix.
9270         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9271         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9272         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9273         explicitly.
9274         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9275         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9276
9277 2011-06-12  Bruno Haible  <bruno@clisp.org>
9278
9279         spawn-pipe tests: Comments.
9280         * tests/test-spawn-pipe-child.c (main): Update comment.
9281         Reported by James Youngman <jay@gnu.org>.
9282
9283 2011-06-11  James Youngman  <jay@gnu.org>
9284
9285         New module 'stat-size'.
9286         * modules/stat-size: New module.  Provides macros for accessing
9287         file size information in instances of struct stat.  Depends on the
9288         fileblocks module because it calls st_blocks.
9289         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9290         * doc/gnulib.texi: Include stat-size.texi.
9291         * doc/stat-size.texi: Documentation for this module.
9292         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9293         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9294         AC_STRUCT_ST_BLOCKS.
9295
9296 2011-06-09  Bruno Haible  <bruno@clisp.org>
9297
9298         thread: Support pthreads-win32.
9299         * lib/glthread/thread.h (gl_thread_self): Define differently on
9300         pthreads-win32.
9301         (gl_null_thread): New declaration.
9302         (gl_thread_self_pointer): New macro.
9303         * lib/glthread/thread.c (gl_null_thread): New constant.
9304         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9305         gl_thread_self.
9306         * tests/test-tls.c: Likewise.
9307         Suggested by Paul Eggert. Reported by Eric Blake.
9308
9309 2011-06-09  Bruno Haible  <bruno@clisp.org>
9310
9311         thread: Fix confusion between NULL and 0.
9312         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9313         Reported by Paul Eggert.
9314
9315 2011-06-09  Bruno Haible  <bruno@clisp.org>
9316
9317         spawn-pipe tests: Avoid test failure on HP-UX 11.
9318         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9319         is closed.
9320
9321 2011-06-09  Bruno Haible  <bruno@clisp.org>
9322
9323         acl tests: Fix compilation error on HP-UX 11.
9324         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9325
9326 2011-06-09  Bruno Haible  <bruno@clisp.org>
9327
9328         rmdir: Avoid test failure on HP-UX 10.20.
9329         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9330         EEXIST.
9331
9332 2011-06-08  Eric Blake  <eblake@redhat.com>
9333
9334         perror: fix test on mingw
9335         * modules/perror-tests (Depends-on): Add dup2.
9336
9337         strerror_r-posix: fix on MacOS
9338         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9340         logic bug.
9341         * lib/strerror_r.c (strerror_r): Fix the bug.
9342         * lib/strerror.c (strerror): Likewise.
9343         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9344         problem.
9345         * doc/posix-functions/strerror.texi (strerror): Likewise.
9346         * doc/posix-functions/perror.texi (perror): Likewise.
9347         * tests/test-strerror.c (main): Enhance test.
9348         * tests/test-strerror_r.c (main): Likewise.
9349
9350 2011-06-08  Bruno Haible  <bruno@clisp.org>
9351
9352         gnulib-tool: Better isolation between different gnulib-tool invocations.
9353         * gnulib-tool: New option --witness-c-macro.
9354         (witness_c_macro): New variable.
9355         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9356         AM_CPPFLAGS define it as a C macro.
9357         (func_emit_tests_Makefile_am): Likewise.
9358         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9359         read it from there.
9360         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9361         m4_define, not AC_DEFUN.
9362         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9363         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9364         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9365         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9366         s|...|...|, to substitute the values of the GNULIB_* module indicator
9367         variables.
9368         * modules/dirent (Makefile.am): Likewise.
9369         * modules/fcntl-h (Makefile.am): Likewise.
9370         * modules/iconv-h (Makefile.am): Likewise.
9371         * modules/langinfo (Makefile.am): Likewise.
9372         * modules/locale (Makefile.am): Likewise.
9373         * modules/math (Makefile.am): Likewise.
9374         * modules/netdb (Makefile.am): Likewise.
9375         * modules/poll-h (Makefile.am): Likewise.
9376         * modules/pty (Makefile.am): Likewise.
9377         * modules/search (Makefile.am): Likewise.
9378         * modules/signal (Makefile.am): Likewise.
9379         * modules/spawn (Makefile.am): Likewise.
9380         * modules/stdio (Makefile.am): Likewise.
9381         * modules/stdlib (Makefile.am): Likewise.
9382         * modules/string (Makefile.am): Likewise.
9383         * modules/sys_ioctl (Makefile.am): Likewise.
9384         * modules/sys_select (Makefile.am): Likewise.
9385         * modules/sys_socket (Makefile.am): Likewise.
9386         * modules/sys_stat (Makefile.am): Likewise.
9387         * modules/sys_times (Makefile.am): Likewise.
9388         * modules/sys_utsname (Makefile.am): Likewise.
9389         * modules/sys_wait (Makefile.am): Likewise.
9390         * modules/termios (Makefile.am): Likewise.
9391         * modules/time (Makefile.am): Likewise.
9392         * modules/unistd (Makefile.am): Likewise.
9393         * modules/wchar (Makefile.am): Likewise.
9394
9395 2011-06-08  Eric Blake  <eblake@redhat.com>
9396
9397         strerror: simplify replacement
9398         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9399         * modules/strerror (configure.ac): No prereqs needed here...
9400         * modules/strerror-override (configure.ac): ...but this needs it.
9401         (Files): Add file for needed prereq macro.
9402
9403 2011-06-08  Bruno Haible  <bruno@clisp.org>
9404
9405         strerror_r-posix: Tweaks.
9406         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9407         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9409         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9410         (gl_FUNC_STRERROR_R): ... to here.
9411         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9412
9413 2011-06-07  Eric Blake  <eblake@redhat.com>
9414
9415         perror: document fixed bugs
9416         * doc/posix-functions/perror.texi (perror): Document recent
9417         patches.
9418
9419 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9420
9421         stat-time: get_stat_birthtime failure is better-defined
9422         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9423         return a timestamp whose tv_sec and tv_nsec values are both -1.
9424         Previously, the spec said only that the tv_nsec value was negative.
9425         This upward-compatible change simplifies GNU tar a bit.
9426
9427 2011-06-07  Eric Blake  <eblake@redhat.com>
9428
9429         strerror_r-posix: work around cygwin 1.7.9
9430         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9431         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9432         bug without replacing strerror_r.
9433         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9434         strerror_r is buggy, but without requiring strerror_r compilation.
9435         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9436
9437         test-perror: relax test to ignore cygwin bug
9438         * tests/test-perror2.c (main): Relax test on requiring detection
9439         of stream errors, and use unbuffered stream.
9440         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9441         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9442         * doc/posix-functions/fputc.texi (fputc): Likewise.
9443         * doc/posix-functions/fputs.texi (fputs): Likewise.
9444         * doc/posix-functions/fputws.texi (fputws): Likewise.
9445         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9446         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9447         * doc/posix-functions/getopt.texi (getopt): Likewise.
9448         * doc/posix-functions/perror.texi (perror): Likewise.
9449         * doc/posix-functions/printf.texi (printf): Likewise.
9450         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9451         * doc/posix-functions/psignal.texi (psignal): Likewise.
9452         * doc/posix-functions/putc.texi (putc): Likewise.
9453         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9454         Likewise.
9455         * doc/posix-functions/putchar.texi (putchar): Likewise.
9456         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9457         Likewise.
9458         * doc/posix-functions/puts.texi (puts): Likewise.
9459         * doc/posix-functions/putwc.texi (putwc): Likewise.
9460         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9461         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9462         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9463         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9464         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9465         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9466         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9467         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9468
9469 2011-05-22  Bruno Haible  <bruno@clisp.org>
9470
9471         strerror: Move AC_LIBOBJ invocations to module description.
9472         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9473         gl_PREREQ_STRERROR invocations from here...
9474         * modules/strerror (configure.ac): ... to here.
9475
9476 2011-05-21  Bruno Haible  <bruno@clisp.org>
9477
9478         perror: Use common idiom.
9479         * modules/perror (configure.ac): Reorder statements.
9480
9481 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9482
9483         tests: fix usage message in 'mktempd_'
9484         * tests/init.sh (mktempd_): In the usage message, use literal
9485         'mktempd_', not '$ME' (which is even undefined), as the name of
9486         the subroutine.
9487
9488 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9489
9490         tests init: new function 'fatal_', for hard errors
9491         Before this patch, the only way offered by tests/init.sh to
9492         properly signal a hard error was the `framework_failure_'
9493         function.  But the error message issued by that function,
9494         as its name would suggest, refers to a set-up failure in the
9495         testsuite, while hard errors can obviously also be due to
9496         other reasons.  The best way to fix this inconsistency is to
9497         introduce a new function with a more general error message.
9498         * tests/init.sh (fatal_): New function.
9499
9500 2011-06-06  Eric Blake  <eblake@redhat.com>
9501
9502         canonicalize-lgpl: use common idiom
9503         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9504         over newer POSIX -Rf.
9505         Reported by Bruno Haible.
9506
9507         canonicalize-lgpl: work around AIX realpath bug
9508         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9509         * doc/posix-functions/realpath.texi (realpath): Document it.
9510         Reported by Bruno Haible.
9511
9512         strerror: work around FreeBSD bug
9513         * lib/strerror.c (strerror): Special case 0.
9514         Reported by Bruno Haible.
9515
9516         strerror-override: avoid bloating errno module
9517         * modules/errno (Files, configure.ac): Move replacement strings...
9518         * modules/strerror-override: ...to new module.
9519         * modules/strerror (Depends-on): Add strerror-override.
9520         * modules/strerror_r-posix (Depends-on): Likewise.
9521         * MODULES.html.sh: Document new module.
9522         Reported by Bruno Haible.
9523
9524 2011-06-06  Bruno Haible  <bruno@clisp.org>
9525
9526         spawn-pipe tests: Rename program.
9527         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9528         * tests/test-spawn-pipe-child.c: Update comment.
9529         * tests/test-spawn-pipe.sh: Update.
9530         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9531
9532         spawn-pipe tests: Link the child program only against libc.
9533         * tests/test-spawn-pipe-child.c: New file, extracted from
9534         tests/test-spawn-pipe.c.
9535         (main): Expect only one argument.
9536         (is_open): New function, copied from tests/test-pipe.c.
9537         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9538         (child_main): Remove function.
9539         (test_pipe): Pass only one argument to the child program.
9540         (main): Remove child process code. Expect the child program's name as
9541         first argument.
9542         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9543         argument.
9544         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9545         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9546         test-spawn-pipe-child against no libraries.
9547
9548 2011-06-06  Bruno Haible  <bruno@clisp.org>
9549
9550         careadlinkat: Avoid mismatch between ssize_t and int.
9551         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9552         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9553
9554 2011-06-06  Jim Meyering  <meyering@redhat.com>
9555
9556         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9557         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9558         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9559
9560 2011-06-05  Bruno Haible  <bruno@clisp.org>
9561
9562         ansi-c++-opt: Interoperability with libtool.
9563         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9564         set the variable to "no", not to ":".
9565         * NEWS: Mention the change.
9566
9567 2011-06-05  Bruno Haible  <bruno@clisp.org>
9568
9569         acl: Fix test failure on AIX 7.
9570         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9571         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9572
9573 2011-06-05  Bruno Haible  <bruno@clisp.org>
9574
9575         pipe-filter-ii: Fix test failure on AIX and IRIX.
9576         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9577         with EAGAIN, retry with a smaller buffer size.
9578
9579 2011-06-05  Bruno Haible  <bruno@clisp.org>
9580
9581         localename: Fix link dependencies.
9582         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9583         * modules/localename-tests (Makefile.am): Link test-localename with
9584         $(LIBTHREAD).
9585
9586 2011-06-05  Bruno Haible  <bruno@clisp.org>
9587
9588         error: Avoid gcc warning.
9589         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9590
9591 2011-06-05  Bruno Haible  <bruno@clisp.org>
9592
9593         unsetenv: Avoid gcc warning.
9594         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9595
9596 2011-06-05  Bruno Haible  <bruno@clisp.org>
9597
9598         setenv: Avoid gcc warning.
9599         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9600
9601 2011-06-05  Bruno Haible  <bruno@clisp.org>
9602
9603         sys_select: Ensure memset is declared also on AIX 7.
9604         * lib/sys_select.in.h: Include <string.h> also on AIX.
9605         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9606         self-contained also on AIX 7.1.
9607
9608 2011-06-04  Jim Meyering  <meyering@redhat.com>
9609
9610         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9611         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9612         function name, "error".
9613         (_gl_translatable_diag_func_re): New configurable variable.
9614
9615 2011-06-04  Bruno Haible  <bruno@clisp.org>
9616
9617         getopt: Avoid gcc warning.
9618         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9619
9620 2011-06-04  Bruno Haible  <bruno@clisp.org>
9621
9622         strerror_r: Fix comments.
9623         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9624         commit.
9625
9626 2011-06-04  Bruno Haible  <bruno@clisp.org>
9627
9628         perror: Fix compilation error.
9629         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9630         Undefine fprintf, not sprintf.
9631         * modules/perror (Depends-on): Remove intprops, verify.
9632
9633 2011-06-04  Bruno Haible  <bruno@clisp.org>
9634
9635         setlocale: Enable replacement on Cygwin 1.5.
9636         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9637         Cygwin 1.5.x.
9638         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9639         LC_CTYPE category also exists on Cygwin 1.5.x.
9640
9641 2011-06-04  Bruno Haible  <bruno@clisp.org>
9642
9643         strerror-override: Don't disable symbol renamings.
9644         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9645         * lib/strerror-override.c: Include config.h.
9646         (strerror_override): Don't undefine.
9647
9648 2011-06-03  Bruno Haible  <bruno@clisp.org>
9649
9650         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9651         * lib/localename.h: Update copyright header.
9652         * lib/localename.c: Likewise.
9653         * lib/relocatable.h: Likewise.
9654         * lib/relocatable.c: Likewise.
9655
9656 2011-06-02  Bruno Haible  <bruno@clisp.org>
9657
9658         doc: Fix a module name.
9659         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9660
9661 2011-06-02  Bruno Haible  <bruno@clisp.org>
9662
9663         pipe2: Remove dependency on 'nonblocking' module.
9664         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9665         O_NONBLOCK is defined by gnulib.
9666         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9667         is zero.
9668         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9669         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9670         defined by gnulib.
9671         (get_nonblocking_flag): New function.
9672         (main): Test O_NONBLOCK flag only if it is nonzero.
9673         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9674
9675 2011-06-03  Jim Meyering  <meyering@redhat.com>
9676
9677         maint: three new prohibit-header-without-use rules
9678         Prohibit use of cloexec.h, posixver.h, same.h without use.
9679         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9680         (sc_prohibit_posixver_without_use): Likewise.
9681         (sc_prohibit_same_without_use): Likewise.
9682
9683 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         allocator: 'die' routine is now given requested size
9686         * lib/allocator.h (struct allocator.die): New size arg.
9687         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9688         If the actual problem is an ssize_t limitation, not a size_t or
9689         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9690
9691 2011-06-01  Eric Blake  <eblake@redhat.com>
9692
9693         strerror: drop strerror_r dependency
9694         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9695         * lib/strerror-override.c (strerror_override): ...to new file.
9696         * lib/strerror-override.h: Add prototype.
9697         * lib/strerror-impl.h: Delete.
9698         * lib/strerror.c (strerror): New implementation.
9699         * modules/errno (Files): Add new files.
9700         (configure.ac): Compile new file as appropriate.
9701         * modules/strerror (Files): Drop unused file.
9702         (Depends-on): Drop strerror_r-posix.
9703         * MODULES.html.sh: Document strerror_r-posix.
9704         Requested by Sam Steingold.
9705
9706         perror: call strerror_r directly
9707         * modules/perror (Files): Drop strerror-impl.h.
9708         * lib/perror.c (perror): Use our own stack buffer, rather than
9709         calling a wrapper that uses static storage.
9710         * doc/posix-functions/perror.texi (perror): Document a limitation
9711         of our replacement.
9712
9713         strerror_r: fix includes for FreeBSD
9714         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9715         since we use abort on some platforms.
9716         Reported by Matthias Bolte.
9717
9718 2011-05-31  Bruno Haible  <bruno@clisp.org>
9719
9720         Fix link errors in tests: openat-die uses gettext-h.
9721         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9722         against $(LIBINTL).
9723         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9724         against $(LIBINTL).
9725         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9726         $(LIBINTL).
9727         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9728         against $(LIBINTL).
9729         * modules/linkat-tests (Makefile.am): Link test-linkat against
9730         $(LIBINTL).
9731         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9732         $(LIBINTL).
9733         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9734         against $(LIBINTL).
9735         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9736         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9737         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9738         $(LIBINTL).
9739         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9740         $(LIBINTL).
9741         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9742         $(LIBINTL).
9743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9744
9745 2011-05-31  Bruno Haible  <bruno@clisp.org>
9746
9747         Fix link errors in tests: wait-process uses gettext-h.
9748         * modules/nonblocking-pipe-tests (Makefile.am): Set
9749         test_nonblocking_pipe_main_LDADD.
9750         * modules/nonblocking-socket-tests (Makefile.am): Link
9751         test-nonblocking-socket-main against $(LIBINTL).
9752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9753
9754 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9755
9756         assert-h: work around 'verify' incompatibility
9757         * lib/verify.h: Use @...@ directives, not ifdef.
9758         * modules/assert-h (assert.h): Implement the directives.
9759         (assert.h): Substitute the symbol-prefix more consistently.
9760
9761 2011-05-29  Jim Meyering  <meyering@redhat.com>
9762
9763         trim: remove three superfluous assignments
9764         * lib/trim.c (trim2): Remove three superfluous assignments
9765         and correct brace positioning.
9766
9767 2011-05-29  Bruno Haible  <bruno@clisp.org>
9768
9769         wctype-h: Avoid namespace pollution on Solaris 2.6.
9770         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9771         identifiers.
9772         * doc/posix-headers/wctype.texi: Mention the problem.
9773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9774
9775 2011-05-28  Jim Meyering  <meyering@redhat.com>
9776
9777         parse-datetime.y: accommodate -Wstrict-overflow
9778         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9779         placate -Wstrict-overflow.
9780
9781         trim: avoid a warning from -O2 -Wstrict-overflow
9782         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9783
9784 2011-05-29  Bruno Haible  <bruno@clisp.org>
9785
9786         gnulib-tool: Fix bug in yesterday's commit.
9787         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9788         twice.
9789
9790 2011-05-29  Bruno Haible  <bruno@clisp.org>
9791
9792         Allow multiple gnulib generated include files to be combined.
9793         * gnulib-tool (func_compute_include_guard_prefix): New function.
9794         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9795         ${gl_include_guard_prefix} references.
9796         (func_import, func_create_testdir): Invoke
9797         func_compute_include_guard_prefix.
9798         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9799         * lib/ctype.in.h: Likewise.
9800         * lib/dirent.in.h: Likewise.
9801         * lib/errno.in.h: Likewise.
9802         * lib/fcntl.in.h: Likewise.
9803         * lib/float.in.h: Likewise.
9804         * lib/getopt.in.h: Likewise.
9805         * lib/iconv.in.h: Likewise.
9806         * lib/langinfo.in.h: Likewise.
9807         * lib/locale.in.h: Likewise.
9808         * lib/math.in.h: Likewise.
9809         * lib/netdb.in.h: Likewise.
9810         * lib/netinet_in.in.h: Likewise.
9811         * lib/poll.in.h: Likewise.
9812         * lib/pthread.in.h: Likewise.
9813         * lib/pty.in.h: Likewise.
9814         * lib/sched.in.h: Likewise.
9815         * lib/se-selinux.in.h: Likewise.
9816         * lib/search.in.h: Likewise.
9817         * lib/signal.in.h: Likewise.
9818         * lib/spawn.in.h: Likewise.
9819         * lib/stdarg.in.h: Likewise.
9820         * lib/stddef.in.h: Likewise.
9821         * lib/stdint.in.h: Likewise.
9822         * lib/stdio.in.h: Likewise.
9823         * lib/stdlib.in.h: Likewise.
9824         * lib/string.in.h: Likewise.
9825         * lib/strings.in.h: Likewise.
9826         * lib/sys_file.in.h: Likewise.
9827         * lib/sys_ioctl.in.h: Likewise.
9828         * lib/sys_select.in.h: Likewise.
9829         * lib/sys_socket.in.h: Likewise.
9830         * lib/sys_stat.in.h: Likewise.
9831         * lib/sys_time.in.h: Likewise.
9832         * lib/sys_times.in.h: Likewise.
9833         * lib/sys_uio.in.h: Likewise.
9834         * lib/sys_utsname.in.h: Likewise.
9835         * lib/sys_wait.in.h: Likewise.
9836         * lib/sysexits.in.h: Likewise.
9837         * lib/termios.in.h: Likewise.
9838         * lib/time.in.h: Likewise.
9839         * lib/unistd.in.h: Likewise.
9840         * lib/wchar.in.h: Likewise.
9841         * lib/wctype.in.h: Likewise.
9842         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9843         * modules/ctype (Makefile.am): Likewise.
9844         * modules/dirent (Makefile.am): Likewise.
9845         * modules/errno (Makefile.am): Likewise.
9846         * modules/fcntl-h (Makefile.am): Likewise.
9847         * modules/float (Makefile.am): Likewise.
9848         * modules/getopt-posix (Makefile.am): Likewise.
9849         * modules/iconv-h (Makefile.am): Likewise.
9850         * modules/langinfo (Makefile.am): Likewise.
9851         * modules/locale (Makefile.am): Likewise.
9852         * modules/math (Makefile.am): Likewise.
9853         * modules/netdb (Makefile.am): Likewise.
9854         * modules/netinet_in (Makefile.am): Likewise.
9855         * modules/poll-h (Makefile.am): Likewise.
9856         * modules/pthread (Makefile.am): Likewise.
9857         * modules/pty (Makefile.am): Likewise.
9858         * modules/sched (Makefile.am): Likewise.
9859         * modules/search (Makefile.am): Likewise.
9860         * modules/selinux-h (Makefile.am): Likewise.
9861         * modules/signal (Makefile.am): Likewise.
9862         * modules/spawn (Makefile.am): Likewise.
9863         * modules/stdarg (Makefile.am): Likewise.
9864         * modules/stddef (Makefile.am): Likewise.
9865         * modules/stdint (Makefile.am): Likewise.
9866         * modules/stdio (Makefile.am): Likewise.
9867         * modules/stdlib (Makefile.am): Likewise.
9868         * modules/string (Makefile.am): Likewise.
9869         * modules/strings (Makefile.am): Likewise.
9870         * modules/sys_file (Makefile.am): Likewise.
9871         * modules/sys_ioctl (Makefile.am): Likewise.
9872         * modules/sys_select (Makefile.am): Likewise.
9873         * modules/sys_socket (Makefile.am): Likewise.
9874         * modules/sys_stat (Makefile.am): Likewise.
9875         * modules/sys_time (Makefile.am): Likewise.
9876         * modules/sys_times (Makefile.am): Likewise.
9877         * modules/sys_uio (Makefile.am): Likewise.
9878         * modules/sys_utsname (Makefile.am): Likewise.
9879         * modules/sys_wait (Makefile.am): Likewise.
9880         * modules/sysexits (Makefile.am): Likewise.
9881         * modules/termios (Makefile.am): Likewise.
9882         * modules/time (Makefile.am): Likewise.
9883         * modules/unistd (Makefile.am): Likewise.
9884         * modules/wchar (Makefile.am): Likewise.
9885         * modules/wctype-h (Makefile.am): Likewise.
9886         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9887
9888 2011-05-29  Bruno Haible  <bruno@clisp.org>
9889
9890         assert-h: Allow multiple gnulib generated replacements to coexist.
9891         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9892
9893 2011-05-29  Bruno Haible  <bruno@clisp.org>
9894
9895         argp: Allow coexistence with strerror_r-posix module.
9896         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9897         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9898         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9899         not the glibc signature.
9900
9901 2011-05-28  Bruno Haible  <bruno@clisp.org>
9902
9903         gnulib-tool: Alternative structure of testdirs, similar to --import.
9904         * gnulib-tool: New option --single-configure.
9905         (func_usage): Document it.
9906         (single_configure): New variable.
9907         (func_modules_transitive_closure_separately,
9908         func_modules_transitive_closure_separately,
9909         func_determine_use_libtests, func_modules_add_dummy_separately,
9910         func_modules_to_filelist_separately): New functions, extracted from
9911         func_import.
9912         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9913         (func_import): Use the new functions.
9914         (func_create_testdir): Set final_modules. Handle $single_configure =
9915         true case.
9916
9917 2011-05-28  Bruno Haible  <bruno@clisp.org>
9918
9919         getloadavg: Remove an unreliable safety check.
9920         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9921         getloadavg.c is in place.
9922         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9923         Reported by Sam Steingold <sds@gnu.org>.
9924
9925 2011-05-28  Bruno Haible  <bruno@clisp.org>
9926
9927         doc: Cleanup yet another file produced by texinfo.tex.
9928         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9929
9930 2011-05-28  Bruno Haible  <bruno@clisp.org>
9931
9932         Finish the conditional dependencies mechanism.
9933         * gnulib-tool: New option --no-conditional-dependencies.
9934         (func_usage): Document it. Don't mark --conditional-dependencies as
9935         experimental.
9936         (cond_dependencies): The possible values can now be true, false, empty.
9937         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9938         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9939         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9940
9941 2011-05-28  Bruno Haible  <bruno@clisp.org>
9942
9943         doc: Use a recent texinfo.tex.
9944         * doc/Makefile (tex_opts): New variable.
9945         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9946
9947 2011-05-28  Jim Meyering  <meyering@redhat.com>
9948
9949         intprops.h: adjust comment to match code change
9950         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9951         only once, it *may* have side effects.  Also fix an unrelated typo.
9952         (_GL_INT_SIGNED): Likewise.
9953
9954 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9955
9956         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9957
9958 2011-05-26  Bruno Haible  <bruno@clisp.org>
9959
9960         mbsrchr: Avoid collision with system function on Interix.
9961         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9962         Reported by Markus Duft <mduft@gentoo.org>.
9963
9964 2011-05-15  James Youngman  <jay@gnu.org>
9965
9966         getopt: for ambiguous options, enumerate the possibilities.
9967         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9968         the ambiguous options when an ambiguous prefix is given. This was
9969         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9970         glibc change was
9971         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9972
9973 2011-05-25  Eric Blake  <eblake@redhat.com>
9974
9975         getcwd: work around mingw bug
9976         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9977         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9978         Reported by Matthias Bolte.
9979
9980 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9981
9982         test-intprops: disable -Wtype-limits diagnostics
9983         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9984         diagnostics.  Otherwise, the integer overflow macros generate many
9985         diagnostics.  Reported by Jim Meyering in
9986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9987
9988         intprops: shorten, to pacify gcc -Woverlength-strings
9989         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9990         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9991         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9992         likely to run afoul of C compiler limits for string constant lengths.
9993         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9994
9995 2011-05-24  Eric Blake  <eblake@redhat.com>
9996
9997         docs: document recently fixed glibc printf bug
9998         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9999         * doc/posix-functions/printf.texi (printf): Likewise.
10000         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10001         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10002
10003         closein-tests: convert to init.sh
10004         * modules/closein-tests (Files): Add init.sh
10005         * tests/test-closein.sh Use it.
10006
10007         yesno-tests: convert to init.sh
10008         * modules/yesno-tests (Files): Add init.sh.
10009         * tests/test-yesno.sh: Use it.
10010
10011         atexit-tests: ensure reliable exit status
10012         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10013         Reported by Bruno Haible.
10014
10015 2011-05-24  Bruno Haible  <bruno@clisp.org>
10016
10017         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10018         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10019         gl_PREREQ_STRERROR_R invocations from here...
10020         * modules/strerror_r-posix (configure.ac): ... to here.
10021
10022 2011-05-24  Eric Blake  <eblake@redhat.com>
10023
10024         strerror_r: fix missing header
10025         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10026
10027         strerror_r: fix AIX test failures
10028         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10029         ERANGE failure.
10030
10031         strerror_r: fix Solaris test failures
10032         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10033         failures.
10034         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10035
10036         strerror_r: enforce POSIX recommendations
10037         * lib/strerror_r.c (safe_copy): New helper method.
10038         (strerror_r): Guarantee a non-empty string.
10039         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10040         recent POSIX rulings and to match our strerror guarantees.
10041         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10042
10043 2011-05-24  Jim Meyering  <meyering@redhat.com>
10044
10045         test-perror2.c: avoid warning about unused variable
10046         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10047
10048 2011-05-24  Eric Blake  <eblake@redhat.com>
10049
10050         perror: avoid spurious test failure on HP-UX
10051         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10052
10053         tests: fix logic bug in init.sh
10054         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10055         shell.
10056
10057 2011-05-24  Jim Meyering  <meyering@redhat.com>
10058
10059         utimensat: do not reference an out-of-scope buffer
10060         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10061         declared in an inner scope, yet "times" would be dereferenced outside
10062         the scope in which "ts" was valid.
10063         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10064         of ts[2] "out/up", so that the use of aliased "times" (via
10065         "times = ts;") does not end up referencing an out-of-scope "ts"
10066
10067         opendir-safer.c: don't clobber errno; don't close negative FD
10068         * lib/opendir-safer.c (opendir_safer):
10069         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10070         file descriptor, and more importantly, don't clobber the
10071         offending errno value with EINVAL.  Before, upon failure
10072         of dup_safer, we would pass the negative file descriptor to
10073         fdopendir, which would clobber errno.
10074
10075 2011-05-23  Bruno Haible  <bruno@clisp.org>
10076
10077         idcache: Fix module description.
10078         * modules/idcache (Include): Set to "idcache.h".
10079
10080 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10081
10082         gnulib-tool: fix portability problem with MacOS sed
10083         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10084         before the "}".  Problem reported by Leo in
10085         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10086         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10087         sed_extract_condition1, sed_extract_condition2.
10088
10089 2011-05-23  Bruno Haible  <bruno@clisp.org>
10090
10091         hash: Simplify autoconf macro.
10092         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10093
10094 2011-05-23  Bruno Haible  <bruno@clisp.org>
10095
10096         getugroups: Fix module description.
10097         * modules/getugroups (Include): Set to "getugroups.h".
10098
10099 2011-05-23  Bruno Haible  <bruno@clisp.org>
10100
10101         linkat: Simplify autoconf macro.
10102         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10103
10104 2011-05-23  Bruno Haible  <bruno@clisp.org>
10105             Eric Blake  <eblake@redhat.com>
10106
10107         linkat, renameat: Update dependencies.
10108         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10109         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10110         symlinkat.
10111
10112 2011-05-23  Jim Meyering  <meyering@redhat.com>
10113
10114         maint.mk: more tight_scope improvements
10115         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10116         (_gl_TS_headers): Define only in if-0'd block.
10117         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10118         sometimes we must *not* use it.  Adjust uses accordingly.
10119         (sc_tight_scope): Use much simpler grep-based test to determine
10120         whether we skip this rule.
10121
10122         maint.mk: generalize/improve the tight-scope rule
10123         * top/maint.mk: Emit a warning when the test is skipped.
10124         (_gl_TS_dir): Add $(srcdir)/ prefix.
10125         (_gl_TS_function_match): Simplify, rather than trying
10126         to enumerate common types.  Otherwise, it would fail to match an
10127         "extern unsigned char const *" declaration in idutils.
10128         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10129         a way to support use of that type of macro.
10130         (_gl_TS_var_match): Simplify regexp.
10131         (_gl_TS_obj_files): New configurable variable.
10132         (_gl_TS_headers): Likewise.
10133
10134 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10135
10136         verify: fix bug when gnulib <assert.h> is also included
10137         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10138         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10139         Perhaps there's a better way, but this fixes the immediate problem.
10140         Problem reported by Bruno Haible in
10141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10142
10143 2011-05-22  Bruno Haible  <bruno@clisp.org>
10144
10145         xgetcwd: Simplify autoconf macro.
10146         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10147
10148 2011-05-22  Bruno Haible  <bruno@clisp.org>
10149
10150         New module 'mktime-internal'.
10151         * modules/mktime-internal: New file.
10152         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10153         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10154         mktime_internal as a C macro if libc has __mktime_internal.
10155         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10156         conditions.
10157         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10158
10159 2011-05-22  Bruno Haible  <bruno@clisp.org>
10160
10161         timegm: Correct mktime replacement statements.
10162         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10163         defining mktime as a C macro. This completes a 2009-07-28 commit.
10164
10165 2011-05-22  Bruno Haible  <bruno@clisp.org>
10166
10167         timegm: Simplify autoconf macro.
10168         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10169
10170 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10171
10172         clock-time: change to LGPLv2+.
10173         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10174         BSD-like but we have no mark for that; this is good enough for now.
10175
10176 2011-05-21  Bruno Haible  <bruno@clisp.org>
10177
10178         strerror_r: Fix comments.
10179         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10180
10181 2011-05-21  Bruno Haible  <bruno@clisp.org>
10182
10183         relocatable-prog-wrapper: Fix possible link error.
10184         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10185         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10186         (gl_FUNC_SETENV): ... to here.
10187         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10188         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10189
10190 2011-05-21  Bruno Haible  <bruno@clisp.org>
10191
10192         relocatable-prog-wrapper: Assume strerror() exists.
10193         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10194         m4/strerror.m4.
10195         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10196         * lib/relocwrapper.c: Remove mention of strerror module.
10197         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10198         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10199         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10200         C macro.
10201
10202 2011-05-21  Bruno Haible  <bruno@clisp.org>
10203
10204         select: Simplify replacement idiom.
10205         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10206         Win32 platforms.
10207         * lib/sys_select.in.h (select): Simplify accordingly.
10208         * modules/select (Depends-on): Likewise.
10209
10210 2011-05-21  Bruno Haible  <bruno@clisp.org>
10211
10212         mkdir-p: Simplify autoconf macro.
10213         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10214         gl_FUNC_LCHOWN.
10215
10216 2011-05-21  Eric Blake  <eblake@redhat.com>
10217
10218         strerror_r: avoid clobbering strerror on cygwin
10219         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10220         fall back instead to sys_errlist.
10221         * modules/strerror (configure.ac): Add witness.
10222         * tests/test-strerror_r.c (main): Enhance test.
10223         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10224         * tests/test-perror2.c (main): Free memory before exit.
10225
10226 2011-05-21  Bruno Haible  <bruno@clisp.org>
10227
10228         mkdtemp: Use gnulib naming conventions.
10229         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10230         * modules/mkdtemp (configure.ac): Update.
10231
10232 2011-05-20  Eric Blake  <eblake@redhat.com>
10233
10234         strerror_r: avoid corrupting errno on Solaris
10235         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10236         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10237
10238         strerror_r: avoid compiler warning
10239         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10240
10241         strerror_r: simplify AIX code
10242         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10243
10244         test-perror: avoid spurious failure on FreeBSD
10245         * modules/perror-tests (Depends-on): Add strerror, now that
10246         strerror_r no longer pulls it in.
10247
10248 2011-05-20  Bruno Haible  <bruno@clisp.org>
10249
10250         strerror_r-posix: Remove unused dependencies.
10251         * modules/strerror_r-posix (Depends-on): Remove strerror.
10252         Reported by Eric Blake.
10253
10254 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         intprops: remove assumption about A|B representation
10257         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10258         is a valid integer if both A and B are.  Although this is true for
10259         all known practical hosts, the C standard doesn't guarantee it,
10260         and the code need not assume it.  Also, this change may work around
10261         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10263
10264 2011-05-20  Eric Blake  <eblake@redhat.com>
10265
10266         perror: work around FreeBSD bug
10267         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10268         is broken.  Move AC_LIBOBJ...
10269         * modules/perror (configure.ac): Here.
10270         * doc/posix-functions/perror.texi (perror): Document this.
10271         * tests/test-perror2.c (main): Enhance test.
10272
10273         test-perror: check for strerror interactions
10274         * tests/macros.h (STREQ): Add macro.
10275         * modules/perror-tests (Files): Add second test.
10276         * tests/test-perror2.c (main): New file.
10277         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10278
10279         test-perror: rewrite to use init script
10280         * modules/perror-tests (Files): Add init.sh.
10281         * tests/test-perror.sh: Use temporary directory.
10282
10283 2011-05-20  Jim Meyering  <meyering@redhat.com>
10284
10285         maint: replace misused "a" with "an"
10286         * doc/intprops.texi: "a integer"
10287         * doc/regex.texi: "a explanation"
10288         * lib/alignof.h: "a object"
10289         * lib/argmatch.h: "a explanation"
10290         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10291         * lib/stdint.in.h: "a integer"
10292         * lib/userspec.c: "a owner"
10293         * doc/gnulib.texi: Fix "a idea", and reword.
10294
10295 2011-05-19  Jim Meyering  <meyering@redhat.com>
10296
10297         maint: correct misuse of "a" and "an"
10298         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10299         * lib/argp-help.c: "an docum...": s/an/a/
10300         * lib/argp-parse.c: "An vector": s/An/A/
10301         * lib/execute.c: "an native": s/an/a/
10302         * lib/spawn-pipe.c: Likewise.
10303         * lib/gc.h: "an Gc_rc": s/an/a/
10304         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10305         * lib/fts.c: "an stat.st_dev": s/an/a/
10306
10307 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10308
10309         intprops-tests: work around HP-UX 11.23 cc bug with constants
10310         * tests/test-intprops.c (VERIFY): New macro.
10311         (main): Use it, instead of verify, to work around the compiler bug; see
10312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10313
10314         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10315         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10316         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10317         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10318         (_GL_REMAINDER_OVERFLOW): Use it.
10319
10320         intprops-tests: revert unsigned part of previous change
10321         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10322         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10323         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10325
10326 2011-05-19  Bruno Haible  <bruno@clisp.org>
10327
10328         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10329         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10330         strerror_r() returned without filling the buffer.
10331         Reported by Eric Blake.
10332
10333 2011-05-19  Eric Blake  <eblake@redhat.com>
10334
10335         strerror_r: guarantee unchanged errno
10336         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10337         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10338         failure.
10339         * tests/test-strerror_r.c (main): Enhance test.
10340
10341 2011-05-19  Bruno Haible  <bruno@clisp.org>
10342
10343         strerror_r: Reorder #if blocks.
10344         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10345         for consistency with the previous commit.
10346
10347 2011-05-19  Bruno Haible  <bruno@clisp.org>
10348
10349         perror: Avoid clobbering the strerror buffer when possible.
10350         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10351         * lib/strerror.c: Include it.
10352         * modules/strerror (Files): Add lib/strerror-impl.h.
10353         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10354         (my_strerror): New function, defined through lib/strerror-impl.h.
10355         (perror): Use it instead of strerror.
10356         * modules/perror (Files): Add lib/strerror-impl.h.
10357         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10358
10359 2011-05-19  Eric Blake  <eblake@redhat.com>
10360
10361         strerror_r: fix on newer cygwin
10362         * lib/strerror_r.c (strerror_r): Cygwin now has
10363         __xpg_strerror_r, use it.
10364
10365 2011-05-19  Bruno Haible  <bruno@clisp.org>
10366
10367         strerror_r: Avoid clobbering the strerror buffer when possible.
10368         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10369         (sys_nerr, sys_errlist): New declarations.
10370         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10371         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10372         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10373
10374 2011-05-19  Bruno Haible  <bruno@clisp.org>
10375
10376         strerror_r: Fix test failure on mingw.
10377         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10378         EXTEND_STRERROR_R.
10379         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10380         macros from errno.in.h instead.
10381
10382 2011-05-19  Eric Blake  <eblake@redhat.com>
10383
10384         strerror: relax test for Solaris
10385         * tests/test-strerror.c (main): Permit Solaris behavior.
10386         * tests/test-strerror_r.c (main): Likewise.
10387
10388         strerror: enforce POSIX ruling on strerror(0)
10389         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10390         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10391         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10392         * doc/posix-functions/strerror.texi (strerror): Document it.
10393         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10394         * tests/test-strerror.c (main): Strengthen test.
10395         * tests/test-strerror_r.c (main): Likewise.
10396
10397 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10398
10399         intprop-tests: port to older and more-pedantic compilers
10400         * modules/intprops-tests (Files): Add tests/macros.h.
10401         * tests/test-intprops.c: Include macros.h.
10402         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10403         it's no longer documented to expand to an integer constant expression.
10404         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10405         argument is floating point, as it's no longer documented to expand
10406         to an integer constant expression in that case.
10407         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10408         compiler bugs reported by Bruno Haible.  See
10409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10410         (U0, U1): New constants, to work around the same bugs.  Also,
10411         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10412
10413         intprops: work around C compiler bugs
10414         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10415         bug in Sun C 5.11 2010/08/13 and other compilers; see
10416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10417
10418         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10419         * doc/intprops.texi (Integer Type Determination): Fix
10420         documentation for TYPE_IS_INTEGER: it returns an constant
10421         expression, not an integer constant expression.  Fix doc for
10422         TYPE_SIGNED: it returns an integer constant expression only if its
10423         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10424         hardly worth documented that way....)
10425
10426 2011-05-18  Bruno Haible  <bruno@clisp.org>
10427
10428         strerror_r: Avoid clobbering the strerror buffer when possible.
10429         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10430         Handle gnulib defined errno values here. When strerror() returns NULL
10431         or an empty string, return EINVAL.
10432         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10433         gnulib defined errno values here.
10434         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10435
10436 2011-05-18  Eric Blake  <eblake@redhat.com>
10437
10438         fnmatch: avoid compiler warning
10439         * lib/fnmatch_loop.c (FCT): Use correct type.
10440         Reported by Matthias Bolte.
10441
10442 2011-05-13  Jim Meyering  <meyering@redhat.com>
10443
10444         maint.mk: three new prohibit_<HDR>_without_use rules
10445         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10446         (sc_prohibit_stdio-safer_without_use): Likewise.
10447         (sc_prohibit_xfreopen_without_use): Likewise.
10448
10449 2011-05-17  Jim Meyering  <meyering@redhat.com>
10450
10451         announce-gen: fail if the NEWS delta is empty
10452         If there's nothing noteworthy in NEWS, then either you forgot
10453         or you shouldn't be releasing.
10454         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10455
10456 2011-05-17  Pádraig Brady <P@draigBrady.com>
10457
10458         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10459         reserved symbols starting with double underscore from the check.
10460
10461 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10462
10463         intprops: add doc
10464         * doc/intprops.texi: New file, documenting intprops.
10465         * doc/gnulib.texi (Particular Modules): Include it.
10466
10467         verify: add doc to gnulib manual and fix example
10468         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10469         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10470         (Compile-time Assertions): Fix example so it can't overflow.
10471
10472 2011-05-17  Jim Meyering  <meyering@redhat.com>
10473
10474         warnings.m4: don't usurp save_CPPFLAGS variable name
10475         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10476
10477         doc: fix typo
10478         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10479
10480 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10481             Bruno Haible  <bruno@clisp.org>
10482
10483         doc: Tweak recent change.
10484         * README (Portability guidelines): Tweak new text.
10485         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10486         Interix 6.1.
10487
10488 2011-05-16  Eric Blake  <eblake@redhat.com>
10489
10490         inttypes: avoid autoconf warning
10491         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10492         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10493
10494 2011-05-16  Sam Steingold <sds@gnu.org>
10495         and Eric Blake  <eblake@redhat.com>
10496
10497         vc-list-files: accept multiple directory operands
10498         * build-aux/vc-list-files: Iterate over all remaining operands.
10499
10500 2011-05-16  Bruno Haible  <bruno@clisp.org>
10501
10502         Fix confusion regarding deprecated modules.
10503         * modules/calloc (Status, Notice): Mark module as deprecated, not
10504         obsolete.
10505         * modules/fnmatch-posix (Status, Notice): Likewise.
10506         * modules/getdate (Status, Notice): Likewise.
10507         * modules/getopt (Status, Notice): Likewise.
10508         * modules/malloc (Status, Notice): Likewise.
10509         * modules/pipe (Status, Notice): Likewise.
10510         * modules/realloc (Status, Notice): Likewise.
10511         * modules/rename-dest-slash (Status, Notice): Likewise.
10512         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10513         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10514         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10515         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10516         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10517
10518 2011-05-16  Bruno Haible  <bruno@clisp.org>
10519
10520         doc: List the target platforms.
10521         * doc/gnulib-intro.texi (Target Platforms): New section.
10522         * doc/gnulib.texi (Introduction): Update menu.
10523         * README (Portability guidelines): Refer to the new section. Update
10524         statement about oldest supported environment. Remove rationale why
10525         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10526         unportable C89 function.
10527         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10528         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10529
10530 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10531
10532         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10533
10534 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10535
10536         intprops-tests: new module
10537         * modules/intprops-tests, tests/test-intprops.c: New files.
10538
10539         intprops: add safe, portable integer overflow checking
10540         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10541         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10542         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10543         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10544         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10545         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10546         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10547         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10548         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10549         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10550         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10551
10552 2011-05-12  James Youngman  <jay@gnu.org>
10553
10554         Add a test for glibc's Bugzilla bug #12378.
10555         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10556         doesn't allow the literal matching of a lone "[" (which is
10557         required by POSIX).
10558         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10559
10560 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10561
10562         Sync glibc change fixing Bugzilla bug #12378.
10563         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10564         beginning and fall back to matching as normal character if the
10565         string ends before the matching ']' is found.  This is what POSIX
10566         requires.
10567
10568 2011-05-13  Eric Blake  <eblake@redhat.com>
10569
10570         getcwd-lgpl: relax test for FreeBSD
10571         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10572         issue.
10573         * tests/test-getcwd-lgpl.c (main): Relax test.
10574         Reported by Matthias Bolte.
10575
10576 2011-05-11  Eric Blake  <eblake@redhat.com>
10577
10578         test-fflush: silence compiler warning
10579         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10580
10581 2011-05-11  Bruno Haible  <bruno@clisp.org>
10582
10583         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10584         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10585         * modules/canonicalize (Depends-on): Add 'nocrash'.
10586         * modules/canonicalize-lgpl (Depends-on): Likewise.
10587         * doc/posix-functions/realpath.texi: Update platforms list.
10588         Reported by Ryan Schmidt <ryandesign@macports.org>.
10589
10590 2011-05-11  Bruno Haible  <bruno@clisp.org>
10591
10592         group-member: Declare function in <unistd.h>.
10593         * lib/unistd.in.h (group_member): New declaration.
10594         * lib/group-member.h: Remove file.
10595         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10596         * tests/test-unistd-c++.cc: Check signature of group_member.
10597         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10598         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10599         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10600         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10601         HAVE_GROUP_MEMBER.
10602         * modules/group-member (Files): Remove lib/group-member.h.
10603         (Depends-on): Add unistd. Specify conditions.
10604         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10605         (Include): Change to <unistd.h>.
10606         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10607         HAVE_GROUP_MEMBER.
10608         * NEWS: Mention the change.
10609         * lib/euidaccess.c: Don't include group-member.h.
10610
10611 2011-05-11  Bruno Haible  <bruno@clisp.org>
10612
10613         group-member: Document module.
10614         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10615         module.
10616
10617 2011-05-11  Bruno Haible  <bruno@clisp.org>
10618
10619         fclose: Fix mistake earlier today.
10620         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10621
10622 2011-05-11  Eric Blake  <eblake@redhat.com>
10623
10624         fclose: preserve fflush errors
10625         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10626         Reported by Jim Meyering.
10627
10628         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10629         * build-aux/bootstrap (check_versions): When no specific version
10630         is required, merely check that the app produces an exit status
10631         that indicates its existence.
10632
10633         maint.mk: drop redundant check
10634         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10635         the same but better.
10636
10637 2011-05-11  Bruno Haible  <bruno@clisp.org>
10638
10639         fclose: Fix possible link error.
10640         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10641         unregister_shadow_fd. Improve comments.
10642         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10643         Eric Blake.
10644
10645 2011-05-11  Jim Meyering  <meyering@redhat.com>
10646
10647         maint.mk: improve "can not" detection and generalize rule name
10648         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10649         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10650         Use the same technique as in sc_prohibit_doubled_word, so that
10651         we recognize "can not" also when the words are separated by a newline.
10652         Suggested by Eric Blake.
10653         (perl_filename_lineno_text_): Define.  Factored out of...
10654         (prohibit_doubled_word_): ...here.  Use the new definition.
10655         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10656         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10657         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10658
10659 2011-05-10  Eric Blake  <eblake@redhat.com>
10660
10661         fclose: avoid double close race when possible
10662         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10663         all but WINDOWS_SOCKETS.
10664
10665 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10666
10667         openat: correct new comment
10668         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10669
10670 2011-05-10  Jim Meyering  <meyering@redhat.com>
10671
10672         openat: add comments
10673         * lib/openat-proc.c (openat_proc_name): Add comments,
10674         mostly from Eric Blake.
10675
10676 2011-05-09  Eric Blake  <eblake@redhat.com>
10677
10678         openat: reduce syscalls in first probe of /proc
10679         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10680         be a directory.  Simplify the probe for .. bugs.
10681         * modules/openat (Depends-on): Drop same-inode.
10682         Reported by Bastien ROUCARIES.
10683
10684 2011-05-09  Jim Meyering  <meyering@redhat.com>
10685
10686         maint.mk: change semantics/name of tight_scope variables
10687         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10688         Rename variables to align with semantics that make them more useful.
10689
10690         maint.mk: tweak new rule's name not to impinge
10691         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10692         (sc_tight_scope): Use new rule name rather than $@-0.
10693
10694         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10695         * top/maint.mk (sc_tight_scope): New rule.
10696         (sc_tight_scope-0): New rule, ifdef'd out.
10697         (_gl_TS_dir): Default.
10698         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10699         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10700
10701 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10702
10703         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10704         Haible <bruno@clisp.org>.
10705
10706 2011-05-08  Bruno Haible  <bruno@clisp.org>
10707
10708         Comments.
10709         * m4/isnanf.m4: Add comment.
10710         * m4/isnanl.m4: Likewise.
10711
10712 2011-05-08  Bruno Haible  <bruno@clisp.org>
10713
10714         glob: Remove obsolete macro.
10715         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10716
10717 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10718
10719         intprops: Sun C 5.11 supports __typeof__
10720         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10721         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10722         which is new.
10723         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10724
10725         intprops: switch to usual gnulib indenting and naming
10726         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10727         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10728
10729         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10730
10731 2011-05-08  Jim Meyering  <meyering@redhat.com>
10732
10733         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10734         * top/maint.mk (release-prep): Use make's --no-print-directory
10735         option when generating the announcement.  This eliminates the
10736         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10737         generated announcement template.
10738
10739 2011-05-08  Bruno Haible  <bruno@clisp.org>
10740
10741         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10742         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10743         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10744
10745 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10746
10747         ignore-value, verify: Omit include files from lib_SOURCES.
10748         * modules/ignore-value, modules/verify (Makefile.am):
10749         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10750         that leads Automake to duplicate use of am__objects_... variables
10751         in Makefile.in.  See
10752         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10753
10754 2011-05-07  Bruno Haible  <bruno@clisp.org>
10755
10756         fclose: Simplify autoconf macro.
10757         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10758         defined.
10759
10760 2011-05-07  Bruno Haible  <bruno@clisp.org>
10761
10762         canonicalize-lgpl: Fix autoconf macro ordering bug.
10763         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10764         gl_STDLIB_H_DEFAULTS.
10765
10766 2011-05-06  Eric Blake  <eblake@redhat.com>
10767
10768         maintainer-makefile: make sc_po_check easier to tune
10769         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10770         to probe for strings, such as an alternate location for gnulib.
10771
10772         fclose: guarantee behavior on seekable stdin
10773         * modules/fclose (Depends-on): Add fflush.
10774         * doc/posix-functions/fclose.texi (fclose): Document this.
10775         * tests/test-fclose.c (main): Make test for this unconditional.
10776
10777 2011-05-06  Bruno Haible  <bruno@clisp.org>
10778
10779         fflush, fpurge: Relicense under LGPLv2+.
10780         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10781         * modules/fpurge (License): Likewise.
10782         With permission from Eric Blake and Jim Meyering.
10783         Suggested by Eric Blake.
10784
10785 2011-05-06  Karl Berry  <karl@gnu.org>
10786
10787         * MODULES.html.sh (func_all_modules): remove exit.
10788
10789 2011-05-06  Jim Meyering  <meyering@redhat.com>
10790
10791         maint.mk: use info-gnu@ as the default only for a stable release
10792         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10793         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10794         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10795         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10796
10797 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10798
10799         assert-h: new module, which supports C1X-style static_assert
10800         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10801         * lib/verify.h: Revamp so that this can be copied into assert.h,
10802         while retaining the ability to use it standalone as before.
10803         Rename private identifiers so as not to encroach on the
10804         standard C namespace, since this is now used by assert.h.
10805         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10806         the old verify_true.
10807         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10808         the old verify_true.  Use _GL_VERIFY_TYPE.
10809         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10810         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10811         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10812         defined when this file is copied into the replacement assert.h.
10813         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10814         and _Static_assert is not built in.
10815         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10816         defined, and use the new macros mentioned above.
10817         * doc/posix-headers/assert.texi: Document this.
10818
10819 2011-05-05  Bruno Haible  <bruno@clisp.org>
10820
10821         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10822         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10823         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10824         gl_REPLACE_FCLOSE here.
10825         * modules/fflush (Depends-on): Remove fclose.
10826         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10827         combination with module 'fclose'.
10828
10829 2011-05-05  Bruno Haible  <bruno@clisp.org>
10830
10831         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10832         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10833         gl_FUNC_FFLUSH.
10834         (gl_FUNC_FFLUSH): Use it.
10835         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10837         gl_REPLACE_FSEEKO here.
10838
10839 2011-05-05  Bruno Haible  <bruno@clisp.org>
10840
10841         tzset: Relicense under LGPL.
10842         * modules/tzset (License): Change to LGPL.
10843         No agreement needed; it's a no-op.
10844
10845         strtoimax, strtoumax: Relicense under LGPL.
10846         * modules/strtoimax (License): Change to LGPL.
10847         * modules/strtoumax (License): Likewise.
10848         With permission from Jim Meyering, Paul Eggert:
10849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10851
10852         getgroups: Relicense under LGPL.
10853         * modules/getgroups (License): Change to LGPL.
10854         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10858
10859         nanosleep: Relicense under LGPL.
10860         * modules/nanosleep (License): Change to LGPL.
10861         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10862         Haible:
10863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10867
10868         futimens: Relicense under LGPL.
10869         * modules/futimens (License): Change to LGPL.
10870         With permission from Eric Blake:
10871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10872
10873         fflush: Relicense under LGPL.
10874         * modules/fflush (License): Change to LGPL.
10875         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10879
10880         tmpfile: Relicense under LGPL.
10881         * modules/tmpfile (License): Change to LGPL.
10882         With permission from Ben Pfaff:
10883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10884
10885         isfinite: Relicense under LGPL.
10886         * modules/isfinite (License): Change to LGPL.
10887         With permission from Ben Pfaff, Bruno Haible:
10888         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10890
10891         acosl..tanl: Relicense under LGPL.
10892         * modules/acosl (License): Change to LGPL.
10893         * modules/asinl (License): Likewise.
10894         * modules/atanl (License): Likewise.
10895         * modules/cosl (License): Likewise.
10896         * modules/expl (License): Likewise.
10897         * modules/logl (License): Likewise.
10898         * modules/sinl (License): Likewise.
10899         * modules/sqrtl (License): Likewise.
10900         * modules/tanl (License): Likewise.
10901         Source code originally from glibc and Paolo Bonzini. Agreements:
10902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10904
10905 2011-05-05  Bruno Haible  <bruno@clisp.org>
10906
10907         signal: Define sighandler_t.
10908         * lib/signal.in.h (sighandler_t): New type.
10909         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10910         whether sighandler_t is defined.
10911         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10912         * modules/signal (Depends-on): Add extensions.
10913         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10914         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10915         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10916
10917 2011-05-05  Eric Blake  <eblake@redhat.com>
10918
10919         maint: remove useless REPLACE_*_H macros
10920         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10921         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10922         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10923         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10924         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10925         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10926         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10927         * m4/btowc.m4: Update callers.
10928         * m4/dirfd.m4: Likewise.
10929         * m4/duplocale.m4: Likewise.
10930         * m4/fchdir.m4: Likewise.
10931         * m4/fdopendir.m4: Likewise.
10932         * m4/inet_ntop.m4: Likewise.
10933         * m4/inet_pton.m4: Likewise.
10934         * m4/ioctl.m4: Likewise.
10935         * m4/mbrlen.m4: Likewise.
10936         * m4/mbrtowc.m4: Likewise.
10937         * m4/mbsinit.m4: Likewise.
10938         * m4/mbsnrtowcs.m4: Likewise.
10939         * m4/mbsrtowcs.m4: Likewise.
10940         * m4/poll.m4: Likewise.
10941         * m4/setlocale.m4: Likewise.
10942         * m4/wcrtomb.m4: Likewise.
10943         * m4/wcsnrtombs.m4: Likewise.
10944         * m4/wcsrtombs.m4: Likewise.
10945         * m4/wctob.m4: Likewise.
10946         * m4/wcwidth.m4: Likewise.
10947         * modules/posix_spawn: Likewise.
10948         * modules/posix_spawn_file_actions_addclose: Likewise.
10949         * modules/posix_spawn_file_actions_adddup2: Likewise.
10950         * modules/posix_spawn_file_actions_addopen: Likewise.
10951         * modules/posix_spawn_file_actions_destroy: Likewise.
10952         * modules/posix_spawn_file_actions_init: Likewise.
10953         * modules/posix_spawnattr_destroy: Likewise.
10954         * modules/posix_spawnattr_getflags: Likewise.
10955         * modules/posix_spawnattr_getpgroup: Likewise.
10956         * modules/posix_spawnattr_getschedparam: Likewise.
10957         * modules/posix_spawnattr_getschedpolicy: Likewise.
10958         * modules/posix_spawnattr_getsigdefault: Likewise.
10959         * modules/posix_spawnattr_getsigmask: Likewise.
10960         * modules/posix_spawnattr_init: Likewise.
10961         * modules/posix_spawnattr_setflags: Likewise.
10962         * modules/posix_spawnattr_setpgroup: Likewise.
10963         * modules/posix_spawnattr_setschedparam: Likewise.
10964         * modules/posix_spawnattr_setschedpolicy: Likewise.
10965         * modules/posix_spawnattr_setsigdefault: Likewise.
10966         * modules/posix_spawnattr_setsigmask: Likewise.
10967         * modules/posix_spawnp: Likewise.
10968
10969 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10970
10971         Add option to do-release-commit-and-tag to specify branch.
10972         * build-aux/do-release-commit-and-tag: Add --branch.
10973
10974 2011-05-03  Bruno Haible  <bruno@clisp.org>
10975
10976         Avoid unnecessary compilation units, through conditional dependencies.
10977         * modules/accept (Depends-on): Add conditions to the dependencies.
10978         * modules/acosl (Depends-on): Likewise.
10979         * modules/argz (Depends-on): Likewise.
10980         * modules/asinl (Depends-on): Likewise.
10981         * modules/atanl (Depends-on): Likewise.
10982         * modules/atoll (Depends-on): Likewise.
10983         * modules/bind (Depends-on): Likewise.
10984         * modules/btowc (Depends-on): Likewise.
10985         * modules/canonicalize-lgpl (Depends-on): Likewise.
10986         * modules/ceil (Depends-on): Likewise.
10987         * modules/ceilf (Depends-on): Likewise.
10988         * modules/ceill (Depends-on): Likewise.
10989         * modules/chdir-long (Depends-on): Likewise.
10990         * modules/chown (Depends-on): Likewise.
10991         * modules/close (Depends-on): Likewise.
10992         * modules/connect (Depends-on): Likewise.
10993         * modules/cosl (Depends-on): Likewise.
10994         * modules/dirfd (Depends-on): Likewise.
10995         * modules/dprintf (Depends-on): Likewise.
10996         * modules/dprintf-posix (Depends-on): Likewise.
10997         * modules/error (Depends-on): Likewise.
10998         * modules/euidaccess (Depends-on): Likewise.
10999         * modules/expl (Depends-on): Likewise.
11000         * modules/faccessat (Depends-on): Likewise.
11001         * modules/fchdir (Depends-on): Likewise.
11002         * modules/fclose (Depends-on): Likewise.
11003         * modules/fcntl (Depends-on): Likewise.
11004         * modules/fdopendir (Depends-on): Likewise.
11005         * modules/fflush (Depends-on): Likewise.
11006         * modules/floor (Depends-on): Likewise.
11007         * modules/floorf (Depends-on): Likewise.
11008         * modules/floorl (Depends-on): Likewise.
11009         * modules/fnmatch (Depends-on): Likewise.
11010         * modules/fopen (Depends-on): Likewise.
11011         * modules/fprintf-posix (Depends-on): Likewise.
11012         * modules/frexp (Depends-on): Likewise.
11013         * modules/frexp-nolibm (Depends-on): Likewise.
11014         * modules/frexpl (Depends-on): Likewise.
11015         * modules/frexpl-nolibm (Depends-on): Likewise.
11016         * modules/fseek (Depends-on): Likewise.
11017         * modules/fsusage (Depends-on): Likewise.
11018         * modules/ftell (Depends-on): Likewise.
11019         * modules/ftello (Depends-on): Likewise.
11020         * modules/futimens (Depends-on): Likewise.
11021         * modules/getcwd (Depends-on): Likewise.
11022         * modules/getcwd-lgpl (Depends-on): Likewise.
11023         * modules/getdelim (Depends-on): Likewise.
11024         * modules/getdomainname (Depends-on): Likewise.
11025         * modules/getgroups (Depends-on): Likewise.
11026         * modules/gethostname (Depends-on): Likewise.
11027         * modules/getline (Depends-on): Likewise.
11028         * modules/getlogin_r (Depends-on): Likewise.
11029         * modules/getopt-posix (Depends-on): Likewise.
11030         * modules/getpeername (Depends-on): Likewise.
11031         * modules/getsockname (Depends-on): Likewise.
11032         * modules/getsockopt (Depends-on): Likewise.
11033         * modules/getsubopt (Depends-on): Likewise.
11034         * modules/getusershell (Depends-on): Likewise.
11035         * modules/glob (Depends-on): Likewise.
11036         * modules/grantpt (Depends-on): Likewise.
11037         * modules/iconv_open (Depends-on): Likewise.
11038         * modules/iconv_open-utf (Depends-on): Likewise.
11039         * modules/inet_ntop (Depends-on): Likewise.
11040         * modules/inet_pton (Depends-on): Likewise.
11041         * modules/ioctl (Depends-on): Likewise.
11042         * modules/isapipe (Depends-on): Likewise.
11043         * modules/isfinite (Depends-on): Likewise.
11044         * modules/isinf (Depends-on): Likewise.
11045         * modules/lchown (Depends-on): Likewise.
11046         * modules/ldexpl (Depends-on): Likewise.
11047         * modules/link (Depends-on): Likewise.
11048         * modules/linkat (Depends-on): Likewise.
11049         * modules/listen (Depends-on): Likewise.
11050         * modules/logl (Depends-on): Likewise.
11051         * modules/lstat (Depends-on): Likewise.
11052         * modules/mbrlen (Depends-on): Likewise.
11053         * modules/mbrtowc (Depends-on): Likewise.
11054         * modules/mbsinit (Depends-on): Likewise.
11055         * modules/mbsnrtowcs (Depends-on): Likewise.
11056         * modules/mbsrtowcs (Depends-on): Likewise.
11057         * modules/mbtowc (Depends-on): Likewise.
11058         * modules/memcmp (Depends-on): Likewise.
11059         * modules/mkdir (Depends-on): Likewise.
11060         * modules/mkdtemp (Depends-on): Likewise.
11061         * modules/mkfifo (Depends-on): Likewise.
11062         * modules/mkfifoat (Depends-on): Likewise.
11063         * modules/mknod (Depends-on): Likewise.
11064         * modules/mkostemp (Depends-on): Likewise.
11065         * modules/mkostemps (Depends-on): Likewise.
11066         * modules/mkstemp (Depends-on): Likewise.
11067         * modules/mkstemps (Depends-on): Likewise.
11068         * modules/mktime (Depends-on): Likewise.
11069         * modules/nanosleep (Depends-on): Likewise.
11070         * modules/open (Depends-on): Likewise.
11071         * modules/openat (Depends-on): Likewise.
11072         * modules/perror (Depends-on): Likewise.
11073         * modules/poll (Depends-on): Likewise.
11074         * modules/popen (Depends-on): Likewise.
11075         * modules/posix_spawn (Depends-on): Likewise.
11076         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11077         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11078         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11079         * modules/posix_spawnp (Depends-on): Likewise.
11080         * modules/pread (Depends-on): Likewise.
11081         * modules/printf-posix (Depends-on): Likewise.
11082         * modules/ptsname (Depends-on): Likewise.
11083         * modules/putenv (Depends-on): Likewise.
11084         * modules/pwrite (Depends-on): Likewise.
11085         * modules/readline (Depends-on): Likewise.
11086         * modules/readlink (Depends-on): Likewise.
11087         * modules/readlinkat (Depends-on): Likewise.
11088         * modules/recv (Depends-on): Likewise.
11089         * modules/recvfrom (Depends-on): Likewise.
11090         * modules/regex (Depends-on): Likewise.
11091         * modules/remove (Depends-on): Likewise.
11092         * modules/rename (Depends-on): Likewise.
11093         * modules/renameat (Depends-on): Likewise.
11094         * modules/rmdir (Depends-on): Likewise.
11095         * modules/round (Depends-on): Likewise.
11096         * modules/roundf (Depends-on): Likewise.
11097         * modules/roundl (Depends-on): Likewise.
11098         * modules/rpmatch (Depends-on): Likewise.
11099         * modules/select (Depends-on): Likewise.
11100         * modules/send (Depends-on): Likewise.
11101         * modules/sendto (Depends-on): Likewise.
11102         * modules/setenv (Depends-on): Likewise.
11103         * modules/setlocale (Depends-on): Likewise.
11104         * modules/setsockopt (Depends-on): Likewise.
11105         * modules/shutdown (Depends-on): Likewise.
11106         * modules/sigaction (Depends-on): Likewise.
11107         * modules/signbit (Depends-on): Likewise.
11108         * modules/sigprocmask (Depends-on): Likewise.
11109         * modules/sinl (Depends-on): Likewise.
11110         * modules/sleep (Depends-on): Likewise.
11111         * modules/snprintf (Depends-on): Likewise.
11112         * modules/snprintf-posix (Depends-on): Likewise.
11113         * modules/socket (Depends-on): Likewise.
11114         * modules/sprintf-posix (Depends-on): Likewise.
11115         * modules/sqrtl (Depends-on): Likewise.
11116         * modules/stat (Depends-on): Likewise.
11117         * modules/strchrnul (Depends-on): Likewise.
11118         * modules/strdup-posix (Depends-on): Likewise.
11119         * modules/strerror (Depends-on): Likewise.
11120         * modules/strerror_r-posix (Depends-on): Likewise.
11121         * modules/strndup (Depends-on): Likewise.
11122         * modules/strnlen (Depends-on): Likewise.
11123         * modules/strptime (Depends-on): Likewise.
11124         * modules/strsep (Depends-on): Likewise.
11125         * modules/strsignal (Depends-on): Likewise.
11126         * modules/strstr-simple (Depends-on): Likewise.
11127         * modules/strtod (Depends-on): Likewise.
11128         * modules/strtoimax (Depends-on): Likewise.
11129         * modules/strtok_r (Depends-on): Likewise.
11130         * modules/strtoumax (Depends-on): Likewise.
11131         * modules/symlink (Depends-on): Likewise.
11132         * modules/symlinkat (Depends-on): Likewise.
11133         * modules/tanl (Depends-on): Likewise.
11134         * modules/tcgetsid (Depends-on): Likewise.
11135         * modules/tmpfile (Depends-on): Likewise.
11136         * modules/trunc (Depends-on): Likewise.
11137         * modules/truncf (Depends-on): Likewise.
11138         * modules/truncl (Depends-on): Likewise.
11139         * modules/uname (Depends-on): Likewise.
11140         * modules/unlink (Depends-on): Likewise.
11141         * modules/unlockpt (Depends-on): Likewise.
11142         * modules/unsetenv (Depends-on): Likewise.
11143         * modules/usleep (Depends-on): Likewise.
11144         * modules/utimensat (Depends-on): Likewise.
11145         * modules/vasprintf (Depends-on): Likewise.
11146         * modules/vdprintf (Depends-on): Likewise.
11147         * modules/vdprintf-posix (Depends-on): Likewise.
11148         * modules/vfprintf-posix (Depends-on): Likewise.
11149         * modules/vprintf-posix (Depends-on): Likewise.
11150         * modules/vsnprintf (Depends-on): Likewise.
11151         * modules/vsnprintf-posix (Depends-on): Likewise.
11152         * modules/vsprintf-posix (Depends-on): Likewise.
11153         * modules/wcrtomb (Depends-on): Likewise.
11154         * modules/wcscasecmp (Depends-on): Likewise.
11155         * modules/wcscspn (Depends-on): Likewise.
11156         * modules/wcsdup (Depends-on): Likewise.
11157         * modules/wcsncasecmp (Depends-on): Likewise.
11158         * modules/wcsnrtombs (Depends-on): Likewise.
11159         * modules/wcspbrk (Depends-on): Likewise.
11160         * modules/wcsrtombs (Depends-on): Likewise.
11161         * modules/wcsspn (Depends-on): Likewise.
11162         * modules/wcsstr (Depends-on): Likewise.
11163         * modules/wcstok (Depends-on): Likewise.
11164         * modules/wcswidth (Depends-on): Likewise.
11165         * modules/wctob (Depends-on): Likewise.
11166         * modules/wctomb (Depends-on): Likewise.
11167         * modules/wctype (Depends-on): Likewise.
11168         * modules/wcwidth (Depends-on): Likewise.
11169         * modules/write (Depends-on): Likewise.
11170
11171 2011-05-03  Bruno Haible  <bruno@clisp.org>
11172
11173         Support for conditional dependencies.
11174         * doc/gnulib.texi (Module description): Document the syntax of
11175         conditional dependencies.
11176         * gnulib-tool: New option --conditional-dependencies.
11177         (func_usage): Document it.
11178         (cond_dependencies): New variable.
11179         (func_get_automake_snippet_conditional,
11180         func_get_automake_snippet_unconditional): New functions, extracted from
11181         func_get_automake_snippet.
11182         (func_get_automake_snippet): Use them.
11183         (sed_first_32_chars): New variable.
11184         (func_module_shellfunc_name): New function.
11185         (func_module_shellvar_name): New function.
11186         (func_module_conditional_name): New function.
11187         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11188         func_cond_module_condition): New functions.
11189         (func_modules_transitive_closure): Add support for conditional
11190         dependencies.
11191         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11192         conditional automake snippet in an automake conditional.
11193         (func_emit_autoconf_snippets): Emit shell functions that contain the
11194         code for conditional modules.
11195         (func_import, func_create_testdir): Update specification.
11196
11197 2011-05-03  Eric Blake  <eblake@redhat.com>
11198
11199         test-getaddrinfo: report error information
11200         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11201
11202 2011-05-03  Jim Meyering  <meyering@redhat.com>
11203
11204         bootstrap: avoid build failure when $GZIP is set
11205         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11206         program name.  If defined at all, it is supposed to list gzip options.
11207         Reported by Alan Curry in http://debbugs.gnu.org/8609
11208
11209 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11210
11211         readme-release: new module with release instructions
11212         * modules/readme-release: New module.
11213         * top/README-release: New file, from coreutils, grep, diffutils.
11214         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11215
11216 2011-05-02  Eric Blake  <eblake@redhat.com>
11217
11218         fflush: also replace fclose when fixing fflush
11219         * modules/fflush (Depends-on): Add fclose.
11220         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11221         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11222         memstreams with no backing fd.
11223         * doc/posix-functions/fclose.texi (fclose): Document the use of
11224         fflush module to fix the bug.
11225         * tests/test-fclose.c (main): Relax test when fclose is used in
11226         isolation.
11227
11228         fclose: add some tests
11229         * modules/fclose-tests: New test module.
11230         * tests/test-fclose.c: New file.
11231         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11232
11233         fclose: reduced dependencies
11234         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11235         simpler lseek.
11236         * lib/fclose.c (rpl_fclose): Likewise.
11237         Reported by Simon Josefsson.
11238
11239         exit: drop remaining clients
11240         * modules/argmatch (Depends-on): Replace exit with stdlib.
11241         * modules/copy-file (Depends-on): Likewise.
11242         * modules/execute (Depends-on): Likewise.
11243         * modules/exitfail (Depends-on): Likewise.
11244         * modules/obstack (Depends-on): Likewise.
11245         * modules/pagealign_alloc (Depends-on): Likewise.
11246         * modules/pipe-filter-gi (Depends-on): Likewise.
11247         * modules/pipe-filter-ii (Depends-on): Likewise.
11248         * modules/savewd (Depends-on): Likewise.
11249         * modules/spawn-pipe (Depends-on): Likewise.
11250         * modules/wait-process (Depends-on): Likewise.
11251         * modules/xsetenv (Depends-on): Likewise.
11252         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11253         * modules/git-merge-changelog (Depends-on): Likewise.
11254         * modules/long-options (Depends-on): Likewise.
11255         * modules/pt_chown (Depends-on): Likewise.
11256         * modules/sysexits (Depends-on): Likewise.
11257
11258         freading: relax license from LGPLv3+ to LGPLv2+
11259         * modules/freading (License): Relax LGPL version.
11260
11261 2011-05-02  Bruno Haible  <bruno@clisp.org>
11262
11263         fchdir: Remove unused dependencies.
11264         * modules/fchdir (Depends-on): Remove include_next.
11265
11266 2011-05-02  Bruno Haible  <bruno@clisp.org>
11267
11268         gnulib-tool: Refactor.
11269         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11270         from func_emit_autoconf_snippets.
11271         (func_emit_autoconf_snippets): Use it.
11272
11273 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11274
11275         * NEWS: Document removal of 'exit'.
11276         * modules/exit: Remove file.
11277
11278 2011-05-01  Bruno Haible  <bruno@clisp.org>
11279
11280         Update DEPENDENCIES.
11281         * DEPENDENCIES (gettext): Recommend the newest release.
11282         Reported by Simon Josefsson.
11283
11284 2011-05-01  Bruno Haible  <bruno@clisp.org>
11285
11286         gnulib-tool: Reduce code duplication.
11287         * gnulib-tool (func_emit_autoconf_snippets): New function.
11288         (func_import, func_create_testdir): Use it.
11289
11290 2011-04-30  Eric Blake  <eblake@redhat.com>
11291
11292         fclose: don't fail on non-seekable input stream
11293         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11294         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11295         since fflush is allowed to fail in that case.
11296
11297 2011-04-30  Bruno Haible  <bruno@clisp.org>
11298
11299         dup3: cleanup
11300         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11301
11302 2011-04-30  Bruno Haible  <bruno@clisp.org>
11303
11304         netdb: Make it work in C++ mode.
11305         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11306         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11307         module.
11308         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11309         gl_MODULE_INDICATOR_FOR_TESTS.
11310         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11311         * modules/netdb-c++-tests: New file.
11312         * tests/test-netdb-c++.cc: New file.
11313
11314 2011-04-30  Bruno Haible  <bruno@clisp.org>
11315
11316         New modules 'vfscanf', 'vscanf'.
11317         * modules/vfscanf: New file.
11318         * modules/vscanf: New file.
11319         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11320         here.
11321         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11322         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11323
11324 2011-04-30  Bruno Haible  <bruno@clisp.org>
11325
11326         passfd: Add comments.
11327         * lib/passfd.c: Add comments about platforms.
11328
11329 2011-04-30  Bruno Haible  <bruno@clisp.org>
11330
11331         sys_uio: Make <sys/uio.h> self-contained.
11332         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11333         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11334
11335 2011-04-30  Bruno Haible  <bruno@clisp.org>
11336
11337         sys_socket: Ensure 'struct iovec' definition.
11338         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11339         <sys/socket.h>.
11340         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11341
11342 2011-04-30  Bruno Haible  <bruno@clisp.org>
11343
11344         sys_uio: Protect definition of 'struct iovec'.
11345         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11346         it as a C struct.
11347
11348 2011-04-30  Bruno Haible  <bruno@clisp.org>
11349
11350         manywarnings: fix indentation
11351         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11352
11353 2011-04-30  Pádraig Brady <P@draigBrady.com>
11354
11355         manywarnings: add -Wno-missing-field-initializers if needed.
11356         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11357         option if it's needed to allow initialization with { 0, }
11358
11359 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11360
11361         announce-gen: cosmetic improvement
11362         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11363
11364 2011-04-29  Jim Meyering  <meyering@redhat.com>
11365
11366         vc-list-files: indent with spaces, not TABs
11367         * build-aux/vc-list-files: Convert leading TABs to spaces,
11368         to match the style of most other files in gnulib.
11369
11370         announce-gen: indent with spaces, not TABs
11371         * build-aux/announce-gen: Convert all TABs to spaces, to match
11372         the style of most other files in gnulib.
11373
11374 2011-04-29  Eric Blake  <eblake@redhat.com>
11375
11376         quotearg: avoid uninitialized variable use
11377         * lib/quotearg.c (quoting_options_from_style): Initialize
11378         remaining fields, and ensure that custom styles are only used via
11379         quoting_options rather than quoting_style.
11380
11381 2011-04-29  Jim Meyering  <meyering@redhat.com>
11382
11383         maint.mk: remove unused VC-tag variable
11384         * top/maint.mk (VC-tag): Remove unused variable.
11385
11386 2011-04-29  Bruno Haible  <bruno@clisp.org>
11387
11388         netdb: fix gai_strerror replacements
11389         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11390         * modules/netdb: Substitute it.
11391
11392 2011-04-29  Jim Meyering  <meyering@redhat.com>
11393
11394         test-getcwd.c: avoid new set-but-not-used warning
11395         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11396         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11397         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11398         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11399
11400         test-hash.c: avoid a new shadowing warning
11401         * tests/test-hash.c (main): Don't shadow "dup".
11402
11403 2011-04-28  Eric Blake  <eblake@redhat.com>
11404
11405         getaddrinfo: fix gai_strerror signature
11406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11407         and work around mingw with UNICODE defined.
11408         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11409         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11410         * modules/netdb (Makefile.am): Substitute it.
11411         * lib/netdb.in.h (gai_strerror): Declare replacement.
11412         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11413         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11414         the fix.
11415
11416         getsockopt: avoid compiler warning
11417         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11418         Reported by Matthias Bolte.
11419
11420         tests: drop unused link dependency
11421         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11422         * modules/dirent-safer-tests (Makefile.am): Likewise.
11423         * modules/fdopendir-tests (Makefile.am): Likewise.
11424         * modules/mkfifoat-tests (Makefile.am): Likewise.
11425         * modules/openat-safer-tests (Makefile.am): Likewise.
11426         * modules/openat-tests (Makefile.am): Likewise.
11427         * modules/readlinkat-tests (Makefile.am): Likewise.
11428         * modules/symlinkat-tests (Makefile.am): Likewise.
11429         * modules/linkat-tests (Makefile.am): Likewise.
11430         (Depends-on): Switch to filenamecat-lgpl.
11431         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11432         LIBINTL.
11433         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11434         * tests/test-linkat.c (main): Don't require xalloc.
11435
11436         hash, mgetgroups: drop xalloc dependency
11437         * lib/hash.c (includes): Adjust includes.
11438         * lib/mgetgroups.c (includes): Likewise.
11439         (xgetgroups): Move...
11440         * lib/xgetgroups.c: ...to new file.
11441         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11442         * modules/xgetgroups: New file, split from...
11443         * modules/mgetgroups: ...here.
11444         (Depends-on): Add xalloc-oversized.
11445         * modules/hash (Depends-on): Likewise.
11446         * modules/hash-tests (Depends-on): Drop xalloc.
11447         (test_hash_LDADD): Drop unused library.
11448         * tests/test-hash.c (main): Break xalloc dependency.
11449         (includes): Drop unused include.
11450
11451         xalloc-oversized: new module
11452         * modules/xalloc-oversized: New module.
11453         * modules/xalloc (Depends-on): Add it.
11454         * lib/xalloc.h (xalloc_oversized): Move...
11455         * lib/xalloc-oversized.h: ...into new file.
11456
11457         utimecmp: drop dependency on xmalloc
11458         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11459         due to memory pressure.
11460         * modules/utimecmp (Depends-on): Drop xalloc.
11461
11462 2011-04-27  Eric Blake  <eblake@redhat.com>
11463
11464         getcwd: fix mingw bugs
11465         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11466         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11467         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11468
11469 2011-04-27  Bruno Haible  <bruno@clisp.org>
11470
11471         mkstemps: Ensure declaration on MacOS X 10.5.
11472         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11473         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11474         MacOS X.
11475
11476 2011-04-27  Bruno Haible  <bruno@clisp.org>
11477
11478         mkstemp: More documentation.
11479         * doc/posix-functions/mkstemp.texi: Document header file problem on
11480         MacOS X.
11481
11482 2011-04-27  Bruno Haible  <bruno@clisp.org>
11483
11484         mkstemp: Tweak configure message when cross-compiling.
11485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11486         result as a guess.
11487
11488 2011-04-27  Bruno Haible  <bruno@clisp.org>
11489
11490         clean-temp: Clarify what it does.
11491         * lib/clean-temp.h: Add more comments.
11492         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11493         module.
11494         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11495         * doc/glibc-functions/mkstemps.texi: Likewise.
11496         * doc/glibc-functions/mkostemps.texi: Likewise.
11497
11498 2011-04-27  Eric Blake  <eblake@redhat.com>
11499
11500         fchdir: avoid extra chdir and fix test
11501         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11502         getcwd-lgpl.
11503         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11504         have to be canonical.
11505         (canonicalize_file_name): Drop unused macro.
11506         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11507
11508         filenamecat-lgpl: fix licence
11509         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11510         when it was first created.
11511
11512         linkat, renameat: add missing dependency
11513         * modules/linkat (Depends-on): Require getcwd-lgpl.
11514         * modules/renameat (Depends-on): Likewise.
11515
11516         tests: reduce dependencies
11517         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11518         * tests/test-renameat.c (main): Likewise.
11519         * modules/linkat-tests (Depends-on): Relax dependency.
11520         * modules/renameat-tests (Depends-on): Likewise.
11521         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11522         dependency explicit.
11523
11524         save-cwd: reduce default dependency
11525         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11526         * lib/save-cwd.c: Update comments.
11527         * NEWS: Document the semantic change.
11528
11529         getcwd: enhance tests
11530         * tests/test-getcwd-lgpl.c: New file, taken from...
11531         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11532         repeat long path stress tests from m4 probe.
11533         * modules/getcwd-lgpl-tests: New module.
11534         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11535         * m4/getcwd-abort-bug.m4: Update comment.
11536         * m4/getcwd-path-max.m4: Likewise.
11537
11538         getcwd-lgpl: new module
11539         * modules/getcwd-lgpl: New module.
11540         * lib/getcwd-lgpl.c: New file.
11541         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11542         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11543         * modules/getcwd (configure.ac): Set C witness.
11544         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11545
11546         getcwd: tweak comments
11547         * m4/getcwd-abort-bug.m4: Fix comments.
11548         * m4/getcwd-path-max.m4: Likewise.
11549         * m4/getcwd.m4: Likewise.
11550
11551 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11552         and Eric Blake  <eblake@redhat.com>
11553
11554         mkstemp: replace if system version uses wrong permissions
11555         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11556         read/write mode bits set in file created by mkstemp.
11557         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11558
11559 2011-04-27  Eric Blake  <eblake@redhat.com>
11560
11561         passfd: avoid compiler warning
11562         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11563         Reported by Laine Stump.
11564
11565 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11566
11567         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11568         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11569
11570 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11571         and Eric Blake  <eblake@redhat.com>
11572
11573         mkstemp: mention clean-temp module
11574         * lib/mkstemp.c: Add comment.
11575         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11576
11577 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11578
11579         inttypes: also provide default values for 32-bit tests
11580         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11581         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11582
11583 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11584
11585         strtoumax: remove dependency on strtoimax
11586         This is like the strtoull change of yesterday.
11587         * modules/strtoumax (Files): Add lib/strtoimax.c.
11588         (Depends-on): Remove strtoimax and add verify.
11589
11590         inttypes-incomplete: new module
11591         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11592         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11593         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11594         of gl_INTTYPES_H.
11595         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11596         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11597         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11598         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11599         * modules/strtoumax, modules/xstrtol (Depends-on):
11600         Depend on inttypes-incomplete, not inttypes.
11601         * modules/inttypes-incomplete: New module, containing the contents
11602         of the old modules/inttypes module, except that the Files: section
11603         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11604         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11605         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11606         (Depends-on): Depend only on inttypes-incomplete.
11607         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11608
11609         inttypes: omit now-redundant strtoimax and strtoumax work
11610         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11611         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11612
11613         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11614         This supports apps that need pointers to strtoimax and strtoumax,
11615         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11616         nonexistent functions.  See
11617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11618         et seq.
11619         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11620         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11621         a macro.
11622         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11623
11624 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11625
11626         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11627
11628 2011-04-25  Bruno Haible  <bruno@clisp.org>
11629
11630         strtol, strtoul: Mark modules as obsolete.
11631         * modules/strtol (Status, Notice): New sections.
11632         * modules/strtoul (Status, Notice): New sections.
11633
11634 2011-04-25  Bruno Haible  <bruno@clisp.org>
11635
11636         strtod: Remove check for strtod, unless supporting old platforms.
11637         * modules/strtod-obsolete: New file.
11638         * m4/strtod-obsolete.m4: New file.
11639         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11640         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11641         * modules/strtod (Depends-on): Add strtod-obsolete.
11642         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11643
11644 2011-04-25  Bruno Haible  <bruno@clisp.org>
11645
11646         strcase: Make module obsolete.
11647         * modules/strcase (Status, Notice): New sections.
11648
11649 2011-04-25  Bruno Haible  <bruno@clisp.org>
11650
11651         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11652         * modules/dup2-obsolete: New file.
11653         * m4/dup2-obsolete.m4: New file.
11654         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11655         gl_FUNC_DUP2_OBSOLETE is not also defined.
11656         * modules/dup2 (Depends-on): Add dup2-obsolete.
11657         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11658
11659 2011-04-25  Bruno Haible  <bruno@clisp.org>
11660
11661         strnlen: Avoid memchr related link error on old obsolete platforms.
11662         * modules/memchr-obsolete: New file.
11663         * m4/memchr-obsolete.m4: New file.
11664         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11665         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11666         * modules/memchr (Depends-on): Add memchr-obsolete.
11667         * modules/strnlen (Depends-on): Likewise.
11668         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11669
11670 2011-04-25  Jim Meyering  <meyering@redhat.com>
11671
11672         maint.mk: makefile_at_at_check extend and clean up
11673         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11674         in addition to */Makefile.am.
11675         Exempt legitimate uses of @VAR@ notation, e.g.,
11676         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11677         Remove obsolete coreutils-specific comment.
11678         Prompted by discussion here:
11679         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11680
11681 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11682
11683         strtoul: remove dependency on strtol
11684         This is so that 'configure' need not check for strtol merely because
11685         the application needs strtoul.
11686         * modules/strtoul (Files): Add lib/strtol.c.
11687         (Depends-on): Remove strtol.
11688
11689         strtoull: remove dependency on strtoul
11690         This is like the strtoll change.
11691         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11692         (Depends-on): Remove strtoul.
11693
11694         strtoll: remove dependency on strtol
11695         This is so that 'configure' need not check for strtol merely because
11696         the application needs strtoll.
11697         * modules/strtoll (Files): Add lib/strtol.c.
11698         (Depends-on): Remove strtol.
11699
11700 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11701
11702         inttypes: Move some configure check to module 'imaxdiv'.
11703         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11704         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11705         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11706
11707 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11708
11709         inttypes: Move some configure check to module 'imaxabs'.
11710         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11711         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11712         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11713
11714 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11715
11716         inttypes: Remove configure tests that are not needed since 2009-12-31.
11717         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11718         gl_cv_header_working_inttypes_h.
11719
11720 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11721
11722         * modules/strnlen (Depends-on): Remove memchr.
11723         The strnlen implementation doesn't need the memchr module's fixes; see
11724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11725
11726         strtol: remove dependency on wchar
11727         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11728         * modules/strtol (Depends-on): Remove wchar.
11729
11730 2011-04-21  Eric Blake  <eblake@redhat.com>
11731
11732         passfd: fix test regression on Linux
11733         * modules/passfd-tests (configure.ac): Correct socketpair check.
11734
11735         passfd: speed up configure and drop unused code
11736         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11737         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11738         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11739         Instead of probing at configure for unix_scm_rights_bsd44_way,
11740         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11741         check to a struct member probe.
11742         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11743         (sendfd, recvfd): Update preprocessor checks.
11744         * modules/passfd (Files): Reflect rename, and drop unused file.
11745         (Depends-on): Drop unused dependency.
11746
11747         passfd: allow compilation on mingw
11748         * modules/sys_socket (Depends-on): Add sys_uio.
11749         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11750         iovec and a minimal struct msghdr.
11751         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11752         * tests/test-sys_socket.c (main): Enhance test.
11753         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11754         guaranteed to provide what we need.
11755         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11756         * modules/passfd-tests (Depends-on): Add sys_wait.
11757         * tests/test-passfd.c (main): Skip test on mingw, for now.
11758         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11759         partial 'struct msghdr' implementation.
11760
11761         sys_uio: new module
11762         * modules/sys_uio: New module.
11763         * modules/sys_uio-tests: Likewise.
11764         * lib/sys_uio.in.h: New file.
11765         * m4/sys_uio_h.m4: Likewise.
11766         * tests/test-sys_uio.c: Likewise.
11767         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11768         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11769
11770 2011-04-20  Jim Meyering  <meyering@redhat.com>
11771
11772         useless-if-before-free: avoid false-positive
11773         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11774         disjunct so that it too requires a terminating ";".  Without that,
11775         this script would identify as useless one statement from gcc that
11776         was not:
11777           if (aligned_ptr)
11778             free (((void **) aligned_ptr) [-1]);
11779
11780 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11781
11782         doc: update users.txt.
11783         * users.txt: Add barcode.
11784
11785 2011-04-19  Bruno Haible  <bruno@clisp.org>
11786
11787         ioctl: Remove link dependency on native Windows.
11788         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11789         (gl_close_fn, gl_ioctl_fn): New types.
11790         (struct fd_hook): Renamed from struct close_hook. Change type of
11791         private_close_fn field. Add private_ioctl_fn field.
11792         (close_hook_fn): Add parameter for primary close method.
11793         (execute_close_hooks, execute_all_close_hooks): Likewise.
11794         (ioctl_hook_fn): New type.
11795         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11796         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11797         argument.
11798         (unregister_fd_hook): Renamed from unregister_close_hook.
11799         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11800         Don't include <unistd.h>.
11801         (close): Remove undef.
11802         (anchor): Update.
11803         (execute_close_hooks): Add argument for primary close method.
11804         (execute_all_close_hooks): Likewise.
11805         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11806         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11807         argument. Allow each argument to be NULL.
11808         (unregister_fd_hook): Renamed from unregister_close_hook.
11809         * lib/close.c (rpl_close): Pass 'close' function pointer to
11810         execute_all_close_hooks.
11811         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11812         (primary_ioctl): New function.
11813         (ioctl): Don't call ioctlsocket here. Instead, call
11814         execute_all_ioctl_hooks.
11815         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11816         close method.
11817         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11818         (fd_sockets_hook): Renamed from close_sockets_hook.
11819         (gl_sockets_startup, gl_sockets_cleanup): Update.
11820         * modules/fd-hook: Renamed from modules/close-hook. Update.
11821         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11822         * modules/sockets (Depends-on): Likewise.
11823         * modules/ioctl (Depends-on): Add fd-hook.
11824         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11825         GNULIB_SOCKET.
11826
11827 2011-04-19  Bruno Haible  <bruno@clisp.org>
11828
11829         Move the support of O_NONBLOCK in open() to the 'open' module.
11830         * modules/nonblocking (Depends-on): Remove 'open'.
11831         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11832         gl_cv_have_open_O_NONBLOCK.
11833         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11834         O_NONBLOCK support.
11835         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11836
11837 2011-04-17  Bruno Haible  <bruno@clisp.org>
11838
11839         pipe2: Simplify code.
11840         * lib/pipe2.c (pipe2): Reduce code duplication.
11841
11842 2011-04-17  Bruno Haible  <bruno@clisp.org>
11843
11844         nonblocking: Add comment.
11845         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11846
11847 2011-04-17  Bruno Haible  <bruno@clisp.org>
11848
11849         nonblocking: Add tests for sockets.
11850         * tests/test-nonblocking-socket.sh: New file.
11851         * tests/test-nonblocking-socket-main.c: New file.
11852         * tests/test-nonblocking-socket-child.c: New file.
11853         * tests/test-nonblocking-socket.h: New file.
11854         * tests/socket-server.h: New file.
11855         * tests/socket-client.h: New file.
11856         * modules/nonblocking-socket-tests: New file.
11857         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11858
11859 2011-04-17  Bruno Haible  <bruno@clisp.org>
11860
11861         nonblocking: Add tests for pipes.
11862         * tests/test-nonblocking-pipe.sh: New file.
11863         * tests/test-nonblocking-pipe-main.c: New file.
11864         * tests/test-nonblocking-pipe-child.c: New file.
11865         * tests/test-nonblocking-pipe.h: New file.
11866         * tests/test-nonblocking-writer.h: New file.
11867         * tests/test-nonblocking-reader.h: New file.
11868         * tests/test-nonblocking-misc.h: New file.
11869         * modules/nonblocking-pipe-tests: New file.
11870         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11871
11872 2011-04-16  Bruno Haible  <bruno@clisp.org>
11873
11874         gettext: Clarify the needed programmer actions.
11875         * modules/gettext (Notice): New field.
11876         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11877
11878 2011-04-16  Bruno Haible  <bruno@clisp.org>
11879
11880         strchrnul: Tweak last commit.
11881         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11882         bug.
11883         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11884         as in _GL_FUNCDECL_SYS.
11885         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11886         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11887
11888 2011-04-15  Eric Blake  <eblake@redhat.com>
11889
11890         strchrnul: work around cygwin bug
11891         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11892         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11894         * modules/string (Makefile.am): Substitute it.
11895         * lib/string.in.h (strchrnul): Use it.
11896
11897 2011-04-15  Bruno Haible  <bruno@clisp.org>
11898
11899         Don't require lib/stdio-write.c when only module 'stdio' is used.
11900         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11901         invocation.
11902         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11903
11904 2011-04-14  Bruno Haible  <bruno@clisp.org>
11905
11906         Support non-blocking pipe I/O in read() on native Windows.
11907         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11908         (read): New declaration.
11909         * lib/read.c: New file.
11910         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11911         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11912         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11913         vscanf): New declarations.
11914         * lib/stdio-read.c: New file.
11915         * m4/read.m4: New file.
11916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11917         REPLACE_READ.
11918         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11919         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11920         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11921         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11922         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11923         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11924         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11925         * modules/read: New file.
11926         * modules/nonblocking (Files): Add lib/stdio-read.c.
11927         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11928         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11929         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11930         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11931         * modules/pread (Depends-on): Add read.
11932         * modules/safe-read (Depends-on): Likewise.
11933         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11934         gets, scanf, vfscanf, vscanf): Verify signatures.
11935         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11936         problem with non-blocking pipes.
11937         * doc/posix-functions/fgetc.texi: Likewise.
11938         * doc/posix-functions/fgets.texi: Likewise.
11939         * doc/posix-functions/fread.texi: Likewise.
11940         * doc/posix-functions/fscanf.texi: Likewise.
11941         * doc/posix-functions/getc.texi: Likewise.
11942         * doc/posix-functions/getchar.texi: Likewise.
11943         * doc/posix-functions/gets.texi: Likewise.
11944         * doc/posix-functions/scanf.texi: Likewise.
11945         * doc/posix-functions/vfscanf.texi: Likewise.
11946         * doc/posix-functions/vscanf.texi: Likewise.
11947
11948 2011-04-14  Bruno Haible  <bruno@clisp.org>
11949
11950         Support non-blocking pipe I/O in write() on native Windows.
11951         * lib/write.c (rpl_write): Split a write request that failed merely
11952         because the byte count was larger than the pipe buffer's size.
11953         * doc/posix-functions/write.texi: Mention the problem with large byte
11954         counts.
11955
11956 2011-04-14  Bruno Haible  <bruno@clisp.org>
11957
11958         wchar: Ensure that wchar_t gets defined on uClibc.
11959         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11960         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11961
11962 2011-04-13  Bruno Haible  <bruno@clisp.org>
11963
11964         safe-write, full-read: Avoid unnecessary compilation units.
11965         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11966         (Depends-on): Remove safe-read. Add ssize_t.
11967         * modules/full-read (Files): Add lib/full-write.c.
11968         (Depends-on): Add full-write.
11969
11970 2011-04-13  Bruno Haible  <bruno@clisp.org>
11971
11972         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11973         * modules/pwrite (Depends-on): Add 'write'.
11974
11975 2011-04-13  Bruno Haible  <bruno@clisp.org>
11976
11977         Support non-blocking pipe I/O in write() on native Windows.
11978         * lib/unistd.in.h (write): Enable replacement also if
11979         GNULIB_UNISTD_H_NONBLOCKING is 1.
11980         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11981         (rpl_write): When failing to write on a non-blocking pipe, change
11982         errno from ENOSPC to EAGAIN.
11983         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11984         putchar, puts, vfprintf, vprintf): Enable replacement also if
11985         GNULIB_STDIO_H_NONBLOCKING is 1.
11986         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11987         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11988         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11989         CALL_WITH_SIGPIPE_EMULATION.
11990         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11991         * m4/nonblocking.m4: New file.
11992         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11993         for non-blocking I/O support.
11994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11995         GNULIB_UNISTD_H_NONBLOCKING.
11996         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11997         required for non-blocking I/O support.
11998         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11999         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12000         lib/stdio-write.c, m4/asm-underscore.m4.
12001         (Depends-on): Add stdio, unistd.
12002         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12003         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12004         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12005         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12006         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12007         problem with non-blocking pipes.
12008         * doc/posix-functions/fputc.texi: Likewise.
12009         * doc/posix-functions/fputs.texi: Likewise.
12010         * doc/posix-functions/fwrite.texi: Likewise.
12011         * doc/posix-functions/printf.texi: Likewise.
12012         * doc/posix-functions/putc.texi: Likewise.
12013         * doc/posix-functions/putchar.texi: Likewise.
12014         * doc/posix-functions/puts.texi: Likewise.
12015         * doc/posix-functions/vfprintf.texi: Likewise.
12016         * doc/posix-functions/vprintf.texi: Likewise.
12017         * doc/posix-functions/write.texi: Likewise.
12018
12019 2011-04-10  Jim Meyering  <meyering@redhat.com>
12020
12021         maint.mk: prohibit doubled words
12022         Detect them also when they're separated by a newline.
12023         There are 3 ways to customize it:
12024           - disable the test on a per file basis, as usual with rules using
12025             $(VC_LIST_EXCEPT)
12026           - replace the default doubled-word-selecting regexp (affects all files)
12027           - ignore a particular file-vs-doubled-word match
12028         I nearly used that last one to ignore the "is is" match in
12029         coreutils' NEWS file, since the text was "ls -is is ..."
12030         To do that, I would have added this line to cfg.mk:
12031           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12032         but it would have ignored any "is is" match in NEWS.
12033         Low probability, but still...
12034         Instead, I changed the text, slightly:
12035           -  ls -is is now consistent with ls -lis in ignoring values returned
12036           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12037         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12038         (prohibit_doubled_word_): Define.
12039         (sc_prohibit_doubled_word): New rule.
12040         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12041
12042 2011-04-10  Jim Meyering  <meyering@redhat.com>
12043
12044         maint: fix doubled-word typo in comment
12045         * m4/gethostname.m4: s/is is/it is/
12046         * m4/getdomainname.m4: Likewise.
12047
12048 2011-04-10  Jim Meyering  <meyering@redhat.com>
12049
12050         maint: remove doubled word: s/it it/it/
12051         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12052
12053 2011-04-10  Jim Meyering  <meyering@redhat.com>
12054
12055         maint.mk: remove useless semicolon and backslash
12056         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12057         semicolon and backslash.
12058
12059 2011-04-10  Bruno Haible  <bruno@clisp.org>
12060
12061         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12062         * modules/stdint-tests (Depends-on): Add wchar.
12063
12064 2011-04-10  Jim Meyering  <meyering@redhat.com>
12065
12066         maint: remove doubled words in comments, e.g., s/a a/a/
12067         * lib/strptime.c (day_of_the_week): s/the the/the/
12068         * tests/test-chown.h (test_chown): s/a a/a/
12069
12070         test-chown.h: correct a cast
12071         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12072         when the destination is a stat.st_gid.
12073
12074 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12075
12076         getaddrinfo: Fix test for sa_len member.
12077         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12078         include <sys/types.h> before <sys/socket.h>.
12079
12080 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12081
12082         maint: change "can not" to "cannot"
12083         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12084         boundaries.
12085
12086 2011-04-09  Jim Meyering  <meyering@redhat.com>
12087
12088         maint: change "a a" to "a"
12089         * tests/test-lchown.h (test_lchown): s/a a/a/
12090
12091         maint.mk: prohibit \<the the\>
12092         * top/maint.mk (sc_prohibit_the_the): New rule.
12093
12094         maint: fix "the the" in comment
12095         * lib/count-one-bits.h: s/the the/the/
12096
12097         maint: change "can not" to "cannot"
12098         But do not change the occurrences in maintain.texi or in
12099         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12100         * doc/gnulib-tool.texi: s/can not/cannot/
12101         * doc/posix-functions/accept.texi (accept): Likewise.
12102         * doc/posix-functions/socket.texi (socket): Likewise.
12103         * lib/mbrtowc.c: Likewise.
12104
12105         maint.mk: prohibit use of "can not"
12106         * top/maint.mk (sc_prohibit_can_not): New rule.
12107         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12108
12109 2011-04-09  Bruno Haible  <bruno@clisp.org>
12110
12111         careadlinkat: Guard against misuse of careadlinkatcwd.
12112         * lib/careadlinkat.c: Include <stdlib.h>.
12113         (careadlinkatcwd): Check that the fd argument is as expected.
12114
12115 2011-04-09  Bruno Haible  <bruno@clisp.org>
12116
12117         careadlinkat: Use common coding style.
12118         * lib/careadlinkat.c: Move gnulib includes after system includes.
12119
12120 2011-04-09  Bruno Haible  <bruno@clisp.org>
12121
12122         careadlinkat: Clarify specification.
12123         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12124         (careadlinkatcwd): Add comment.
12125         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12126
12127 2011-04-09  Bruno Haible  <bruno@clisp.org>
12128
12129         areadlinkat: Avoid link error on many platforms.
12130         * modules/areadlinkat (Depends-on): Add areadlink.
12131
12132 2011-04-09  Bruno Haible  <bruno@clisp.org>
12133
12134         allocator, careadlinkat: Fix double-inclusion guard.
12135         * lib/allocator.h: Fix double-inclusion guard.
12136         * lib/careadlinkat.h: Likewise.
12137
12138 2011-04-09  Bruno Haible  <bruno@clisp.org>
12139
12140         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12141         * lib/relocwrapper.c: Update dependencies hierarchy.
12142         * build-aux/install-reloc: Update list of files to be compiled.
12143         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12144         lib/allocator.[hc].
12145
12146 2011-04-08  Eric Blake  <eblake@redhat.com>
12147
12148         strftime: silence gnulib-tool warning
12149         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12150
12151 2011-04-08  Bruno Haible  <bruno@clisp.org>
12152
12153         verify: Fix syntax error with GCC 4.6 in C++ mode.
12154         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12155         (HAVE_STATIC_ASSERT): New macro.
12156         (verify_true, verify): Use 'static_assert' if it is supported and
12157         '_Static_assert' is not supported.
12158
12159 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12160
12161         allocator: New module.
12162         * modules/allocator, lib/allocator.c: New files.
12163         * lib/allocator.h (stdlib_allocator): New decl.
12164         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12165         Remove.  Do not include <stdlib.h>.
12166         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12167         * modules/careadlinkat (Files): Remove lib/allocator.h.
12168         (Depends-on): Add allocator.
12169
12170         stdlib: let modules use system malloc, realloc
12171         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12172         if !_GL_USE_STDLIB_ALLOC.
12173         (malloc, realloc): Limit this change to a smaller scope.
12174
12175         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12176         (malloc, realloc): Don't #undef; no longer needed.
12177         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12178         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12179         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12180         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12181         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12182         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12183         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12184         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12185
12186         careadlinkat: rename members to avoid problem
12187         * lib/allocator.h (struct allocator): Rename members from
12188         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12189         and realloc are #define'd.  Reported by Eric Blake in
12190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12191         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12192
12193 2011-04-08  Eric Blake  <eblake@redhat.com>
12194
12195         nonblocking: reduce dependency
12196         * tests/test-nonblocking.c: Only test sockets when in use.
12197         * modules/nonblocking-tests (Depends-on): Drop socket.
12198         (Makefile.am): Link even if sockets are not present.
12199         * modules/pipe2-tests (Makefile.am): Likewise.
12200         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12201
12202         pipe2: fix O_NONBLOCK support on mingw
12203         * modules/pipe2 (Depends-on): Add nonblocking.
12204         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12205         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12206         * tests/test-nonblocking.c (main): Likewise.
12207         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12208
12209         fcntl-h: fix O_ACCMODE on cygwin
12210         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12211         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12212
12213         pipe-filter: drop O_NONBLOCK workarounds
12214         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12215         * modules/pipe-filter-ii (Depends-on): Likewise.
12216         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12217
12218         nonblocking: provide O_NONBLOCK for mingw
12219         * modules/nonblocking (Depends-on): Add open.
12220         (configure.ac): Set new witness macro.
12221         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12222         * modules/fcntl-h (Makefile.am): Substitute it.
12223         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12224         nonblocking module is in use.
12225         * lib/nonblocking.c: Adjust portability test.
12226         * lib/open.c (open): Don't let native open see gnulib flag.
12227         * tests/test-fcntl-h.c (main): Enhance test.
12228         * tests/test-open.h (test_open): Likewise.
12229         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12230
12231         careadlinkat: fix compilation error on mingw
12232         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12233         within struct allocator.
12234
12235 2011-04-06  Eric Blake  <eblake@redhat.com>
12236
12237         binary-io: relicense under LGPLv2+
12238         * modules/binary-io (License): Relax to LGPLv2+.
12239         Requested for libvirt, and required by pipe2.
12240
12241 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12242
12243         verify: use _Static_assert if available
12244         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12245         (verify_true, verify): Use it if available.  This generates better
12246         diagnostics with GCC 4.6.0 and later.
12247
12248 2011-04-05  Bruno Haible  <bruno@clisp.org>
12249
12250         Remove leftover generated .h files after config.status changed.
12251
12252         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12253         GL_GENERATE_ALLOCA_H.
12254         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12255         GL_GENERATE_ALLOCA_H evaluates to false.
12256
12257         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12258         GL_GENERATE_ARGZ_H.
12259         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12260         evaluates to false.
12261
12262         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12263         GL_GENERATE_BYTESWAP_H.
12264         * modules/byteswap (Makefile.am): Remove byteswap.h if
12265         GL_GENERATE_BYTESWAP_H evaluates to false.
12266
12267         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12268         GL_GENERATE_ERRNO_H.
12269         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12270         evaluates to false.
12271
12272         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12273         GL_GENERATE_FLOAT_H.
12274         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12275         evaluates to false.
12276
12277         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12278         GL_GENERATE_FNMATCH_H.
12279         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12280         GL_GENERATE_FNMATCH_H evaluates to false.
12281
12282         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12283         GL_GENERATE_GLOB_H.
12284         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12285         evaluates to false.
12286
12287         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12288         automake conditional GL_GENERATE_ICONV_H.
12289         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12290         evaluates to false.
12291
12292         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12293         GL_GENERATE_NETINET_IN_H.
12294         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12295         GL_GENERATE_NETINET_IN_H evaluates to false.
12296
12297         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12298         conditional GL_GENERATE_PTHREAD_H.
12299         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12300         * modules/pthread (Makefile.am): Remove pthread.h if
12301         GL_GENERATE_PTHREAD_H evaluates to false.
12302
12303         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12304         GL_GENERATE_SCHED_H.
12305         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12306         evaluates to false.
12307
12308         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12309         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12310         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12311         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12312
12313         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12314         GL_GENERATE_STDARG_H.
12315         * modules/stdarg (Makefile.am): Remove stdarg.h if
12316         GL_GENERATE_STDARG_H evaluates to false.
12317
12318         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12319         GL_GENERATE_STDBOOL_H.
12320         * modules/stdbool (Makefile.am): Remove stdbool.h if
12321         GL_GENERATE_STDBOOL_H evaluates to false.
12322
12323         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12324         conditional GL_GENERATE_STDDEF_H.
12325         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12326         * modules/stddef (Makefile.am): Remove stddef.h if
12327         GL_GENERATE_STDDEF_H evaluates to false.
12328
12329         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12330         GL_GENERATE_STDINT_H.
12331         * modules/stdint (Makefile.am): Remove stdint.h if
12332         GL_GENERATE_STDINT_H evaluates to false.
12333
12334         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12335         GL_GENERATE_SYSEXITS_H.
12336         * modules/sysexits (Makefile.am): Remove sysexits.h if
12337         GL_GENERATE_SYSEXITS_H evaluates to false.
12338
12339         Reported by Karl Berry and Ralf Wildenhues.
12340
12341 2011-04-05  Bruno Haible  <bruno@clisp.org>
12342
12343         Ensure to rebuild generated .h files when config.status has changed.
12344         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12345         config.status.
12346         * modules/ctype (Makefile.am): Likewise.
12347         * modules/dirent (Makefile.am): Likewise.
12348         * modules/errno (Makefile.am): Likewise.
12349         * modules/fcntl-h (Makefile.am): Likewise.
12350         * modules/float (Makefile.am): Likewise.
12351         * modules/getopt-posix (Makefile.am): Likewise.
12352         * modules/glob (Makefile.am): Likewise.
12353         * modules/iconv-h (Makefile.am): Likewise.
12354         * modules/inttypes (Makefile.am): Likewise.
12355         * modules/langinfo (Makefile.am): Likewise.
12356         * modules/locale (Makefile.am): Likewise.
12357         * modules/math (Makefile.am): Likewise.
12358         * modules/netdb (Makefile.am): Likewise.
12359         * modules/netinet_in (Makefile.am): Likewise.
12360         * modules/poll-h (Makefile.am): Likewise.
12361         * modules/pthread (Makefile.am): Likewise.
12362         * modules/pty (Makefile.am): Likewise.
12363         * modules/sched (Makefile.am): Likewise.
12364         * modules/search (Makefile.am): Likewise.
12365         * modules/selinux-h (Makefile.am): Likewise.
12366         * modules/signal (Makefile.am): Likewise.
12367         * modules/spawn (Makefile.am): Likewise.
12368         * modules/stdarg (Makefile.am): Likewise.
12369         * modules/stdbool (Makefile.am): Likewise.
12370         * modules/stddef (Makefile.am): Likewise.
12371         * modules/stdint (Makefile.am): Likewise.
12372         * modules/stdio (Makefile.am): Likewise.
12373         * modules/stdlib (Makefile.am): Likewise.
12374         * modules/string (Makefile.am): Likewise.
12375         * modules/strings (Makefile.am): Likewise.
12376         * modules/sys_file (Makefile.am): Likewise.
12377         * modules/sys_ioctl (Makefile.am): Likewise.
12378         * modules/sys_select (Makefile.am): Likewise.
12379         * modules/sys_socket (Makefile.am): Likewise.
12380         * modules/sys_stat (Makefile.am): Likewise.
12381         * modules/sys_time (Makefile.am): Likewise.
12382         * modules/sys_times (Makefile.am): Likewise.
12383         * modules/sys_utsname (Makefile.am): Likewise.
12384         * modules/sys_wait (Makefile.am): Likewise.
12385         * modules/sysexits (Makefile.am): Likewise.
12386         * modules/termios (Makefile.am): Likewise.
12387         * modules/time (Makefile.am): Likewise.
12388         * modules/unistd (Makefile.am): Likewise.
12389         * modules/wchar (Makefile.am): Likewise.
12390         * modules/wctype-h (Makefile.am): Likewise.
12391         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12392
12393 2011-04-05  Bruno Haible  <bruno@clisp.org>
12394
12395         pipe2: Relicense under LGPLv2+.
12396         * modules/pipe2 (License): Change to LGPLv2+.
12397         Requested by Eric Blake, for libvirt.
12398
12399 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12400
12401         bootstrap: compute gnulib_extra_files after updating build_aux
12402         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12403         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12404
12405 2011-04-05  Eric Blake  <eblake@redhat.com>
12406
12407         bootstrap: preserve git whitelist item sorting
12408         * build-aux/bootstrap (sort_patterns): New function.
12409         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12410
12411 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12412
12413         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12414         sc_space_tab check.
12415
12416 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         areadlink, areadlinkat: rewrite in terms of careadlinkat
12419         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12420         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12421         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12422         (malloc, realloc): Remove #undefs.
12423         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12424         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12425         readlink, ssize_t, stdint, unistd.
12426         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12427         areadlink, stdint.
12428
12429         careadlinkat: new module
12430         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12431         * modules/careadlinkat: New files, written by me with
12432         a review and feedback from Ben Pfaff in
12433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12434
12435 2011-04-01  Bruno Haible  <bruno@clisp.org>
12436
12437         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12438         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12439         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12440         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12441         Reported by Bruce Korb <bruce.korb@gmail.com>.
12442
12443 2011-04-01  Bruno Haible  <bruno@clisp.org>
12444
12445         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12446         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12447         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12448         * modules/wcpcpy (Depends-on): Add extensions.
12449         * modules/wcpncpy (Depends-on): Likewise.
12450         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12451         systems.
12452         * doc/posix-functions/wcpncpy.texi: Likewise.
12453         * doc/posix-functions/wcwidth.texi: Likewise.
12454
12455 2011-03-31  Eric Blake  <eblake@redhat.com>
12456
12457         nonblocking: fix mingw test failures
12458         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12459         non-blocking flag on regular file.
12460         (get_nonblocking_flag): Set errno on invalid fd.
12461         * tests/test-nonblocking.c (main): Avoid test failure on
12462         directories if fchdir is not active.
12463         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12464
12465 2011-03-31  Bruno Haible  <bruno@clisp.org>
12466
12467         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12468         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12469         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12470         Reported by Simon Josefsson <simon@josefsson.org>.
12471
12472 2011-03-31  Bruno Haible  <bruno@clisp.org>
12473         and Eric Blake  <eblake@redhat.com>
12474
12475         nonblocking: new module
12476         * modules/nonblocking: New module.
12477         * modules/nonblocking-tests: Likewise.
12478         * lib/nonblocking.h: New file.
12479         * lib/nonblocking.c: Likewise.
12480         * tests/test-nonblocking.c: New test.
12481         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12482
12483 2011-03-30  Bruno Haible  <bruno@clisp.org>
12484
12485         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12486         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12487         instead of 'printf' format for GCC >= 4.4.
12488         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12489         (fprintf, printf, vfprintf, vprintf): Declare with
12490         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12491         the system's vfprintf() function.
12492         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12493
12494 2011-03-30  Eric Blake  <eblake@redhat.com>
12495
12496         passfd: fix scoping bug
12497         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12498         before sendmsg/recvmsg.
12499
12500         passfd: standardize coding conventions
12501         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12502         can be learned at compile time.
12503         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12504         ifdefs.
12505         (sendfd, recvfd): Follow gnulib code conventions.
12506
12507         passfd: fix incorrect sendmsg arguments
12508         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12509         incorrect msg_controllen value.
12510         * modules/passfd-tests (Depends-on): Check for alarm.
12511         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12512         Reported by Bastien ROUCARIES.
12513
12514 2011-03-30  Bruno Haible  <bruno@clisp.org>
12515
12516         c-strcasestr: Relicense under LGPLv2+.
12517         * modules/c-strcasestr (License): Change to LGPLv2+.
12518         Requested by Eric Blake, for libvirt.
12519
12520 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12521
12522         * users.txt: Add libidn2.  Fix libtasn1 link.
12523
12524 2011-03-30  Jim Meyering  <meyering@redhat.com>
12525
12526         tests: readlink* ("",... fails with EINVAL on newer kernels
12527         readlink and readlinkat have typically failed with ENOENT for
12528         the invalid, empty file name,  "".  However, with the advent
12529         of linux-2.6.39, they fail with EINVAL.
12530         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12531         when operating on the empty file name.
12532         * tests/test-readlink.h (test_readlink): Likewise.
12533
12534 2011-03-29  Bruno Haible  <bruno@clisp.org>
12535
12536         Relicense some modules under LGPLv2+, for libidn2.
12537         * modules/array-mergesort (License): Change to LGPLv2+.
12538         * modules/c-strcaseeq (License): Likewise.
12539         * modules/striconveh (License): Likewise.
12540         * modules/striconveha (License): Likewise.
12541         * modules/uniconv/base (License): Likewise.
12542         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12543         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12544         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12545         * modules/unictype/base (License): Likewise.
12546         * modules/unictype/bidiclass-of (License): Likewise.
12547         * modules/unictype/category-M (License): Likewise.
12548         * modules/unictype/category-none (License): Likewise.
12549         * modules/unictype/category-of (License): Likewise.
12550         * modules/unictype/category-test (License): Likewise.
12551         * modules/unictype/category-test-withtable (License): Likewise.
12552         * modules/unictype/combining-class (License): Likewise.
12553         * modules/unictype/joiningtype-of (License): Likewise.
12554         * modules/unictype/scripts (License): Likewise.
12555         * modules/uninorm/base (License): Likewise.
12556         * modules/uninorm/canonical-decomposition (License): Likewise.
12557         * modules/uninorm/composition (License): Likewise.
12558         * modules/uninorm/decompose-internal (License): Likewise.
12559         * modules/uninorm/decomposition-table (License): Likewise.
12560         * modules/uninorm/nfc (License): Likewise.
12561         * modules/uninorm/nfd (License): Likewise.
12562         * modules/uninorm/u32-normalize (License): Likewise.
12563         * modules/unistr/base (License): Likewise.
12564         * modules/unistr/u32-cpy (License): Likewise.
12565         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12566         * modules/unistr/u32-to-u8 (License): Likewise.
12567         * modules/unistr/u32-uctomb (License): Likewise.
12568         * modules/unistr/u8-check (License): Likewise.
12569         * modules/unistr/u8-mblen (License): Likewise.
12570         * modules/unistr/u8-mbtouc (License): Likewise.
12571         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12572         * modules/unistr/u8-mbtoucr (License): Likewise.
12573         * modules/unistr/u8-prev (License): Likewise.
12574         * modules/unistr/u8-strlen (License): Likewise.
12575         * modules/unistr/u8-to-u32 (License): Likewise.
12576         * modules/unistr/u8-uctomb (License): Likewise.
12577         * modules/unitypes (License): Likewise.
12578         Requested by Simon Josefsson.
12579
12580 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12581
12582         lib-symbol-visibility: Add a notice.
12583         * modules/lib-symbol-visibility (Notice): New field.
12584
12585 2011-03-29  Bruno Haible  <bruno@clisp.org>
12586
12587         getaddrinfo: Doc fix.
12588         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12589         section "fixed in Gnulib".
12590
12591 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12592
12593         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12594         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12595
12596 2011-03-26  Bruno Haible  <bruno@clisp.org>
12597
12598         unictype/property-byname: Reduce the number of load-time relocations.
12599         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12600         (UC_PROPERTY_INDEX_*): New enumeration values.
12601         (uc_property_byname): Convert an index from the lookup table to an
12602         uc_property_t.
12603         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12604         values.
12605
12606 2011-03-26  Bruno Haible  <bruno@clisp.org>
12607
12608         unictype/property-byname: Allow omitted word separators and aliases.
12609         * lib/unictype/pr_byname.gperf: Add property names without word
12610         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12611         for 'space'.
12612
12613 2011-03-26  Bruno Haible  <bruno@clisp.org>
12614
12615         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12616         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12617         also hyphens to space.
12618         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12619         without spaces.
12620         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12621
12622 2011-03-26  Bruno Haible  <bruno@clisp.org>
12623
12624         unictype/joiningtype-byname: Recognize long names as well.
12625         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12626         a long name.
12627         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12628         unictype/joiningtype_byname.h.
12629         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12630         * lib/unictype/joiningtype_byname.gperf: New file.
12631         * modules/unictype/joiningtype-byname (Files): Add
12632         lib/unictype/joiningtype_byname.gperf.
12633         (Depends-on): Add gperf.
12634         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12635         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12636         long names.
12637
12638         Tests for module 'unictype/joiningtype-longname'.
12639         * modules/unictype/joiningtype-longname-tests: New file.
12640         * tests/unictype/test-joiningtype_longname.c: New file.
12641
12642         New module 'unictype/joiningtype-longname'.
12643         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12644         * lib/unictype/joiningtype_longname.c: New file.
12645         * modules/unictype/joiningtype-longname: New file.
12646         * modules/unictype/joiningtype-all (Depends-on): Add
12647         unictype/joiningtype-longname.
12648
12649 2011-03-26  Bruno Haible  <bruno@clisp.org>
12650
12651         unictype/bidiclass-byname: Recognize long names as well.
12652         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12653         name.
12654         * lib/unictype/bidi_byname.c: Include <string.h>,
12655         unictype/bidi_byname.h.
12656         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12657         * lib/unictype/bidi_byname.gperf: New file.
12658         * modules/unictype/bidiclass-byname (Files): Add
12659         lib/unictype/bidi_byname.gperf.
12660         (Depends-on): Add gperf.
12661         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12662         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12663         long names.
12664
12665         Tests for module 'unictype/bidiclass-longname'.
12666         * modules/unictype/bidiclass-longname-tests: New file.
12667         * tests/unictype/test-bidi_longname.c: New file.
12668
12669         New module 'unictype/bidiclass-longname'.
12670         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12671         * lib/unictype/bidi_longname.c: New file.
12672         * modules/unictype/bidiclass-longname: New file.
12673         * modules/unictype/bidiclass-all (Depends-on): Add
12674         unictype/bidiclass-longname.
12675
12676 2011-03-26  Bruno Haible  <bruno@clisp.org>
12677
12678         unictype/bidi*: Rename modules.
12679         * modules/unictype/bidiclass-all: Renamed from
12680         modules/unictype/bidicategory-all.
12681         * modules/unictype/bidiclass-name: Renamed from
12682         modules/unictype/bidiclass-name.
12683         (Description): Update.
12684         * modules/unictype/bidiclass-name-tests: Renamed from
12685         modules/unictype/bidicategory-name-tests.
12686         * modules/unictype/bidiclass-byname: Renamed from
12687         modules/unictype/bidicategory-byname.
12688         (Description): Update.
12689         * modules/unictype/bidiclass-byname-tests: Renamed from
12690         modules/unictype/bidicategory-byname-tests.
12691         * modules/unictype/bidiclass-of: Renamed from
12692         modules/unictype/bidicategory-of.
12693         (Description): Update.
12694         * modules/unictype/bidiclass-of-tests: Renamed from
12695         modules/unictype/bidicategory-of-tests.
12696         * modules/unictype/bidiclass-test: Renamed from
12697         modules/unictype/bidicategory-test.
12698         (Description): Update.
12699         * modules/unictype/bidiclass-test-tests: Renamed from
12700         modules/unictype/bidicategory-test-tests.
12701         * modules/unictype/bidicategory-all: New file, a simple redirection.
12702         * modules/unictype/bidicategory-name: Likewise.
12703         * modules/unictype/bidicategory-byname: Likewise.
12704         * modules/unictype/bidicategory-of: Likewise.
12705         * modules/unictype/bidicategory-test: Likewise.
12706         * modules/unictype/property-bidi-* (Dependencies): Update.
12707         * lib/unictype/bidi_*.c: Update comment.
12708
12709 2011-03-26  Bruno Haible  <bruno@clisp.org>
12710
12711         unictype/bidi*: Rename functions, part 2.
12712         * modules/unictype/bidicategory-name (configure.ac): Update required
12713         libunistring version.
12714         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12715
12716 2011-03-25  Bruno Haible  <bruno@clisp.org>
12717
12718         New module 'unictype/combining-class-all'.
12719         * modules/unictype/combining-class-all: New file.
12720
12721         Tests for module 'unictype/combining-class-byname'.
12722         * modules/unictype/combining-class-byname-tests: New file.
12723         * tests/unictype/test-combiningclass_byname.c: New file.
12724
12725         New module 'unictype/combining-class-byname'.
12726         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12727         * lib/unictype/combiningclass_byname.c: New file.
12728         * lib/unictype/combiningclass_byname.gperf: New file.
12729         * modules/unictype/combining-class-byname: New file.
12730
12731         Tests for module 'unictype/combining-class-longname'.
12732         * modules/unictype/combining-class-longname-tests: New file.
12733         * tests/unictype/test-combiningclass_longname.c: New file.
12734
12735         New module 'unictype/combining-class-longname'.
12736         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12737         * lib/unictype/combiningclass_longname.c: New file.
12738         * modules/unictype/combining-class-longname: New file.
12739
12740         Tests for module 'unictype/combining-class-name'.
12741         * modules/unictype/combining-class-name-tests: New file.
12742         * tests/unictype/test-combiningclass_name.c: New file.
12743
12744         New module 'unictype/combining-class-name'.
12745         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12746         * lib/unictype/combiningclass_name.c: New file.
12747         * modules/unictype/combining-class-name: New file.
12748
12749 2011-03-25  Bruno Haible  <bruno@clisp.org>
12750
12751         unictype/combining-class: Rename source files.
12752         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12753         of unictype/combining.h.
12754         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12755         Update.
12756         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12757         * modules/unictype/combining-class (Description): Fix.
12758         (Files, Makefile.am): Update.
12759         * tests/unictype/test-combiningclass.c: Renamed from
12760         tests/unictype/test-combining.c.
12761         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12762
12763 2011-03-25  Bruno Haible  <bruno@clisp.org>
12764
12765         unictype: Update list of canonical combining classes.
12766         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12767
12768 2011-03-25  Bruno Haible  <bruno@clisp.org>
12769
12770         unictype/category-byname: Recognize long names as well.
12771         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12772         a long name.
12773         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12774         unictype/categ_byname.h.
12775         (UC_CATEGORY_INDEX_*): New enumeration values.
12776         (uc_general_category_byname): Use uc_general_category_lookup and
12777         convert from index to value.
12778         * lib/unictype/categ_byname.gperf: New file.
12779         * modules/unictype/category-byname (Files): Add
12780         lib/unictype/categ_byname.gperf.
12781         (Depends-on): Add gperf.
12782         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12783         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12784         long names.
12785
12786         Tests for module 'unictype/category-longname'.
12787         * modules/unictype/category-longname-tests: New file.
12788         * tests/unictype/test-categ_longname.c: New file.
12789
12790         New module 'unictype/category-longname'.
12791         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12792         * lib/unictype/categ_longname.c: New file.
12793         * modules/unictype/category-longname: New file.
12794         * modules/unictype/category-all (Depends-on): Add it.
12795
12796 2011-03-25  Bruno Haible  <bruno@clisp.org>
12797
12798         Tests for module 'unictype/category-LC'.
12799         * modules/unictype/category-LC-tests: New file.
12800         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12801
12802         New module 'unictype/category-LC'.
12803         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12804         (UC_CATEGORY_LC): New declaration.
12805         (UC_CASED_LETTER): New macro.
12806         * lib/gen-uni-tables.c (is_category_LC): New function.
12807         (output_categories): Also handle category LC.
12808         (UC_CATEGORY_MASK_LC): New enumeration value.
12809         (general_category_byname): Also handle category LC.
12810         * lib/unictype/categ_LC.c: New file.
12811         * lib/unictype/categ_LC.h: New file, automatically generated.
12812         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12813         category LC.
12814         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12815         * modules/unictype/category-LC: New file.
12816         * modules/unictype/category-byname (Depends-on): Add
12817         unictype/category-LC.
12818         * modules/unictype/category-all (Depends-on): Likewise.
12819
12820 2011-03-25  Eric Blake  <eblake@redhat.com>
12821
12822         xmalloc: revert yesterday's regression
12823         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12824         realloc's underlying behavior (allowing allocation of zero-size
12825         objects, especially if malloc-gnu is also in use).
12826
12827 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12828
12829         maint.mk: add missing version to VC-tag
12830         * top/maint.mk: git tag was missing actual tag name; add it.
12831
12832         valgrind: do leak checking, and exit with code 1 on error (not 0)
12833         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12834         to VALGRIND.
12835
12836 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12837
12838         posix-modules: say what it does.
12839         * posix-modules: Add a line to the --help output saying what it does.
12840
12841 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12842
12843         xmalloc: Do not leak if underlying realloc is C99 compatible.
12844         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12845         This avoids a leak on C99-based systems.  See
12846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12847
12848 2011-03-24  Eric Blake  <eblake@redhat.com>
12849
12850         realloc: document portability problem
12851         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12852         passing 0 size to realloc.
12853
12854 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12855
12856         doc: update users.txt
12857         * users.txt: Add cvsps, tmpwatch
12858
12859 2011-03-23  Matt Rice  <ratmice@gmail.com>
12860
12861         doc: update users.txt
12862         * users.txt: Add gdb.
12863
12864 2011-03-23  Jim Meyering  <meyering@redhat.com>
12865
12866         doc: update users.txt
12867         Looking through matches up to the following URL (there are still
12868         several more pages), I found several projects that use gnulib:
12869         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12870         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12871         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12872
12873 2011-03-22  Bruno Haible  <bruno@clisp.org>
12874
12875         unictype/bidi*: Rename functions.
12876         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12877         uc_bidi_class, uc_is_bidi_class): New declarations.
12878         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12879         uc_bidi_category_byname.
12880         (uc_bidi_category_byname): New function.
12881         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12882         u_bidi_category_name.
12883         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12884         (uc_bidi_category_name): New function.
12885         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12886         uc_bidi_category.
12887         (uc_bidi_category): New function.
12888         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12889         uc_is_bidi_category. Invoke uc_bidi_class.
12890         (uc_is_bidi_category): New function.
12891         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12892         instead of uc_bidi_category_byname.
12893         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12894         instead of uc_bidi_category_name.
12895         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12896         uc_bidi_category.
12897         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12898         instead of uc_is_bidi_category.
12899
12900 2011-03-21  Bruno Haible  <bruno@clisp.org>
12901
12902         New module 'unictype/joininggroup-all'.
12903         * modules/unictype/joininggroup-all: New file.
12904
12905         Tests for module 'unictype/joininggroup-of'.
12906         * modules/unictype/joininggroup-of-tests: New file.
12907         * tests/unictype/test-joininggroup_of.c: New file.
12908         * tests/unictype/test-joininggroup_of.h: New file, automatically
12909         generated by gen-uni-tables.
12910
12911         New module 'unictype/joininggroup-of'.
12912         * modules/unictype/joininggroup-of: New file.
12913         * lib/unictype/joininggroup_of.c: New file.
12914         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12915         gen-uni-tables.
12916
12917         Tests for module 'unictype/joininggroup-byname'.
12918         * modules/unictype/joininggroup-byname-tests: New file.
12919         * tests/unictype/test-joininggroup_byname.c: New file.
12920
12921         New module 'unictype/joininggroup-byname'.
12922         * modules/unictype/joininggroup-byname: New file.
12923         * lib/unictype/joininggroup_byname.c: New file.
12924         * lib/unictype/joininggroup_byname.gperf: New file.
12925
12926         Tests for module 'unictype/joininggroup-name'.
12927         * modules/unictype/joininggroup-name-tests: New file.
12928         * tests/unictype/test-joininggroup_name.c: New file.
12929
12930         New module 'unictype/joininggroup-name'.
12931         * modules/unictype/joininggroup-name: New file.
12932         * lib/unictype/joininggroup_name.c: New file.
12933         * lib/unictype/joininggroup_name.h: New file.
12934
12935         New module 'unictype/joiningtype-all'.
12936         * modules/unictype/joiningtype-all: New file.
12937
12938         Tests for module 'unictype/joiningtype-of'.
12939         * modules/unictype/joiningtype-of-tests: New file.
12940         * tests/unictype/test-joiningtype_of.c: New file.
12941         * tests/unictype/test-joiningtype_of.h: New file, automatically
12942         generated by gen-uni-tables.
12943
12944         New module 'unictype/joiningtype-of'.
12945         * modules/unictype/joiningtype-of: New file.
12946         * lib/unictype/joiningtype_of.c: New file.
12947         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12948         gen-uni-tables.
12949
12950         Tests for module 'unictype/joiningtype-byname'.
12951         * modules/unictype/joiningtype-byname-tests: New file.
12952         * tests/unictype/test-joiningtype_byname.c: New file.
12953
12954         New module 'unictype/joiningtype-byname'.
12955         * modules/unictype/joiningtype-byname: New file.
12956         * lib/unictype/joiningtype_byname.c: New file.
12957
12958         Tests for module 'unictype/joiningtype-name'.
12959         * modules/unictype/joiningtype-name-tests: New file.
12960         * tests/unictype/test-joiningtype_name.c: New file.
12961
12962         New module 'unictype/joiningtype-name'.
12963         * modules/unictype/joiningtype-name: New file.
12964         * lib/unictype/joiningtype_name.c: New file.
12965
12966         unictype: Add support for Arabic shaping properties.
12967         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12968         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12969         declarations.
12970         (UC_JOINING_GROUP_*): New enumeration values.
12971         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12972         declarations.
12973         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12974         (unicode_joining_type): New variable.
12975         (UC_JOINING_GROUP_*): New enumeration values.
12976         (unicode_joining_group): New variable.
12977         (fill_arabicshaping, joining_type_as_c_identifier,
12978         output_joining_type_test, output_joining_type,
12979         joining_group_as_c_identifier, output_joining_group_test,
12980         output_joining_group): New functions.
12981         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12982         fill_arabicshaping and output_joining_type_test, output_joining_type,
12983         output_joining_group_test, output_joining_group.
12984         Reported by Simon Josefsson.
12985
12986 2011-03-21  Jim Meyering  <meyering@redhat.com>
12987
12988         strftime: fix a bug in yesterday's change
12989         * lib/strftime.c (add): Accommodate width's initial value of -1.
12990         Otherwise, nstrftime would copy uninitialized data into
12991         the result buffer.
12992
12993 2011-03-21  Jim Meyering  <meyering@redhat.com>
12994
12995         tests: add strftime-tests module
12996         * tests/test-strftime.c: New file.
12997         * modules/strftime-tests: New module.
12998
12999 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13000
13001         strftime: don't assume a byte count fits in 'int'
13002         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13003         found this problem by static analysis, using gcc -Wstrict-overflow
13004         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13005         on an integer overflow having undefined behavior, but it turns out
13006         that the argument is a size, which might not fit in 'int' anyway,
13007
13008 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13009
13010         stdio: don't require ignore_value around fwrite
13011
13012         This patch works around libc bug 11959
13013         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13014         Without this patch, applications must often write
13015         ignore_value (fwrite (...)) even though the ignore_value is
13016         not helpful here.  It's common to write many objects, using
13017         fwrite/printf/etc., and then use ferror to detect output error.
13018
13019         I considered making this patch optional, but decided against it,
13020         because libc is obviously being inconsistent here: there is no
13021         reason libc should insist that user code must inspect fwrite
13022         return's value without also insisting that it inspect printf's,
13023         putchar's, etc.  If user code wants to have a strict style where
13024         all these functions' values are checked (so that ferror need not
13025         be checked), we could add support for that style in a new gnulib
13026         module, but in the meantime it's better to be consistent and to
13027         support common usage.
13028
13029         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13030         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13031         that we are compiling in checking mode, and if not C++, and
13032         if not already wrapping fwrite for some other reason.
13033         (fwrite): #define to rpl_fwrite if the latter is defined.
13034
13035 2011-03-20  Bruno Haible  <bruno@clisp.org>
13036
13037         verror: Fix compilation error introduced on 2011-02-13.
13038         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13039         instead of __attribute__.
13040         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13041
13042 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13043             Bruno Haible  <bruno@clisp.org>
13044
13045         socklen: do not depend on sys_socket
13046         While trying to modify Emacs to use gnulib's socklen module,
13047         I discovered a circular dependency: socklen depends on sys_socket
13048         and vice versa.  Emacs can use socklen, but it does not need
13049         sys_socket because it has its own substitute for sys/socket.h.
13050         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13051         gl_TYPE_SOCKLEN_T.
13052         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13053         gl_PREREQ_SYS_H_SOCKET.
13054         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13055         gl_PREREQ_SYS_H_SOCKET.
13056         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13057         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13058         * modules/socklen (Depends-on): Do not depend on sys_socket.
13059         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13060
13061 2011-03-20  Jim Meyering  <meyering@redhat.com>
13062
13063         maint.mk: sort file names *after* new transformation
13064         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13065         prefix would have led to an unwarranted failure in GNU parted.
13066         Sort after that transformation.
13067
13068 2011-03-19  Jim Meyering  <meyering@redhat.com>
13069
13070         maint.mk: fix po-file syntax-check rule
13071         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13072         Patch by Bruno Haible.
13073
13074 2011-03-19  Bruno Haible  <bruno@clisp.org>
13075
13076         socklen: Update comment.
13077         * m4/socklen.m4: Update comment about platforms.
13078
13079 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13080             Bruno Haible  <bruno@clisp.org>
13081
13082         inet_ntop, inet_pton: Simplify.
13083         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13084         documented to provide socklen_t and we already depend on sys_socket.
13085         * modules/inet_pton (Depends-on): Likewise.
13086         * lib/arpa_inet.in.h: Adjust comment.
13087
13088 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13089             Bruno Haible  <bruno@clisp.org>
13090
13091         netdb: Simplify.
13092         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13093         documented to provide socklen_t and we already depend on sys_socket.
13094         * lib/netdb.in.h: Adjust comment.
13095
13096 2011-03-19  Bruno Haible  <bruno@clisp.org>
13097
13098         sys_socket, netdb: Document problem with socklen_t.
13099         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13100         platforms.
13101         * doc/posix-headers/netdb.texi: Likewise.
13102
13103 2011-03-18  Eric Blake  <eblake@redhat.com>
13104
13105         maint.mk: let po check work in VPATH build
13106         * top/maint.mk (po_file): Allow cfg.mk override.
13107         (sc_po_check): Allow VPATH use.
13108         Reported by Jiri Denemark.
13109
13110 2011-03-16  Jim Meyering  <meyering@redhat.com>
13111
13112         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13113         Before, you would have had to create one .x-sc_ file per rule in order
13114         to exempt offending files.  Now, you may instead use a Make variable --
13115         usually defined in cfg.mk -- whose name identifies the affected rule.
13116         * top/maint.mk (_sc_excl): Define.
13117         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13118         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13119
13120 2011-03-13  Bruno Haible  <bruno@clisp.org>
13121
13122         ignore-value tests: Avoid warnings.
13123         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13124         empty for gcc < 3.4.
13125
13126 2011-03-13  Bruno Haible  <bruno@clisp.org>
13127
13128         passfd: Fix link error on Solaris.
13129         * modules/passfd (Description): Correct.
13130         (Depends-on): Add socketlib.
13131         (Link): New section.
13132         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13133
13134 2011-03-13  Bruno Haible  <bruno@clisp.org>
13135
13136         passfd: Fix link error on AIX 5.2.
13137         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13138
13139 2011-03-13  Bruno Haible  <bruno@clisp.org>
13140
13141         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13142         * lib/sys_socket.in.h: Include <stddef.h>.
13143         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13144         CMSG_FIRSTHDR. Remove unused variable.
13145
13146 2011-03-13  Bruno Haible  <bruno@clisp.org>
13147
13148         passfd: Fix compilation error on OpenBSD.
13149         * lib/passfd.c: Include <sys/uio.h>.
13150
13151 2011-03-13  Bruno Haible  <bruno@clisp.org>
13152
13153         passfd test: Fix warnings.
13154         * tests/test-passfd.c: Include <sys/wait.h>.
13155         (main): Fix typo.
13156
13157 2011-03-13  Bruno Haible  <bruno@clisp.org>
13158
13159         passfd module, part 4, tweaks.
13160         * tests/test-passfd.c: Reorder includes.
13161         (main): Fix perror and printf calls.
13162
13163 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13164
13165         passfd module, part 4.
13166         * modules/passfd-tests: New file.
13167         * tests/test-passfd.c: New file.
13168
13169 2011-03-13  Jim Meyering  <meyering@redhat.com>
13170
13171         Makefile: rely on GNU make; derive syntax-check rule names
13172         Rather than requiring that each sc_ rule be listed as a dependent
13173         of "check", use features of GNU make to derive the list.
13174         * Makefile (syntax-check-rules): Define.
13175         (check): Depend on the new variable, not the hard-coded list.
13176
13177 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13178             Bruno Haible  <bruno@clisp.org>
13179
13180         passfd module, part 3.
13181         * lib/passfd.h (recvfd): Add a flags argument.
13182         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13183         (recvfd): Add a flags argument.
13184         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13185         exists.
13186         * modules/passfd (Depends-on): Add cloexec.
13187         Suggested by Eric Blake.
13188
13189 2011-03-13  Bruno Haible  <bruno@clisp.org>
13190
13191         passfd module, part 2, tweaks.
13192         * modules/passfd (Files): Reorder.
13193         (Depends-on): Remove errno.
13194         (Include): Remove <sys/socket.h>, <sys/un.h>.
13195         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13196         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13197         specification header. Include <sys/socket.h> always. Don't include
13198         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13199         (sendfd): Clarify that it sets errno when it fails.
13200         (recvfd): Fix specification.
13201
13202 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13203
13204         passfd module, part 2.
13205         * modules/passfd: New file.
13206         * lib/passfd.h: New file.
13207         * lib/passfd.c: New file.
13208
13209 2011-03-12  Bruno Haible  <bruno@clisp.org>
13210
13211         wcswidth, mbswidth: Avoid integer overflow.
13212         * lib/wcswidth.c: Include <limits.h>.
13213         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13214         * lib/mbswidth.c: Include <limits.h>.
13215         (mbsnwidth): Avoid 'int' overflow.
13216         Reported by Jim Meyering.
13217
13218 2011-03-12  Bruno Haible  <bruno@clisp.org>
13219
13220         futimens, utimensat: Avoid endless recursion on Solaris 10.
13221         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13222         Solaris.
13223         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13224         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13225
13226 2011-03-11  Jim Meyering  <meyering@redhat.com>
13227
13228         maint.mk: relax a regexp to accommodate other formatting styles
13229         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13230         between "ngettext" and the following "(".
13231
13232 2011-03-11  Pádraig Brady <P@draigBrady.com>
13233
13234         maint.mk: suppress a false positive warning
13235         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13236         diagnostics are marked with ngettext.
13237
13238 2011-03-10  Eric Blake  <eblake@redhat.com>
13239
13240         wchar: add explicit dependencies, for Tru64
13241         * modules/mbmemcasecoll (Depends-on): Add wchar.
13242         * modules/mbtowc (Depends-on): Likewise.
13243         * modules/vasnprintf (Depends-on): Likewise.
13244         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13245         * modules/wctomb (Depends-on): Likewise.
13246         Reported by Peter O'Gorman.
13247
13248 2011-03-08  Bruno Haible  <bruno@clisp.org>
13249
13250         passfd module, part 1, tweaks.
13251         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13252         Improve indentation. Improve AC_MSG_CHECKING messages.
13253         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13254         gl_SOCKET_FAMILIES.
13255
13256 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13257
13258         passfd module, part 1.
13259         * m4/afunix.m4: New file.
13260         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13261         sockets.
13262
13263 2011-03-08  Bruno Haible  <bruno@clisp.org>
13264
13265         regex-quote: New API.
13266         * lib/regex-quote.h: Include <stdbool.h>.
13267         (struct regex_quote_spec): New type.
13268         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13269         New declarations.
13270         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13271         'const struct regex_quote_spec *' argument.
13272         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13273         (pcre_special): New constant.
13274         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13275         New functions.
13276         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13277         'const struct regex_quote_spec *' argument.
13278         * modules/regex-quote (Depends-on): Add stdbool.
13279         * tests/test-regex-quote.c (check): Update for new API. Add test for
13280         anchored results.
13281         * NEWS: Mention the API change.
13282         Reported by Reuben Thomas and Eric Blake.
13283
13284 2011-03-06  Bruno Haible  <bruno@clisp.org>
13285
13286         regex-quote: Fix creation of POSIX extended regular expressions.
13287         * lib/regex-quote.c (ere_special): Add grouping and alternation
13288         operators.
13289
13290 2011-03-05  Bruno Haible  <bruno@clisp.org>
13291
13292         doc: Improve doc regarding autopoint vs. gnulib.
13293         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13294         disable autopoint while running autoreconf.
13295         Suggested by Ralf Wildenhues.
13296
13297 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13298
13299         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13300         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13301
13302 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13303
13304         parse-duration: remove xalloc.h dependency
13305         * lib/parse-duration.c (parse_period): handle NULL return from
13306         strdup instead of calling xstrdup().
13307         * modules/parse-duration: remove "xalloc" dependency
13308
13309 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13310
13311         bootstrap: honor m4_base when running aclocal
13312         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13313
13314 2011-03-02  Jim Meyering  <meyering@redhat.com>
13315
13316         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13317         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13318         on request from Matt Booth.
13319
13320 2011-03-01  Eric Blake  <eblake@redhat.com>
13321
13322         test-link: work on Hurd
13323         * tests/test-link.h (test_link): Hurd rejects linking directories
13324         with EISDIR instead of the POSIX-mandated EPERM.
13325
13326 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13327
13328         stdio: simplify by moving files to printf-posix, sigpipe
13329         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13330         since this symbol is needed only if printf is replaced.
13331         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13332         Require gl_ASM_SYMBOL_PREFIX.
13333         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13334         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13335         (Depends-on): Add 'raise'.
13336         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13337         * modules/stdio (Files): Remove lib/stdio-write.c,
13338         m4/asm-underscore.m4.
13339         (Depends-on): Remove 'raise'.
13340
13341         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13342         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13343         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13344         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13345
13346 2011-02-28  Bruno Haible  <bruno@clisp.org>
13347
13348         localcharset: Assume ANSI C behaviour of free().
13349         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13350         calling free().
13351         Suggested by Simon Josefsson <simon@josefsson.org>.
13352
13353 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13354             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13355             Bruno Haible  <bruno@clisp.org>  (tiny change)
13356
13357         On Cygwin, use /proc file system instead of win32 API.
13358         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13359         Win32 file names.
13360         (DllMain): Simplify by removing Cygwin specific code.
13361         (find_shared_library_fullname): Use Linux specific implementation also
13362         for Cygwin.
13363         (get_shared_library_fullname): Update accordingly.
13364         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13365         Win32 file names.
13366         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13367         Cygwin specific code.
13368
13369 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13370             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13371
13372         Fix OpenMP flag detection for various Fortran compilers.
13373         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13374         OpenMP-conditional compilation construct, to force compile
13375         failure with missing OpenMP flag.
13376         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13377
13378 2011-02-25  Eric Blake  <eblake@redhat.com>
13379
13380         strstr: expand test coverage
13381         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13382         compilation.
13383         * tests/test-memmem.c (main): Duplicate tests.
13384         * tests/test-strcasestr.c (main): Likewise.
13385         * tests/test-c-strcasestr.c (main): Likewise.
13386
13387 2011-02-25  Jim Meyering  <meyering@redhat.com>
13388
13389         maint.mk: detect missing-NL-at-EOF, too
13390         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13391         it also detects when a file lacks a newline at EOF.
13392         (require_exactly_one_NL_at_EOF_): Renamed from
13393         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13394         since people may well have .x-sc_... file names tied to the
13395         existing name.  Suggested by Eric Blake.
13396
13397 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13398
13399         dirname: move m4/dos.m4 functionality into lib/dosname.h
13400
13401         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13402         extracts symbols from it, puts them into config.h; but it's much
13403         easier to use the symbols directly.  filename.h already does this,
13404         but it disagrees with dos.m4 in some respects.  This patch
13405         introduces a different include file dosname.h that packages up
13406         dos.m4, and then later we can work on merging filename.h and
13407         dosname.h.  Applications that need only the easy-to-configure
13408         symbols should consider including dosname.h rather than dirname.h.
13409         * NEWS: Mention incompatible changes.
13410         * m4/dos.m4: Remove.
13411         * lib/dosname.h, modules/dosname: New files.
13412         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13413         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13414         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13415         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13416         Include dosname.h, not dirname.h.
13417         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13418         Include dosname.h, for definitions of symbols like ISSLASH
13419         that used to be in config.h.
13420         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13421         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13422         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13423         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13424         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13425         * modules/rmdir (Files): Likewise.
13426         * modules/stat (Files): Likewise.
13427         * modules/unlink (Files): Likewise.
13428         * modules/dirname-lgpl (Depends-on): Add dosname.
13429         * modules/lstat (Depends-on): Likewise.
13430         * modules/openat (Depends-on): Likewise.
13431         * modules/rmdir (Depends-on): Likewise.
13432         * modules/savewd (Depends-on): Likewise.
13433         * modules/stat (Depends-on): Likewise.
13434         * modules/unlink (Depends-on): Likewise.
13435         * modules/openat (Depends-on): Remove dirname-lgpl.
13436         * modules/savewd (Depends-on): Likewise.
13437         * tests/test-dirname.c: Do not use removed symbols like
13438         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13439         the remaining symbols, e.g., ISSLASH ('\\').
13440
13441 2011-02-25  Eric Blake  <eblake@redhat.com>
13442
13443         strstr: revert patches that introduced bug and pessimization
13444         * lib/str-two-way.h: Add another reference.
13445         (two_way_short_needle, two_way_long_needle): Revert changes from
13446         2011-02-24; they pessimize search speed.
13447         (critical_factorization): Partially revert changes from
13448         2010-06-22; they violate the requirement that the left half of the
13449         needle be smaller than the period of the needle.
13450
13451 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13452
13453         filenamecat: remove unnecessary dependency on dirname-lgpl
13454         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13455         is no direct dependency, just an indirect one via filenamecat-lgpl.
13456
13457         remove: remove unnecessary use of m4/dos.m4
13458         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13459         * modules/remove (FILES): Remove m4/dos.m4.
13460
13461         * lib/openat-proc.c: Don't include dirname.h; not needed.
13462
13463         backupfile: remove unnecessary use of m4/dos.m4
13464         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13465         of its symbols are used by the backupfile code.  backupfile.c does
13466         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13467         for the rare case of programs that want all their backup file
13468         names to live within 8+3 limits, and dos.m4 doesn't address that.
13469         * modules/backupfile (Files): Remove m4/dos.m4.
13470
13471 2011-02-24  Jim Meyering  <meyering@redhat.com>
13472
13473         strstr: fix a bug whereby strstr would mistakenly return NULL
13474         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13475         in period calculation.
13476         (two_way_long_needle): Likewise.
13477         The original problem was reported by Mike Stump in
13478         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13479         Ralf Wildenhues provided the short needle and haystack.
13480         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13481         Add a more involved test to trigger the bug in two_way_long_needle.
13482
13483 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13484
13485         gnulib-tool: remove use of bold display in help screen
13486         * gnulib-tool (func_usage): Do not use bold display anymore in the
13487         help screen.  That was just meant to be a temporary emphasis for a
13488         backward-incompatible change.
13489
13490 2011-02-23  Bruno Haible  <bruno@clisp.org>
13491
13492         Fix misindentation of preprocessor directives.
13493         * lib/argp-namefrob.h: Reindent preprocessor directives.
13494         * lib/getopt_int.h (struct _getopt_data): Likewise.
13495         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13496         * lib/vasnprintf.c (decode_long_double): Likewise.
13497         * tests/test-argmatch.c: Insert blank lines, for clarity.
13498         * tests/test-exclude.c: Likewise.
13499
13500 2011-02-22  Bruno Haible  <bruno@clisp.org>
13501
13502         ioctl: Fix for MacOS X in 64-bit mode.
13503         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13504         value.
13505         Suggested by Eric Blake.
13506         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13507
13508 2011-02-22  Jim Meyering  <meyering@redhat.com>
13509
13510         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13511         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13512         in lib/.
13513
13514 2011-02-22  Eric Blake  <eblake@redhat.com>
13515
13516         maint: avoid any CDPATH issue
13517         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13518
13519         maint: adjust cpp indentation for my modules, as well
13520         * Makefile (sc_cpp_indent_check): Add my name.
13521         * lib/fbufmode.c: Filter through cppi.
13522         * lib/fpurge.c: Likewise.
13523         * lib/freadable.c: Likewise.
13524         * lib/freading.c: Likewise.
13525         * lib/fwritable.c: Likewise.
13526         * lib/fwriting.c: Likewise.
13527         * lib/sigaction.c: Likewise.
13528
13529 2011-02-22  Jim Meyering  <meyering@redhat.com>
13530
13531         maint: adjust cpp indentation to reflect nesting depth
13532         I.e., in a block of code that begins with an unnested "#if",
13533         put one space between the "#" in column 1 and following token.
13534         For example,
13535         -#include <sys/vfs.h>
13536         +# include <sys/vfs.h>
13537         Do this only in .c files that are part of a module I maintain.
13538         * lib/linkat.c: Filter through cppi.
13539         * lib/nanosleep.c: Likewise.
13540         * lib/openat.c: Likewise.
13541         * lib/openat-die.c: Likewise.
13542         * lib/dup3.c: Likewise.
13543         * lib/fchownat.c: Likewise.
13544         * lib/flock.c: Likewise.
13545         * lib/fsync.c: Likewise.
13546         * lib/fts.c: Likewise.
13547         * lib/getpass.c: Likewise.
13548         * lib/gettimeofday.c: Likewise.
13549         * lib/userspec.c: Likewise.
13550         * Makefile (sc_cpp_indent_check): New rule, to check this.
13551
13552 2011-02-22  Bruno Haible  <bruno@clisp.org>
13553
13554         New module 'wctomb'.
13555         * lib/stdlib.in.h (wctomb): New declaration.
13556         * lib/wctomb.c: New file.
13557         * lib/wctomb-impl.h: New file.
13558         * m4/wctomb.m4: New file.
13559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13560         REPLACE_WCTOMB.
13561         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13562         REPLACE_WCTOMB.
13563         * modules/wctomb: New file.
13564         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13565         * doc/posix-functions/wctomb.texi: Mention the new module.
13566         * modules/wctob (Depends-on): Add wctomb.
13567
13568 2011-02-22  Bruno Haible  <bruno@clisp.org>
13569
13570         New module 'mbtowc'.
13571         * lib/stdlib.in.h (mbtowc): New declaration.
13572         * lib/mbtowc.c: New file.
13573         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13574         * m4/mbtowc.m4: New file.
13575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13576         REPLACE_MBTOWC.
13577         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13578         REPLACE_MBTOWC.
13579         * modules/mbtowc: New file.
13580         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13581         * doc/posix-functions/mbtowc.texi: Mention the new module.
13582         * modules/btowc (Depends-on): Add mbtowc.
13583
13584 2011-02-22  Bruno Haible  <bruno@clisp.org>
13585
13586         wcrtomb: Add more tests for native Windows platforms.
13587         * tests/test-wcrtomb-w32-1.sh: New file.
13588         * tests/test-wcrtomb-w32-2.sh: New file.
13589         * tests/test-wcrtomb-w32-3.sh: New file.
13590         * tests/test-wcrtomb-w32-4.sh: New file.
13591         * tests/test-wcrtomb-w32-5.sh: New file.
13592         * tests/test-wcrtomb-w32.c: New file.
13593         * modules/wcrtomb-tests (Files): Add them.
13594         (Makefile.am): Arrange to run these tests.
13595         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13596         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13597
13598 2011-02-20  Bruno Haible  <bruno@clisp.org>
13599
13600         wcrtomb: Enhance test.
13601         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13602
13603 2011-02-20  Bruno Haible  <bruno@clisp.org>
13604
13605         mbrtowc: Tiny optimization.
13606         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13607
13608 2011-02-20  Jim Meyering  <meyering@redhat.com>
13609
13610         test-exclude.c: remove unmatched #endif
13611         * tests/test-exclude.c: Remove stray #endif, left over from
13612         the change of a week ago.
13613
13614 2011-02-19  Jim Meyering  <meyering@redhat.com>
13615
13616         git-version-gen: skip "-dirty" check when appropriate
13617         * build-aux/git-version-gen: Don't run any git commands when the
13618         version string comes from .tarball-version.  Prior to this, we
13619         would run git update-index --refresh even from a just-unpacked
13620         tarball directory, and that could affect a .git/ directory in a
13621         parent of the build directory.  Reported by Mike Frysinger.
13622
13623 2011-02-19  Bruno Haible  <bruno@clisp.org>
13624
13625         unictype/property-byname: Reduce the size of the 'data' segment.
13626         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13627
13628 2011-02-19  Bruno Haible  <bruno@clisp.org>
13629
13630         unictype/scripts: Reduce the size of the 'data' segment.
13631         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13632         '%pic'.
13633         * lib/unictype/scripts_byname.gperf: Regenerated.
13634
13635 2011-02-19  Bruno Haible  <bruno@clisp.org>
13636
13637         stdint: Update documentation.
13638         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13639
13640 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13641
13642         stdint: omit redundant check for wchar.h
13643         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13644         always tests whether wchar.h exists, so remove the now-redundant test.
13645
13646 2011-02-18  Bruno Haible  <bruno@clisp.org>
13647
13648         stdint: Cut dependency to module 'wchar'.
13649         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13650         include the necessary prerequisites.
13651         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13652         * modules/stdint (Depends-on): Remove wchar.
13653         (Makefile.am): Substitute HAVE_WCHAR_H.
13654         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13655
13656 2011-02-18  Eric Blake  <eblake@redhat.com>
13657
13658         longlong: skip, rather than fail, on cross-compilation
13659         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13660         when cross-compiling; regression from 2011-02-16.
13661
13662 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13663
13664         * NEWS: Mention 2011-02-08 change to stdlib.
13665
13666 2011-02-17  Bruno Haible  <bruno@clisp.org>
13667
13668         getloadavg: Add comments about platforms.
13669         * m4/getloadavg.m4: Add comment.
13670         * lib/getloadavg.c: Likewise.
13671
13672 2011-02-17  Bruno Haible  <bruno@clisp.org>
13673
13674         getloadavg: Fix link error on Solaris 2.6.
13675         * modules/getloadavg (Link): New section.
13676         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13677         linking test-getloadavg.
13678         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13679         getloadavg.
13680
13681 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13682
13683         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13684         It was 'int', but this doesn't match the IRIX 6.5 manual.
13685         Suggested by Bruno Haible in
13686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13687
13688 2011-02-17  Bruno Haible  <bruno@clisp.org>
13689
13690         havelib: Fix comments.
13691         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13692         change.
13693
13694 2011-02-17  Bruno Haible  <bruno@clisp.org>
13695
13696         havelib: Update config.rpath.
13697         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13698
13699 2011-02-17  Bruno Haible  <bruno@clisp.org>
13700
13701         getloadavg test: Add some plausibility checks.
13702         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13703         is improbable.
13704
13705 2011-02-16  Eric Blake  <eblake@redhat.com>
13706
13707         maintainer-makefile: make syntax-check a no-op from tarballs
13708         * top/maint.mk (no-vc-detected): New rule.
13709         (local-checks-available): Use it to avoid hanging if someone tries
13710         'make syntax-check' from a tarball.  Also append to any non-syntax
13711         checks already defined in cfg.mk.
13712
13713 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13714
13715         longlong: tune, particularly for common case of c99
13716
13717         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13718         or running anything if c99, or if unsigned long long int does not
13719         work.  In either case, we know the answer without further tests.
13720         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13721         it at most once, and use its results for both long long int and
13722         unsigned long long int.  This is more likely to be efficient in
13723         the common case where the program wants to check for both long
13724         long int and unsigned long long int.
13725         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13726         since the answer is already known.
13727
13728 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13729
13730         getloadavg: set errno
13731         * lib/getloadavg.c: Set errno when returning -1.  If no other
13732         error number looks appropriate, set it to ENOSYS if the getloadavg
13733         looks like it can't possibly ever work, ENOTSUP otherwise.
13734         Suggested by Bruno Haible in
13735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13736
13737         getloadavg: trim unused parts and speed up 'configure'
13738         * NEWS: Document this.
13739         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13740         always compiled if getloadavg is absent.
13741         Move test code to ...
13742         * tests/test-getloadavg.c: New file, containing previous
13743         contents of test from lib/getloadavg.c.  It also contains
13744         suggestions by Bruno Haible in
13745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13746         * modules/getloadavg-tests: New file.
13747         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13748         Do tests in the same order as they're needed for getloadavg.c.
13749         Omit setgid-related tests that generate symbols KMEM_GROUP,
13750         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13751         Do only the tests that are needed to see whether the system has
13752         getloadavg, moving the other tests into ...
13753         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13754         NLIST_NAME_UNION; nobody should be using it.  Do not define
13755         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13756         relevant, as the user of this module shouldn't care how getloadavg
13757         is implemented.
13758
13759         getloadavg: omit unused var
13760         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13761
13762 2011-02-15  Jim Meyering  <meyering@redhat.com>
13763
13764         doc: update users.txt
13765         * users.txt: Update iwhd's URL.
13766
13767 2011-02-13  Bruno Haible  <bruno@clisp.org>
13768
13769         Consistent macro naming for macros that use GCC __attribute__.
13770         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13771         _ATTRIBUTE_NONNULL_.
13772         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13773         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13774         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13775         ATTRIBUTE_DEPRECATED.
13776         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13777         ATTRIBUTE_NORETURN.
13778         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13779         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13780         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13781         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13782         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13783         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13784         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13785         ATTRIBUTE_SENTINEL.
13786         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13787         ATTRIBUTE_RETURN_CHECK.
13788         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13789         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13790         ATTRIBUTE_NORETURN.
13791         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13792         Reported by Paul Eggert.
13793
13794 2011-02-13  Bruno Haible  <bruno@clisp.org>
13795
13796         Don't interfere with a program's definition of __attribute__.
13797         * lib/argp.h (__attribute__): Remove definition.
13798         (_GL_ATTRIBUTE_FORMAT): New macro.
13799         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13800         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13801         (_GL_ATTRIBUTE_FORMAT): New macro.
13802         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13803         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13804         GCC 3 or newer.
13805         * lib/error.h (__attribute__): Remove definition.
13806         (_GL_ATTRIBUTE_FORMAT): New macro.
13807         (error, error_at_line): Use it.
13808         * lib/hash.h (__attribute__): Remove definition.
13809         (ATTRIBUTE_WUR): Update definition. Define always.
13810         * lib/openat.h (__attribute__): Remove definition.
13811         (ATTRIBUTE_NORETURN): Update definition. Define always.
13812         * lib/sigpipe-die.h (__attribute__): Remove definition.
13813         (ATTRIBUTE_NORETURN): Update definition. Define always.
13814         * lib/vasnprintf.h (__attribute__): Remove definition.
13815         (_GL_ATTRIBUTE_FORMAT): New macro.
13816         (asnprintf, vasnprintf): Use it.
13817         * lib/xalloc.h (__attribute__): Remove definition.
13818         (ATTRIBUTE_NORETURN): Update definition. Define always.
13819         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13820         * lib/xmemdup0.h (__attribute__): Remove definition.
13821         (ATTRIBUTE_NORETURN): Update definition. Define always.
13822         * lib/xprintf.h (__attribute__): Remove definition.
13823         (_GL_ATTRIBUTE_FORMAT): New macro.
13824         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13825         * lib/xstrtol.h (__attribute__): Remove definition.
13826         (ATTRIBUTE_NORETURN): Update definition. Define always.
13827         * lib/xvasprintf.h (__attribute__): Remove definition.
13828         (_GL_ATTRIBUTE_FORMAT): New macro.
13829         (xasprintf, xvasprintf): Use it.
13830         * tests/test-argmatch.c (__attribute__): Remove definition.
13831         (ATTRIBUTE_NORETURN): Update definition. Define always.
13832         * tests/test-exclude.c (__attribute__): Remove definition.
13833         (ATTRIBUTE_NORETURN): Update definition. Define always.
13834         Reported by Paul Eggert.
13835
13836 2011-02-13  Bruno Haible  <bruno@clisp.org>
13837
13838         mbrtowc: Add more tests for native Windows platforms.
13839         * tests/test-mbrtowc-w32-1.sh: New file.
13840         * tests/test-mbrtowc-w32-2.sh: New file.
13841         * tests/test-mbrtowc-w32-3.sh: New file.
13842         * tests/test-mbrtowc-w32-4.sh: New file.
13843         * tests/test-mbrtowc-w32-5.sh: New file.
13844         * tests/test-mbrtowc-w32.c: New file.
13845         * modules/mbrtowc-tests (Files): Add them.
13846         (Makefile.am): Arrange to run these tests.
13847         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13848         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13849
13850 2011-02-13  Bruno Haible  <bruno@clisp.org>
13851
13852         mbrtowc: Work around native Windows bug.
13853         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13854         guess when no suitable locale for testing was found.
13855         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13856
13857 2011-02-13  Bruno Haible  <bruno@clisp.org>
13858
13859         mbsinit: Work around mingw bug.
13860         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13861         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13862         Windows.
13863         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13864
13865 2011-02-13  Bruno Haible  <bruno@clisp.org>
13866
13867         mbsinit: Don't crash for a NULL argument.
13868         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13869         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13870
13871 2011-02-13  Bruno Haible  <bruno@clisp.org>
13872
13873         Don't interfere with a program's definition of __attribute__.
13874         * lib/stdio.in.h (__attribute__): Remove definition.
13875         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13876         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13877         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13878         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13879         * lib/string.in.h (__attribute__): Remove definition.
13880         Reported by Paul Eggert.
13881
13882 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13883
13884         stdlib: don't get in the way of non-GCC __attribute__
13885         See thread starting at
13886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13887         Revert previous stdlib change, installing the following instead:
13888         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13889         to get in the way of a non-GCC compiler that supports __attribute__.
13890         (_GL_ATTRIBUTE_RETURN): New macro.
13891         (_Exit): Use it instead of __attribute__.
13892
13893 2011-02-12  Bruno Haible  <bruno@clisp.org>
13894
13895         quotearg test: Avoid test failure on mingw.
13896         * tests/test-quotearg.sh: Convert the locale identifier from native
13897         Windows syntax to Unix syntax.
13898
13899 2011-02-12  Bruno Haible  <bruno@clisp.org>
13900
13901         setlocale: Prefer gnulib's override over libintl's override.
13902         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13903         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13904         GNULIB_defined_setlocale is set.
13905
13906 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13907
13908         stdlib: support non-GCC __attribute__
13909
13910         Fix a serious and tricky problem encountered when attempting to
13911         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13912         5.5, but it crashed due to memory corruption on Solaris 10 with
13913         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13914         bits that are otherwise zero.  This tagging is optional inside
13915         Emacs but is preferred and is used when __attribute__ ((__aligned
13916         (8))) works, as it does with both recent-enough GCC and with Sun C
13917         5.11.  However, Sun C 5.11 is not GCC and does not #define
13918         __GNUC__ and __GNUC_MINOR__.
13919
13920         When I added the getloadavg module to Emacs, it brought in
13921         stdlib.in.h, which contained this fragment:
13922
13923            #ifndef __attribute__
13924            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13925            #  define __attribute__(Spec)   /* empty */
13926            # endif
13927            #endif
13928
13929         When files that include <stdlib.h> were compiled with Sun C 5.11,
13930         the above code disabled __attribute__ ((__aligned (8))), which
13931         caused variables to not be properly aligned, which eventually led
13932         to the pointer corruption mentioned above.  (This was a bit hard
13933         to diagnose, unfortunately.)
13934
13935         Several "#define __attribute__(X) /* empty */" code snippets need
13936         to be eradicated from Gnulib to work with non-GCC compilers that
13937         support __attribute__.  The Autoconf way to do this is to test for
13938         each kind of attribute that we want support for, and selectively
13939         enable that in source code.
13940
13941         Fix this problem just for stdlib.h, by adding a test for the
13942         __noreturn__ attribute, and change stdlib.in.h to use that test
13943         when needed.  This technique can be easily generalized to the
13944         other *.in.h files and attributes, and a similar technique can be
13945         used for *.h and *.c files.  This patch is enough to solve the
13946         problem for Emacs + getloadavg, and I thought I'd publish it for
13947         feedback before undertaking further, similar fixes in other
13948         modules.
13949
13950         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13951         because it's not needed for stdlib.h.  It merely substitutes the
13952         value directly into stdlib.h.  We may well need to #define it, or
13953         similar symbols, for other modules, but it's nice to also have an
13954         option to not #define it for applications like Emacs that do not
13955         need it.
13956
13957         * lib/stdlib.in.h (__attribute__): Do not #define.
13958         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13959         be defined only if the _Exit module is also used.
13960         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13962         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13963         platforms.
13964         * modules/_Exit (Files): Add m4/attribute.m4.
13965         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13966         * m4/attribute.m4: New file.
13967
13968 2011-02-12  Bruno Haible  <bruno@clisp.org>
13969
13970         wcsrtombs: Work around bug on native Windows.
13971         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13972         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13973         instead of len.
13974         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13975
13976 2011-02-12  Bruno Haible  <bruno@clisp.org>
13977
13978         mbsrtowcs: Work around bug on native Windows.
13979         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13980         against mingw bug.
13981         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13982
13983 2011-02-12  Bruno Haible  <bruno@clisp.org>
13984
13985         Avoid setlocale bugs in tests.
13986         * modules/btowc (Dependencies): Add setlocale.
13987         * modules/c-strcase (Dependencies): Likewise.
13988         * modules/mbmemcasecmp (Dependencies): Likewise.
13989         * modules/mbmemcasecoll (Dependencies): Likewise.
13990         * modules/mbrtowc (Dependencies): Likewise.
13991         * modules/mbscasecmp (Dependencies): Likewise.
13992         * modules/mbscasestr (Dependencies): Likewise.
13993         * modules/mbschr (Dependencies): Likewise.
13994         * modules/mbscspn (Dependencies): Likewise.
13995         * modules/mbsinit (Dependencies): Likewise.
13996         * modules/mbsncasecmp (Dependencies): Likewise.
13997         * modules/mbsnrtowcs (Dependencies): Likewise.
13998         * modules/mbspbrk (Dependencies): Likewise.
13999         * modules/mbspcasecmp (Dependencies): Likewise.
14000         * modules/mbsrchr (Dependencies): Likewise.
14001         * modules/mbsrtowcs (Dependencies): Likewise.
14002         * modules/mbsspn (Dependencies): Likewise.
14003         * modules/mbsstr (Dependencies): Likewise.
14004         * modules/nl_langinfo (Dependencies): Likewise.
14005         * modules/quotearg (Dependencies): Likewise.
14006         * modules/unicase/locale-language (Dependencies): Likewise.
14007         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14008         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14009         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14010         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14011         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14012         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14013         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14014         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14015         * modules/vasnprintf-posix (Dependencies): Likewise.
14016         * modules/wcrtomb (Dependencies): Likewise.
14017         * modules/wcsnrtombs (Dependencies): Likewise.
14018         * modules/wcsrtombs (Dependencies): Likewise.
14019
14020 2011-02-12  Bruno Haible  <bruno@clisp.org>
14021
14022         setlocale: Workaround native Windows bug.
14023         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14024         succeeds but sets LC_CTYPE to "C", report a failure.
14025         * tests/test-setlocale2.sh: New file.
14026         * tests/test-setlocale2.c: New file.
14027         * modules/setlocale-tests (Files): Add the new files.
14028         (Makefile.am): Enable test-setlocale2.sh test.
14029         * doc/posix-functions/setlocale.texi: Mention workaround.
14030
14031 2011-02-11  Bruno Haible  <bruno@clisp.org>
14032
14033         Tests for module 'setlocale'.
14034         * modules/setlocale-tests: New file.
14035         * tests/test-setlocale1.sh: New file.
14036         * tests/test-setlocale1.c: New file.
14037
14038         New module 'setlocale'.
14039         * lib/locale.in.h (setlocale): New declaration.
14040         * lib/setlocale.c: New file, based on
14041         gettext/gettext-runtime/intl/setlocale.c.
14042         * m4/setlocale.m4: New file.
14043         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14044         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14045         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14046         REPLACE_SETLOCALE.
14047         * modules/setlocale: New file.
14048         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14049         * doc/posix-functions/setlocale.texi: Mention the new module.
14050
14051 2011-02-11  Bruno Haible  <bruno@clisp.org>
14052
14053         Prepare for locale dependent tests on mingw.
14054         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14055         because it has the wrong locale encoding.
14056         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14057         French_France.1252 instead of "fr".
14058         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14059         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14060         because it has the wrong locale encoding.
14061         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14062         native Windows, try Turkish_Turkey.65001.
14063         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14064         Chinese_China.54936.
14065
14066         Prepare for locale dependent tests on mingw.
14067         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14068         differently.
14069         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14070         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14071         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14073
14074 2011-02-11  Eric Blake  <eblake@redhat.com>
14075
14076         strptime: avoid compiler warnings
14077         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14078         compiler warnings about dead code.
14079         Reported by Daniel P. Berrange.
14080
14081 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14082
14083         doc: update users.txt
14084         * users.txt: Add rcs.
14085
14086 2011-02-10  John W. Eaton  <jwe@gnu.org>
14087
14088         doc: update users.txt
14089         * users.txt: Add octave.
14090
14091 2011-02-10  Jim Meyering  <meyering@redhat.com>
14092
14093         doc: update users.txt
14094         * users.txt: Add iwhd.
14095
14096 2011-02-09  Bruno Haible  <bruno@clisp.org>
14097
14098         gnulib-tool: Make copyright notice adjustment more robust.
14099         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14100         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14101         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14102         License".
14103         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14104
14105 2011-02-06  Bruno Haible  <bruno@clisp.org>
14106
14107         New module 'towctrans'.
14108         * modules/towctrans: New file.
14109         * lib/wctype.in.h (towctrans): New declaration.
14110         * lib/towctrans.c: New file.
14111         * lib/towctrans-impl.h: New file.
14112         * m4/towctrans.m4: New file.
14113         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14114         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14115         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14116         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14117         * doc/posix-functions/towctrans.texi: Mention the new module.
14118
14119 2011-02-06  Bruno Haible  <bruno@clisp.org>
14120
14121         New module 'wctrans'.
14122         * modules/wctrans: New file.
14123         * lib/wctype.in.h (wctrans): New declaration.
14124         * lib/wctrans.c: New file.
14125         * lib/wctrans-impl.h: New file.
14126         * m4/wctrans.m4: New file.
14127         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14128         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14129         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14130         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14131         * doc/posix-functions/wctrans.texi: Mention the new module.
14132
14133 2011-02-06  Bruno Haible  <bruno@clisp.org>
14134
14135         New module 'iswctype'.
14136         * modules/iswctype: New file.
14137         * lib/wctype.in.h (iswctype): New declaration.
14138         * lib/iswctype.c: New file.
14139         * lib/iswctype-impl.h: New file.
14140         * m4/iswctype.m4: New file.
14141         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14142         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14143         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14144         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14145         * doc/posix-functions/iswctype.texi: Mention the new module and the
14146         HP-UX 11.00 problem.
14147
14148 2011-02-06  Bruno Haible  <bruno@clisp.org>
14149
14150         New module 'wctype'.
14151         * modules/wctype: Change to represent the wctype() substitute.
14152         * lib/wctype.in.h (wctype): New declaration.
14153         * lib/wctype.c: New file.
14154         * lib/wctype-impl.h: New file.
14155         * m4/wctype.m4: New file.
14156         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14157         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14158         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14159         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14160         * doc/posix-functions/wctype.texi: Mention the new module and the
14161         HP-UX 11.00 problem.
14162
14163 2011-02-06  Bruno Haible  <bruno@clisp.org>
14164
14165         wctype-h: Ensure wctype_t and wctrans_t are defined.
14166         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14167         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14168         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14169         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14170         HAVE_WCTRANS_T.
14171         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14172
14173 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14174
14175         flock: fix license typo
14176
14177         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14178         omitted.
14179
14180 2011-02-08  Bruno Haible  <bruno@clisp.org>
14181
14182         Split large sed scripts, for HP-UX sed.
14183         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14184         to avoid HP-UX limit of 99 commands, in the near future.
14185         * modules/stdlib (Makefile.am): Likewise.
14186         * modules/unistd (Makefile.am): Likewise.
14187         * modules/wchar (Makefile.am): Likewise.
14188         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14189         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14191
14192 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14193             Bruno Haible  <bruno@clisp.org>
14194
14195         stdlib: improve random_r modularization
14196         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14197         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14198         you also need the random_r module to get this material right.
14199         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14200         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14201         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14202
14203 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14204
14205         stdlib: don't depend on stdint
14206         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14207         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14208         be independent of whether stdint.h is needed.
14209         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14210         here, instead of ...
14211         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14212         struct random_data should be using the random_r module, not just
14213         the stdlib module (which wouldn't make sense: what package needs
14214         just struct random_data without also needing random_r?).
14215         * modules/stdlib (Depends-on): Remove stdint.
14216
14217         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14218         See the thread rooted at
14219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14220         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14221         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14222         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14223         __VMS)); previously it was always included (via fcntl--.h).
14224         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14225         hand; this is good enough for load averages.  Also, do not use
14226         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14227         flags directly if available and don't bother otherwise.  (Packages
14228         that need the extra reliability should use the modules that define
14229         these flags on older platforms that lack them.)
14230         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14231         fcntl-safer.
14232
14233 2011-02-08  Jim Meyering  <meyering@redhat.com>
14234
14235         di-set.h, ino-map.h: add multiple-inclusion guard
14236         Technically, the guard is required only for ino-map.h, due to its
14237         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14238         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14239         * lib/ino-map.h: Likewise.
14240
14241 2011-02-06  Bruno Haible  <bruno@clisp.org>
14242
14243         iswblank: Ensure declaration on glibc systems.
14244         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14245         * modules/iswblank (Dependencies): Add 'extensions'.
14246         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14247
14248 2011-02-06  Bruno Haible  <bruno@clisp.org>
14249
14250         New module 'iswblank'.
14251         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14252         * modules/iswblank: New file.
14253         * modules/wctype-h (Files): Remove lib/iswblank.c.
14254         (Makefile.am): Substitute GNULIB_ISWBLANK.
14255         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14256         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14257         (gl_WCTYPE_H_DEFAULTS): New macro.
14258         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14259         * modules/iswblank-tests: New file.
14260         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14261         * tests/test-wctype-h.c (main): Remove iswblank tests.
14262         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14263         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14264         of 'wctype-h'.
14265         * NEWS: Mention the change.
14266         * modules/mbchar (Depends-on): Add iswblank.
14267
14268 2011-02-08  Bruno Haible  <bruno@clisp.org>
14269
14270         di-set tests: Refactor.
14271         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14272         unnecessary includes.
14273         (ASSERT): Remove macro.
14274         (main): Make C90 compliant by avoiding variable declaration after
14275         statement.
14276         * modules/di-set-tests (Files): Add tests/macros.h.
14277
14278 2011-02-08  Bruno Haible  <bruno@clisp.org>
14279
14280         ino-map tests: Refactor.
14281         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14282         unnecessary includes.
14283         (ASSERT): Remove macro.
14284         (main): Make C90 compliant by avoiding variable declaration after
14285         statement.
14286         * modules/ino-map-tests (Files): Add tests/macros.h.
14287
14288 2011-02-08  Jim Meyering  <meyering@redhat.com>
14289
14290         di-set: add "const" to a cast
14291         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14292         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14293
14294 2011-02-06  Bruno Haible  <bruno@clisp.org>
14295
14296         Rename module 'wctype' to 'wctype-h'.
14297         * modules/wctype-h: Renamed from modules/wctype.
14298         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14299         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14300         (Files, Depends-on, Makefile.am): Update.
14301         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14302         (Files, Makefile.am): Update.
14303         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14304         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14305         * doc/posix-headers/wctype.texi: Update.
14306         * doc/posix-functions/iswalnum.texi: Update.
14307         * doc/posix-functions/iswalpha.texi: Update.
14308         * doc/posix-functions/iswblank.texi: Update.
14309         * doc/posix-functions/iswcntrl.texi: Update.
14310         * doc/posix-functions/iswdigit.texi: Update.
14311         * doc/posix-functions/iswgraph.texi: Update.
14312         * doc/posix-functions/iswlower.texi: Update.
14313         * doc/posix-functions/iswprint.texi: Update.
14314         * doc/posix-functions/iswpunct.texi: Update.
14315         * doc/posix-functions/iswspace.texi: Update.
14316         * doc/posix-functions/iswupper.texi: Update.
14317         * doc/posix-functions/iswxdigit.texi: Update.
14318         * doc/posix-functions/towlower.texi: Update.
14319         * doc/posix-functions/towupper.texi: Update.
14320         * NEWS: Mention the change.
14321         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14322         * modules/mbchar (Dependencies): Likewise.
14323         * modules/mbswidth (Dependencies): Likewise.
14324         * modules/quotearg (Dependencies): Likewise.
14325         * modules/regex (Dependencies): Likewise.
14326         * modules/wcscasecmp (Dependencies): Likewise.
14327         * modules/wcsncasecmp (Dependencies): Likewise.
14328         * modules/wcwidth (Dependencies): Likewise.
14329
14330 2011-02-06  Bruno Haible  <bruno@clisp.org>
14331
14332         New module 'wcswidth'.
14333         * modules/wcswidth: New file.
14334         * lib/wchar.in.h (wcswidth): New declaration.
14335         * lib/wcswidth.c: New file.
14336         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14337         * m4/wcswidth.m4: New file.
14338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14340         REPLACE_WCSWIDTH.
14341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14342         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14343         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14344         * doc/posix-functions/wcswidth.texi: Mention the new module.
14345
14346 2011-02-06  Bruno Haible  <bruno@clisp.org>
14347
14348         New module 'wcstok'.
14349         * modules/wcstok: New file.
14350         * lib/wchar.in.h (wcstok): New declaration.
14351         * lib/wcstok.c: New file.
14352         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14353         * m4/wcstok.m4: New file.
14354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14357         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14358         * doc/posix-functions/wcstok.texi: Mention the new module.
14359
14360 2011-02-06  Bruno Haible  <bruno@clisp.org>
14361
14362         New module 'wcsstr'.
14363         * modules/wcsstr: New file.
14364         * lib/wchar.in.h (wcsstr): New declaration.
14365         * lib/wcsstr.c: New file.
14366         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14367         * m4/wcsstr.m4: New file.
14368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14371         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14372         * doc/posix-functions/wcsstr.texi: Mention the new module.
14373
14374 2011-02-06  Bruno Haible  <bruno@clisp.org>
14375
14376         New module 'wcspbrk'.
14377         * modules/wcspbrk: New file.
14378         * lib/wchar.in.h (wcspbrk): New declaration.
14379         * lib/wcspbrk.c: New file.
14380         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14381         * m4/wcspbrk.m4: New file.
14382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14385         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14386         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14387
14388 2011-02-06  Bruno Haible  <bruno@clisp.org>
14389
14390         New module 'wcsspn'.
14391         * modules/wcsspn: New file.
14392         * lib/wchar.in.h (wcsspn): New declaration.
14393         * lib/wcsspn.c: New file.
14394         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14395         * m4/wcsspn.m4: New file.
14396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14399         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14400         * doc/posix-functions/wcsspn.texi: Mention the new module.
14401
14402 2011-02-06  Bruno Haible  <bruno@clisp.org>
14403
14404         New module 'wcscspn'.
14405         * modules/wcscspn: New file.
14406         * lib/wchar.in.h (wcscspn): New declaration.
14407         * lib/wcscspn.c: New file.
14408         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14409         * m4/wcscspn.m4: New file.
14410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14413         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14414         * doc/posix-functions/wcscspn.texi: Mention the new module.
14415
14416 2011-02-06  Bruno Haible  <bruno@clisp.org>
14417
14418         New module 'wcsrchr'.
14419         * modules/wcsrchr: New file.
14420         * lib/wchar.in.h (wcsrchr): New declaration.
14421         * lib/wcsrchr.c: New file.
14422         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14423         * m4/wcsrchr.m4: New file.
14424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14427         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14428         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14429
14430 2011-02-06  Bruno Haible  <bruno@clisp.org>
14431
14432         New module 'wcschr'.
14433         * modules/wcschr: New file.
14434         * lib/wchar.in.h (wcschr): New declaration.
14435         * lib/wcschr.c: New file.
14436         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14437         * m4/wcschr.m4: New file.
14438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14441         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14442         * doc/posix-functions/wcschr.texi: Mention the new module.
14443
14444 2011-02-06  Bruno Haible  <bruno@clisp.org>
14445
14446         New module 'wcsdup'.
14447         * modules/wcsdup: New file.
14448         * lib/wchar.in.h (wcsdup): New declaration.
14449         * lib/wcsdup.c: New file.
14450         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14451         * m4/wcsdup.m4: New file.
14452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14455         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14456         * doc/posix-functions/wcsdup.texi: Mention the new module.
14457
14458 2011-02-06  Bruno Haible  <bruno@clisp.org>
14459
14460         New module 'wcsxfrm'.
14461         * modules/wcsxfrm: New file.
14462         * lib/wchar.in.h (wcsxfrm): New declaration.
14463         * lib/wcsxfrm.c: New file.
14464         * lib/wcsxfrm-impl.h: New file.
14465         * m4/wcsxfrm.m4: New file.
14466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14469         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14470         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14471
14472 2011-02-06  Bruno Haible  <bruno@clisp.org>
14473
14474         New module 'wcscoll'.
14475         * modules/wcscoll: New file.
14476         * lib/wchar.in.h (wcscoll): New declaration.
14477         * lib/wcscoll.c: New file.
14478         * lib/wcscoll-impl.h: New file.
14479         * m4/wcscoll.m4: New file.
14480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14483         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14484         * doc/posix-functions/wcscoll.texi: Mention the new module.
14485
14486 2011-02-06  Bruno Haible  <bruno@clisp.org>
14487
14488         New module 'wcsncasecmp'.
14489         * modules/wcsncasecmp: New file.
14490         * lib/wchar.in.h (wcsncasecmp): New declaration.
14491         * lib/wcsncasecmp.c: New file.
14492         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14493         * m4/wcsncasecmp.m4: New file.
14494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14497         HAVE_WCSNCASECMP.
14498         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14499         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14500
14501 2011-02-06  Bruno Haible  <bruno@clisp.org>
14502
14503         New module 'wcscasecmp'.
14504         * modules/wcscasecmp: New file.
14505         * lib/wchar.in.h (wcscasecmp): New declaration.
14506         * lib/wcscasecmp.c: New file.
14507         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14508         * m4/wcscasecmp.m4: New file.
14509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14511         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14512         HAVE_WCSCASECMP.
14513         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14514         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14515
14516 2011-02-05  Bruno Haible  <bruno@clisp.org>
14517
14518         New module 'wcsncmp'.
14519         * modules/wcsncmp: New file.
14520         * lib/wchar.in.h (wcsncmp): New declaration.
14521         * lib/wcsncmp.c: New file.
14522         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14523         * m4/wcsncmp.m4: New file.
14524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14527         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14528         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14529
14530 2011-02-05  Bruno Haible  <bruno@clisp.org>
14531
14532         New module 'wcscmp'.
14533         * modules/wcscmp: New file.
14534         * lib/wchar.in.h (wcscmp): New declaration.
14535         * lib/wcscmp.c: New file.
14536         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14537         * m4/wcscmp.m4: New file.
14538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14541         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14542         * doc/posix-functions/wcscmp.texi: Mention the new module.
14543
14544 2011-02-05  Bruno Haible  <bruno@clisp.org>
14545
14546         New module 'wcsncat'.
14547         * modules/wcsncat: New file.
14548         * lib/wchar.in.h (wcsncat): New declaration.
14549         * lib/wcsncat.c: New file.
14550         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14551         * m4/wcsncat.m4: New file.
14552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14554         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14555         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14556         * doc/posix-functions/wcsncat.texi: Mention the new module.
14557
14558 2011-02-05  Bruno Haible  <bruno@clisp.org>
14559
14560         New module 'wcscat'.
14561         * modules/wcscat: New file.
14562         * lib/wchar.in.h (wcscat): New declaration.
14563         * lib/wcscat.c: New file.
14564         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14565         * m4/wcscat.m4: New file.
14566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14569         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14570         * doc/posix-functions/wcscat.texi: Mention the new module.
14571
14572 2011-02-05  Bruno Haible  <bruno@clisp.org>
14573
14574         New module 'wcpncpy'.
14575         * modules/wcpncpy: New file.
14576         * lib/wchar.in.h (wcpncpy): New declaration.
14577         * lib/wcpncpy.c: New file.
14578         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14579         * m4/wcpncpy.m4: New file.
14580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14582         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14583         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14584         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14585
14586 2011-02-05  Bruno Haible  <bruno@clisp.org>
14587
14588         New module 'wcsncpy'.
14589         * modules/wcsncpy: New file.
14590         * lib/wchar.in.h (wcsncpy): New declaration.
14591         * lib/wcsncpy.c: New file.
14592         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14593         * m4/wcsncpy.m4: New file.
14594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14597         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14598         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14599
14600 2011-02-05  Bruno Haible  <bruno@clisp.org>
14601
14602         New module 'wcpcpy'.
14603         * modules/wcpcpy: New file.
14604         * lib/wchar.in.h (wcpcpy): New declaration.
14605         * lib/wcpcpy.c: New file.
14606         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14607         * m4/wcpcpy.m4: New file.
14608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14610         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14611         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14612         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14613
14614 2011-02-05  Bruno Haible  <bruno@clisp.org>
14615
14616         New module 'wcscpy'.
14617         * modules/wcscpy: New file.
14618         * lib/wchar.in.h (wcscpy): New declaration.
14619         * lib/wcscpy.c: New file.
14620         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14621         * m4/wcscpy.m4: New file.
14622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14625         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14626         * doc/posix-functions/wcscpy.texi: Mention the new module.
14627
14628 2011-02-05  Bruno Haible  <bruno@clisp.org>
14629
14630         New module 'wcsnlen'.
14631         * modules/wcsnlen: New file.
14632         * lib/wchar.in.h (wcsnlen): New declaration.
14633         * lib/wcsnlen.c: New file.
14634         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14635         * m4/wcsnlen.m4: New file.
14636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14639         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14640         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14641
14642 2011-02-05  Bruno Haible  <bruno@clisp.org>
14643
14644         New module 'wcslen'.
14645         * modules/wcslen: New file.
14646         * lib/wchar.in.h (wcslen): New declaration.
14647         * lib/wcslen.c: New file.
14648         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14649         * m4/wcslen.m4: New file.
14650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14653         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14654         * doc/posix-functions/wcslen.texi: Mention the new module.
14655
14656 2011-02-05  Bruno Haible  <bruno@clisp.org>
14657
14658         New module 'wmemset'.
14659         * modules/wmemset: New file.
14660         * lib/wchar.in.h (wmemset): New declaration.
14661         * lib/wmemset.c: New file.
14662         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14663         * m4/wmemset.m4: New file.
14664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14666         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14667         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14668         * doc/posix-functions/wmemset.texi: Mention the new module.
14669
14670 2011-02-05  Bruno Haible  <bruno@clisp.org>
14671
14672         New module 'wmemmove'.
14673         * modules/wmemmove: New file.
14674         * lib/wchar.in.h (wmemmove): New declaration.
14675         * lib/wmemmove.c: New file.
14676         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14677         * m4/wmemmove.m4: New file.
14678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14680         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14681         HAVE_WMEMMOVE.
14682         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14683         * doc/posix-functions/wmemmove.texi: Mention the new module.
14684
14685 2011-02-05  Bruno Haible  <bruno@clisp.org>
14686
14687         New module 'wmemcpy'.
14688         * modules/wmemcpy: New file.
14689         * lib/wchar.in.h (wmemcpy): New declaration.
14690         * lib/wmemcpy.c: New file.
14691         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14692         * m4/wmemcpy.m4: New file.
14693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14695         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14696         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14697         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14698
14699 2011-02-05  Bruno Haible  <bruno@clisp.org>
14700
14701         New module 'wmemcmp'.
14702         * modules/wmemcmp: New file.
14703         * lib/wchar.in.h (wmemcmp): New declaration.
14704         * lib/wmemcmp.c: New file.
14705         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14706         * m4/wmemcmp.m4: New file.
14707         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14708         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14709         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14710         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14711         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14712
14713 2011-02-07  Jim Meyering  <meyering@redhat.com>
14714
14715         di-set, ino-map: new modules, from coreutils
14716         * lib/di-set.c: New file.
14717         * lib/di-set.h: Likewise.
14718         * lib/ino-map.c: Likewise.
14719         * lib/ino-map.h: Likewise.
14720         * modules/di-set: Likewise.
14721         * modules/di-set-tests: Likewise.
14722         * modules/ino-map: Likewise.
14723         * modules/ino-map-tests: Likewise.
14724         * tests/test-di-set.c: Likewise.
14725         * tests/test-ino-map.c: Likewise.
14726
14727 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14728
14729         getloadavg: merge minor changes from Emacs
14730
14731         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14732         (getloadavg): Use memset, not bzero.
14733
14734         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14735         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14736         clash (bug#86).
14737
14738 2010-11-14  Bruno Haible  <bruno@clisp.org>
14739
14740         Allow multiple gnulib generated replacements to coexist.
14741         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14742         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14743         * lib/langinfo.in.h (nl_item): Likewise.
14744         * lib/math.in.h (_NaN, NAN): Likewise.
14745         * lib/netdb.in.h (struct addrinfo): Likewise.
14746         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14747         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14748         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14749         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14750         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14751         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14752         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14753         pthread_mutexattr_init, pthread_mutexattr_settype,
14754         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14755         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14756         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14757         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14758         * lib/sched.in.h (struct sched_param): Likewise.
14759         * lib/se-selinux.in.h (security_class_t, security_context_t,
14760         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14761         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14762         lsetfilecon, fsetfilecon, security_check_context,
14763         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14764         Likewise.
14765         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14766         Likewise.
14767         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14768         _gl_function_taking_int_returning_void_t, union sigval,
14769         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14770         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14771         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14772         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14773         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14774         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14775         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14776         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14777         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14778         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14779         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14780         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14781         socklen_t, rpl_fd_isset): Likewise.
14782         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14783         * lib/sys_time.in.h (struct timeval): Likewise.
14784         * lib/sys_times.in.h (struct tms): Likewise.
14785         * lib/sys_utsname.in.h (struct utsname):
14786         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14787         * lib/unistd.in.h (getpagesize): Likewise.
14788         * lib/wchar.in.h (mbstate_t): Likewise.
14789         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14790         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14791         towlower, towupper): Likewise.
14792         Reported by Sam Steingold <sds@gnu.org>.
14793
14794 2011-02-05  Eric Blake  <eblake@redhat.com>
14795
14796         unsetenv: work around Haiku issues
14797         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14798         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14799
14800 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14801
14802         libposix: avoid calling error() within libposix
14803         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14804         is defined.
14805
14806 2011-02-05  Eric Blake  <eblake@redhat.com>
14807
14808         strerror_r-posix: port to cygwin
14809         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14810         implementation.
14811         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14812         * tests/test-strerror_r.c (main): Fix test.
14813         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14814         issue.
14815
14816 2011-02-05  Bruno Haible  <bruno@clisp.org>
14817
14818         New module 'wmemchr'.
14819         * modules/wmemchr: New file.
14820         * lib/wchar.in.h (wmemchr): New declaration.
14821         * lib/wmemchr.c: New file.
14822         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14823         * m4/wmemchr.m4: New file.
14824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14826         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14827         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14828         * doc/posix-functions/wmemchr.texi: Mention the new module.
14829
14830 2011-02-04  Eric Blake  <eblake@redhat.com>
14831
14832         fdopendir: detect FreeBSD bug
14833         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14834         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14835
14836 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14837
14838         stdbool: do not define HAVE_STDBOOL_H
14839         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14840         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14841         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14842         imported from the latest Autoconf git.  It was motivated by Emacs,
14843         which uses gnulib but does not need HAVE_STDBOOL_H.
14844
14845 2011-02-04  Bruno Haible  <bruno@clisp.org>
14846
14847         wcsnrtombs: Prepare for new module wwcsnrtombs.
14848         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14849         * lib/wcsnrtombs.c: Include it.
14850         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14851
14852         wcsrtombs: Prepare for new module wwcsrtombs.
14853         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14854         * lib/wcsrtombs.c: Include it.
14855         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14856
14857         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14858         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14859         * lib/mbsnrtowcs.c: Include it.
14860         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14861
14862         mbsrtowcs: Prepare for new module mbsrtowwcs.
14863         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14864         * lib/mbsrtowcs.c: Include it.
14865         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14866
14867 2011-02-04  Bruno Haible  <bruno@clisp.org>
14868
14869         vasnprintf: Reduce use of malloc for small format strings.
14870         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14871         (arguments): Add room for the first 7 arguments.
14872         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14873         (char_directives, u8_directives, u16_directives, u32_directives): Add
14874         room for the first 7 directives.
14875         * lib/printf-parse.c: Include <string.h>.
14876         (PRINTF_PARSE): Change memory handling code so that it uses the first
14877         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14878         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14879         Reported by Pádraig Brady <P@draigbrady.com>.
14880
14881 2011-01-31  Eric Blake  <eblake@redhat.com>
14882
14883         dup2: work around Haiku bug
14884         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14885         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14886         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14887         * tests/test-dup2.c (main): Enhance test.
14888
14889 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14890
14891         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14892         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14893         declared by eglibc 2.11.2.
14894         * lib/stdio.in.h: Likewise.
14895
14896 2011-01-31  Eric Blake  <eblake@redhat.com>
14897
14898         ignore-value: add missing test dependency
14899         * tests/test-ignore-value.c: Revert previous change; stdio.h
14900         provides off_t.
14901         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14902
14903 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14904
14905         mktime: clarify long_int width checking
14906         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14907         the top level, to make it clearer that the assumption about
14908         long_int width is being checked.  See
14909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14910
14911 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14912
14913         ignore-value: Fix self-test.
14914         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14915
14916 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14917
14918         TYPE_MAXIMUM: avoid theoretically undefined behavior
14919         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14920         negative number, which the C Standard says has undefined behavior.
14921         In practice this is not a problem, but might as well do it by the book.
14922         Reported by Rich Felker and Eric Blake; see
14923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14924         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14925         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14927         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14928         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14929         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14930
14931         mktime: #undef mktime before #defining it
14932         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14933
14934         mktime: systematically normalize tm_isdst comparisons
14935         * lib/mktime.c (isdst_differ): New function.
14936         (__mktime_internal): Use it systematically for all isdst comparisons.
14937         This completes the fix for libc BZ #6723, and removes the need for
14938         normalizing tm_isdst.  See
14939         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14940         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14941
14942         mktime: fix some integer overflow issues and sidestep the rest
14943
14944         This was prompted by a bug report by Benjamin Lindner for MinGW
14945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14946         His bug is due to signed integer overflow (0 - INT_MIN), and I
14947         I scanned through mktime.c looking for other integer overflow
14948         problems, fixing all the bugs I found.
14949
14950         Although the C Standard says the resulting code is still not safe
14951         in the presence of integer overflow, in practice it should be good
14952         enough for all real-world two's-complement implementations, except
14953         for debugging environments that deliberately trap on integer
14954         overflow (e.g., gcc -ftrapv).
14955
14956         * lib/mktime.c (WRAPV): New macro.
14957         (SHR): Also check that long_int and time_t shift right in the
14958         usual way, before using the fast-but-unportable method.
14959         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14960         used.  The code already assumed two's complement, so there's
14961         no need to test for alternatives.  All uses removed.
14962         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14963         the C standard.  Problem reported by Rich Felker in
14964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14965         (twos_complement_arithmetic): Also check long_int and time_t.
14966         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14967         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14968         (__mktime_internal): Avoid integer overflow with unary subtraction
14969         in two instances where -1 - X is an adequate replacement for -X,
14970         since the calculations are approximate.
14971
14972 2011-01-29  Eric Blake  <eblake@redhat.com>
14973
14974         mktime: avoid infinite loop
14975         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14976         type; behavior is still undefined but portable to all known targets.
14977         Reported by Rich Felker.
14978
14979 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14980
14981         rename, unlink, same-inode: Relicense.
14982         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14983         * modules/unlink (License): Likewise.
14984         * modules/same-inode (License): Likewise.
14985
14986 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14987
14988         mktime: avoid problems on NetBSD 5 / i386
14989         * lib/mktime.c (long_int): New type.  This works around a problem
14990         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14991         but time_t is 64 bits, and where I expect the existing code is
14992         wrong in some cases.
14993         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14994         (ydhms_diff): Bring back the compile-time check for wide-enough
14995         year and yday.
14996
14997         mktime: fix misspelling in comment
14998         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14999         This merges all recent glibc changes of importance.
15000
15001 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15002
15003         move-if-change: cope with concurrent mv of identical file.
15004         * build-aux/move-if-change (CMPPROG): Accept environment
15005         variable as an override for `cmp'.
15006         (usage): Document CMPPROG.
15007         Adjust comparison to drop stdout.  Cope with failure of mv if
15008         the target file exists and is identical to the source, for
15009         parallel builds.
15010         Report from H.J. Lu against binutils in PR binutils/12283.
15011
15012 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15013
15014         * users.txt: Mention sharutils.
15015
15016 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15017
15018         * users.txt: Mention OATH Toolkit.
15019
15020 2011-01-27  Bruno Haible  <bruno@clisp.org>
15021
15022         Prepare for supporting FreeBSD 10.
15023         * build-aux/config.libpath: Remove handling of freebsd1*.
15024
15025 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15026
15027         Prepare for supporting FreeBSD 10.
15028         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15029         match FreeBSD 10.0.
15030
15031 2011-01-27  Bruno Haible  <bruno@clisp.org>
15032
15033         vma-iter, get-rusage-as: Add OpenBSD support.
15034         * modules/vma-iter (configure.ac): Test for mquery.
15035         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15036         * lib/vma-iter.c: Include <sys/mman.h>.
15037         (vma_iterate): Add an implementation based on mquery().
15038         * lib/resource-ext.h (get_rusage_as): Update comments.
15039         * lib/get-rusage-as.c: Likewise.
15040         * lib/get-rusage-data.c: Likewise.
15041
15042 2011-01-26  Karl Berry  <karl@gnu.org>
15043
15044         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15045         variables to make it easier to override the makeinfo program used.
15046
15047 2011-01-26  Eric Blake  <eblake@redhat.com>
15048
15049         fcntl: work around Haiku F_DUPFD bugs
15050         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15051         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15052         cloexec bit on duplication.
15053         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15054
15055 2011-01-26  Bruno Haible  <bruno@clisp.org>
15056
15057         Enable memory leak tests on AIX.
15058         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15059         * tests/test-fprintf-posix3.c (main): Likewise.
15060
15061 2011-01-26  Bruno Haible  <bruno@clisp.org>
15062
15063         Tests for module 'get-rusage-data'.
15064         * modules/get-rusage-data-tests: New file.
15065         * tests/test-get-rusage-data.c: New file.
15066
15067         New module 'get-rusage-data'.
15068         * lib/resource-ext.h (get_rusage_data): New declaration.
15069         * lib/get-rusage-data.c: New file.
15070         * modules/get-rusage-data: New file.
15071
15072 2011-01-25  Bruno Haible  <bruno@clisp.org>
15073
15074         get-rusage-as: Allow for easier testing.
15075         * lib/resource-ext.h (get_rusage_as): Add comment.
15076         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15077         (main): New function for interactive testing.
15078
15079 2011-01-25  Bruno Haible  <bruno@clisp.org>
15080
15081         vma-iter: Treat Haiku like BeOS.
15082         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15083         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15084
15085 2011-01-25  Eric Blake  <eblake@redhat.com>
15086
15087         c-stack: fix regression on cygwin when libsigsegv is present
15088         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15089
15090 2011-01-24  Bruno Haible  <bruno@clisp.org>
15091
15092         vma-iter: Avoid empty intervals.
15093         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15094         on an empty interval.
15095
15096 2011-01-24  Jim Meyering  <meyering@redhat.com>
15097
15098         u64: remove unnecessary #include
15099         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15100
15101 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15102
15103         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15104         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15105
15106 2011-01-23  Bruno Haible  <bruno@clisp.org>
15107
15108         New module 'vma-iter'.
15109         * lib/vma-iter.h: New file.
15110         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15111         * modules/vma-iter: New file.
15112         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15113         for get_rusage_as_via_iterator.
15114         (vma_iterate_callback): New function.
15115         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15116         * modules/get-rusage-as (Depends-on): Add vma-iter.
15117
15118 2011-01-23  Bruno Haible  <bruno@clisp.org>
15119
15120         uninorm: Tweak includes.
15121         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15122         Reported by Jim Meyering.
15123
15124 2011-01-23  Bruno Haible  <bruno@clisp.org>
15125
15126         get-rusage-as: Improve on NetBSD.
15127         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15128         /proc, like on FreeBSD.
15129
15130 2011-01-23  Jim Meyering  <meyering@redhat.com>
15131
15132         xreadlink.h: remove unnecessary #include
15133         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15134
15135         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15136         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15137
15138 2011-01-23  Bruno Haible  <bruno@clisp.org>
15139
15140         get-rusage-as: Fix bug.
15141         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15142         original limit when aborting the first loop.
15143
15144 2011-01-23  Bruno Haible  <bruno@clisp.org>
15145
15146         wctype: Ensure valid C syntax.
15147         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15148         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15149
15150 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15151
15152         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15154         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15155         as they are needed only for configure's test case.
15156         This removes two unnecessary symbols from config.h.
15157
15158         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15159         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15161         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15162         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15163         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15164         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15165         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15166         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15167         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15168         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15170         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15171         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15172         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15173         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15174         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15175         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15176
15177 2011-01-21  Eric Blake  <eblake@redhat.com>
15178
15179         maintainer-makefile: work with older git for submodule check
15180         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15181         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15182         Reported by Matthias Bolte.
15183
15184         bootstrap: minor portability fixes
15185         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15186         (usage): Omit leading capital and trailing . on help phrases, per
15187         GNU Coding Standards.
15188         (check_versions, top level): Prefix messages with script name.
15189
15190 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15191
15192         bootstrap: support --no-git option
15193         * build-aux/bootstrap: Add --no-git option, to be used when
15194         --gnulib-srcdir points to the exact desired checkout.
15195
15196 2011-01-21  Eric Blake  <eblake@redhat.com>
15197
15198         strerror_r-posix: work with glibc 2.13
15199         * lib/strerror_r.c (strerror_r): Fix return type.
15200
15201 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15202             Bruno Haible  <bruno@clisp.org>
15203
15204         uN_strstr: New unit tests.
15205         * modules/unistr/u8-strstr-tests: New file.
15206         * modules/unistr/u16-strstr-tests: New file.
15207         * modules/unistr/u32-strstr-tests: New file.
15208         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15209         * tests/unistr/test-u8-strstr.c: New file.
15210         * tests/unistr/test-u16-strstr.c: New file.
15211         * tests/unistr/test-u32-strstr.c: New file.
15212
15213 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15214             Bruno Haible  <bruno@clisp.org>
15215
15216         Make uN_strstr functions O(n) worst-case.
15217         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15218         16-bit and 32-bit unit cases, use the unibyte algorithm from
15219         lib/mbsstr.c.
15220         * lib/unistr/u8-strstr.c: Include <string.h>.
15221         (UNIT_IS_UINT8_T): New macro.
15222         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15223         (U_STRLEN, U_STRNLEN): New macros.
15224         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15225         (U_STRLEN, U_STRNLEN): New macros.
15226         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15227         (configure.ac): Update required libunistring version.
15228         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15229         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15230         malloca.
15231         (configure.ac): Update required libunistring version.
15232         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15233         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15234         malloca.
15235         (configure.ac): Update required libunistring version.
15236
15237 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15238             Bruno Haible  <bruno@clisp.org>
15239
15240         Prepare for faster uN_strstr functions.
15241         * lib/str-kmp.h: Support definable UNITs.
15242         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15243         needle_len argument.
15244         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15245         * lib/mbscasestr.c (mbscasestr): Likewise.
15246
15247 2011-01-21  Pádraig Brady <P@draigBrady.com>
15248
15249         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15250         * tests/test-malloca.c (main): Unset the environment variable
15251         to greatly speed up the test.
15252         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15253         * modules/malloca-tests: Depend on unsetenv.
15254
15255 2011-01-21  Pádraig Brady <P@draigBrady.com>
15256
15257         ignore-value: remove stdint dependency
15258         * lib/ignore-value.h: Remove <stdint.h>
15259         * modules/ignore-value: Remove stdint dependency.
15260
15261 2011-01-21  Jim Meyering  <meyering@redhat.com>
15262
15263         maint.mk: adjust variable name to be consistent with other gl_ vars
15264         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15265         to be lower case.
15266
15267 2011-01-20  Jim Meyering  <meyering@redhat.com>
15268
15269         maint.mk: make "check" depend on public-submodule-commit by default
15270         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15271
15272 2011-01-20  Bruno Haible  <bruno@clisp.org>
15273
15274         mbfile, mbiter: Complete change from 2008-12-21.
15275         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15276         * m4/mbiter.m4 (gl_MBITER): Likewise.
15277
15278 2011-01-20  Jim Meyering  <meyering@redhat.com>
15279
15280         init.sh: insert space between each function name and "()"
15281         * tests/init.sh: Make it a little easier to see that a function's
15282         name is "warn_", and not "warn" when looking at the first part of
15283         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15284
15285 2011-01-20  Jim Meyering  <meyering@redhat.com>
15286
15287         mountlist: clean up code formatting
15288         * lib/mountlist.c (read_file_system_list): Split a long line,
15289         correct bracing style, use NULL in place of "(struct statfs *)0",
15290         don't parenthesize return value, add spaces around "=" and after
15291         ";-in-for-stmt".
15292
15293 2011-01-14  Markus Duft <mduft@gentoo.org>
15294
15295         mountlist: add support for Interix
15296         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15297         Apply statvfs to all entries of /dev/fs.
15298         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15299         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15300
15301 2011-01-20  Jim Meyering  <meyering@redhat.com>
15302
15303         maint.mk: improve the public-submodule-commit rule
15304         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15305         to suppress printing of its commands... unless V=1.
15306         Add git submodule's --quiet option to suppress printing of e.g.,
15307         "Entering gnulib" output.
15308         "cd" into $(srcdir) before running git submodule.
15309
15310 2011-01-20  Bruno Haible  <bruno@clisp.org>
15311
15312         include_next: Fix bug introduced on 2011-01-18.
15313         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15314         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15315         ac_cv_header_... variable if the second argument is not 'check'.
15316         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15317         gl_NEXT_HEADERS_INTERNAL.
15318
15319 2011-01-20  Bruno Haible  <bruno@clisp.org>
15320
15321         Allow the user to avoid the GNULIB_TEST_* macros.
15322         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15323         Suggested by Paul Eggert.
15324
15325 2011-01-14  Jim Meyering  <meyering@redhat.com>
15326
15327         bootstrap: avoid failure when there is no .gitmodules file
15328         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15329         has been assigned to, even when its value is the empty string.
15330         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15331         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15332         Reported by John W. Eaton <jwe@gnu.org>.
15333
15334 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15335
15336         assume <ctype.h>, ..., <time.h> exist
15337         For years gnulib has been assuming the existence of the headers
15338         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15339         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15340         them, since they don't appear to be needed.
15341         * README (Portability guidelines): Document this.
15342         * lib/flock.c: Assume <fcntl.h> exists.
15343         * lib/regex_internal.h: Assume <locale.h> exists.
15344         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15345         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15346         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15347         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15348         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15349         * m4/regex.m4 (gl_REGEX): Likewise.
15350         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15351         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15352         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15353         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15354         * tests/test-argp.c: Likewise.
15355         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15356
15357         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15358         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15359         AA_APPLE_UNIVERSAL_BUILD.  See
15360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15361         * NEWS: Document this.
15362
15363 2011-01-19  Eric Blake  <eblake@redhat.com>
15364
15365         c-stack: assume stack overflow if SA_SIGINFO unsupported
15366         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15367         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15368         sigaction will work.
15369         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15370         behavior match Linux.
15371         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15372
15373         stdbool-tests: accomodate Haiku
15374         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15375
15376         binary-io: fix O_TEXT on Haiku
15377         * modules/binary-io (Depends-on): Add fcntl-h.
15378         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15379         than blindly undefining O_TEXT.
15380         Reported by Scott McCreary.
15381
15382 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15383
15384         include_next: do not check for standard headers like stddef.h
15385
15386         I found this problem when modifying Emacs to use gnulib.
15387         I noticed that it added HAVE_STDDEF_H to config.h, even though
15388         gnulib always assumes <stddef.h> exists as per README and this
15389         symbol is unnecessary.
15390         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15391         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15392         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15393         faster for headers like stddef.h that are known to exist.
15394         (gl_CHECK_NEXT_HEADERS): Use it.
15395         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15396         rather than gl_CHECK_NEXT_HEADERS.
15397         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15398         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15399
15400 2011-01-18  Eric Blake  <eblake@redhat.com>
15401
15402         ansi-c++-opt: skip C++ dependency style if C++ is unused
15403         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15404         tests when we know C++ compilation is not desired.
15405         Reported by Scott McCreary.
15406
15407 2011-01-18  Bruno Haible  <bruno@clisp.org>
15408
15409         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15410         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15411         (main): Perform test also when getrlimit and setrlimit don't exist or
15412         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15413         limiting the address space size using setrlimit, compare the address
15414         space size before and after the the test.
15415         * tests/test-dprintf-posix2.c: Likewise.
15416         * tests/test-fprintf-posix3.sh: Update skip messages.
15417         * tests/test-dprintf-posix2.sh: Likewise.
15418         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15419         * modules/dprintf-posix-tests (Depends-on): Likewise.
15420         Reported by Bruce Korb <bkorb@gnu.org> and
15421         Gary V. Vaughan <gary@gnu.org>.
15422
15423 2011-01-18  Bruno Haible  <bruno@clisp.org>
15424
15425         get-rusage-as: Improvement for Cygwin.
15426         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15427         areas that are merely reserved.
15428
15429 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15430
15431         strftime: remove dependencies on multibyte modules
15432
15433         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15434         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15435         only if __osf__ is defined, and I suspect OSF doesn't need these
15436         other modules.  If my guess is wrong, we'll need to come up with a
15437         variant of strftime that doesn't need the multibyte modules.
15438
15439         I discovered this problem when attempting modify Emacs to use the
15440         strftime module.  With the previous gnulib, this caused Emacs to
15441         need 31 new files, ranging from lib/config.charset to
15442         m4/wint_t.m4.  This was overkill and I expect would be offputting
15443         to the Emacs maintainers.  After this change, only 6 new files are
15444         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15445         stdbool.m4, and tm_gmtoff.m4.
15446
15447         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15448         Suggested by Bruno Haible in
15449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15450         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15451         and do not check for wchar.h.
15452         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15453         (Depends-on): Remove mbrlen, mbsinit, wchar.
15454
15455 2011-01-18  Bruno Haible  <bruno@clisp.org>
15456
15457         Tests for module 'get-rusage-as'.
15458         * modules/get-rusage-as-tests: New file.
15459         * tests/test-get-rusage-as.c: New file.
15460
15461         New module 'get-rusage-as'.
15462         * modules/get-rusage-as: New file.
15463         * lib/resource-ext.h: New file.
15464         * lib/get-rusage-as.c: New file.
15465
15466 2011-01-17  Eric Blake  <eblake@redhat.com>
15467
15468         sigaction: relax license from LGPLv3+ to LGPLv2+
15469         * modules/sigaction (License): Relax to LGPLv2+.
15470
15471 2011-01-14  Bruno Haible  <bruno@clisp.org>
15472
15473         filemode: Make function declarations usable in C++ mode.
15474         * lib/filemode.h: Enclose function declarations in extern "C" block.
15475         Reported by John W. Eaton <jwe@gnu.org>.
15476
15477 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15478
15479         save-cwd: no longer include "xgetcwd.h"
15480         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15481         This avoids a compilation failure in projects that use save-cwd
15482         without also using the xgetcwd module.
15483
15484 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15485
15486         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15487         This is so that a program like Emacs, which needs only dtoastr,
15488         does not have to bother with distributing and compiling ftoastr
15489         and ldtoastr.
15490         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15491         * modules/dtoastr, modules/ldtoastr: New files.
15492         * modules/ftoastr: Now works just for 'float'.
15493         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15494         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15495         dtoastr.c, ldtoastr.c.
15496
15497 2011-01-11  Jim Meyering  <meyering@redhat.com>
15498
15499         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15500         There is no need to work around the lack of the fchdir function,
15501         since gnulib can now provide a replacement when required.
15502         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15503         * modules/save-cwd (Depends-on): Add fchdir.
15504
15505 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15506
15507         openat, save-cwd: avoid xmalloc
15508
15509         This removes a direct (but undocumented) dependency of openat on
15510         xalloc, along with an indirect dependency via save-cwd.  It also
15511         removes a dependency of save-cwd on xgetcwd, and thereby
15512         indirectly on xalloc.  This change causes the openat substitute
15513         to fall back on save_cwd when memory is tight, and for save_cwd to
15514         fail instead of dying when memory is tight, but that's good enough.
15515         Problem and initial idea for fix reported by Bastien Roucaries in
15516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15517
15518         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15519         xalloc.h (for xmalloc).
15520         (openat_proc_name): Use malloc, not xmalloc.
15521         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15522         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15523
15524         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15525         This avoids heap allocation for file names whose lengths are in
15526         the range 512..1023, with the upper bound increasing to at most
15527         4031 depending on the platform's PATH_MAX.  (We do not want
15528         pathmax.h here as it might supply a non-constant PATH_MAX.)
15529         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15530         Perhaps they should be moved to malloca.h?
15531         (OPENAT_BUFFER_SIZE): Use them.
15532
15533 2011-01-10  Bruno Haible  <bruno@clisp.org>
15534
15535         doc: Update users.txt.
15536         * users.txt: Add recutils.
15537
15538 2011-01-09  Karl Berry  <karl@gnu.org>
15539
15540         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15541
15542         * doc/configmake.texi: New file.
15543         * doc/gnulib.texi: Include it.
15544         * modules/configmake: Move documentation from here.
15545
15546 2011-01-09  Bruno Haible  <bruno@clisp.org>
15547
15548         Update to Unicode 6.0.0.
15549         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15550         (get_lbp): Update for Unicode 6.0.0.
15551         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15552         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15553         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15554         U+11001, U+11038..U+11046. Remove U+06DE.
15555         (uc_width): Fix bounds of planes.
15556         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15557         lib/uniwidth/width.c.
15558         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15559         trailing whitespace removed.
15560         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15561         without comments, but with the original copyright notice.
15562         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15563         * lib/unicase/ignorable.h: Likewise.
15564         * lib/unicase/tocasefold.h: Likewise.
15565         * lib/unicase/tolower.h: Likewise.
15566         * lib/unicase/totitle.h: Likewise.
15567         * lib/unicase/toupper.h: Likewise.
15568         * lib/unictype/bidi_of.h: Likewise.
15569         * lib/unictype/blocks.h: Likewise.
15570         * lib/unictype/categ_C.h: Likewise.
15571         * lib/unictype/categ_Cn.h: Likewise.
15572         * lib/unictype/categ_L.h: Likewise.
15573         * lib/unictype/categ_Ll.h: Likewise.
15574         * lib/unictype/categ_Lm.h: Likewise.
15575         * lib/unictype/categ_Lo.h: Likewise.
15576         * lib/unictype/categ_Lu.h: Likewise.
15577         * lib/unictype/categ_M.h: Likewise.
15578         * lib/unictype/categ_Mc.h: Likewise.
15579         * lib/unictype/categ_Me.h: Likewise.
15580         * lib/unictype/categ_Mn.h: Likewise.
15581         * lib/unictype/categ_N.h: Likewise.
15582         * lib/unictype/categ_Nd.h: Likewise.
15583         * lib/unictype/categ_No.h: Likewise.
15584         * lib/unictype/categ_P.h: Likewise.
15585         * lib/unictype/categ_Po.h: Likewise.
15586         * lib/unictype/categ_S.h: Likewise.
15587         * lib/unictype/categ_Sc.h: Likewise.
15588         * lib/unictype/categ_Sk.h: Likewise.
15589         * lib/unictype/categ_Sm.h: Likewise.
15590         * lib/unictype/categ_So.h: Likewise.
15591         * lib/unictype/categ_of.h: Likewise.
15592         * lib/unictype/combining.h: Likewise.
15593         * lib/unictype/ctype_alnum.h: Likewise.
15594         * lib/unictype/ctype_alpha.h: Likewise.
15595         * lib/unictype/ctype_graph.h: Likewise.
15596         * lib/unictype/ctype_lower.h: Likewise.
15597         * lib/unictype/ctype_print.h: Likewise.
15598         * lib/unictype/ctype_punct.h: Likewise.
15599         * lib/unictype/ctype_upper.h: Likewise.
15600         * lib/unictype/decdigit.h: Likewise.
15601         * lib/unictype/digit.h: Likewise.
15602         * lib/unictype/numeric.h: Likewise.
15603         * lib/unictype/pr_alphabetic.h: Likewise.
15604         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15605         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15606         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15607         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15608         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15609         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15610         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15611         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15612         * lib/unictype/pr_case_ignorable.h: Likewise.
15613         * lib/unictype/pr_cased.h: Likewise.
15614         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15615         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15616         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15617         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15618         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15619         * lib/unictype/pr_combining.h: Likewise.
15620         * lib/unictype/pr_composite.h: Likewise.
15621         * lib/unictype/pr_currency_symbol.h: Likewise.
15622         * lib/unictype/pr_decimal_digit.h: Likewise.
15623         * lib/unictype/pr_deprecated.h: Likewise.
15624         * lib/unictype/pr_format_control.h: Likewise.
15625         * lib/unictype/pr_grapheme_base.h: Likewise.
15626         * lib/unictype/pr_grapheme_extend.h: Likewise.
15627         * lib/unictype/pr_grapheme_link.h: Likewise.
15628         * lib/unictype/pr_id_continue.h: Likewise.
15629         * lib/unictype/pr_id_start.h: Likewise.
15630         * lib/unictype/pr_ideographic.h: Likewise.
15631         * lib/unictype/pr_lowercase.h: Likewise.
15632         * lib/unictype/pr_math.h: Likewise.
15633         * lib/unictype/pr_numeric.h: Likewise.
15634         * lib/unictype/pr_other_alphabetic.h: Likewise.
15635         * lib/unictype/pr_other_id_continue.h: Likewise.
15636         * lib/unictype/pr_other_math.h: Likewise.
15637         * lib/unictype/pr_punctuation.h: Likewise.
15638         * lib/unictype/pr_sentence_terminal.h: Likewise.
15639         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15640         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15641         * lib/unictype/pr_unified_ideograph.h: Likewise.
15642         * lib/unictype/pr_uppercase.h: Likewise.
15643         * lib/unictype/pr_xid_continue.h: Likewise.
15644         * lib/unictype/pr_xid_start.h: Likewise.
15645         * lib/unictype/scripts.h: Likewise.
15646         * lib/unictype/scripts_byname.gperf: Likewise.
15647         * lib/unictype/sy_java_ident.h: Likewise.
15648         * lib/unigbrk/gbrkprop.h: Likewise.
15649         * lib/unilbrk/lbrkprop1.h: Likewise.
15650         * lib/unilbrk/lbrkprop2.h: Likewise.
15651         * lib/uninorm/decomposition-table2.h: Likewise.
15652         * lib/uniwbrk/wbrkprop.h: Likewise.
15653         * tests/unicase/test-cased.c: Likewise.
15654         * tests/unicase/test-ignorable.c: Likewise.
15655         * tests/unicase/test-uc_tolower.c: Likewise.
15656         * tests/unicase/test-uc_totitle.c: Likewise.
15657         * tests/unicase/test-uc_toupper.c: Likewise.
15658         * tests/unictype/test-categ_C.c: Likewise.
15659         * tests/unictype/test-categ_Cn.c: Likewise.
15660         * tests/unictype/test-categ_L.c: Likewise.
15661         * tests/unictype/test-categ_Ll.c: Likewise.
15662         * tests/unictype/test-categ_Lm.c: Likewise.
15663         * tests/unictype/test-categ_Lo.c: Likewise.
15664         * tests/unictype/test-categ_Lu.c: Likewise.
15665         * tests/unictype/test-categ_M.c: Likewise.
15666         * tests/unictype/test-categ_Mc.c: Likewise.
15667         * tests/unictype/test-categ_Me.c: Likewise.
15668         * tests/unictype/test-categ_Mn.c: Likewise.
15669         * tests/unictype/test-categ_N.c: Likewise.
15670         * tests/unictype/test-categ_Nd.c: Likewise.
15671         * tests/unictype/test-categ_No.c: Likewise.
15672         * tests/unictype/test-categ_P.c: Likewise.
15673         * tests/unictype/test-categ_Po.c: Likewise.
15674         * tests/unictype/test-categ_S.c: Likewise.
15675         * tests/unictype/test-categ_Sc.c: Likewise.
15676         * tests/unictype/test-categ_Sk.c: Likewise.
15677         * tests/unictype/test-categ_Sm.c: Likewise.
15678         * tests/unictype/test-categ_So.c: Likewise.
15679         * tests/unictype/test-ctype_alnum.c: Likewise.
15680         * tests/unictype/test-ctype_alpha.c: Likewise.
15681         * tests/unictype/test-ctype_graph.c: Likewise.
15682         * tests/unictype/test-ctype_lower.c: Likewise.
15683         * tests/unictype/test-ctype_print.c: Likewise.
15684         * tests/unictype/test-ctype_punct.c: Likewise.
15685         * tests/unictype/test-ctype_upper.c: Likewise.
15686         * tests/unictype/test-decdigit.h: Likewise.
15687         * tests/unictype/test-digit.h: Likewise.
15688         * tests/unictype/test-numeric.h: Likewise.
15689         * tests/unictype/test-pr_alphabetic.c: Likewise.
15690         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15691         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15692         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15693         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15694         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15695         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15696         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15697         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15698         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15699         * tests/unictype/test-pr_cased.c: Likewise.
15700         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15701         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15702         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15703         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15704         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15705         * tests/unictype/test-pr_combining.c: Likewise.
15706         * tests/unictype/test-pr_composite.c: Likewise.
15707         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15708         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15709         * tests/unictype/test-pr_deprecated.c: Likewise.
15710         * tests/unictype/test-pr_format_control.c: Likewise.
15711         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15712         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15713         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15714         * tests/unictype/test-pr_id_continue.c: Likewise.
15715         * tests/unictype/test-pr_id_start.c: Likewise.
15716         * tests/unictype/test-pr_ideographic.c: Likewise.
15717         * tests/unictype/test-pr_lowercase.c: Likewise.
15718         * tests/unictype/test-pr_math.c: Likewise.
15719         * tests/unictype/test-pr_numeric.c: Likewise.
15720         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15721         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15722         * tests/unictype/test-pr_other_math.c: Likewise.
15723         * tests/unictype/test-pr_punctuation.c: Likewise.
15724         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15725         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15726         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15727         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15728         * tests/unictype/test-pr_uppercase.c: Likewise.
15729         * tests/unictype/test-pr_xid_continue.c: Likewise.
15730         * tests/unictype/test-pr_xid_start.c: Likewise.
15731         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15732         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15733         changes.
15734         * lib/unictype/categ_Cc.h: Likewise.
15735         * lib/unictype/categ_Cf.h: Likewise.
15736         * lib/unictype/categ_Co.h: Likewise.
15737         * lib/unictype/categ_Cs.h: Likewise.
15738         * lib/unictype/categ_Lt.h: Likewise.
15739         * lib/unictype/categ_Nl.h: Likewise.
15740         * lib/unictype/categ_Pc.h: Likewise.
15741         * lib/unictype/categ_Pd.h: Likewise.
15742         * lib/unictype/categ_Pe.h: Likewise.
15743         * lib/unictype/categ_Pf.h: Likewise.
15744         * lib/unictype/categ_Pi.h: Likewise.
15745         * lib/unictype/categ_Ps.h: Likewise.
15746         * lib/unictype/categ_Z.h: Likewise.
15747         * lib/unictype/categ_Zl.h: Likewise.
15748         * lib/unictype/categ_Zp.h: Likewise.
15749         * lib/unictype/categ_Zs.h: Likewise.
15750         * lib/unictype/ctype_blank.h: Likewise.
15751         * lib/unictype/ctype_cntrl.h: Likewise.
15752         * lib/unictype/ctype_digit.h: Likewise.
15753         * lib/unictype/ctype_space.h: Likewise.
15754         * lib/unictype/ctype_xdigit.h: Likewise.
15755         * lib/unictype/mirror.h: Likewise.
15756         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15757         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15758         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15759         * lib/unictype/pr_bidi_control.h: Likewise.
15760         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15761         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15762         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15763         * lib/unictype/pr_bidi_pdf.h: Likewise.
15764         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15765         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15766         * lib/unictype/pr_dash.h: Likewise.
15767         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15768         * lib/unictype/pr_diacritic.h: Likewise.
15769         * lib/unictype/pr_extender.h: Likewise.
15770         * lib/unictype/pr_hex_digit.h: Likewise.
15771         * lib/unictype/pr_hyphen.h: Likewise.
15772         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15773         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15774         * lib/unictype/pr_ignorable_control.h: Likewise.
15775         * lib/unictype/pr_iso_control.h: Likewise.
15776         * lib/unictype/pr_join_control.h: Likewise.
15777         * lib/unictype/pr_left_of_pair.h: Likewise.
15778         * lib/unictype/pr_line_separator.h: Likewise.
15779         * lib/unictype/pr_logical_order_exception.h: Likewise.
15780         * lib/unictype/pr_non_break.h: Likewise.
15781         * lib/unictype/pr_not_a_character.h: Likewise.
15782         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15783         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15784         * lib/unictype/pr_other_id_start.h: Likewise.
15785         * lib/unictype/pr_other_lowercase.h: Likewise.
15786         * lib/unictype/pr_other_uppercase.h: Likewise.
15787         * lib/unictype/pr_paired_punctuation.h: Likewise.
15788         * lib/unictype/pr_paragraph_separator.h: Likewise.
15789         * lib/unictype/pr_pattern_syntax.h: Likewise.
15790         * lib/unictype/pr_pattern_white_space.h: Likewise.
15791         * lib/unictype/pr_private_use.h: Likewise.
15792         * lib/unictype/pr_quotation_mark.h: Likewise.
15793         * lib/unictype/pr_radical.h: Likewise.
15794         * lib/unictype/pr_soft_dotted.h: Likewise.
15795         * lib/unictype/pr_space.h: Likewise.
15796         * lib/unictype/pr_titlecase.h: Likewise.
15797         * lib/unictype/pr_variation_selector.h: Likewise.
15798         * lib/unictype/pr_white_space.h: Likewise.
15799         * lib/unictype/pr_zero_width.h: Likewise.
15800         * lib/unictype/sy_c_ident.h: Likewise.
15801         * lib/unictype/sy_c_whitespace.h: Likewise.
15802         * lib/unictype/sy_java_whitespace.h: Likewise.
15803         * lib/uninorm/composition-table.gperf: Likewise.
15804         * lib/uninorm/decomposition-table1.h: Likewise.
15805         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15806         LB8.
15807         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15808         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15809         * modules/unictype/*: Bump version number of expected libunistring
15810         version.
15811
15812 2011-01-09  Bruno Haible  <bruno@clisp.org>
15813
15814         Update to Unicode 5.2.0.
15815         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15816         trailing whitespace removed.
15817
15818 2011-01-09  Bruno Haible  <bruno@clisp.org>
15819
15820         New Unicode character properties, from Unicode 5.2.0.
15821         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15822         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15823         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15824         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15825         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15826         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15827         uc_is_property_cased, uc_is_property_case_ignorable,
15828         uc_is_property_changes_when_lowercased,
15829         uc_is_property_changes_when_uppercased,
15830         uc_is_property_changes_when_titlecased,
15831         uc_is_property_changes_when_casefolded,
15832         uc_is_property_changes_when_casemapped): New declarations.
15833         * lib/unictype/pr_byname.gperf: Add the new properties.
15834         * modules/unictype/property-byname (Depends-on): Depend on the new
15835         properties modules.
15836         * modules/unictype/property-all (Depends-on): Likewise.
15837         * MODULES.html.sh (Unicode string functions): Add
15838         unictype/property-case-ignorable, unictype/property-cased,
15839         unictype/property-changes-when-casefolded,
15840         unictype/property-changes-when-casemapped,
15841         unictype/property-changes-when-lowercased,
15842         unictype/property-changes-when-titlecased,
15843         unictype/property-changes-when-uppercased.
15844
15845         New module 'unictype/property-changes-when-casemapped'.
15846         * modules/unictype/property-changes-when-casemapped: New file.
15847         * lib/unictype/pr_changes_when_casemapped.c: New file.
15848         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15849         generated by gen-uni-tables.
15850         * modules/unictype/property-changes-when-casemapped-tests: New file.
15851         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15852         automatically generated by gen-uni-tables.
15853
15854         New module 'unictype/property-changes-when-casefolded'.
15855         * modules/unictype/property-changes-when-casefolded: New file.
15856         * lib/unictype/pr_changes_when_casefolded.c: New file.
15857         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15858         generated by gen-uni-tables.
15859         * modules/unictype/property-changes-when-casefolded-tests: New file.
15860         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15861         automatically generated by gen-uni-tables.
15862
15863         New module 'unictype/property-changes-when-titlecased'.
15864         * modules/unictype/property-changes-when-titlecased: New file.
15865         * lib/unictype/pr_changes_when_titlecased.c: New file.
15866         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15867         generated by gen-uni-tables.
15868         * modules/unictype/property-changes-when-titlecased-tests: New file.
15869         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15870         automatically generated by gen-uni-tables.
15871
15872         New module 'unictype/property-changes-when-uppercased'.
15873         * modules/unictype/property-changes-when-uppercased: New file.
15874         * lib/unictype/pr_changes_when_uppercased.c: New file.
15875         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15876         generated by gen-uni-tables.
15877         * modules/unictype/property-changes-when-uppercased-tests: New file.
15878         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15879         automatically generated by gen-uni-tables.
15880
15881         New module 'unictype/property-changes-when-lowercased'.
15882         * modules/unictype/property-changes-when-lowercased: New file.
15883         * lib/unictype/pr_changes_when_lowercased.c: New file.
15884         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15885         generated by gen-uni-tables.
15886         * modules/unictype/property-changes-when-lowercased-tests: New file.
15887         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15888         automatically generated by gen-uni-tables.
15889
15890         New module 'unictype/property-case-ignorable'.
15891         * modules/unictype/property-case-ignorable: New file.
15892         * lib/unictype/pr_case_ignorable.c: New file.
15893         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15894         by gen-uni-tables.
15895         * modules/unictype/property-case-ignorable-tests: New file.
15896         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15897         generated by gen-uni-tables.
15898
15899         New module 'unictype/property-cased'.
15900         * modules/unictype/property-cased: New file.
15901         * lib/unictype/pr_cased.c: New file.
15902         * lib/unictype/pr_cased.h: New file, automatically generated by
15903         gen-uni-tables.
15904         * modules/unictype/property-cased-tests: New file.
15905         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15906         gen-uni-tables.
15907
15908 2011-01-09  Bruno Haible  <bruno@clisp.org>
15909
15910         Update to Unicode 5.2.0.
15911         * lib/gen-uni-tables.c (output_predicate, output_category,
15912         output_combclass, output_bidi_category, output_decimal_digit_test,
15913         output_decimal_digit, output_digit_test, output_digit,
15914         output_numeric_test, output_numeric, output_mirror, output_scripts,
15915         output_scripts_byname, output_blocks, output_ident_category): Fix
15916         comment header.
15917         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15918         get_wbp.
15919         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15920         items.
15921         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15922         Changes_When_Lowercased, Changes_When_Uppercased,
15923         Changes_When_Titlecased, Changes_When_Casefolded,
15924         Changes_When_Casemapped.
15925         (is_property_alphabetic, is_property_default_ignorable_code_point):
15926         Update for Unicode 5.2.0.
15927         (is_property_cased, is_property_case_ignorable,
15928         is_property_changes_when_lowercased,
15929         is_property_changes_when_uppercased,
15930         is_property_changes_when_titlecased,
15931         is_property_changes_when_casefolded,
15932         is_property_changes_when_casemapped): New functions.
15933         (output_properties): Output also the properties cased, case_ignorable,
15934         changes_when_lowercased, changes_when_uppercased,
15935         changes_when_titlecased, changes_when_casefolded,
15936         changes_when_casemapped.
15937         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15938         Unicode TR#11 revision 17 -> 19.
15939         (LBP_CP): New enumeration value.
15940         (LBP_*): Adjust values accordingly.
15941         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15942         TR#14 revision 22 -> 24.
15943         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15944         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15945         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15946         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15947         is_WBP_MIDLETTER.
15948         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15949         the code1 and code2 of each composition rule.
15950         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15951         * lib/unicase/ignorable.h: Likewise.
15952         * lib/unicase/tocasefold.h: Likewise.
15953         * lib/unicase/tolower.h: Likewise.
15954         * lib/unicase/totitle.h: Likewise.
15955         * lib/unicase/toupper.h: Likewise.
15956         * lib/unictype/bidi_of.h: Likewise.
15957         * lib/unictype/blocks.h: Likewise.
15958         * lib/unictype/categ_C.h: Likewise.
15959         * lib/unictype/categ_Cf.h: Likewise.
15960         * lib/unictype/categ_Cn.h: Likewise.
15961         * lib/unictype/categ_L.h: Likewise.
15962         * lib/unictype/categ_Ll.h: Likewise.
15963         * lib/unictype/categ_Lm.h: Likewise.
15964         * lib/unictype/categ_Lo.h: Likewise.
15965         * lib/unictype/categ_Lu.h: Likewise.
15966         * lib/unictype/categ_M.h: Likewise.
15967         * lib/unictype/categ_Mc.h: Likewise.
15968         * lib/unictype/categ_Mn.h: Likewise.
15969         * lib/unictype/categ_N.h: Likewise.
15970         * lib/unictype/categ_Nd.h: Likewise.
15971         * lib/unictype/categ_Nl.h: Likewise.
15972         * lib/unictype/categ_No.h: Likewise.
15973         * lib/unictype/categ_P.h: Likewise.
15974         * lib/unictype/categ_Pd.h: Likewise.
15975         * lib/unictype/categ_Po.h: Likewise.
15976         * lib/unictype/categ_S.h: Likewise.
15977         * lib/unictype/categ_Sc.h: Likewise.
15978         * lib/unictype/categ_So.h: Likewise.
15979         * lib/unictype/categ_of.h: Likewise.
15980         * lib/unictype/combining.h: Likewise.
15981         * lib/unictype/ctype_alnum.h: Likewise.
15982         * lib/unictype/ctype_alpha.h: Likewise.
15983         * lib/unictype/ctype_graph.h: Likewise.
15984         * lib/unictype/ctype_lower.h: Likewise.
15985         * lib/unictype/ctype_print.h: Likewise.
15986         * lib/unictype/ctype_punct.h: Likewise.
15987         * lib/unictype/ctype_upper.h: Likewise.
15988         * lib/unictype/decdigit.h: Likewise.
15989         * lib/unictype/digit.h: Likewise.
15990         * lib/unictype/numeric.h: Likewise.
15991         * lib/unictype/pr_alphabetic.h: Likewise.
15992         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15993         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15994         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15995         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15996         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15997         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15998         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15999         * lib/unictype/pr_combining.h: Likewise.
16000         * lib/unictype/pr_composite.h: Likewise.
16001         * lib/unictype/pr_currency_symbol.h: Likewise.
16002         * lib/unictype/pr_dash.h: Likewise.
16003         * lib/unictype/pr_decimal_digit.h: Likewise.
16004         * lib/unictype/pr_deprecated.h: Likewise.
16005         * lib/unictype/pr_diacritic.h: Likewise.
16006         * lib/unictype/pr_extender.h: Likewise.
16007         * lib/unictype/pr_grapheme_base.h: Likewise.
16008         * lib/unictype/pr_grapheme_extend.h: Likewise.
16009         * lib/unictype/pr_grapheme_link.h: Likewise.
16010         * lib/unictype/pr_id_continue.h: Likewise.
16011         * lib/unictype/pr_id_start.h: Likewise.
16012         * lib/unictype/pr_ideographic.h: Likewise.
16013         * lib/unictype/pr_ignorable_control.h: Likewise.
16014         * lib/unictype/pr_logical_order_exception.h: Likewise.
16015         * lib/unictype/pr_lowercase.h: Likewise.
16016         * lib/unictype/pr_numeric.h: Likewise.
16017         * lib/unictype/pr_other_alphabetic.h: Likewise.
16018         * lib/unictype/pr_punctuation.h: Likewise.
16019         * lib/unictype/pr_sentence_terminal.h: Likewise.
16020         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16021         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16022         * lib/unictype/pr_unified_ideograph.h: Likewise.
16023         * lib/unictype/pr_uppercase.h: Likewise.
16024         * lib/unictype/pr_xid_continue.h: Likewise.
16025         * lib/unictype/pr_xid_start.h: Likewise.
16026         * lib/unictype/pr_zero_width.h: Likewise.
16027         * lib/unictype/scripts.h: Likewise.
16028         * lib/unictype/scripts_byname.gperf: Likewise.
16029         * lib/unictype/sy_java_ident.h: Likewise.
16030         * lib/unigbrk/gbrkprop.h: Likewise.
16031         * lib/unilbrk/lbrkprop1.h: Likewise.
16032         * lib/unilbrk/lbrkprop2.h: Likewise.
16033         * lib/unilbrk/lbrktables.h: Likewise.
16034         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16035         LBP_CP. Implement rule LB30.
16036         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16037         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16038         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16039         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16040         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16041         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16042         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16043         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16044         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16045         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16046         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16047         bits instead of 16 bits in the code1 and code2 of each composition
16048         rule.
16049         (uc_composition): Update for Unicode 5.2.0.
16050         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16051         * lib/uninorm/decomposition-table2.h: Likewise.
16052         * lib/uniwbrk/wbrkprop.h: Likewise.
16053         * tests/unicase/test-cased.c: Likewise.
16054         * tests/unicase/test-ignorable.c: Likewise.
16055         * tests/unicase/test-uc_tolower.c: Likewise.
16056         * tests/unicase/test-uc_totitle.c: Likewise.
16057         * tests/unicase/test-uc_toupper.c: Likewise.
16058         * tests/unictype/test-categ_C.c: Likewise.
16059         * tests/unictype/test-categ_Cf.c: Likewise.
16060         * tests/unictype/test-categ_Cn.c: Likewise.
16061         * tests/unictype/test-categ_L.c: Likewise.
16062         * tests/unictype/test-categ_Ll.c: Likewise.
16063         * tests/unictype/test-categ_Lm.c: Likewise.
16064         * tests/unictype/test-categ_Lo.c: Likewise.
16065         * tests/unictype/test-categ_Lu.c: Likewise.
16066         * tests/unictype/test-categ_M.c: Likewise.
16067         * tests/unictype/test-categ_Mc.c: Likewise.
16068         * tests/unictype/test-categ_Mn.c: Likewise.
16069         * tests/unictype/test-categ_N.c: Likewise.
16070         * tests/unictype/test-categ_Nd.c: Likewise.
16071         * tests/unictype/test-categ_Nl.c: Likewise.
16072         * tests/unictype/test-categ_No.c: Likewise.
16073         * tests/unictype/test-categ_P.c: Likewise.
16074         * tests/unictype/test-categ_Pd.c: Likewise.
16075         * tests/unictype/test-categ_Po.c: Likewise.
16076         * tests/unictype/test-categ_S.c: Likewise.
16077         * tests/unictype/test-categ_Sc.c: Likewise.
16078         * tests/unictype/test-categ_So.c: Likewise.
16079         * tests/unictype/test-ctype_alnum.c: Likewise.
16080         * tests/unictype/test-ctype_alpha.c: Likewise.
16081         * tests/unictype/test-ctype_graph.c: Likewise.
16082         * tests/unictype/test-ctype_lower.c: Likewise.
16083         * tests/unictype/test-ctype_print.c: Likewise.
16084         * tests/unictype/test-ctype_punct.c: Likewise.
16085         * tests/unictype/test-ctype_upper.c: Likewise.
16086         * tests/unictype/test-decdigit.h: Likewise.
16087         * tests/unictype/test-digit.h: Likewise.
16088         * tests/unictype/test-numeric.h: Likewise.
16089         * tests/unictype/test-pr_alphabetic.c: Likewise.
16090         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16091         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16092         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16093         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16094         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16095         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16096         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16097         * tests/unictype/test-pr_combining.c: Likewise.
16098         * tests/unictype/test-pr_composite.c: Likewise.
16099         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16100         * tests/unictype/test-pr_dash.c: Likewise.
16101         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16102         * tests/unictype/test-pr_deprecated.c: Likewise.
16103         * tests/unictype/test-pr_diacritic.c: Likewise.
16104         * tests/unictype/test-pr_extender.c: Likewise.
16105         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16106         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16107         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16108         * tests/unictype/test-pr_id_continue.c: Likewise.
16109         * tests/unictype/test-pr_id_start.c: Likewise.
16110         * tests/unictype/test-pr_ideographic.c: Likewise.
16111         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16112         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16113         * tests/unictype/test-pr_lowercase.c: Likewise.
16114         * tests/unictype/test-pr_numeric.c: Likewise.
16115         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16116         * tests/unictype/test-pr_punctuation.c: Likewise.
16117         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16118         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16119         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16120         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16121         * tests/unictype/test-pr_uppercase.c: Likewise.
16122         * tests/unictype/test-pr_xid_continue.c: Likewise.
16123         * tests/unictype/test-pr_xid_start.c: Likewise.
16124         * tests/unictype/test-pr_zero_width.c: Likewise.
16125         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16126         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16127         changed behaviour: line breaking is now disallowed between a letter
16128         or '=' and '('.
16129         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16130         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16131         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16132         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16133         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16134         lib/uniwidth/width.c.
16135         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16136         without comments, but with the original copyright notice.
16137         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16138         changes.
16139         * lib/unictype/categ_Cc.h: Likewise.
16140         * lib/unictype/categ_Co.h: Likewise.
16141         * lib/unictype/categ_Cs.h: Likewise.
16142         * lib/unictype/categ_Lt.h: Likewise.
16143         * lib/unictype/categ_Me.h: Likewise.
16144         * lib/unictype/categ_Pc.h: Likewise.
16145         * lib/unictype/categ_Pe.h: Likewise.
16146         * lib/unictype/categ_Pf.h: Likewise.
16147         * lib/unictype/categ_Pi.h: Likewise.
16148         * lib/unictype/categ_Ps.h: Likewise.
16149         * lib/unictype/categ_Sk.h: Likewise.
16150         * lib/unictype/categ_Sm.h: Likewise.
16151         * lib/unictype/categ_Z.h: Likewise.
16152         * lib/unictype/categ_Zl.h: Likewise.
16153         * lib/unictype/categ_Zp.h: Likewise.
16154         * lib/unictype/categ_Zs.h: Likewise.
16155         * lib/unictype/ctype_blank.h: Likewise.
16156         * lib/unictype/ctype_cntrl.h: Likewise.
16157         * lib/unictype/ctype_digit.h: Likewise.
16158         * lib/unictype/ctype_space.h: Likewise.
16159         * lib/unictype/ctype_xdigit.h: Likewise.
16160         * lib/unictype/mirror.h: Likewise.
16161         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16162         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16163         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16164         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16165         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16166         * lib/unictype/pr_bidi_control.h: Likewise.
16167         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16168         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16169         * lib/unictype/pr_bidi_pdf.h: Likewise.
16170         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16171         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16172         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16173         * lib/unictype/pr_format_control.h: Likewise.
16174         * lib/unictype/pr_hex_digit.h: Likewise.
16175         * lib/unictype/pr_hyphen.h: Likewise.
16176         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16177         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16178         * lib/unictype/pr_iso_control.h: Likewise.
16179         * lib/unictype/pr_join_control.h: Likewise.
16180         * lib/unictype/pr_left_of_pair.h: Likewise.
16181         * lib/unictype/pr_line_separator.h: Likewise.
16182         * lib/unictype/pr_math.h: Likewise.
16183         * lib/unictype/pr_non_break.h: Likewise.
16184         * lib/unictype/pr_not_a_character.h: Likewise.
16185         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16186         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16187         * lib/unictype/pr_other_id_continue.h: Likewise.
16188         * lib/unictype/pr_other_id_start.h: Likewise.
16189         * lib/unictype/pr_other_lowercase.h: Likewise.
16190         * lib/unictype/pr_other_math.h: Likewise.
16191         * lib/unictype/pr_other_uppercase.h: Likewise.
16192         * lib/unictype/pr_paired_punctuation.h: Likewise.
16193         * lib/unictype/pr_paragraph_separator.h: Likewise.
16194         * lib/unictype/pr_pattern_syntax.h: Likewise.
16195         * lib/unictype/pr_pattern_white_space.h: Likewise.
16196         * lib/unictype/pr_private_use.h: Likewise.
16197         * lib/unictype/pr_quotation_mark.h: Likewise.
16198         * lib/unictype/pr_radical.h: Likewise.
16199         * lib/unictype/pr_soft_dotted.h: Likewise.
16200         * lib/unictype/pr_space.h: Likewise.
16201         * lib/unictype/pr_titlecase.h: Likewise.
16202         * lib/unictype/pr_variation_selector.h: Likewise.
16203         * lib/unictype/pr_white_space.h: Likewise.
16204         * lib/unictype/sy_c_ident.h: Likewise.
16205         * lib/unictype/sy_c_whitespace.h: Likewise.
16206         * lib/unictype/sy_java_whitespace.h: Likewise.
16207         * modules/uni*/*: Bump version number of expected libunistring version.
16208         Reported by Simon Josefsson.
16209
16210 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16211
16212         useless-if-before-free: fix typo in --help and make the internal,
16213         automatic version date update process work once again.
16214         --help output contained a NUL character instead of the
16215         backslash-zero that was intended.  Also, the "must lie within
16216         the first 8 lines" line is on line 9, and hence not getting
16217         automatically updated.
16218         * build-aux/useless-if-before-free: Fix the former by adding a
16219         backslash, and the latter by condensing the three lines of what-it-does
16220         to a single line, leaving one line of slack for the future.
16221
16222 2011-01-09  Bruno Haible  <bruno@clisp.org>
16223
16224         uniwidth/width: Fix width of U+1D173..U+1D17A.
16225         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16226         symbolic_width, output_width_property_test): New functions.
16227         (main): Invoke output_nonspacing_property, output_width_property_test.
16228         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16229         U+1D173..U+1D17A.
16230         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16231         1.
16232         * modules/uniwidth/*: Bump version number of expected libunistring
16233         version.
16234         * modules/unilbrk/*: Likewise.
16235
16236 2011-01-08  Bruno Haible  <bruno@clisp.org>
16237
16238         uninorm tests: Preserve copyright of Unicode data file.
16239         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16240         Mention modifications.
16241
16242 2011-01-08  Bruno Haible  <bruno@clisp.org>
16243
16244         gen-uni-tables: Prepare for Unicode 5.2.0.
16245         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16246         (debug_output_lbp, output_lbp): Update.
16247
16248 2011-01-08  Bruno Haible  <bruno@clisp.org>
16249
16250         unilbrk: Clarify gen-uni-tables.c code.
16251         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16252         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16253         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16254
16255 2011-01-07  Bruno Haible  <bruno@clisp.org>
16256
16257         strtod: Restore errno when successfully parsing Infinity or NaN.
16258         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16259         restore the original errno.
16260
16261 2011-01-07  Bruno Haible  <bruno@clisp.org>
16262
16263         remove test: Avoid failure on HP-UX 11.
16264         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16265
16266 2011-01-07  Bruno Haible  <bruno@clisp.org>
16267
16268         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16269         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16270         error code.
16271
16272 2011-01-07  Pádraig Brady <P@draigBrady.com>
16273
16274         ignore-value: fixup comments, and add Eric Blake
16275         as an author since he rewrote the macros.
16276         * lib/ignore-value.h (ignore_value):  State that
16277         we now support aggregates.  Also specify exactly
16278         when the GCC warn_unused_result feature was added.
16279
16280 2011-01-06  Eric Blake  <eblake@redhat.com>
16281
16282         ignore-value: support aggregate types
16283         * lib/ignore-value.h (ignore_value): Provide separate gcc
16284         definition.
16285         * modules/ignore-value-tests: New test module.
16286         * tests/test-ignore-value.c: New test.
16287
16288         maint.mk: improve sc_prohibit_strcmp regex
16289         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16290         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16291         definition of STRNEQ.
16292
16293         signal: work around Haiku issue with SIGBUS
16294         * lib/siglist.h: Add comment.
16295         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16296         strsignal's favoring of SIGSEGV.
16297         * tests/test-signal.c (main): Avoid test failure.
16298         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16299         Reported by Scott McCreary.
16300
16301         maint.mk: add pre-release check to ensure submodule commits are public
16302         * top/maint.mk (public-submodule-commit): New rule.
16303         (submodule-checks): New variable.
16304         (alpha beta stable): Depend on the variable.
16305
16306 2011-01-05  Pádraig Brady <P@draigBrady.com>
16307         and Jim Meyering  <meyering@redhat.com>
16308
16309         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16310         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16311         (ATTRIBUTE_DEPRECATED): Define.
16312         (_ignore_case): New function.
16313         (ignore_value): New macro, to replace the old function.
16314         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16315         * modules/ignore-value (Depends-on): Add stdint.
16316
16317 2011-01-04  Eric Blake  <eblake@redhat.com>
16318
16319         doc: regenerate INSTALL
16320         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16321         @firstparagraphindent support, now that autoconf dropped it.
16322         (INSTALL_PRELUDE): Reinstate old macro.
16323         * doc/install.texi: Resync from autoconf.
16324         * doc/INSTALL: Reflect recent autoconf update.
16325         * doc/INSTALL.ISO: Likewise.
16326         * doc/INSTALL.UTF-8: Likewise.
16327         Reported by Karl Berry.
16328
16329 2011-01-04  Bruce Korb  <address@hidden>
16330
16331         git-version-gen: avoid a sub-shell
16332         * build-aux/git-version-gen: Redirect stderr in `...` via
16333         "exec 2>...", rather than via an added sub-shell.
16334
16335 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16336
16337         git-version-gen: use (...) rather than sh -c '...'
16338         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16339         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16340
16341 2011-01-03  Jim Meyering  <meyering@redhat.com>
16342
16343         git-version-gen: convert leading TABs to spaces
16344         * build-aux/git-version-gen: Expand leading TABs.
16345
16346         git-version-gen: handle failed "git rev-list"
16347         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16348         from git and proceeding as if it had succeeded but printed no SHA1
16349         checksums, suppress the diagnostic and handle the failure.
16350         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16351
16352         git-version-gen: include command name in one more diagnostic
16353         * build-aux/git-version-gen: When the required .tarball-version file
16354         was missing or unreadable, you might see the diagnostic from "cat",
16355         but no trace of the name of the invoking script.  Now, you still see
16356         the diagnostic from cat, but also get one from "git-version-gen: ".
16357         Inspired by a patch from Bruce Korb.
16358
16359         update-copyright: adjust test to match changed code
16360         * tests/test-update-copyright.sh: Change test's expected output
16361         to match new actual output.
16362
16363 2011-01-02  Bruno Haible  <bruno@clisp.org>
16364
16365         getlogin_r: Avoid test failure on HP-UX 11.
16366         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16367         ERANGE when the second argument is zero.
16368         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16369         portability problem.
16370
16371 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16372
16373         * build-aux/update-copyright: doc Simon's changes
16374
16375 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16376
16377         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16378         environment variable.
16379
16380 2011-01-02  Bruno Haible  <bruno@clisp.org>
16381
16382         unigbrk: Avoid gcc warnings.
16383         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16384         unused variable.
16385         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16386         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16387         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16388         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16389         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16390         Change type of first argument to 'const char *'.
16391         (main): Remove unused variable.
16392         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16393         type of first argument to 'const char *'.
16394         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16395         Likewise.
16396         (main): Change type of variable 's'.
16397         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16398         to 'int'.
16399
16400 2011-01-02  Bruno Haible  <bruno@clisp.org>
16401
16402         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16403         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16404         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16405         bug.
16406         * lib/pwrite.c: Undo 2010-12-31 patch.
16407         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16408
16409 2011-01-02  Bruno Haible  <bruno@clisp.org>
16410
16411         pread: Fix test whether it works.
16412         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16413
16414 2011-01-02  Bruno Haible  <bruno@clisp.org>
16415
16416         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16417         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16418         ends in "6". Don't require a specific month name. Try also the locale
16419         names found on HP-UX 11 and Solaris 7.
16420
16421 2011-01-02  Bruno Haible  <bruno@clisp.org>
16422
16423         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16424         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16425         C linkage.
16426         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16427
16428 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16429
16430         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16431         for consistency, since the "cluster" term is not used elsewhere.
16432         * lib/unigbrk.in.h: Update name.
16433         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16434         * lib/unigbrk/u16-grapheme-next.c: Update name.
16435         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16436         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16437         * lib/unigbrk/u32-grapheme-next.c: Update name.
16438         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16439         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16440         * lib/unigbrk/u8-grapheme-next.c: Update name.
16441         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16442         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16443         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16444         Suggested by Bruno Haible.
16445
16446 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16447
16448         Remove module 'u8-grapheme-len' as too redundant with
16449         'u8-grapheme-next'.
16450         * modules/unigbrk/u8-grapheme-len: Delete file.
16451         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16452         * lib/unigbrk.in.h: Remove prototype for deleted function.
16453         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16454         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16455
16456         Remove module 'u16-grapheme-len' as too redundant with
16457         'u16-grapheme-next'.
16458         * modules/unigbrk/u16-grapheme-len: Delete file.
16459         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16460         * lib/unigbrk.in.h: Remove prototype for deleted function.
16461         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16462         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16463
16464         Remove module 'u32-grapheme-len' as too redundant with
16465         'u32-grapheme-next'.
16466         * modules/unigbrk/u32-grapheme-len: Delete file.
16467         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16468         * lib/unigbrk.in.h: Remove prototype for deleted function.
16469         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16470         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16471
16472         Suggested by Bruno Haible.
16473
16474 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16475
16476         * unigbrk.in.h: Fix typo: "ben" => "been".
16477         Reported by Bruno Haible.
16478
16479 2011-01-01  Jim Meyering  <meyering@redhat.com>
16480
16481         maint: update almost all copyright ranges to include 2011
16482         Run the new "make update-copyright" rule.
16483
16484 2011-01-01  Jim Meyering  <meyering@redhat.com>
16485
16486         maint: update-copyright: exempt doc/INSTALL*
16487         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16488         since they are generated.  Suggested by Bruno Haible.
16489
16490 2011-01-01  Jim Meyering  <meyering@redhat.com>
16491
16492         maint: refine the update-copyright rule
16493         * Makefile (update-copyright): Also exclude any file that includes
16494         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16495         code that merely generates the comment.
16496
16497 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16498
16499         New module 'u8-grapheme-len'.
16500         * modules/unigbrk/u8-grapheme-len: New file.
16501         * modules/unigbrk/u8-grapheme-len-tests: New file.
16502         * lib/unigbrk.in.h: Add prototype for new function.
16503         * lib/unigbrk/u8-grapheme-len.c: New file.
16504         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16505
16506         New module 'u16-grapheme-len'.
16507         * modules/unigbrk/u16-grapheme-len: New file.
16508         * modules/unigbrk/u16-grapheme-len-tests: New file.
16509         * lib/unigbrk.in.h: Add prototype for new function.
16510         * lib/unigbrk/u16-grapheme-len.c: New file.
16511         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16512
16513         New module 'u32-grapheme-len'.
16514         * modules/unigbrk/u32-grapheme-len: New file.
16515         * modules/unigbrk/u32-grapheme-len-tests: New file.
16516         * lib/unigbrk.in.h: Add prototype for new function.
16517         * lib/unigbrk/u32-grapheme-len.c: New file.
16518         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16519
16520         New module 'u8-grapheme-next'.
16521         * modules/unigbrk/u8-grapheme-next: New file.
16522         * modules/unigbrk/u8-grapheme-next-tests: New file.
16523         * lib/unigbrk.in.h: Add prototype for new function.
16524         * lib/unigbrk/u8-grapheme-next.c: New file.
16525         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16526
16527         New module 'u16-grapheme-next'.
16528         * modules/unigbrk/u16-grapheme-next: New file.
16529         * modules/unigbrk/u16-grapheme-next-tests: New file.
16530         * lib/unigbrk.in.h: Add prototype for new function.
16531         * lib/unigbrk/u16-grapheme-next.c: New file.
16532         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16533
16534         New module 'u32-grapheme-next'.
16535         * modules/unigbrk/u32-grapheme-next: New file.
16536         * modules/unigbrk/u32-grapheme-next-tests: New file.
16537         * lib/unigbrk.in.h: Add prototype for new function.
16538         * lib/unigbrk/u32-grapheme-next.c: New file.
16539         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16540
16541         New module 'u8-grapheme-prev'.
16542         * modules/unigbrk/u8-grapheme-prev: New file.
16543         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16544         * lib/unigbrk.in.h: Add prototype for new function.
16545         * lib/unigbrk/u8-grapheme-prev.c: New file.
16546         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16547
16548         New module 'u16-grapheme-prev'.
16549         * modules/unigbrk/u16-grapheme-prev: New file.
16550         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16551         * lib/unigbrk.in.h: Add prototype for new function.
16552         * lib/unigbrk/u16-grapheme-prev.c: New file.
16553         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16554
16555         New module 'u32-grapheme-prev'.
16556         * modules/unigbrk/u32-grapheme-prev: New file.
16557         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16558         * lib/unigbrk.in.h: Add prototype for new function.
16559         * lib/unigbrk/u32-grapheme-prev.c: New file.
16560         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16561
16562         New module 'u8-grapheme-breaks'.
16563         * modules/unigbrk/u8-grapheme-breaks: New file.
16564         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16565         * lib/unigbrk.in.h: Add prototype for new function.
16566         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16567         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16568
16569         New module 'u16-grapheme-breaks'.
16570         * modules/unigbrk/u16-grapheme-breaks: New file.
16571         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16572         * lib/unigbrk.in.h: Add prototype for new function.
16573         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16574         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16575
16576         New module 'u32-grapheme-breaks'.
16577         * modules/unigbrk/u32-grapheme-breaks: New file.
16578         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16579         * lib/unigbrk.in.h: Add prototype for new function.
16580         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16581         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16582
16583         New module 'ulc-grapheme-breaks'.
16584         * modules/unigbrk/ulc-grapheme-breaks: New file.
16585         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16586         * m4/locale-ar.m4: New file.
16587         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16588         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16589         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16590
16591 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16592
16593         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16594         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16595         modified how this file was generated before I initially submitted
16596         the module, but failed to regenerate it.  This meant that several
16597         of the level2 entries were wrong.
16598         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16599         Remove the division-by-2 that is folded into the table now that
16600         gbrkprop.h has been regenerated properly.  Now -1 entries are
16601         handled correctly.
16602
16603         New module 'unigbrk/uc-gbrk-prop-tests'.
16604         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16605         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16606         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16607         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16608
16609 2011-01-01  Bruno Haible  <bruno@clisp.org>
16610
16611         Avoid use of hexadecimal escapes.
16612         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16613         instead of hexadecimal escapes.
16614
16615 2011-01-01  Jim Meyering  <meyering@redhat.com>
16616
16617         maint: new rule to update copyright year ranges
16618         * Makefile (update-copyright): New rule.
16619
16620         maint: indent with TABs in Makefile
16621         * Makefile: Expand leading sequences of spaces to TABs
16622
16623         version-etc: update the copyright year it reports
16624         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16625
16626 2010-12-31  Bruno Haible  <bruno@clisp.org>
16627
16628         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16629         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16630         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16631         zero.
16632
16633 2010-12-31  Bruno Haible  <bruno@clisp.org>
16634
16635         pwrite: Work around HP-UX 11.11 bug.
16636         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16637         works and set REPLACE_PWRITE if not.
16638         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16639         function.
16640         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16641
16642 2010-12-31  Bruno Haible  <bruno@clisp.org>
16643
16644         pread: Work around HP-UX 11 bugs.
16645         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16646         and set REPLACE_PREAD if not.
16647         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16648
16649 2010-12-31  Eric Blake  <eblake@redhat.com>
16650
16651         nl_langinfo: fix YESEXPR on Irix 6.5
16652         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16653         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16654         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16655         it.
16656
16657 2010-12-31  Bruno Haible  <bruno@clisp.org>
16658
16659         iconv: Document HP-UX 11 bug.
16660         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16661
16662 2010-12-31  Bruno Haible  <bruno@clisp.org>
16663
16664         ldexpl: Fix link error on HP-UX 11.
16665         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16666         LDEXPL_LIBM, using $ISNANL_LIBM.
16667
16668 2010-12-31  Eric Blake  <eblake@redhat.com>
16669
16670         ftello: avoid compilation failure with SunStudio c89
16671         * lib/ftello.c (ftello): Use lseek, not llseek.
16672
16673         tests: avoid failing coreutils tests on cygwin
16674         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16675         (create_exe_shims_): Return 0 when skipping.
16676
16677 2010-12-31  Bruno Haible  <bruno@clisp.org>
16678
16679         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16680         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16681
16682 2010-12-31  Bruno Haible  <bruno@clisp.org>
16683
16684         waitpid: Fix link error in C++ mode.
16685         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16686
16687 2010-12-31  Bruno Haible  <bruno@clisp.org>
16688
16689         isnan: Use GCC built-ins when possible.
16690         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16691         __builtin_isnan.
16692         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16693         (isnan): Define using GCC built-ins for GCC >= 4.0.
16694
16695 2010-12-31  Bruno Haible  <bruno@clisp.org>
16696
16697         isnand: Fix mistake.
16698         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16699         __builtin_isnand.
16700
16701 2010-12-31  Bruno Haible  <bruno@clisp.org>
16702
16703         open: Avoid C++ error on HP-UX 11.
16704         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16705
16706 2010-12-31  Bruno Haible  <bruno@clisp.org>
16707
16708         time_r: Add missing declarations on HP-UX 11.
16709         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16710         instead of HAVE_LOCALTIME_R.
16711         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16712         HAVE_LOCALTIME_R always.
16713         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16714         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16715         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16716         HAVE_LOCALTIME_R.
16717         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16718         * doc/posix-functions/localtime_r.texi: Likewise.
16719
16720 2010-12-29  Eric Blake  <eblake@redhat.com>
16721
16722         mountlist: tweak previous commit
16723         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16724         Reported by Paul Eggert.
16725
16726         mountlist: fix local drive detection on cygwin
16727         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16728         that works for cygwin.
16729
16730 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16731
16732         ftoastr, snprintf: ftoastr + snprintf module
16733         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16734         since the snprintf module now should be good enough here.
16735         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16736         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16737         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16738         GNULIB_SNPRINTF only for the test directory, and the latter
16739         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16740         seems to suffice by itself.
16741
16742 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16743
16744         alloca: one step towards thread-safety
16745         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16746         need for a static variable.  All callers changed.  This does not
16747         make the alloca replacement thread-safe, but it's one step.
16748
16749         tests: minor indenting change
16750         * tests/init.sh: Sync from coreutils housekeeping patch
16751         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16752         to keep lines within 80 columns.
16753
16754 2010-12-28  Jim Meyering  <meyering@redhat.com>
16755
16756         regex: don't infloop on persistent failing calloc
16757         * lib/regexec.c (build_trtable): Return failure indication upon
16758         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16759         In glibc, this was fixed for version 2.13:
16760         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16761
16762 2010-12-28  Bruno Haible  <bruno@clisp.org>
16763             Paul Eggert <eggert@cs.ucla.edu>
16764
16765         linkat: Make implementation robust against system behaviour variations.
16766         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16767         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16768         way, and to -2 if it needs a generic runtime test.
16769         * lib/linkat.c (solaris_optimized_link_immediate,
16770         solaris_optimized_link_follow): New functions.
16771         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16772         (check_same_link): Use it.
16773
16774 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16775
16776         New module 'unigbrk/base'.
16777         * modules/unigbrk/base: New file.
16778         * lib/unigbrk.in.h: New file.
16779
16780         New module 'unigbrk/uc-gbrk-prop'.
16781         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16782         * modules/unigbrk/uc-gbrk-prop: New file.
16783         * lib/unigbrk/gbrkprop.h: New file.
16784         * lib/unigbrk/uc-gbrk-prop.c: New file.
16785
16786         New module 'unigbrk/uc-is-grapheme-break'.
16787         * modules/unigbrk/uc-is-grapheme-break: New file.
16788         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16789         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16790         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16791         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16792         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16793
16794         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16795
16796 2010-12-27  Bruno Haible  <bruno@clisp.org>
16797
16798         linkat test: Avoid failure on Solaris 11 2010-11.
16799         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16800
16801 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16802
16803         utimens: work around glibc rounding bug on more platforms
16804         * lib/utimens.c (fdutimens): Work around rounding bug even if
16805         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16806         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16807
16808 2010-12-27  Bruno Haible  <bruno@clisp.org>
16809
16810         select tests: Improve comments.
16811         * tests/test-select.c (do_select): Add comments.
16812
16813 2010-12-27  Bruno Haible  <bruno@clisp.org>
16814
16815         select tests: Safer way of handling timeout.
16816         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16817         at every invocation.
16818
16819 2010-12-27  Bruno Haible  <bruno@clisp.org>
16820
16821         select tests: Use 'bool' where appropriate.
16822         * tests/test-select.c (connect_to_socket): Change argument type to
16823         'bool'.
16824
16825 2010-12-27  Bruno Haible  <bruno@clisp.org>
16826
16827         select tests: Use existing modules.
16828         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16829         (configure.ac): Don't test for unistd.h.
16830         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16831         declared in <unistd.h>.
16832
16833 2010-12-27  Bruno Haible  <bruno@clisp.org>
16834
16835         mbrtowc: Work around a Solaris 7 bug.
16836         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16837         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16838         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16839         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16840         MBRTOWC_NULL_ARG1_BUG.
16841         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16842         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16843         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16844         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16845
16846 2010-12-27  Jim Meyering  <meyering@redhat.com>
16847
16848         read-file.c: tweak syntax
16849         * lib/read-file.c (fread_file): Remove space after "*" in function
16850         definitions.
16851
16852 2010-12-27  Bruno Haible  <bruno@clisp.org>
16853
16854         times test: Avoid gcc warnings on OSF/1.
16855         * tests/test-times.c (main): Cast printf arguments from clock_t to
16856         'long int'.
16857
16858 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16859
16860         utimens: work around glibc rounding bug on older Linux kernels
16861         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16862         on Linux with a glibc whose utimes might not work, then work
16863         around a longstanding glibc bug involving rounding rather than
16864         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16866
16867 2010-12-26  Bruno Haible  <bruno@clisp.org>
16868
16869         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16870         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16871         _GL_CXXALIAS_SYS.
16872         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16873
16874 2010-12-26  Bruno Haible  <bruno@clisp.org>
16875
16876         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16877         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16878         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16879         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16880         looking for the declaration.
16881         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16882         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16883         problem.
16884         * doc/posix-functions/inet_pton.texi: Likewise.
16885
16886 2010-12-26  Bruno Haible  <bruno@clisp.org>
16887
16888         arpa_inet: Use the common idioms with C++ support.
16889         * lib/arpa_inet.in.h: Include c++defs.h.
16890         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16891         support.
16892         * modules/arpa_inet (Depends-on): Add c++defs.
16893         (Makefile.am): Substitute the contents of c++defs.h.
16894         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16895         * modules/arpa_inet-c++-tests: New file.
16896         * tests/test-arpa_inet-c++.cc: New file.
16897
16898 2010-12-25  Bruno Haible  <bruno@clisp.org>
16899
16900         Fix more C++ link errors on Solaris 8.
16901         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16902         $(LIB_EACCESS).
16903         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16904         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16905         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16906         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16907         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16908
16909 2010-12-25  Bruno Haible  <bruno@clisp.org>
16910
16911         printf-posix: Fix link error when a non-GCC compiler is used.
16912         * lib/stdio.in.h (printf): When not using GCC, override printf
16913         correctly.
16914         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16915
16916 2010-12-25  Bruno Haible  <bruno@clisp.org>
16917
16918         strerror_r-posix: Update doc.
16919         * doc/posix-functions/strerror_r.texi: Update doc about the return
16920         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16921
16922 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16923
16924         utimens: simplify the logic of the previous change
16925         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16926         This should not affect whether the test succeeds or fails.
16927
16928         utimens: configure better on hosts with NFS clock skew
16929         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16930         uses the clock of the local host.  It might use the clock of the
16931         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16933
16934 2010-12-25  Bruno Haible  <bruno@clisp.org>
16935
16936         ptsname test: Avoid failure on Solaris.
16937         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16938         open a pseudo-terminal; don't use BSD-style ptys.
16939         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16940
16941 2010-12-25  Bruno Haible  <bruno@clisp.org>
16942
16943         ptsname: Avoid ERANGE failure on some systems.
16944         * lib/ptsname.c (buffer): Increase size.
16945
16946 2010-12-25  Bruno Haible  <bruno@clisp.org>
16947
16948         rename, renameat: Avoid test failures at NFS mounted locations.
16949         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16950         so that subsequent mkdir calls succeed.
16951
16952 2010-12-25  Bruno Haible  <bruno@clisp.org>
16953
16954         iswblank: Fix C++ link error on Solaris 8.
16955         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16956         _GL_FUNCDECL_SYS.
16957
16958 2010-12-25  Bruno Haible  <bruno@clisp.org>
16959
16960         unistd: Fix C++ link error on Solaris 8.
16961         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16962
16963 2010-12-25  Bruno Haible  <bruno@clisp.org>
16964
16965         readlink doc: Mention an old glibc bug.
16966         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16967
16968 2010-12-25  Bruno Haible  <bruno@clisp.org>
16969
16970         fcntl-h: Fix for use of C++ on glibc systems.
16971         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16972         also on glibc systems in C++ mode.
16973         Reported by Gary V. Vaughan <gary@gnu.org>.
16974
16975 2010-12-25  Bruno Haible  <bruno@clisp.org>
16976
16977         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16978         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16979
16980 2010-12-25  Bruno Haible  <bruno@clisp.org>
16981
16982         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16983         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16984         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16985         test whether truncl works according to ISO C 99 with IEC 60559.
16986         * m4/truncl-ieee.m4: New file.
16987         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16988         m4/signbit.m4.
16989         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16990
16991 2010-12-25  Bruno Haible  <bruno@clisp.org>
16992
16993         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16994         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16995         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16996         test whether ceill works according to ISO C 99 with IEC 60559.
16997         * m4/ceill-ieee.m4: New file.
16998         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16999         m4/signbit.m4.
17000         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17001
17002 2010-12-25  Bruno Haible  <bruno@clisp.org>
17003
17004         Ensure all prerequisites of <wchar.h> are included.
17005         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17006         before <wchar.h>.
17007         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17008         gl_MBRLEN_NUL_RETVAL): Likewise.
17009         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17010         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17011         AC_FUNC_MBRTOWC): Likewise.
17012         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17013         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17014         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17015         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17016         Likewise.
17017         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17018         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17019         (gl_WCHAR_H): Improve comments.
17020         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17021
17022 2010-12-25  Bruno Haible  <bruno@clisp.org>
17023
17024         strtok_r: Fix C syntax error in autoconf macro.
17025         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17026         characters in test program.
17027
17028 2010-12-24  Bruno Haible  <bruno@clisp.org>
17029
17030         ceil, trunc, round: Fix gcc warnings.
17031         * lib/ceil.c (MIN): Undefine before redefining.
17032         * lib/trunc.c (MIN): Likewise.
17033         * lib/round.c (MIN): Likewise.
17034         Include <math.h> first.
17035
17036 2010-12-24  Bruno Haible  <bruno@clisp.org>
17037
17038         select tests: Avoid failures on OSF/1 5.1.
17039         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17040         failure of closing the last socket; it may fail with ECONNRESET.
17041
17042 2010-12-24  Eric Blake  <eblake@redhat.com>
17043
17044         stdint: avoid HP-UX 10.20 preprocessor bug
17045         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17046         than #if.
17047         * tests/test-floor2.c (main): Likewise.
17048         Reported by Peter O'Gorman.
17049
17050         pipe: make obsoletion transition easier
17051         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17052         * modules/pipe (Files): Include revived file.
17053         (Include): Drop reference, to mirror getdate's behavior.
17054
17055 2010-12-24  Bruno Haible  <bruno@clisp.org>
17056
17057         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17058         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17059         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17060         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17061
17062 2010-12-24  Bruno Haible  <bruno@clisp.org>
17063
17064         gethostname: Ensure declaration on NonStop Kernel.
17065         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17066         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17067
17068 2010-12-24  Bruno Haible  <bruno@clisp.org>
17069
17070         sys_select: Ensure all necessary types on NonStop Kernel.
17071         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17072         include <sys/time.h>.
17073         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17074         NonStop Kernel.
17075         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17076
17077 2010-12-24  Bruno Haible  <bruno@clisp.org>
17078
17079         sys_select: Remove unneeded include.
17080         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17081         have <sys/select.h>.
17082
17083 2010-12-24  Bruno Haible  <bruno@clisp.org>
17084
17085         gethostname: Provide a fallback for HOST_NAME_MAX.
17086         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17087         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17088         instead.
17089         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17090
17091 2010-12-24  Bruno Haible  <bruno@clisp.org>
17092
17093         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17094         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17095         (SA_RESTART): Likewise.
17096         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17097
17098 2010-12-24  Bruno Haible  <bruno@clisp.org>
17099
17100         signal: Define NSIG.
17101         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17102         * tests/test-signal.c (nsig): New variable.
17103         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17104
17105 2010-12-24  Bruno Haible  <bruno@clisp.org>
17106
17107         rename, renameat: Avoid test failures on OSF/1 5.1.
17108         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17109         alternative error codes.
17110         * tests/test-renameat.c (main): Likewise.
17111
17112 2010-12-24  Bruno Haible  <bruno@clisp.org>
17113
17114         *printf: Detect large precisions bug on Solaris 10/SPARC.
17115         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17116         by Paul Eggert.
17117         * tests/test-snprintf-posix.h (test_function): Add this test code here
17118         too.
17119         * tests/test-sprintf-posix.h (test_function): Likewise.
17120         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17121         * tests/test-vasprintf-posix.c (test_function): Likewise.
17122         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17123         around by gnulib.
17124         * doc/posix-functions/printf.texi: Likewise.
17125         * doc/posix-functions/snprintf.texi: Likewise.
17126         * doc/posix-functions/sprintf.texi: Likewise.
17127         * doc/posix-functions/vfprintf.texi: Likewise.
17128         * doc/posix-functions/vprintf.texi: Likewise.
17129         * doc/posix-functions/vsnprintf.texi: Likewise.
17130         * doc/posix-functions/vsprintf.texi: Likewise.
17131         * doc/posix-functions/dprintf.texi: Undo last commit.
17132         * doc/posix-functions/vdprintf.texi: Likewise.
17133
17134 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17135
17136         tests: port test-fdutimensat.c to Solaris 8
17137         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17138         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17139         On Solaris 8, it fails with errno == ENOSYS, because there is no
17140         futimens (so it can't use the fd), and there is no lutimens (so it
17141         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17142
17143         vsnprintf: make more consistent with snprintf; doc fixes
17144
17145         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17146         the byte count return problem was promoted from the snprintf-posix
17147         to the snprintf module.
17148         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17149         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17150         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17151         * tests/test-snprintf.c (main): Check the byte count returned.
17152         * tests/test-vsnprintf.c (main): Likewise.
17153
17154 2010-12-23  Eric Blake  <eblake@redhat.com>
17155
17156         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17157         * modules/sigpipe (License): Relax license.
17158
17159 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17160
17161         doc: document Solaris printf bug with large float precisions
17162         * doc/posix-functions/dprintf.texi (dprintf):
17163         * doc/posix-functions/fprintf.texi (fprintf):
17164         * doc/posix-functions/printf.texi (printf):
17165         * doc/posix-functions/snprintf.texi (snprintf):
17166         * doc/posix-functions/sprintf.texi (sprintf):
17167         * doc/posix-functions/vdprintf.texi (vdprintf):
17168         * doc/posix-functions/vfprintf.texi (vfprintf):
17169         * doc/posix-functions/vprintf.texi (vprintf):
17170         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17171         * doc/posix-functions/vsprintf.texi (vsprintf):
17172         Mention that these functions mishandle large floating point
17173         precisions on Solaris 10.  The same bug is also present in Solaris
17174         8, and I assume earlier.  This causes "cd gnulib-tests; make
17175         check" to fail on Solaris 8 (and I assume, later) when building
17176         the latest coreutils, in test-vasprintf-posix's call to
17177         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17178         the wide flavors (e.g., wprintf) so this patch just updates the
17179         documentation for the narrow ones.
17180
17181         test-posixtm.c: add two tests
17182         * tests/test-posixtm.c: Add two tests, to highlight the
17183         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17184         around this bug; this is merely to document it.
17185
17186 2010-12-22  Bruno Haible  <bruno@clisp.org>
17187
17188         getlogin_r: Work around portability problem on OSF/1.
17189         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17190         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17191         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17192         test for a truncated result.
17193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17194         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17195         * modules/getlogin_r (Depends-on): Add memchr.
17196         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17197
17198 2010-12-22  Bruno Haible  <bruno@clisp.org>
17199
17200         ptsname: Avoid test failure on OSF/1 5.1.
17201         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17202         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17203         (same_slave): New function.
17204         (main): Use it to compare ptsname's result with the expected file name.
17205
17206 2010-12-22  Bruno Haible  <bruno@clisp.org>
17207
17208         Port extended stdio modules to HP NonStop Kernel.
17209         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17210         macros.
17211         * lib/fbufmode.c: Update comments.
17212         * lib/fflush.c: Likewise.
17213         * lib/fpurge.c: Likewise.
17214         * lib/freadable.c: Likewise.
17215         * lib/freadahead.c: Likewise.
17216         * lib/freading.c: Likewise.
17217         * lib/freadptr.c: Likewise.
17218         * lib/freadseek.c: Likewise.
17219         * lib/fseeko.c: Likewise.
17220         * lib/fseterr.c: Likewise.
17221         * lib/fwritable.c: Likewise.
17222         * lib/fwriting.c: Likewise.
17223         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17224
17225 2010-12-22  Bruno Haible  <bruno@clisp.org>
17226
17227         ttyname_r: Work around bug on OSF/1 5.1.
17228         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17229         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17230         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17231         present.
17232         * lib/ttyname_r.c (ttyname_r): Update comments.
17233
17234 2010-12-22  Bruno Haible  <bruno@clisp.org>
17235
17236         round: Implement result sign according to IEEE 754.
17237         * lib/round.c (MIN, MINUS_ZERO): New macros.
17238         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17239         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17240         * tests/test-round-ieee.c (main): Likewise.
17241         * tests/test-roundl-ieee.c (main): Likewise.
17242
17243         trunc: Implement result sign according to IEEE 754.
17244         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17245         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17246         * tests/test-trunc2.c: Include minus-zero.h.
17247         (MINUS_ZERO): New macro.
17248         (trunc_reference): Keep in sync with lib/trunc.c.
17249         * tests/test-truncf2.c: Include minus-zero.h.
17250         (MINUS_ZERO): New macro.
17251         (truncf_reference): Keep in sync with lib/trunc.c.
17252         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17253         * tests/test-trunc-ieee.c (main): Likewise.
17254         * tests/test-truncl-ieee.c (main): Likewise.
17255
17256         ceil: Implement result sign according to IEEE 754.
17257         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17258         (FUNC): Return -0.0 for -1 < x < 0.
17259         * tests/test-ceil2.c: Include minus-zero.h.
17260         (MINUS_ZERO): New macro.
17261         (ceil_reference): Keep in sync with lib/ceil.c.
17262         * tests/test-ceilf2.c: Include minus-zero.h.
17263         (MINUS_ZERO): New macro.
17264         (ceilf_reference): Keep in sync with lib/ceil.c.
17265         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17266         * tests/test-ceil-ieee.c (main): Likewise.
17267         * tests/test-ceill-ieee.c (main): Likewise.
17268
17269         floor: Implement result sign according to IEEE 754.
17270         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17271         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17272         * tests/test-floorf2.c (floorf_reference): Likewise.
17273         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17274         * tests/test-floor-ieee.c (main): Likewise.
17275         * tests/test-floorl-ieee.c (main): Likewise.
17276
17277 2010-12-22  Bruno Haible  <bruno@clisp.org>
17278
17279         getaddrinfo: Update doc.
17280         * doc/posix-functions/gai_strerror.texi: Return type is also different
17281         on AIX and HP-UX.
17282
17283 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17284
17285         getaddrinfo, inet_ntop: Update doc for Solaris.
17286         * doc/posix-functions/gai_strerror.texi: Return type is also an
17287         issue on Solaris 9 and earlier.
17288         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17289         on Solaris 10 and earlier.
17290
17291 2010-12-21  Bruno Haible  <bruno@clisp.org>
17292
17293         New module 'roundl-ieee'.
17294         * modules/roundl-ieee: New file.
17295         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17296         test whether roundl works according to ISO C 99 with IEC 60559.
17297         * m4/roundl-ieee.m4: New file.
17298         * modules/roundl-ieee-tests: New file.
17299         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17300         * tests/test-roundl.c (main): Remove signbit tests.
17301         * modules/roundl-tests (Depends-on): Remove signbit.
17302         * doc/posix-functions/roundl.texi: Mention the new module.
17303
17304 2010-12-21  Bruno Haible  <bruno@clisp.org>
17305
17306         New module 'truncl-ieee'.
17307         * modules/truncl-ieee: New file.
17308         * modules/truncl-ieee-tests: New file.
17309         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17310         * tests/test-truncl.c (main): Remove signbit tests.
17311         * modules/truncl-tests (Depends-on): Remove signbit.
17312         * doc/posix-functions/truncl.texi: Mention the new module.
17313
17314 2010-12-21  Bruno Haible  <bruno@clisp.org>
17315
17316         New module 'ceill-ieee'.
17317         * modules/ceill-ieee: New file.
17318         * modules/ceill-ieee-tests: New file.
17319         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17320         * tests/test-ceill.c (main): Remove signbit tests.
17321         * modules/ceill-tests (Depends-on): Remove signbit.
17322         * doc/posix-functions/ceill.texi: Mention the new module.
17323
17324 2010-12-21  Bruno Haible  <bruno@clisp.org>
17325
17326         New module 'floorl-ieee'.
17327         * modules/floorl-ieee: New file.
17328         * modules/floorl-ieee-tests: New file.
17329         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17330         * tests/test-floorl.c (main): Remove signbit tests.
17331         * modules/floorl-tests (Depends-on): Remove signbit.
17332         * doc/posix-functions/floorl.texi: Mention the new module.
17333
17334 2010-12-21  Bruno Haible  <bruno@clisp.org>
17335
17336         New module 'round-ieee'.
17337         * modules/round-ieee: New file.
17338         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17339         whether round works according to ISO C 99 with IEC 60559.
17340         * m4/round-ieee.m4: New file.
17341         * modules/round-ieee-tests: New file.
17342         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17343         * tests/test-round1.c (main): Remove signbit tests.
17344         * modules/round-tests (Depends-on): Remove 'signbit'.
17345         * doc/posix-functions/round.texi: Mention the new module.
17346
17347 2010-12-21  Bruno Haible  <bruno@clisp.org>
17348
17349         New module 'trunc-ieee'.
17350         * modules/trunc-ieee: New file.
17351         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17352         whether trunc works according to ISO C 99 with IEC 60559.
17353         * m4/trunc-ieee.m4: New file.
17354         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17356         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17357         * modules/trunc-ieee-tests: New file.
17358         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17359         * tests/test-trunc1.c (main): Remove signbit tests.
17360         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17361         * doc/posix-functions/trunc.texi: Mention the new module.
17362
17363 2010-12-21  Bruno Haible  <bruno@clisp.org>
17364
17365         New module 'ceil-ieee'.
17366         * modules/ceil-ieee: New file.
17367         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17368         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17369         ISO C 99 with IEC 60559.
17370         * m4/ceil-ieee.m4: New file.
17371         * modules/ceil (Files): Add lib/ceil.c.
17372         (Depends-on): Add 'float'.
17373         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17374         * lib/math.in.h (ceil): New declaration.
17375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17376         REPLACE_CEIL.
17377         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17378         * modules/ceil-ieee-tests: New file.
17379         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17380         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17381         * doc/posix-functions/ceil.texi: Mention the new module.
17382
17383 2010-12-21  Bruno Haible  <bruno@clisp.org>
17384
17385         New module 'floor-ieee'.
17386         * modules/floor-ieee: New file.
17387         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17388         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17389         ISO C 99 with IEC 60559.
17390         * m4/floor-ieee.m4: New file.
17391         * modules/floor (Files): Add lib/floor.c.
17392         (Depends-on): Add 'float'.
17393         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17394         * lib/math.in.h (floor): New declaration.
17395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17396         REPLACE_FLOOR.
17397         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17398         * modules/floor-ieee-tests: New file.
17399         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17400         * tests/test-math-c++.cc: Check the signature of 'floor'.
17401         * doc/posix-functions/floor.texi: Mention the new module.
17402
17403 2010-12-21  Bruno Haible  <bruno@clisp.org>
17404
17405         New module 'roundf-ieee'.
17406         * modules/roundf-ieee: New file.
17407         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17408         test whether roundf works according to ISO C 99 with IEC 60559.
17409         * m4/roundf-ieee.m4: New file.
17410         * modules/roundf-ieee-tests: New file.
17411         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17412         * tests/test-roundf1.c (main): Remove signbit tests.
17413         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17414         * doc/posix-functions/roundf.texi: Mention the new module.
17415
17416 2010-12-21  Bruno Haible  <bruno@clisp.org>
17417
17418         New module 'truncf-ieee'.
17419         * modules/truncf-ieee: New file.
17420         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17421         test whether truncf works according to ISO C 99 with IEC 60559.
17422         * m4/truncf-ieee.m4: New file.
17423         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17425         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17426         * modules/truncf-ieee-tests: New file.
17427         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17428         * tests/test-truncf1.c (main): Remove signbit tests.
17429         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17430         * doc/posix-functions/truncf.texi: Mention the new module.
17431
17432 2010-12-21  Bruno Haible  <bruno@clisp.org>
17433
17434         New module 'ceilf-ieee'.
17435         * modules/ceilf-ieee: New file.
17436         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17437         test whether ceilf works according to ISO C 99 with IEC 60559.
17438         * m4/ceilf-ieee.m4: New file.
17439         * modules/ceilf-ieee-tests: New file.
17440         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17441         * tests/test-ceilf1.c (main): Remove signbit tests.
17442         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17443         * doc/posix-functions/ceilf.texi: Mention the new module.
17444
17445 2010-12-21  Bruno Haible  <bruno@clisp.org>
17446
17447         New module 'floorf-ieee'.
17448         * modules/floorf-ieee: New file.
17449         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17450         test whether floorf works according to ISO C 99 with IEC 60559.
17451         * m4/floorf-ieee.m4: New file.
17452         * modules/floorf-ieee-tests: New file.
17453         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17454         * tests/test-floorf1.c (main): Remove signbit tests.
17455         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17456         * doc/posix-functions/floorf.texi: Mention the new module.
17457
17458 2010-12-21  Bruno Haible  <bruno@clisp.org>
17459
17460         Support for minus zero in autoconf macros.
17461         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17462         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17463         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17464         * tests/minus-zero.h: Update comments.
17465
17466 2010-12-21  Bruno Haible  <bruno@clisp.org>
17467
17468         Tests for module 'ceil'.
17469         * modules/ceil-tests: New file.
17470         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17471         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17472
17473 2010-12-21  Bruno Haible  <bruno@clisp.org>
17474
17475         Tests for module 'floor'.
17476         * modules/floor-tests: New file.
17477         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17478         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17479
17480 2010-12-21  Bruno Haible  <bruno@clisp.org>
17481
17482         math: Fix indentation.
17483         * lib/math.in.h (floorf): Fix indentation.
17484
17485 2010-12-21  Bruno Haible  <bruno@clisp.org>
17486
17487         Fix cross-compilation guesses on Solaris.
17488         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17489         not match "solaris2.10".
17490         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17491         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17492         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17493
17494 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17495
17496         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17497         This fixes a problem observed with the latest coreutils snapshot
17498         that caused a test to fail on Solaris 8.  src/csplit.c's call
17499         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17500         earlier, instead of returning the number of bytes that would have
17501         been generated; this causes csplit to incorrectly report memory
17502         exhaustion.
17503         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17504         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17505         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17506         comments to match.
17507         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17508         Fix typo in matching older versions of Solaris: "solaris2.10"
17509         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17510         only for guessing while cross-compiling.
17511         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17512
17513 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17514
17515         ftoastr: fix comment again
17516         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17517         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17518         Also, simplify example a bit by using flags = 0.
17519
17520 2010-12-20  Bruno Haible  <bruno@clisp.org>
17521
17522         round*, trunc*: Update documentation regarding glibc.
17523         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17524         * doc/posix-functions/round.texi: Likewise.
17525         * doc/posix-functions/roundl.texi: Likewise.
17526         * doc/posix-functions/truncf.texi: Likewise.
17527         * doc/posix-functions/trunc.texi: Likewise.
17528         * doc/posix-functions/truncl.texi: Likewise.
17529
17530 2010-12-20  Bruno Haible  <bruno@clisp.org>
17531
17532         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17533         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17534         * doc/posix-functions/round.texi: Likewise.
17535         * doc/posix-functions/roundl.texi: Likewise.
17536
17537 2010-12-20  Bruno Haible  <bruno@clisp.org>
17538
17539         ttyname_r: Add missing declaration on HP-UX 11.
17540         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17541         HAVE_TTYNAME_R.
17542         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17543         declared. Set HAVE_TTYNAME_R always.
17544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17545         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17546         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17547         HAVE_TTYNAME_R.
17548         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17549
17550 2010-12-20  Bruno Haible  <bruno@clisp.org>
17551
17552         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17553         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17554         * doc/posix-functions/getlogin_r.texi: Likewise.
17555         * tests/test-getlogin.c: Include <errno.h>.
17556         (main): Avoid test failure on HP-UX 11.11.
17557         * tests/test-getlogin_r.c (main): Likewise.
17558
17559 2010-12-20  Bruno Haible  <bruno@clisp.org>
17560
17561         getlogin_r: Add missing declaration on HP-UX 11.
17562         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17563         declared also when it exists as a function.
17564         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17565
17566 2010-12-20  Bruno Haible  <bruno@clisp.org>
17567
17568         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17569         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17570         through wcrtomb.
17571
17572 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17573
17574         ftoastr: fix comment
17575         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17576         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17577
17578 2010-12-19  Bruno Haible  <bruno@clisp.org>
17579
17580         isnan: Ensure it is a macro.
17581         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17582         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17583         Solaris.
17584
17585 2010-12-19  Bruno Haible  <bruno@clisp.org>
17586
17587         ldexpl test: Fix link error on OSF/1 5.1.
17588         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17589
17590 2010-12-19  Bruno Haible  <bruno@clisp.org>
17591
17592         wctype: Make it work in C++ mode on OSF/1 5.1.
17593         * lib/wctype.in.h (iswblank): Declare but not define here.
17594         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17595         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17596         * modules/wctype (Files): Add lib/iswblank.c.
17597
17598 2010-12-19  Bruno Haible  <bruno@clisp.org>
17599
17600         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17601         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17602         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17603
17604 2010-12-19  Bruno Haible  <bruno@clisp.org>
17605
17606         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17607         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17608         _POSIX_PII_SOCKET.
17609         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17610         * doc/posix-functions/recvfrom.texi: Likewise.
17611         * doc/posix-functions/send.texi: Likewise.
17612         * doc/posix-functions/sendto.texi: Likewise.
17613
17614 2010-12-19  Bruno Haible  <bruno@clisp.org>
17615
17616         tcgetsid: Add missing declaration on OSF/1 5.1.
17617         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17618         HAVE_TCGETSID.
17619         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17620         Don't set HAVE_TCGETSID.
17621         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17622         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17623         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17624         HAVE_TCGETSID.
17625         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17626
17627 2010-12-19  Bruno Haible  <bruno@clisp.org>
17628
17629         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17630         * lib/stdio.in.h: During the include_next statement, let recursive
17631         includes of this file include only the system header file.
17632
17633 2010-12-19  Bruno Haible  <bruno@clisp.org>
17634
17635         iconv_open: Fix regression from 2010-12-04.
17636         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17637         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17638
17639 2010-12-19  Bruno Haible  <bruno@clisp.org>
17640
17641         stdbool test: Avoid a gcc warning.
17642         * tests/test-stdbool.c (main): Fail if e1 is false.
17643         Reported by Jim Meyering.
17644
17645 2010-12-19  Jim Meyering  <meyering@redhat.com>
17646
17647         setenv: restore to working order
17648         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17649         mistakenly removed.
17650         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17651         HAVE_SETENV.
17652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17653         HAVE_SETENV.
17654
17655 2010-12-19  Bruno Haible  <bruno@clisp.org>
17656
17657         Document some different function declarations on OSF/1 5.1.
17658         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17659         * doc/posix-functions/inet_ntop.texi: Likewise.
17660         * doc/posix-functions/gethostname.texi: Likewise.
17661         * lib/unistd.in.h (gethostname): Update comment.
17662
17663 2010-12-19  Bruno Haible  <bruno@clisp.org>
17664
17665         doc: Mention vasprintf-posix module.
17666         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17667         the 'vasprintf-posix' module.
17668         * doc/glibc-functions/vasprintf.texi: Likewise.
17669
17670 2010-12-19  Bruno Haible  <bruno@clisp.org>
17671
17672         unsetenv: Add missing declaration on OSF/1 5.1.
17673         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17674         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17675         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17677         not HAVE_UNSETENV.
17678         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17679         HAVE_UNSETENV.
17680         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17681
17682 2010-12-19  Bruno Haible  <bruno@clisp.org>
17683
17684         setenv: Add missing declaration on OSF/1 5.1.
17685         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17686         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17687         declared. Don't set HAVE_SETENV.
17688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17689         not HAVE_SETENV.
17690         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17691         HAVE_SETENV.
17692         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17693
17694 2010-12-19  Bruno Haible  <bruno@clisp.org>
17695
17696         nl_langinfo tests: Avoid gcc warning.
17697         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17698
17699 2010-12-19  Bruno Haible  <bruno@clisp.org>
17700
17701         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17702         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17703         _GL_CXXALIAS_SYS.
17704
17705 2010-12-19  Bruno Haible  <bruno@clisp.org>
17706
17707         stdbool: Relax test.
17708         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17709         address to 'bool' work in static initializer, for compilers other than
17710         GCC.
17711
17712 2010-12-19  Bruno Haible  <bruno@clisp.org>
17713
17714         ftello: Add missing declaration on OSF/1 5.1.
17715         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17716         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17718         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17719         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17720
17721 2010-12-19  Bruno Haible  <bruno@clisp.org>
17722
17723         fseeko: Add missing declaration on OSF/1 5.1.
17724         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17725         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17727         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17728         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17729
17730 2010-12-19  Bruno Haible  <bruno@clisp.org>
17731
17732         fchdir: Add missing declaration on OSF/1 5.1.
17733         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17736         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17737         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17738
17739 2010-12-19  Bruno Haible  <bruno@clisp.org>
17740
17741         relocatable-prog-wrapper: Separate from relocatable-prog.
17742         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17743         uninstall-relocwrapper rule here.
17744         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17745         Reported by Ian Beckwith <ianb@erislabs.net>.
17746
17747 2010-12-19  Bruno Haible  <bruno@clisp.org>
17748
17749         unistr/u8-mbsnlen: Add missing dependency.
17750         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17751         Reported by Ian Beckwith <ianb@erislabs.net>.
17752
17753 2010-12-19  Bruno Haible  <bruno@clisp.org>
17754
17755         iconv: Make it possible again to use this module without 'iconv-h'.
17756         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17757         if it is not defined.
17758         Reported by Ian Beckwith <ianb@erislabs.net>.
17759
17760 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17761
17762         acl: port to Solaris 8 when copying from tmpfs to ufs
17763         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17764         error number.  Problem observed on Solaris 8 with latest
17765         coreutils, with "mv A B", where A is on a tmpfs file system and B
17766         is on a ufs file system.  This caused coreutils' mv/part-symlink
17767         test to fail.
17768
17769         tests: set fail=0 at start
17770         * tests/init.sh (setup_): Move fail=0 initialization here ...
17771         (mktempd_): ... from here, so that tests can rely on fail being
17772         set to 0 initially.  This fixes a problem in coreutils; see:
17773         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17774
17775 2010-12-18  Bruno Haible  <bruno@clisp.org>
17776
17777         memmem-simple: Stylistic changes.
17778         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17779         Fix preprocessor directive indentation.
17780
17781 2010-12-15  Pádraig Brady <P@draigBrady.com>
17782
17783         memmem, memmem-simple: reorganize and expand empty needle check
17784         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17785         functional checks to memmem-simple so that one has a fully functional
17786         memmem by using just this module.
17787         Restrict the performance only check to the memmem module.
17788         Also expand the empty needle check to ensure the correct
17789         pointer is returned, not just a non NULL pointer.
17790         * doc/glibc-functions/memmem.texi: Rearrange the portability
17791         documentation to correlate with the rearranged checks.
17792         Clarify exactly how the memmem and memmem-simple modules
17793         relate to each other.
17794
17795 2010-12-15  Pádraig Brady <P@draigBrady.com>
17796             Bruno Haible  <bruno@clisp.org>
17797
17798         Improve cross-compilation guesses for uClibc.
17799         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17800         that uClibc does not have the glibc bug.
17801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17802         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17803
17804 2010-12-14  Eric Blake  <eblake@redhat.com>
17805
17806         configmake: provide fallbacks for oldest supported autotools
17807         * m4/configmake.m4: New file.
17808         * modules/configmake (Files): Ship it.
17809         (configure.ac): Use it to guarantee fallbacks.
17810
17811 2010-12-13  Pádraig Brady <P@draigBrady.com>
17812
17813         read-file: Improve handling of large files
17814         * lib/read-file.c (fread_file): Minimize realloc()s
17815         for regular files, and better manage sizes around SIZE_MAX.
17816
17817 2010-12-13  Eric Blake  <eblake@redhat.com>
17818
17819         cloexec, fcntl: relax license
17820         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17821         consent from all contributors.
17822         * modules/fcntl (License): Likewise.
17823
17824 2010-12-10  Bruno Haible  <bruno@clisp.org>
17825
17826         Tests for module 'pipe-posix'.
17827         * modules/pipe-posix-tests: New file.
17828         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17829
17830 2010-12-10  Bruno Haible  <bruno@clisp.org>
17831
17832         pipe-posix: Make it work in C++ mode.
17833         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17834         (pipe): Use common idiom, not a macro definition.
17835         * lib/pipe.c: New file.
17836         * m4/pipe.m4: New file.
17837         * modules/pipe-posix (Description): Enhance.
17838         (Files): Add lib/pipe.c, m4/pipe.m4.
17839         (configure.ac): Invoke gl_FUNC_PIPE.
17840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17841         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17842         * tests/test-unistd-c++.cc: Check the signature of pipe.
17843
17844 2010-12-10  Bruno Haible  <bruno@clisp.org>
17845
17846         Rename module 'pipe' to 'spawn-pipe'.
17847         * modules/spawn-pipe: New file, renamed from modules/pipe.
17848         (Files, configure.ac, Makefile.am): Update.
17849         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17850         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17851         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17852         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17853         "spawn-pipe.h" instead of "pipe.h".
17854         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17855         to gl_SPAWN_PIPE.
17856         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17857         (Files, Makefile.am): Update.
17858         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17859         Update.
17860         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17861         Include "spawn-pipe.h" instead of "pipe.h".
17862         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17863         * lib/javacomp.c: Likewise.
17864         * lib/javaversion.c: Likewise.
17865         * lib/pipe-filter-gi.c: Likewise.
17866         * lib/pipe-filter-ii.c: Likewise.
17867         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17868         * modules/javacomp (Depends-on): Likewise.
17869         * modules/javaversion (Depends-on): Likewise.
17870         * modules/pipe-filter-gi (Depends-on): Likewise.
17871         * modules/pipe-filter-ii (Depends-on): Likewise.
17872         * MODULES.html.sh (Executing programs): Update.
17873         * NEWS: Mention the change.
17874
17875 2010-12-10  Eric Blake  <eblake@redhat.com>
17876
17877         pipe-posix: new module
17878         * modules/pipe-posix: New file.
17879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17880         (gl_UNISTD_H): Check for declaration.
17881         * modules/unistd (Makefile.am): Substitute it.
17882         * lib/unistd.in.h (pipe): Provide it for mingw.
17883         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17884         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17885
17886 2010-12-07  Bruno Haible  <bruno@clisp.org>
17887
17888         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17889         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17890         u8_strcmp_gnu.
17891         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17892
17893 2010-12-06  Bruno Haible  <bruno@clisp.org>
17894
17895         Update internal documentation.
17896         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17897
17898 2010-12-04  Bruno Haible  <bruno@clisp.org>
17899
17900         Put more information about failed tests into the test return codes.
17901         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17902         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17903         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17905         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17906         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17907         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17908         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17909         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17912         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17913         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17914         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17915         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17916         returns a bit mask.
17917         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17918         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17919         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17920         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17921         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17922         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17923         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17924         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17925         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17926         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17927         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17928         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17929         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17931         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17932         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17933         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17934         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17935         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17936         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17937         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17938         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17939         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17940         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17941         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17942         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17943         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17944         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17945         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17946         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17947         gl_PRINTF_PRECISION): Likewise.
17948         * m4/regex.m4 (gl_REGEX): Likewise.
17949         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17950         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17951         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17952         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17953         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17956         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17957         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17958         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17959         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17960         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17961         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17962         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17963         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17964         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17965         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17966         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17967         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17969         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17970         enumerated value.
17971         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17972
17973 2010-12-04  Bruno Haible  <bruno@clisp.org>
17974
17975         Update for Solaris 11 2010-11.
17976         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17977         Express, released in November 2010.
17978
17979 2010-12-04  Bruno Haible  <bruno@clisp.org>
17980
17981         nproc: Relax license.
17982         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17983         and Paul Eggert.
17984         Requested by Ludovic Courtès <ludo@gnu.org>.
17985
17986 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17987
17988         utimecmp: fine-grained src to nearby coarse-grained dest
17989
17990         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17991         and the source is on a file system with higher-resolution time
17992         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17993         not work, and the time stamps are close together, the algorithm to
17994         determine the exact resolution from the read-back mtime was buggy:
17995         it had a "!=" where it should have had an "==".  This bug has been
17996         in the code ever since it was introduced to gnulib.
17997         Problem reported by Dan Jacobson in
17998         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17999
18000 2010-11-30  Bruno Haible  <bruno@clisp.org>
18001
18002         strerror_r-posix: Fix autoconf test.
18003         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18004
18005 2010-11-28  Bruno Haible  <bruno@clisp.org>
18006             Paul Eggert  <eggert@cs.ucla.edu>
18007
18008         Tests for module 'getdomainname'.
18009         * modules/getdomainname-tests: New file.
18010         * tests/test-getdomainname.c: New file, based on
18011         tests/test-gethostname.c.
18012
18013 2010-11-28  Bruno Haible  <bruno@clisp.org>
18014             Paul Eggert  <eggert@cs.ucla.edu>
18015
18016         getdomainname: Use the system function when possible.
18017         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18018         (getdomainname): Replace if needed. Provide the declaration if it is
18019         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18020         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18021         (getdomainname): When the system has getdomainname, call the system
18022         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18023         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18024         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18025         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18026         the function if its second argument is of type 'int' or if it is found
18027         in libnsl.
18028         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18029         <sys/systeminfo.h> and sysinfo().
18030         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18032         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18033         HAVE_GETDOMAINNAME.
18034         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18035         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18036         * doc/glibc-functions/getdomainname.texi: Document the problems with
18037         the getdomainname declaration.
18038
18039 2010-11-28  Bruno Haible  <bruno@clisp.org>
18040
18041         sys_socket: Ensure ss_family field on AIX.
18042         * lib/sys_socket.in.h (ss_family): New macro definition.
18043         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18044         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18045         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18046         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18047         * modules/sys_socket (Makefile.am): Substitute
18048         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18049         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18050
18051 2010-11-27  Bruno Haible  <bruno@clisp.org>
18052
18053         readline: Improve configure output.
18054         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18055         "checking for readline..." result understandable.
18056
18057 2010-11-27  Bruno Haible  <bruno@clisp.org>
18058
18059         *printf-posix: Detect a bug on Solaris 10/x86.
18060         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18061         for floating-point output.
18062         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18063         directive.
18064         * tests/test-snprintf-posix.h (test_function): Likewise.
18065         * tests/test-sprintf-posix.h (test_function): Likewise.
18066         * tests/test-vasprintf-posix.c (test_function): Likewise.
18067         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18068         * doc/posix-functions/printf.texi: Likewise.
18069         * doc/posix-functions/snprintf.texi: Likewise.
18070         * doc/posix-functions/sprintf.texi: Likewise.
18071         * doc/posix-functions/vfprintf.texi: Likewise.
18072         * doc/posix-functions/vprintf.texi: Likewise.
18073         * doc/posix-functions/vsnprintf.texi: Likewise.
18074         * doc/posix-functions/vsprintf.texi: Likewise.
18075         * doc/glibc-functions/obstack_printf.texi: Likewise.
18076         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18077
18078 2010-11-27  Bruno Haible  <bruno@clisp.org>
18079
18080         Fix link error when module libunistring-optional is in use.
18081         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18082         * modules/striconveha-tests (Makefile.am): Likewise.
18083
18084 2010-11-27  Bruno Haible  <bruno@clisp.org>
18085
18086         regex: Mention link dependencies.
18087         * modules/regex (Link): New section.
18088         * modules/rpmatch (Link): Likewise.
18089         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18090
18091 2010-11-27  Bruno Haible  <bruno@clisp.org>
18092
18093         ftoastr: Fix compilation error on Solaris.
18094         * lib/ftoastr.c: Include <config.h>.
18095
18096 2010-11-27  Bruno Haible  <bruno@clisp.org>
18097
18098         getloadavg: Update documentation.
18099         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18100
18101 2010-11-27  Bruno Haible  <bruno@clisp.org>
18102
18103         sys_socket: Fix test whether the functions are declared.
18104         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18105         not <sys/select.h>.
18106
18107 2010-11-27  Bruno Haible  <bruno@clisp.org>
18108
18109         getpass: Make sure to get system declaration on some platforms.
18110         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18111         gl_USE_SYSTEM_EXTENSIONS.
18112         * modules/getpass (Depends-on): Add extensions.
18113
18114 2010-11-26  Bruno Haible  <bruno@clisp.org>
18115
18116         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18117         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18118         'iconv' module is present.
18119         (ICONV_CONST): New macro.
18120         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18121         ICONV_CONST.
18122         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18123         set ICONV_CONST.
18124         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18125         here.
18126         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18127         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18128         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18129         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18130         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18131         present.
18132
18133 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18134
18135         ftoastr: comment fix
18136         * lib/ftoastr.c: "little" -> "little or no" in comment
18137
18138 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18139
18140         stdint: port to GCC 4.3 + OSX + Octave
18141         On this platform, stdint.h is buggy and defines int64_t to long
18142         long int.  The replacement defined it to long int, causing
18143         problems with C++ style name mangling.  Instead, trust the system
18144         definition if INT64_MAX is defined, and likewise for the unsigned
18145         variant.   Problem reported by Jarno Rajahalme in
18146         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18147         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18148         and don't mess with int64_t and INT64_MAX in this case.
18149         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18150
18151 2010-11-24  Bruno Haible  <bruno@clisp.org>
18152
18153         doc: Corrections regarding MacOS X 10.4 and 10.5.
18154         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18155         MacOS X.
18156         Reported by Simon Josefsson.
18157
18158 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18159
18160         Uninstall ".bin" files installed by relocwrapper.
18161         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18162         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18163         unless it is already there.
18164
18165 2010-11-21  Bruno Haible  <bruno@clisp.org>
18166
18167         Update for NetBSD 5.0.
18168         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18169         NetBSD; the test fails on NetBSD 5.0.
18170         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18171         about NetBSD.
18172
18173 2010-11-21  Bruno Haible  <bruno@clisp.org>
18174
18175         Update for HP-UX 11.23 and HP-UX 11.31.
18176         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18177         HP-UX.
18178
18179 2010-11-21  Bruno Haible  <bruno@clisp.org>
18180
18181         Update for MacOS X 10.5.
18182         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18183         MacOS X; the test fails on MacOS X 10.5.8.
18184         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18185         about MacOS X.
18186
18187 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18188
18189         bootstrap: add bootstrap_sync option.
18190         See discussion at
18191         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18192         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18193         * build-aux/bootstrap: Accept --bootstrap-sync to update
18194         bootstrap if it is not identical to the local gnulib's
18195         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18196         enable this by default.  Accept --no-bootstrap-sync to disable
18197         it.
18198
18199 2010-11-20  Bruno Haible  <bruno@clisp.org>
18200
18201         Ensure that <features.h> is included before __GLIBC__ is tested.
18202         * lib/printf-parse.h: Include <features.h>.
18203         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18204         Reported by Mike Frysinger <vapier@gentoo.org>.
18205
18206         Ensure that <features.h> is included before __GLIBC__ is tested.
18207         * lib/wchar.in.h: Include <features.h>.
18208         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18209         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18210         Reported by Mike Frysinger <vapier@gentoo.org>.
18211
18212         Ensure that <features.h> is included before __GLIBC__ is tested.
18213         * lib/arpa_inet.in.h: Include <features.h>.
18214         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18215         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18216         Reported by Mike Frysinger <vapier@gentoo.org>.
18217
18218         Ensure that <features.h> is included before __GLIBC__ is tested.
18219         * build-aux/link-warning.h: Include <features.h>.
18220         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18221         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18222         Reported by Mike Frysinger <vapier@gentoo.org>.
18223
18224         Ensure that <features.h> is included before __GLIBC__ is tested.
18225         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18226         Reported by Mike Frysinger <vapier@gentoo.org>.
18227
18228 2010-11-20  Bruno Haible  <bruno@clisp.org>
18229
18230         memmem: Fix autoconf test.
18231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18232
18233 2010-11-20  Bruno Haible  <bruno@clisp.org>
18234
18235         Port to uClibc.
18236         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18237         * lib/fcntl.in.h: Likewise.
18238         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18239         * lib/mbrtowc.c (mbrtowc): Likewise.
18240         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18241         * lib/strerror_r.c: Likewise.
18242         * lib/unistr/u8-strnlen.c: Likewise.
18243         * lib/vasnprintf.c (decimal_point_char): Likewise.
18244         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18245         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18246         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18247         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18248         * tests/test-sigaction.c (handler, main): Likewise.
18249         * lib/freading.h: Treat uClibc like a non-glibc platform.
18250         * lib/freading.c: Likewise.
18251         * lib/gettext.h: Likewise.
18252         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18253         Likewise.
18254         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18255         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18256         * lib/propername.c (proper_name_utf8): Likewise.
18257         * lib/spawn.in.h: Likewise.
18258         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18259         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18260         mem_cd_iconveh_internal): Likewise.
18261         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18262         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18263         strstr, strcasestr): Likewise.
18264         * lib/unicodeio.c (unicode_to_mb): Likewise.
18265         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18266         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18267         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18268         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18269         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18270         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18271         * lib/unistr/u8-stpncpy.c: Likewise.
18272         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18273         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18274         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18275         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18276         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18277         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18278         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18279         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18281         Likewise.
18282         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18283         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18284         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18285         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18286         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18287         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18288         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18289         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18290         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18291         * tests/test-striconveha.c (main): Likewise.
18292         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18293         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18294         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18295         * doc/posix-functions/getline.texi: Likewise.
18296         Reported by Mike Frysinger <vapier@gentoo.org>.
18297
18298 2010-11-20  Bruno Haible  <bruno@clisp.org>
18299
18300         nproc: Fix condition.
18301         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18302         HAVE_PTHREAD_AFFINITY_NP.
18303
18304 2010-11-20  Bruno Haible  <bruno@clisp.org>
18305
18306         Fix a comment.
18307         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18308
18309 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18310
18311         ftoastr: don't assume snprintf
18312         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18313         Implement a subset of snprintf here, by using sprintf safely.
18314         * modules/ftoastr (Depends-on): Remove snprintf.
18315
18316 2010-11-19  Jim Meyering  <meyering@redhat.com>
18317
18318         test-rename.h: fix compilation failure
18319         * tests/test-rename.h (test_rename): Add omitted "}".
18320
18321 2010-11-17  Jim Meyering  <meyering@redhat.com>
18322
18323         maint.mk: add a URL discussing the no-@acronym policy
18324         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18325
18326 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18327
18328         ftoastr: depend on snprintf, improve comments
18329         * lib/ftoastr.c: Also mention Loitsch's draft.
18330         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18331         needed in the current implementation, but it might simplify
18332         speeding up the code later.
18333         * modules/ftoastr: Depend on snprintf; this improves portability.
18334         Suggested by Bruno Haible in the same email.
18335
18336         ftoastr: port to hosts lacking strtof and strtold
18337         Problem reported by Bruno Haible in
18338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18339         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18340         environment and strtold (and presumably strtof) are not available.
18341         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18342         (configure.ac): Require gl_C99_STRTOLD.
18343
18344 2010-11-18  Bruno Haible  <bruno@clisp.org>
18345
18346         c-strtold: Avoid link error on AIX 7.
18347         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18348         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18349         (gl_C_STRTOLD): Test whether strtold_l exists.
18350         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18351
18352 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18353
18354         intprops: new macro INT_BITS_STRLEN_BOUND
18355         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18356         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18357         not exposed.  Also, it uses a slightly tighter bound than before;
18358         though this makes no practical difference, we might as well be as
18359         tight as we easily can.
18360
18361         ftoastr: new module, for lossless conversion of floats to short strings
18362         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18363         * modules/ftoastr: New files.
18364
18365 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18366
18367         bootstrap: port to Solaris sed
18368         * build-aux/bootstrap (get_version): Port to Solaris sed.
18369         See Ralf Wildenhues's note in
18370         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18371
18372 2010-11-14  Jim Meyering  <meyering@redhat.com>
18373
18374         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18375         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18376         and move definition closer to sole use.
18377
18378 2010-11-13  Jim Meyering  <meyering@redhat.com>
18379
18380         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18381         Now we require at least autoconf-2.59, which means the work-around
18382         is no longer needed.
18383         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18384         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18385         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18386         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18387         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18388
18389 2010-11-13  Bruno Haible  <bruno@clisp.org>
18390
18391         rename, renameat: Avoid test failures at NFS mounted locations.
18392         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18393         functions.
18394         (test_rename): Use assert_nonexistent.
18395         * tests/test-rename.c: Include <dirent.h>.
18396         * tests/test-renameat.c: Likewise.
18397         Reported by Gary V. Vaughan <gary@gnu.org>.
18398
18399         rename, renameat: Document Linux bug with NFS
18400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18401         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18402         * doc/posix-functions/renameat.texi: Likewise.
18403         Suggested by Eric Blake.
18404
18405 2010-11-13  Bruno Haible  <bruno@clisp.org>
18406
18407         rename test: Add comments.
18408         * tests/test-rename.h (test_rename): Add structure and comments.
18409
18410 2010-11-13  Eric Blake  <eblake@redhat.com>
18411
18412         maintainer-makefile: cover a few more files
18413         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18414         scripts generated within C files, for libvirt.
18415
18416 2010-11-13  Bruno Haible  <bruno@clisp.org>
18417
18418         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18419         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18420         character, return the number of bytes that belong together, not always
18421         1.
18422         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18423         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18424         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18425         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18426         number of bytes of an invalid character.
18427         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18428         (main): Invoke it.
18429         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18430         results.
18431         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18432         malformed byte sequences.
18433         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18434         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18435         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18436         Reported by Ben Pfaff and Paolo Bonzini.
18437
18438 2010-11-13  Bruno Haible  <bruno@clisp.org>
18439
18440         openat: Work around glibc bug with fchownat() and empty file names.
18441         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18442         (gl_FUNC_FCHOWNAT): Invoke it.
18443         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18444         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18445         Reported by Gary V. Vaughan <gary@gnu.org>.
18446
18447 2010-11-13  Bruno Haible  <bruno@clisp.org>
18448
18449         openat: Ensure autoconf macro ordering.
18450         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18451         gl_USE_SYSTEM_EXTENSIONS.
18452         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18453
18454 2010-11-13  Bruno Haible  <bruno@clisp.org>
18455
18456         Update comments.
18457         * lib/unistr/u8-check.c: Update file name in comments.
18458         * lib/unistr/u8-mblen.c: Likewise.
18459         * lib/unistr/u8-prev.c: Likewise.
18460         * lib/unistr/u8-strmblen.c: Likewise.
18461         * lib/unistr/u8-strmbtouc.c: Likewise.
18462
18463 2010-11-13  Jim Meyering  <meyering@redhat.com>
18464
18465         tests: avoid test failure on Solaris 10 due to lack of PATH export
18466         * tests/test-update-copyright.sh: Don't forget to export PATH.
18467
18468         init.sh: ensure that IFS is defined, just in case...
18469         * tests/init.sh (setup_): Ensure that IFS is defined,
18470         so that saving and restoring it works as expected.  This
18471         appears to be useful at least for an old version of dash
18472         from a long time ago (RH 6).  See here for details:
18473         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18474
18475         maint.mk: tighten "test a == b" check
18476         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18477         test to files that contain something like #!/bin/sh.
18478         Without this, coreutils would get two false positives in
18479         the comments of C source files.
18480
18481 2010-11-12  Eric Blake  <eblake@redhat.com>
18482
18483         bootstrap: fix typo in previous attempt
18484         * build-aux/bootstrap (buildreq): Correct the grouping.
18485         Reported by Paul Eggert.
18486
18487         maintainer-makefile: prohibit test x == x
18488         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18489         Based on a report by Matthias Bolte.
18490
18491         bootstrap: allow FreeBSD gzip
18492         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18493         which has no '.' and goes to stderr.
18494         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18495         Reported by Matthias Bolte.
18496
18497         maintainer-makefile: check for i18n setup
18498         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18499         will likely work.
18500
18501 2010-11-12  Bruno Haible  <bruno@clisp.org>
18502
18503         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18504         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18505         * lib/nanosleep.c (nanosleep): Likewise.
18506
18507 2010-11-11  Bruno Haible  <bruno@clisp.org>
18508
18509         fcntl-h: Fix for use of C++ on glibc systems.
18510         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18511         also on glibc systems in C++ mode.
18512         Reported by Gary V. Vaughan <gary@gnu.org>.
18513
18514 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18515
18516         mknod: avoid false failure with dash
18517         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18518
18519 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18520
18521         unlink: Fix "is it should" typo in diagnostic.
18522         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18524
18525 2010-11-11  Bruno Haible  <bruno@clisp.org>
18526
18527         Tests for module 'strerror_r-posix'.
18528         * modules/strerror_r-posix-tests: New file.
18529         * tests/test-strerror_r.c: New file.
18530         * tests/test-string-c++.cc: Check the signature of strerror_r.
18531
18532         New module 'strerror_r-posix'.
18533         * lib/string.in.h (strerror_r): New declaration.
18534         * lib/strerror_r.c: New file.
18535         * m4/strerror_r.m4: New file.
18536         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18537         of strerror_r.
18538         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18539         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18540         * modules/strerror_r-posix: New file.
18541         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18542         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18543         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18544         portability problems.
18545
18546 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18547
18548         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18549         line is also considered for output. Quoted function name in shell
18550         command, so temporary files for functions like MyClass::operator()
18551         are removed correctly without errors.
18552
18553 2010-11-09  Bruno Haible  <bruno@clisp.org>
18554
18555         * doc/posix-functions/strerror.texi: List more failing platforms.
18556
18557         * doc/posix-functions/strerror.texi: Add a comment.
18558
18559 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18560
18561         fdopendir: fix bug on MacOS X when low on file descriptors
18562
18563         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18564         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18565         All callers changed.
18566         (fdopendir): Invoke save_cwd at the top level, not after using
18567         multiple dup() calls to use up file descriptors.  Then retry
18568         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18569         less than the maximum number of open file descriptors, because
18570         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18571         on Mac OS X 10.6.4 for tar 1.24
18572         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18573         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18574         and for tar 1.25
18575         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18576
18577 2010-11-07  Bruno Haible  <bruno@clisp.org>
18578
18579         vasnprintf: Support I flag on glibc systems.
18580         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18581         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18582         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18583         snprintf function.
18584         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18585         glibc systems.
18586         * tests/test-vasnprintf-posix3.c: New file.
18587         * modules/vasnprintf-posix-tests (Files): Add it.
18588         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18589
18590 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18591
18592         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18593         * MODULES.html.sh: For compiler warnings, use name
18594         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18595
18596 2010-11-05  Eric Blake  <eblake@redhat.com>
18597
18598         ceil, floor: avoid spurious failure with icc
18599         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18600         [denormals-as-zero] when optimizing without -mieee-fp option.
18601         * tests/test-floorf2.c (floorf_reference): Likewise.
18602         * tests/test-ceilf1.c (dummy): New function.
18603         (main): Use it to outsmart icc's optimization.
18604         * tests/test-floorf1.c (dummy, main): Likewise.
18605
18606         tests: require working signbit
18607         * modules/ceilf-tests (Depends-on): Add signbit.
18608         * modules/ceill-tests (Depends-on): Likewise.
18609         * modules/floorf-tests (Depends-on): Likewise.
18610         * modules/floorl-tests (Depends-on): Likewise.
18611         * modules/round-tests (Depends-on): Likewise.
18612         * modules/roundf-tests (Depends-on): Likewise.
18613         * modules/roundl-tests (Depends-on): Likewise.
18614         * modules/trunc-tests (Depends-on): Likewise.
18615         * modules/truncf-tests (Depends-on): Likewise.
18616         * modules/truncl-tests (Depends-on): Likewise.
18617
18618         strtod: work around icc bug
18619         * lib/strtod.c (minus_zero): Define to working value.
18620         (strtod): Use it to avoid icc bug.
18621
18622         copysign: enhance tests
18623         * modules/copysign-tests (Files): Add minus-zero.h.
18624         * tests/test-copysign.c (main): Also test zeros.
18625
18626 2010-11-04  Eric Blake  <eblake@redhat.com>
18627
18628         ceil, floor, round, trunc: enhance tests of -0
18629         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18630         * tests/test-ceill.c (main): Likewise.
18631         * tests/test-floorf1.c (main): Likewise.
18632         * tests/test-floorl.c (main): Likewise.
18633         * tests/test-round1.c (main): Likewise.
18634         * tests/test-roundf1.c (main): Likewise.
18635         * tests/test-roundl.c (main): Likewise.
18636         * tests/test-trunc1.c (main): Likewise.
18637         * tests/test-truncf1.c (main): Likewise.
18638         * tests/test-truncl.c (main): Likewise.
18639
18640 2010-11-04  Eric Blake  <eblake@redhat.com>
18641
18642         frexp, tests: work around ICC bug with -zero
18643         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18644         works with more compilers.
18645         * tests/minus-zero.h: New file.
18646         * modules/ceilf-tests (Files): Include it.
18647         * modules/ceill-tests (Files): Likewise.
18648         * modules/floorf-tests (Files): Likewise.
18649         * modules/floorl-tests (Files): Likewise.
18650         * modules/frexp-nolibm-tests (Files): Likewise.
18651         * modules/frexp-tests (Files): Likewise.
18652         * modules/frexpl-nolibm-tests (Files): Likewise.
18653         * modules/frexpl-tests (Files): Likewise.
18654         * modules/isnan-tests (Files): Likewise.
18655         * modules/isnand-nolibm-tests (Files): Likewise.
18656         * modules/isnand-tests (Files): Likewise.
18657         * modules/isnanf-nolibm-tests (Files): Likewise.
18658         * modules/isnanf-tests (Files): Likewise.
18659         * modules/isnanl-nolibm-tests (Files): Likewise.
18660         * modules/isnanl-tests (Files): Likewise.
18661         * modules/round-tests (Files): Likewise.
18662         * modules/roundf-tests (Files): Likewise.
18663         * modules/roundl-tests (Files): Likewise.
18664         * modules/ldexpl-tests (Files): Likewise.
18665         * modules/signbit-tests (Files): Likewise.
18666         * modules/snprintf-posix-tests (Files): Likewise.
18667         * modules/sprintf-posix-tests (Files): Likewise.
18668         * modules/strtod-tests (Files): Likewise.
18669         * modules/trunc-tests (Files): Likewise.
18670         * modules/truncf-tests (Files): Likewise.
18671         * modules/truncl-tests (Files): Likewise.
18672         * modules/vsnprintf-posix-tests (Files): Likewise.
18673         * modules/vsprintf-posix-tests (Files): Likewise.
18674         * modules/vasnprintf-posix-tests (Files): Likewise.
18675         * modules/vasprintf-posix-tests (Files): Likewise.
18676         * tests/test-ceilf1.c (main): Use it.
18677         * tests/test-ceill.c (main): Likewise.
18678         * tests/test-floorf1.c (main): Likewise.
18679         * tests/test-floorl.c (main): Likewise.
18680         * tests/test-frexp.c (main): Likewise.
18681         * tests/test-frexpl.c (main): Likewise.
18682         * tests/test-isnan.c (main): Likewise.
18683         * tests/test-isnand.h (main): Likewise.
18684         * tests/test-isnanf.h (main): Likewise.
18685         * tests/test-isnanl.h (main): Likewise.
18686         * tests/test-ldexpl.c (main): Likewise.
18687         * tests/test-round.c (main): Likewise.
18688         * tests/test-roundf.c (main): Likewise.
18689         * tests/test-roundl.c (main): Likewise.
18690         * tests/test-signbit.c (test_signbitf, test_signbitd)
18691         (test_signbitl): Likewise.
18692         * tests/test-snprintf-posix.h (test_function): Likewise.
18693         * tests/test-sprintf-posix.h (test_function): Likewise.
18694         * tests/test-strtod.c (main): Likewise.
18695         * tests/test-trunc1.c (main): Likewise.
18696         * tests/test-truncf1.c (main): Likewise.
18697         * tests/test-truncl.c (main): Likewise.
18698
18699         isnanl: work around icc bug
18700         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18701
18702 2010-11-03  Eric Blake  <eblake@redhat.com>
18703
18704         tests: fix compiler warnings
18705         * tests/test-getopt.h (test_getopt): Fix condition.
18706         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18707         * tests/test-pipe2.c (main): Likewise.
18708         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18709
18710         utimens: fix broken m4 test
18711         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18712
18713 2010-10-28  Bruno Haible  <bruno@clisp.org>
18714
18715         posix_spawn*, getdtablesize: Relax license.
18716         * modules/posix_spawn (License): Change to LGPLv2+.
18717         * modules/posix_spawnp (License): Likewise.
18718         * modules/posix_spawn-internal (License): Likewise.
18719         * modules/posix_spawnattr_init (License): Likewise.
18720         * modules/posix_spawnattr_getflags (License): Likewise.
18721         * modules/posix_spawnattr_setflags (License): Likewise.
18722         * modules/posix_spawnattr_getpgroup (License): Likewise.
18723         * modules/posix_spawnattr_setpgroup (License): Likewise.
18724         * modules/posix_spawnattr_getschedparam (License): Likewise.
18725         * modules/posix_spawnattr_setschedparam (License): Likewise.
18726         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18727         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18728         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18729         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18730         * modules/posix_spawnattr_getsigmask (License): Likewise.
18731         * modules/posix_spawnattr_setsigmask (License): Likewise.
18732         * modules/posix_spawnattr_destroy (License): Likewise.
18733         * modules/posix_spawn_file_actions_init (License): Likewise.
18734         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18735         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18736         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18737         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18738         * modules/getdtablesize (License): Likewise.
18739         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18740
18741 2010-10-26  Bruno Haible  <bruno@clisp.org>
18742
18743         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18744         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18745         Cygwin and mingw.
18746         Suggested by Eric Blake.
18747
18748 2010-10-26  Bruno Haible  <bruno@clisp.org>
18749
18750         stdio: Work around compilation error due to renameat() on Solaris 10.
18751         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18752         * lib/renameat.c: Don't include <unistd.h> here.
18753         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18754         Reported by Paul Eggert and Eric Blake.
18755
18756 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18757
18758         renameat: port to Solaris 10, which declares renameat in unistd.h
18759
18760         * lib/renameat.c: Include unistd.h before stdio.h, because
18761         Solaris 10 declares renameat in unistd.h.  Problem encountered
18762         when building GNU tar 1.24 on Solaris 10.
18763
18764 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18765
18766         fdopendir: fix C89 compilation
18767         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18768         compilers.
18769
18770 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18771
18772         inttostr: simplify by removing unnecessary redundancy
18773         * lib/anytostr.c: Don't include verify.h.
18774         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18775         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18776         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18777         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18778         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18779         Likewise.
18780         * modules/inttostr (Depends-on): Remove 'verify'.
18781
18782 2010-10-23  Bruno Haible  <bruno@clisp.org>
18783
18784         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18785         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18786         Reported by Eric Blake.
18787
18788 2010-10-23  Bruno Haible  <bruno@clisp.org>
18789
18790         Tests: Fix LOCALE_JA on MirBSD 10.
18791         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18792         to an UTF-8 locale.
18793         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18794         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18795         Reported by Eric Blake.
18796
18797 2010-10-21  Bruno Haible  <bruno@clisp.org>
18798
18799         nl_langinfo test: Avoid test failure on NetBSD 5.
18800         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18801         Reported by Eric Blake.
18802
18803 2010-10-21  Eric Blake  <eblake@redhat.com>
18804
18805         c-stack: work around libsigsegv 2.8 bug
18806         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18807         overflow on at least PowerPC64.
18808
18809 2010-10-17  Bruno Haible  <bruno@clisp.org>
18810
18811         userspec: Drop redundant file.
18812         * modules/userspec (Files): Remove lib/inttostr.h.
18813
18814 2010-10-17  Bruno Haible  <bruno@clisp.org>
18815
18816         nl_langinfo tests: Silence some warnings.
18817         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18818         Reported by Jim Meyering.
18819
18820 2010-10-17  Bruno Haible  <bruno@clisp.org>
18821
18822         Make use of GCC's attribute __alloc_size__.
18823         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18824         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18825         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18826         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18827         __alloc_size__.
18828         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18829         Suggested by Jim Meyering.
18830
18831 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18832
18833         bootstrap: anchor .gitignore entries.
18834         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18835         with...
18836         (insert_vc_ignore): ... this new function, which prepends `/' to
18837         all .gitignore entries before passing them to
18838         insert_sorted_if_absent.
18839
18840 2010-10-16  Bruno Haible  <bruno@clisp.org>
18841
18842         nextafter: Fix configure check.
18843         * modules/nextafter (configure.ac): Correct expected prototype.
18844
18845 2010-10-16  Bruno Haible  <bruno@clisp.org>
18846
18847         termios: Update documentation.
18848         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18849
18850 2010-10-16  Bruno Haible  <bruno@clisp.org>
18851
18852         tests: Make them compile with TinyCC.
18853         * tests/test-strstr.c (main): Remove parentheses around array
18854         initializer.
18855
18856 2010-10-15  Eric Blake  <eblake@redhat.com>
18857
18858         ignore-value: make header idempotent
18859         * lib/ignore-value.h: Add double-inclusion guards.
18860         Reported by Stefan Berger.
18861
18862 2010-10-15  Jim Meyering  <meyering@redhat.com>
18863
18864         GNUmakefile: handle "stable" target, not "major"
18865         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18866         lists in maint.mk and announce-gen.  Without this, "make stable"
18867         would fail to ensure that $(VERSION) is up to date.
18868
18869 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18870
18871         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18872         & co.
18873
18874 2010-10-14  Bruno Haible  <bruno@clisp.org>
18875
18876         vasnprintf: Don't set errno to 0.
18877         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18878         block that sets it to 0.
18879         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18880
18881 2010-10-14  Bruno Haible  <bruno@clisp.org>
18882
18883         socketlib: Fix.
18884         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18885         gl_PREREQ_SYS_H_WINSOCK2.
18886         Reported by Ian Beckwith <ianb@erislabs.net>.
18887
18888 2010-10-13  Jim Meyering  <meyering@redhat.com>
18889
18890         test-select-stdin.c: avoid warn_unused_result warnings
18891         * tests/test-select-stdin.c: Include "macros.h".
18892         ASSERT that read and fflush succeed.
18893
18894 2010-10-13  Jim Meyering  <meyering@redhat.com>
18895
18896         git-version-gen: do require git-VC'd files in cwd
18897         * build-aux/git-version-gen: Reject a git version string
18898         if there are no commits associated with the current directory.
18899         This avoids an unlikely false-positive (unrelated dir whose parent
18900         repository also contains a tag matching v*), as pointed out
18901         by Giuseppe Scrivano in
18902         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18903
18904 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18905
18906         argv-iter: omit nonconforming declaration
18907         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18908         enum arg_iter_err declaration, which doesn't conform to C99.
18909         Solaris 10 cc warns about this.
18910
18911 2010-10-13  Eric Blake  <eblake@redhat.com>
18912
18913         termios: fix compilation on mingw
18914         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18915         (gl_TERMIOS_H): Adjust it on mingw.
18916         * modules/termios (Makefile.am): Substitute new key.
18917         * lib/termios.in.h (includes): Make include_next conditional.
18918         * doc/posix-headers/termios.texi (termios.h): Update
18919         documentation.
18920         Reported by Daniel P. Berrange.
18921
18922 2010-10-13  Jim Meyering  <meyering@redhat.com>
18923
18924         git-version-gen: don't require that .git/ be in the current dir
18925         * build-aux/git-version-gen: Adjust this script so that it works
18926         when run from any working directory beneath the top-level .git/-
18927         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18928         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18929
18930         test-select: avoid warn_unused_result warnings
18931         * tests/test-select.c: Include "macros.h".
18932         ASSERT that each call to read, write, and pipe succeeds.
18933         While not technically required, also check each "close".
18934         * modules/select-tests (Files): Add tests/macros.h.
18935
18936         test-symlinkat: remove declaration of unused local
18937         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18938
18939         test-inttostr: avoid shadowing warnings
18940         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18941         and use malloc rather than the stack for the same reason as
18942         mentioned in the comment justifying the other allocation.
18943
18944 2010-10-11  Bruno Haible  <bruno@clisp.org>
18945
18946         stdlib: Allow multiple gnulib generated replacements to coexist.
18947         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18948         Reported by Sam Steingold <sds@gnu.org>.
18949
18950 2010-10-11  Jim Meyering  <meyering@redhat.com>
18951
18952         fix a documentation typo
18953         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18954
18955 2010-10-11  Eric Blake  <eblake@redhat.com>
18956
18957         futimens: work around Solaris 11 bug
18958         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18959         * tests/test-futimens.h (test_futimens): Enhance, rather than
18960         weaken test.
18961         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18962
18963 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18964
18965         Indentation.
18966         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18967         higher-level operators more to the left.
18968
18969 2010-10-11  Jim Meyering  <meyering@redhat.com>
18970
18971         test-futimens: avoid unwarranted test failure on Solaris 5.11
18972         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18973         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18974         because it tries to dereference the NULL name argument.
18975
18976 2010-10-11  Bruno Haible  <bruno@clisp.org>
18977
18978         Indentation.
18979         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18980         indentation.
18981
18982 2010-10-11  Jim Meyering  <meyering@redhat.com>
18983
18984         spawn.in.h: make indentation consistent with parentheses
18985         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18986         Make indentation consistent with parentheses.
18987
18988 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18989
18990         Fix mismatched parens in previous commit
18991         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18992         parens.
18993
18994 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18995
18996         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18997
18998         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18999         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19000         * lib/malloca.c: Include "verify.h".
19001         (verify1): Remove, replacing with a verify call.
19002         * lib/relocwrapper.c (verify1): Likewise.
19003         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19004         Likewise.
19005         * modules/malloca (Depends-on): Add 'verify'.
19006         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19007         * modules/vasnprintf (Depends-on): Add 'verify'.
19008         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19009         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19010         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19011         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19012         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19013         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19014         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19015
19016         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19017
19018         Formerly the style was sometimes 2*X - 1, because the C standard
19019         was wrongly thought to disallow ?: in integral constant expressions.
19020         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19021         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19022         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19023         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19024         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19025         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19026         verify that time_t cannot be floating.
19027
19028 2010-10-08  Eric Blake  <eblake@redhat.com>
19029
19030         time: enforce recent POSIX ruling that time_t is integral
19031         * lib/time.in.h (__time_t_must_be_integral): Detect any
19032         problematic systems, allowing the rest of gnulib to assume POSIX.
19033
19034 2010-10-08  Jim Meyering  <meyering@redhat.com>
19035
19036         fdopendir: fix a bug on systems lacking openat and /proc support
19037         OpenBSD 4.7 is one such system.  The most noticeable effect was
19038         failure of any application making nontrivial use of fts: rm, du,
19039         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19040           ./rm: traversal failed: `a': Bad file descriptor
19041         Debugging that, you see that even though FD 6 was closed just
19042         prior to the opendir call in fd_clone_opendir, its resulting
19043         dir->dd_fd was 8, rather than the expected value of 6:
19044
19045         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19046         93                close (fd);
19047         (gdb) n
19048         94                dir = fd_clone_opendir (dupfd);
19049         (gdb) n
19050         95                saved_errno = errno;
19051         (gdb) p dir->dd_fd
19052         $11 = 8
19053
19054         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19055         The problem is that on OpenBSD, fd_clone_opendir has to resort
19056         to using the old-style save/restore CWD mechanism, due to its
19057         lack of openat/proc support, and *that* would steal the FD (6)
19058         that opendir was supposed to use.
19059
19060         The fix is to squirrel away the desired FD so that save_cwd uses a
19061         different one, and then free the dest FD right before calling opendir.
19062         That guarantees opendir will use the required file descriptor.
19063
19064         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19065
19066 2010-10-08  Bruno Haible  <bruno@clisp.org>
19067
19068         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19069         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19070
19071 2010-10-08  Bruno Haible  <bruno@clisp.org>
19072
19073         nanosleep: Make replacement POSIX compliant.
19074         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19075         is out of range.
19076         Reported by Jim Meyering.
19077
19078 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19079
19080         bootstrap: add hook for altering gnulib.mk, for Bison
19081         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19082         the Bison bootstrapping process can rewrite file names and variables
19083         in this file before later parts of 'bootstrap' use the file.
19084         Bison wants to include lib/gnulib.mk from the top-level makefile,
19085         so it needs the file names in this file to be relative to the top
19086         level, not relative to lib; plus it needs variable names to be
19087         rewritten.
19088         (slurp): Use the new function.
19089
19090         bootstrap: reformat for readability
19091         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19092
19093 2010-10-08  Eric Blake  <eblake@redhat.com>
19094
19095         docs: update cygwin progress
19096         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19097         1.7.7.
19098         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19099         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19100         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19101         * doc/posix-functions/carg.texi (carg): Likewise.
19102         * doc/posix-functions/cargf.texi (cargf): Likewise.
19103         * doc/posix-functions/casin.texi (casin): Likewise.
19104         * doc/posix-functions/casinf.texi (casinf): Likewise.
19105         * doc/posix-functions/casinh.texi (casinh): Likewise.
19106         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19107         * doc/posix-functions/catan.texi (catan): Likewise.
19108         * doc/posix-functions/catanf.texi (catanf): Likewise.
19109         * doc/posix-functions/catanh.texi (catanh): Likewise.
19110         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19111         * doc/posix-functions/ccos.texi (ccos): Likewise.
19112         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19113         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19114         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19115         * doc/posix-functions/cexp.texi (cexp): Likewise.
19116         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19117         * doc/posix-functions/cimag.texi (cimag): Likewise.
19118         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19119         * doc/posix-functions/clog.texi (clog): Likewise.
19120         * doc/posix-functions/clogf.texi (clogf): Likewise.
19121         * doc/posix-functions/conj.texi (conj): Likewise.
19122         * doc/posix-functions/conjf.texi (conjf): Likewise.
19123         * doc/posix-functions/cpow.texi (cpow): Likewise.
19124         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19125         * doc/posix-functions/cproj.texi (cproj): Likewise.
19126         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19127         * doc/posix-functions/creal.texi (creal): Likewise.
19128         * doc/posix-functions/crealf.texi (crealf): Likewise.
19129         * doc/posix-functions/csin.texi (csin): Likewise.
19130         * doc/posix-functions/csinf.texi (csinf): Likewise.
19131         * doc/posix-functions/csinh.texi (csinh): Likewise.
19132         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19133         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19134         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19135         * doc/posix-functions/ctan.texi (ctan): Likewise.
19136         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19137         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19138         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19139         * doc/posix-headers/complex.texi (complex.h): Likewise.
19140
19141 2010-10-07  Jim Meyering  <meyering@redhat.com>
19142
19143         parse-datetime: avoid compilation failure on OpenBSD 4.7
19144         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19145         This works around a compilation failure on OpenBSD 4.7:
19146         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19147
19148 2010-10-07  Eric Blake  <eblake@redhat.com>
19149
19150         docs: update cygwin progress
19151         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19152         1.7.6.
19153         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19154         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19155         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19156         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19157         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19158         Likewise.
19159         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19160         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19161         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19162         Likewise.
19163         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19164         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19165         Likewise.
19166         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19167         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19168         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19169         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19170         Likewise.
19171         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19172         Likewise.
19173         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19174
19175         docs: update parse-datetime history
19176         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19177         documentation of this function's history and alternatives.
19178
19179         cygwin: use more robust version check
19180         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19181         exclude an eventual cygwin 1.9.1.
19182         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19184         (gl_FUNC_STRCASESTR): Likewise.
19185         Reported by Bruno Haible.
19186
19187 2010-10-06  Bruno Haible  <bruno@clisp.org>
19188
19189         string, sys_select: Avoid #including large headers unless necessary.
19190         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19191         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19192         OSF/1, BeOS, Haiku.
19193         Reported by Jim Meyering.
19194
19195 2010-10-05  Eric Blake  <eblake@redhat.com>
19196
19197         memmem, strstr, strcasestr: fix bug with long periodic needle
19198         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19199         periodic needle having false positive.
19200         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19201         and cygwin 1.7.7.
19202         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19204         (gl_FUNC_STRCASESTR): Likewise.
19205         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19206         * tests/test-memmem.c (main): Expose the bug.
19207         * tests/test-strcasestr.c (main): Likewise.
19208         * tests/test-strstr.c (main): Likewise.
19209         * tests/test-c-strcasestr.c (main): Likewise.
19210         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19211         * doc/posix-functions/strstr.texi (strstr): Likewise.
19212         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19213         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19214
19215 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19216
19217         parse-datetime: do some more renaming
19218         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19219         parse_datetime, not get_date.  Mention the renaming.
19220         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19221         in comments.
19222         * m4/bison.m4: Likewise.
19223
19224 2010-10-05  Eric Blake  <eblake@redhat.com>
19225
19226         parse-datetime: better name than get_date
19227         * NEWS: Reword the deprecation notice.
19228         * modules/get_date: Rename to modules/parse-datetime.
19229         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19230         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19231         * lib/get_date.y: Rename to lib/parse-datetime.y.
19232         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19233         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19234         * doc/getdate.texi: Provide fallback wrapper.
19235         * lib/getdate.h: Move guts, and wrap...
19236         * lib/parse-datetime.h: ...new file.
19237         * lib/parse-datetime.y (get_date): Rename...
19238         (parse_datetime): ...to this.
19239         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19240         (gl_PARSE_DATETIME): ...to this.
19241         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19242         documentation.
19243         * modules/getdate (Files): Provide fallback docs and header.
19244         (Notice, Depends-on): Update references.
19245         * tests/test-parse-datetime.c: Likewise.
19246         * DEPENDENCIES: Likewise.
19247         * MODULES.html.sh (Date and time <time.h>): Likewise.
19248         * doc/parse-datetime.texi (Date input formats)
19249         (Authors of parse_datetime): Likewise.
19250         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19251         (Include): Likewise.
19252         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19253         * gnulib-tool: Likewise.
19254         * m4/bison.m4 (gl_BISON): Likewise.
19255         Suggested by Bruno Haible.
19256
19257 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19258
19259         more ports to Solaris tr, which needs [] around ranges
19260         * gnulib-tool: Solaris tr needs [] around ranges.
19261         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19262         * tests/test-pipe-filter-gi1.c (main): Likewise.
19263         * tests/test-pipe-filter-ii1.c (main): Likewise.
19264
19265 2010-10-05  Eric Blake  <eblake@redhat.com>
19266
19267         bootstrap: fix Solaris regression
19268         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19269         around ranges.
19270         Reported by Pádraig Brady.
19271
19272         bootstrap: work with pkg-config
19273         * build-aux/bootstrap (check_versions): Also transliterate - in
19274         prerequisite name.
19275         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19276         prerequisites that were already found, to avoid confusion.
19277         Reported by Justin Clift.
19278
19279         faccessat: remove unused wrappers
19280         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19281         presence of these wrappers dragged in -lgen on Solaris.
19282         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19283
19284 2010-10-05  Jim Meyering  <meyering@redhat.com>
19285
19286         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19287         * Makefile (sc_pragma_columns): New syntax-check rule.
19288
19289 2010-10-04  Bruno Haible  <bruno@clisp.org>
19290
19291         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19292         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19293         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19294         Reported by Bruce Korb and Eric Blake.
19295
19296 2010-10-04  Bruno Haible  <bruno@clisp.org>
19297
19298         threadlib: Make option --with-libpth-prefix work.
19299         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19300         use $LIBPTH, not just -lpth.
19301
19302 2010-10-04  Bruno Haible  <bruno@clisp.org>
19303
19304         Avoid line length limitation from HP NonStop system header files.
19305         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19306         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19307         * lib/ctype.in.h: Likewise.
19308         * lib/dirent.in.h: Likewise.
19309         * lib/errno.in.h: Likewise.
19310         * lib/fcntl.in.h: Likewise.
19311         * lib/float.in.h: Likewise.
19312         * lib/getopt.in.h: Likewise.
19313         * lib/iconv.in.h: Likewise.
19314         * lib/inttypes.in.h: Likewise.
19315         * lib/langinfo.in.h: Likewise.
19316         * lib/locale.in.h: Likewise.
19317         * lib/math.in.h: Likewise.
19318         * lib/netdb.in.h: Likewise.
19319         * lib/netinet_in.in.h: Likewise.
19320         * lib/poll.in.h: Likewise.
19321         * lib/pthread.in.h: Likewise.
19322         * lib/pty.in.h: Likewise.
19323         * lib/sched.in.h: Likewise.
19324         * lib/se-selinux.in.h: Likewise.
19325         * lib/search.in.h: Likewise.
19326         * lib/signal.in.h: Likewise.
19327         * lib/spawn.in.h: Likewise.
19328         * lib/stdarg.in.h: Likewise.
19329         * lib/stddef.in.h: Likewise.
19330         * lib/stdint.in.h: Likewise.
19331         * lib/stdio.in.h: Likewise.
19332         * lib/stdlib.in.h: Likewise.
19333         * lib/string.in.h: Likewise.
19334         * lib/strings.in.h: Likewise.
19335         * lib/sys_file.in.h: Likewise.
19336         * lib/sys_ioctl.in.h: Likewise.
19337         * lib/sys_select.in.h: Likewise.
19338         * lib/sys_socket.in.h: Likewise.
19339         * lib/sys_stat.in.h: Likewise.
19340         * lib/sys_time.in.h: Likewise.
19341         * lib/sys_times.in.h: Likewise.
19342         * lib/sys_utsname.in.h: Likewise.
19343         * lib/sys_wait.in.h: Likewise.
19344         * lib/sysexits.in.h: Likewise.
19345         * lib/termios.in.h: Likewise.
19346         * lib/time.in.h: Likewise.
19347         * lib/unistd.in.h: Likewise.
19348         * lib/wchar.in.h: Likewise.
19349         * lib/wctype.in.h: Likewise.
19350         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19351         * modules/ctype (Makefile.am): Likewise.
19352         * modules/dirent (Makefile.am): Likewise.
19353         * modules/errno (Makefile.am): Likewise.
19354         * modules/fcntl-h (Makefile.am): Likewise.
19355         * modules/float (Makefile.am): Likewise.
19356         * modules/getopt-posix (Makefile.am): Likewise.
19357         * modules/iconv-h (Makefile.am): Likewise.
19358         * modules/inttypes (Makefile.am): Likewise.
19359         * modules/langinfo (Makefile.am): Likewise.
19360         * modules/locale (Makefile.am): Likewise.
19361         * modules/math (Makefile.am): Likewise.
19362         * modules/netdb (Makefile.am): Likewise.
19363         * modules/netinet_in (Makefile.am): Likewise.
19364         * modules/poll-h (Makefile.am): Likewise.
19365         * modules/pthread (Makefile.am): Likewise.
19366         * modules/pty (Makefile.am): Likewise.
19367         * modules/sched (Makefile.am): Likewise.
19368         * modules/search (Makefile.am): Likewise.
19369         * modules/selinux-h (Makefile.am): Likewise.
19370         * modules/signal (Makefile.am): Likewise.
19371         * modules/spawn (Makefile.am): Likewise.
19372         * modules/stdarg (Makefile.am): Likewise.
19373         * modules/stddef (Makefile.am): Likewise.
19374         * modules/stdint (Makefile.am): Likewise.
19375         * modules/stdio (Makefile.am): Likewise.
19376         * modules/stdlib (Makefile.am): Likewise.
19377         * modules/string (Makefile.am): Likewise.
19378         * modules/strings (Makefile.am): Likewise.
19379         * modules/sys_file (Makefile.am): Likewise.
19380         * modules/sys_ioctl (Makefile.am): Likewise.
19381         * modules/sys_select (Makefile.am): Likewise.
19382         * modules/sys_socket (Makefile.am): Likewise.
19383         * modules/sys_stat (Makefile.am): Likewise.
19384         * modules/sys_time (Makefile.am): Likewise.
19385         * modules/sys_times (Makefile.am): Likewise.
19386         * modules/sys_utsname (Makefile.am): Likewise.
19387         * modules/sys_wait (Makefile.am): Likewise.
19388         * modules/sysexits (Makefile.am): Likewise.
19389         * modules/termios (Makefile.am): Likewise.
19390         * modules/time (Makefile.am): Likewise.
19391         * modules/unistd (Makefile.am): Likewise.
19392         * modules/wchar (Makefile.am): Likewise.
19393         * modules/wctype (Makefile.am): Likewise.
19394
19395 2010-10-04  Bruno Haible  <bruno@clisp.org>
19396
19397         read-file tests: Avoid a test failure on NonStop Kernel.
19398         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19399         a regular file.
19400         Reported by Joachim Schmitz <schmitz@hp.com>.
19401
19402 2010-10-03  Bruno Haible  <bruno@clisp.org>
19403
19404         gnulib-tool: Fixes for --create-testdir with --libtool.
19405         * gnulib-tool (func_get_automake_snippet): Don't augment
19406         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19407         an executable.
19408         (func_create_testdir): Handle module 'alloca' like func_import.
19409         Reported by Bruce Korb <bruce.korb@gmail.com>.
19410
19411 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19412
19413         Avoid some lines longer than 80 characters.
19414         * lib/stdint.in.h: Break long comment lines.
19415         * lib/math.in.h: Likewise.
19416         (_GL_NUM_UINT_WORDS): New macro, for readability.
19417         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19418         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19419         * lib/stdlib.in.h: Likewise.
19420         * lib/spawn.in.h: Likewise.
19421         * lib/sys_socket.in.h: Update an URL.
19422         * lib/sys_stat.in.h: Break long line.
19423
19424 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19425
19426         Improve pmccabe2html.
19427         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19428         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19429         when the sources change. Remove the line in the HTML about "Used
19430         ranges" (which implied that there might be other unused ranges),
19431         rename "Resume" to "Summary" (easier to understand for more users).
19432         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19433         styles, and some unnecessary blank lines.
19434
19435 2010-10-03  Bruno Haible  <bruno@clisp.org>
19436             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19437
19438         acl: Add support for ACLs on NonStop Kernel.
19439         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19440         Check whether the function aclsort() exists.
19441         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19442         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19443         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19444         (acl_nontrivial [HAVE_ACLSORT]: New function.
19445         (file_has_acl): Implement for NonStop Kernel.
19446         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19447         (qset_acl): Implement for NonStop Kernel.
19448         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19449         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19450         (main): Implement for NonStop Kernel.
19451         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19452         Kernel. Handle this flavor.
19453         * tests/test-set-mode-acl.sh: Likewise.
19454         * tests/test-copy-acl.sh: Likewise.
19455         * tests/test-copy-file.sh: Likewise.
19456
19457 2010-10-03  Bruno Haible  <bruno@clisp.org>
19458
19459         Info about ACLs on NonStop Kernel.
19460         * doc/acl-resources.txt: Add info about NonStop Kernel.
19461         References by Joachim Schmitz <schmitz@hp.com>.
19462
19463 2010-10-02  Bruno Haible  <bruno@clisp.org>
19464
19465         Define missing EDQUOT on NonStop Kernel.
19466         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19467         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19468         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19469         missing.
19470         * doc/posix-headers/errno.texi: Mention the NSK bug.
19471         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19472         Reported by Joachim Schmitz <schmitz@hp.com>.
19473
19474 2010-10-02  Bruno Haible  <bruno@clisp.org>
19475
19476         Update doc for POSIX:2008.
19477         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19478         Update URL of POSIX specification.
19479
19480 2010-10-02  Bruno Haible  <bruno@clisp.org>
19481
19482         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19483         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19484         from gnulib, not from Automake.
19485
19486 2010-10-02  Bruno Haible  <bruno@clisp.org>
19487
19488         New module 'system-posix'.
19489         * modules/system-posix: New file.
19490         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19491         module is present.
19492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19493         GNULIB_SYSTEM_POSIX.
19494         * modules/stdlib (Depends-on): Remove sys_wait.
19495         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19496         * doc/posix-functions/system.texi: Mention the new module.
19497         * doc/posix-headers/stdlib.texi: Likewise.
19498         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19499         define test_sys_wait_macros to a no-op.
19500         Reported by Sam Steingold <sds@gnu.org>.
19501
19502 2010-09-30  Bruno Haible  <bruno@clisp.org>
19503
19504         More renaming from 'getdate' to 'get_date'.
19505         * doc/get_date.texi: Renamed from doc/getdate.texi.
19506         * modules/get_date (Files): Update.
19507         * MODULES.html.sh (Date and time <time.h>): Update.
19508         * DEPENDENCIES: Update.
19509         * gnulib-tool: Update comment.
19510         * m4/bison.m4 (gl_BISON): Likewise.
19511         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19512
19513 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19514
19515         bootstrap: support ACLOCAL_FLAGS during aclocal
19516         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19517         can add additional -I dir for third-party .m4 files.
19518
19519 2010-09-30  Eric Blake  <eblake@redhat.com>
19520
19521         bootstrap: use glibtoolize on MacOS
19522         * build-aux/bootstrap (check_versions): Convert libtool into
19523         libtoolize.
19524         (tool search): Move libtool check earlier, and look for
19525         glibtoolize for MacOS.
19526         (gnulib_tool_options): Auto-add --libtool when appropriate.
19527         Reported by Justin Clift.
19528
19529         poll: fix typo that broke test on MacOS
19530         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19531         Reported by Justin Clift.
19532
19533         getdate: rename to get_date
19534         Note: getdate.h is not renamed, to minimize client impact.
19535         * modules/getdate: Mark obsolete.  Move old contents...
19536         * modules/get_date: ...to new module name.
19537         * modules/getdate-tests: Move...
19538         * modules/get_date-tests: ...here.
19539         * m4/getdate.m4: Move...
19540         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19541         * lib/getdate.y: Move...
19542         * lib/get_date.y: ...here.
19543         * tests/test-getdate.c: Move...
19544         * tests/test-get_date.c: ...here.
19545         * doc/posix-functions/getdate.texi (getdate): Update name.
19546         * NEWS: Mention the change.
19547
19548 2010-09-29  Bruno Haible  <bruno@clisp.org>
19549
19550         Separate the module 'waitpid' from the module 'sys_wait'.
19551         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19552         present.
19553         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19554         gl_MODULE_INDICATOR_FOR_TESTS.
19555         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19556         * modules/sys_wait (Depends-on): Remove waitpid.
19557         (Makefile.am): Substitute GNULIB_WAITPID.
19558         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19559         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19560         signature only if the 'waitpid' module is present.
19561         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19562         * NEWS: Mention the change.
19563         * modules/grantpt (Depends-on): Add waitpid.
19564         * modules/wait-process (Depends-on): Likewise.
19565
19566 2010-09-29  Bruno Haible  <bruno@clisp.org>
19567
19568         More tests for module 'sys_wait'.
19569         * modules/sys_wait-c++-tests: New file.
19570         * tests/test-sys_wait-c++.cc: New file.
19571         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19572         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19573
19574 2010-09-29  Bruno Haible  <bruno@clisp.org>
19575
19576         New module 'waitpid'.
19577         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19578         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19579         Don't include <process.h>.
19580         (waitpid): Declare only, using modern idiom.
19581         * m4/waitpid.m4: New file.
19582         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19583         * modules/waitpid: New file.
19584         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19585         (Makefile.am): Update.
19586         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19587
19588 2010-09-28  Bruno Haible  <bruno@clisp.org>
19589
19590         poll: Assume ANSI C.
19591         * lib/poll.c (poll): Use an ANSI C declaration.
19592
19593 2010-09-28  Bruno Haible  <bruno@clisp.org>
19594
19595         poll-h: Create poll.h on all platforms.
19596         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19597         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19598         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19599         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19600         (gl_REPLACE_POLL_H): Don't set POLL_H.
19601         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19602         * modules/poll-h (Depends-on): Add include_next.
19603         (Makefile.am): Create poll.h unconditionally. Substitute also
19604         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19605
19606 2010-09-28  Bruno Haible  <bruno@clisp.org>
19607
19608         Tests for module 'poll-h'.
19609         * modules/poll-h-c++-tests: New file.
19610         * tests/test-poll-h-c++.cc: New file.
19611
19612         Tests for module 'poll-h'.
19613         * modules/poll-h-tests: New file.
19614         * tests/test-poll-h.c: New file.
19615
19616 2010-09-28  Bruno Haible  <bruno@clisp.org>
19617
19618         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19619         * modules/poll-h (Depends-on): Add 'extensions'.
19620
19621 2010-09-28  Bruno Haible  <bruno@clisp.org>
19622
19623         New module 'poll-h'.
19624         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19625         (poll): Use modern idiom.
19626         * modules/poll-h: New file.
19627         * modules/poll (Files): Remove lib/poll.in.h.
19628         (Depends-on): Add poll-h.
19629         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19630         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19631         * m4/poll_h.m4: New file.
19632         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19633         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19634         and invoke gl_REPLACE_POLL_H.
19635         * lib/poll.c: Use common idiom.
19636         * tests/test-poll.c: Likewise.
19637         * doc/posix-headers/poll.texi: Mention the poll-h module.
19638         Suggested by Eric Blake.
19639
19640 2010-09-26  Bruno Haible  <bruno@clisp.org>
19641
19642         sys_wait: Implement WSTOPSIG.
19643         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19644         Reported by Simon Josefsson.
19645
19646 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19647
19648         stdlib, sys_wait: Avoid compilation error on mingw.
19649         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19650
19651 2010-09-26  Bruno Haible  <bruno@clisp.org>
19652
19653         stdlib tests: Avoid code duplication.
19654         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19655         * modules/sys_wait-tests (Files): Likewise.
19656         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19657         * tests/test-stdlib.c: Include test-sys_wait.h.
19658         (main): Invoke test_sys_wait_macros.
19659         * tests/test-sys_wait.c: Include test-sys_wait.h.
19660         (main): Invoke test_sys_wait_macros.
19661
19662 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19663
19664         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19665         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19666         sure Windows sockets are working before calling getaddrinfo.
19667         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19668         * doc/gnulib.texi (Windows sockets): Fix typo.
19669
19670 2010-09-25  Bruno Haible  <bruno@clisp.org>
19671
19672         Tests for module 'regex-quote'.
19673         * modules/regex-quote-tests: New file.
19674         * tests/test-regex-quote.c: New file.
19675
19676         New module 'regex-quote'.
19677         * lib/regex-quote.h: New file.
19678         * lib/regex-quote.c: New file.
19679         * modules/regex-quote: New file.
19680         Suggested by Reuben Thomas <rrt@sc3d.org>.
19681
19682 2010-09-24  Bruno Haible  <bruno@clisp.org>
19683
19684         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19685         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19686
19687 2010-09-23  Bruno Haible  <bruno@clisp.org>
19688
19689         setenv: Relax license.
19690         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19691         Blake.
19692         Requested by Eric Blake.
19693
19694 2010-09-22  Bruno Haible  <bruno@clisp.org>
19695
19696         termios: Relax license.
19697         * modules/termios (License): Change to LGPLv2+.
19698         Requested by Eric Blake.
19699
19700 2010-09-22  Bruno Haible  <bruno@clisp.org>
19701
19702         threadlib: Allow the package to change the default to 'no'.
19703         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19704         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19705         Reported by Paul Eggert.
19706
19707 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19708             Bruno Haible  <bruno@clisp.org>
19709
19710         Fix endless loop in mbmemcasecoll.
19711         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19712         byte.
19713         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19714
19715 2010-09-22  Bruno Haible  <bruno@clisp.org>
19716
19717         Tests for module 'memcoll'.
19718         * modules/memcoll-tests: New file.
19719         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19720
19721         memcoll, xmemcoll: Clarify size vs. length.
19722         * modules/memcoll.c (memcoll0): Clarify specification.
19723         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19724         passed to collate_error.
19725
19726 2010-09-22  Bruno Haible  <bruno@clisp.org>
19727
19728         Tests for module 'memcasecmp'.
19729         * modules/memcasecmp-tests: New file.
19730         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19731
19732 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19733
19734         * lib/pthread.in.h: Add split double-inclusion guard, and include
19735         system <pthread.h> if there is one.  Use @@-style as in other
19736         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19737         pthread.h doesn't.
19738         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19739         (pthread_mutexattr_settype, pthread_mutex_trylock):
19740         New static inline functions, if there's no system <pthread.h>.
19741         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19742         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19743         Approximate with mutexes if the system lacks spinlocks, as in
19744         MacOS.
19745         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19746         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19747         @@-style.  Check for spinlocks separately.
19748         (gl_PTHREAD_DEFAULTS): New macro.
19749         * modules/pthread: Redo to use a more typical style for in.h files.
19750
19751 2010-09-21  Eric Blake  <eblake@redhat.com>
19752
19753         net_if: enhance tests
19754         * tests/test-net_if.c (main): Move signature checks earlier.
19755         Print failures to stderr.
19756         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19757         Document the bug that we do not yet fix.
19758
19759 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19760
19761         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19762         about gnulib, not GSS.
19763
19764 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19765
19766         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19767         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19768         for Emacs.
19769         * build-aux/pmccabe2html: Make Makefile.am example code more
19770         cut-and-paste friendly.
19771
19772 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19773
19774         * tests/test-net_if.c: New file.
19775         * modules/net_if-tests: New file.
19776
19777 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19778
19779         pthread: add pthread_spin_destroy
19780         * lib/pthread.in.h (pthread_spin_destroy): New function.
19781
19782 2010-09-19  Bruno Haible  <bruno@clisp.org>
19783
19784         gnulib-tool: Fix --help output.
19785         * gnulib-tool (func_usage): Fix help message.
19786         Reported by Reuben Thomas <rrt@sc3d.org>.
19787
19788 2010-09-18  Jim Meyering  <meyering@redhat.com>
19789
19790         maint.mk: avoid unexpanded \n in two diagnostics
19791         * top/maint.mk (sc_prohibit_always_true_header_tests):
19792         Don't use a literal \n in a halt=... assignment.  It would not be
19793         expanded, and the two \n bytes would appear in the diagnostic output
19794         rather than the desired newline.  Use halt=$$(printf ... instead.
19795         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19796
19797 2010-09-18  Bruno Haible  <bruno@clisp.org>
19798
19799         netinet_in: Doc tweak.
19800         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19801         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19802
19803 2010-09-18  Jim Meyering  <meyering@redhat.com>
19804
19805         init.sh: correct an outdated comment
19806         * tests/init.sh (create_exe_shims_):  s/function/alias/
19807
19808         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19809         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19810         a file named "*.exe" is removed between the glob expansion and the
19811         processing of that oddly named file.
19812
19813 2010-09-17  Eric Blake  <eblake@redhat.com>
19814
19815         mirbsd: add some more support
19816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19817         in BSD family.
19818         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19819         devices as OpenBSD.
19820         * m4/host-os.m4 (mirbsd): Add MirBSD.
19821
19822         tests: fix unportable assumption on sys/wait.h
19823         * tests/test-sys_wait.c (main): Relax test.
19824         * tests/test-stdlib.c (main): Likewise.
19825
19826         init.sh: accomodate directory with no .exes
19827         * tests/init.sh: Accomodate directory containing only scripts.
19828
19829         tests: avoid compiler warning
19830         * tests/test-stdlib.c (main): Use the variable.
19831
19832         fdutimens, fdutimensat: update signature, again
19833         * lib/utimens.h (gl_futimens): Delete, and move signature...
19834         (fdutimens): ...here.
19835         (fdutimensat): Rearrange signature.
19836         (lutimensat): Rename variable for clarity.
19837         * lib/fdutimensat.c (fdutimensat): Update signature.
19838         * lib/utimens.c (fdutimens): Likewise.
19839         (gl_futimens): Delete.
19840         (utimens, lutimens): Update callers.
19841         * lib/futimens.c (futimens): Likewise.
19842         * tests/test-fdutimensat.c: Likewise.
19843         * tests/test-utimens.c: Likewise.
19844         * tests/test-futimens.h: Update comment.
19845         * NEWS: Mention this.
19846         Suggested by Paul Eggert.
19847
19848 2010-09-17  Bruno Haible  <bruno@clisp.org>
19849
19850         Take over the maintenance of some older macros from Autoconf.
19851         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19852         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19853         GNU Autoconf.
19854         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19855         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19856
19857 2010-09-17  Eric Blake  <eblake@redhat.com>
19858
19859         fdutimensat: drop atflag validation
19860         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19861         with valid fd, to close a race scenario where futimens is
19862         unsupported and FILE was replaced by a symlink.
19863         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19864         accordingly.
19865         Suggested by Paul Eggert.
19866
19867 2010-09-16  Bruno Haible  <bruno@clisp.org>
19868
19869         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19870         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19871
19872 2010-09-16  Bruno Haible  <bruno@clisp.org>
19873
19874         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19875         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19876         login_tty exists.
19877         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19878
19879 2010-09-16  Bruno Haible  <bruno@clisp.org>
19880
19881         login_tty: Make the replacement code work on BSD systems.
19882         * lib/login_tty.c: Include <sys/ioctl.h>.
19883         (login_tty): Use ioctl TIOCSCTTY when available.
19884         * modules/login_tty (Depends-on): Add sys_ioctl.
19885         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19886
19887 2010-09-16  Bruno Haible  <bruno@clisp.org>
19888
19889         login_tty: Stricter unit test.
19890         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19891         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19892         and tcgetsid() after login_tty.
19893         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19894
19895 2010-09-16  Bruno Haible  <bruno@clisp.org>
19896
19897         New module 'tcgetsid'.
19898         * lib/tcgetsid.c: New file.
19899         * m4/tcgetsid.m4: New file.
19900         * modules/tcgetsid: New file.
19901         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19902         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19903         GNULIB_TCGETSID, HAVE_TCGETSID.
19904         * lib/termios.in.h: Include <sys/types.h>.
19905         (tcgetsid): New declaration.
19906         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19907         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19908         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19909         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19910
19911 2010-09-16  Bruno Haible  <bruno@clisp.org>
19912
19913         Tests for module 'termios'.
19914         * modules/termios-c++-tests: New file.
19915         * modules/termios-tests: New file.
19916         * tests/test-termios-c++.cc: New file.
19917         * tests/test-termios.c: New file.
19918
19919         New module 'termios'.
19920         * modules/termios: New file.
19921         * lib/termios.in.h: New file.
19922         * m4/termios_h.m4: New file.
19923         * doc/posix-headers/termios.texi: Mention the new module.
19924
19925 2010-09-16  Eric Blake  <eblake@redhat.com>
19926
19927         fdutimensat: add an atflag parameter
19928         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19929         * lib/utimens.h (fdutimensat): Update prototype.
19930         * tests/test-fdutimensat.c: Adjust test to match.
19931         * NEWS: Document the change.
19932         Suggested by Paul Eggert.
19933
19934 2010-09-16  Bruno Haible  <bruno@clisp.org>
19935
19936         Fix typos in comments.
19937         * lib/striconveh.h: Fix typo in comment.
19938         * lib/login_tty.c (login_tty): Likewise.
19939
19940 2010-09-15  Bruno Haible  <bruno@clisp.org>
19941
19942         stdlib: clarify MirBSD WEXITSTATUS bug
19943         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19944         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19945
19946 2010-09-15  Eric Blake  <eblake@redhat.com>
19947
19948         stdlib: work around MirBSD WEXITSTATUS bug
19949         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19950         * modules/stdlib (Depends-on): Add sys_wait.
19951         * tests/test-sys_wait.c (main): Enhance test.
19952         * tests/test-stdlib.c (main): Likewise.
19953         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19954
19955         docs: mention MacOS issue with WEXITSTATUS(constant)
19956         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19957         issue.
19958         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19959
19960         strnlen: add tests
19961         * modules/strnlen-tests: New file.
19962         * tests/test-strnlen.c: Likewise.
19963
19964 2010-09-14  Bruno Haible  <bruno@clisp.org>
19965
19966         unistr/base: Avoid link errors when module 'libunistring' is also used.
19967         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19968         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19969         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19970         Declare also when HAVE_LIBUNISTRING is set.
19971         Reported by Pádraig Brady <P@draigbrady.com>.
19972
19973 2010-09-14  Eric Blake  <eblake@redhat.com>
19974
19975         test-rawmemchr: make more robust
19976         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19977         (Depends-on, configure.ac): Add needed prerequisites to use it.
19978         * modules/memchr-tests (Files, Depends-on, configure.ac):
19979         Likewise, to avoid implicit reliance on memchr module prereqs.
19980         * tests/test-memchr.c (main): Ensure proper masking.
19981         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19982         reads.
19983
19984         memchr: detect glibc Alpha bug
19985         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19986         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19987         Alpha.
19988         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19989         * tests/test-memchr.c (main): Enhance test.
19990         Reported by Nelson H. F. Beebe.
19991
19992 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19993
19994         fts, getcwd, glob: audit for dirfd returning -1
19995         * lib/fts.c (opendir): Remove #define; no longer used.
19996         (opendirat): New arg PDIR_FD.  All callers changed.
19997         (fts_build, _opendir2): Use new opendirat to avoid the need for
19998         dirfd, or for checking whether dirfd returns a negative value.
19999         Don't use opendir; always use openat followed by fdopendir.
20000         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20001         it.
20002         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20003         returns -1 here.
20004         * modules/fts (Depends-on): Remove dirfd.
20005         * modules/getcwd (Depends-on): Likewise.
20006
20007 2010-09-13  Eric Blake  <eblake@redhat.com>
20008
20009         float: fix broken MirBSD header
20010         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20011         * doc/posix-headers/float.texi (float.h): Document it.
20012
20013 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20014
20015         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20016         * lib/fts.c (opendirat): New arg extra_flags.
20017         (__opendir2): Use it to avoid following symlinks when opening
20018         a directory, if symlinks are not supposed to be followed.  See
20019         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20020
20021         fdopendir: preserve argument fd before returning
20022         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20023         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20024         (fdopendir): Use them, arranging for FD to be open to the same
20025         directory that it was when it started.  (It might be temporarily
20026         closed while fdopendir is running, so this not thread- or
20027         signal-safe.)  Be careful to do the right thing even when file
20028         descriptors are scarce and dup fails with errno == EMFILE.  See
20029         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20030
20031 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20032
20033         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20034         * NEWS: Document change.
20035         * m4/regex.m4: Disable test for regoff_t size.
20036
20037 2010-09-13  Jim Meyering  <meyering@redhat.com>
20038
20039         fts: don't operate on an invalid file descriptor after failed dup
20040         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20041         negative file descriptor.
20042
20043 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20044
20045         savedir: add streamsavedir, deprecate fdsavedir
20046         * NEWS: Mention deprecation of fdsavedir.
20047         * lib/savedir.c (streamsavedir): New extern function, whose name
20048         ends in "savedir" to be consistent with the others.  This differs
20049         from savedirstream in that it doesn't close its argument.  The
20050         next version of GNU tar will use this instead of fdsavedir, to
20051         avoid some race conditions and conserve file descriptors.
20052         (savedirstream): Reimplement as a wrapper around streamsavedir.
20053         (fdsavedir): Add a comment deprecating this function.  As far as
20054         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20055         * lib/savedir.h (streamsavedir): New decl.
20056         (fdsavedir): Add a comment deprecating this.
20057
20058 2010-09-10  Bruno Haible  <bruno@clisp.org>
20059
20060         langinfo: Fix last commit.
20061         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20062         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20063         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20064
20065 2010-09-10  Bruno Haible  <bruno@clisp.org>
20066
20067         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20068         * lib/progreloc.c (O_EXEC): Define fallback.
20069
20070 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20071
20072         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20073         * NEWS: Document recent changes to fcntl-h.
20074         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20075         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20076         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20077         Similarly for O_SEARCH; this last was already true, but not documented.
20078         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20079         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20080         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20081         Likewise.
20082         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20083         is zero, not whether it is defined.
20084         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20085         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20086         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20087
20088 2010-09-10  Bruno Haible  <bruno@clisp.org>
20089
20090         langinfo, nl_langinfo: Fix for IRIX 5.3.
20091         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20092         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20093         HAVE_LANGINFO_YESEXPR.
20094         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20095         HAVE_LANGINFO_YESEXPR.
20096         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20097         HAVE_LANGINFO_T_FMT_AMPM is 0.
20098         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20099         HAVE_LANGINFO_YESEXPR is 0.
20100         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20101         NOEXPR.
20102         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20103         * doc/posix-functions/nl_langinfo.texi: Likewise.
20104         Reported by Eric Blake.
20105
20106 2010-09-10  Bruno Haible  <bruno@clisp.org>
20107
20108         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20109         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20110         on FreeBSD 8.0 and OpenBSD 4.6.
20111         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20112         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20113         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20114         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20115         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20116         ac_includes_default.
20117         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20118
20119 2010-09-09  Eric Blake  <eblake@redhat.com>
20120
20121         strsignal: work around NetBSD bug
20122         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20123         * lib/string.in.h (includes): Likewise.
20124         * doc/posix-functions/strsignal.texi (strsignal): Document the
20125         bug.
20126         Reported by Nelson H. F. Beebe.
20127
20128         gnulib-tool: work with NetBSD /bin/sh
20129         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20130         (func_get_description, func_get_comment, func_get_status)
20131         (func_get_notice, func_get_applicability, func_get_filelist)
20132         (func_get_dependencies, func_get_autoconf_early_snippet)
20133         (func_get_autoconf_snippet, func_get_automake_snippet)
20134         (func_get_include_directive, func_get_link_directive)
20135         (func_get_license, func_get_maintainer, func_import): Avoid
20136         shell syntax errors from parsing syntax extensions.
20137
20138 2010-09-09  Bruno Haible  <bruno@clisp.org>
20139
20140         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20141         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20142         a reliable way to determine whether the 'alias' command works.
20143
20144 2010-09-08  Jim Meyering  <meyering@redhat.com>
20145
20146         init.sh: penalize a set-x-impaired shell; don't disqualify it
20147         * tests/init.sh: Too many shells corrupt application stderr when
20148         you set -x, so we can't afford to disqualify them, since at least
20149         on Irix-6.5, that would disqualify all bourne shells.
20150         Instead, use a two-pass approach.
20151         On the first pass, try to find a shell that meets the stricter
20152         condition that set -x does not corrupt stderr.
20153         If no shell meets the stricter condition, retest each candidate
20154         shell, but without that extra condition.  Finally, when
20155         VERBOSE=yes is requested and set -x might cause trouble, simply
20156         issue a warning and refrain from enabling debug output.
20157
20158 2010-09-08  Eric Blake  <eblake@redhat.com>
20159
20160         unsetenv: fix OpenBSD bug
20161         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20162         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20163         documentation.
20164         Reported by Jim Meyering.
20165
20166         strtod: work around IRIX 6.5 bug
20167         * lib/strtod.c (strtod): Reparse number on shorter string if
20168         exponent parse was invalid.
20169         * tests/test-strtod.c (main): Add check for "0x1p 2".
20170         Reported by Tom G. Christensen.
20171
20172         getopt: optimize previous patch
20173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20174         empty variable.  Speed up awk script.
20175         Reported by Paolo Bonzini.
20176
20177 2010-09-08  Jim Meyering  <meyering@redhat.com>
20178
20179         test.sh: disqualify shells for which set -x corrupts stderr
20180         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20181         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20182         appear in stderr output.  For example, this command:
20183             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20184         prints "P=1" on those two systems:
20185
20186 2010-09-08  Bruno Haible  <bruno@clisp.org>
20187
20188         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20189         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20190         commands, because some shells ignore redirections when there is an
20191         error in the command lookup.
20192         Reported by Eric Blake.
20193
20194 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20195
20196         * lib/regex.h: Fix a mention of `regex_compile' (should be
20197         `re_compile_pattern').
20198         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20199         (re_set_registers): Correct name of parameter in comment.
20200
20201         * doc/regex.texi: Add documentation for missing syntax flags.
20202         Remove commented-out documentation of defunct syntax option
20203         RE_NO_EMPTY_ALTS.
20204         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20205         Add documentation of re_set_registers.
20206         Document trick to re-use a pattern buffer by setting fastmap manually.
20207         Update documentation of struct re_pattern_buffer per public members.
20208         Uncomment documentation of equivalence class operators and
20209         collating symbol operators, since they are now implemented,
20210         Explain leftmost-longest matching in relation to alternatives.
20211         Tidy documentation of substring matching.
20212         Remove POSIX documentation, which is done better in
20213         glibc, and refer the reader there. Keep BSD API documentation, as
20214         that is not readily available elsewhere.
20215
20216 2010-09-07  Eric Blake  <eblake@redhat.com>
20217
20218         getopt: handle POSIXLY_CORRECT set but not exported
20219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20220         export state of POSIXLY_CORRECT, due to bash set -o posix.
20221         Reported by Dustin J. Mitchell.
20222
20223 2010-09-05  Bruno Haible  <bruno@clisp.org>
20224
20225         gnulib-tool: Highlight the changed options.
20226         * gnulib-tool (func_usage): Display the --import, --add-import,
20227         --remove-import explanations in bold font.
20228
20229 2010-09-06  Karl Berry  <karl@gnu.org>
20230
20231         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20232
20233 2010-09-05  Bruno Haible  <bruno@clisp.org>
20234
20235         uniwidth/width: Update comment.
20236         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20237         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20238
20239 2010-09-05  Bruno Haible  <bruno@clisp.org>
20240
20241         isinf, isnan: Relax license.
20242         * modules/isinf (License): Change from GPL to LGPL, with consent from
20243         Ben Pfaff.
20244         * modules/isnan (License): Likewise.
20245         Requested by Ludovic Courtès.
20246
20247 2010-09-04  Bruno Haible  <bruno@clisp.org>
20248
20249         gnulib-tool: Help migration from --import to --add-import or --update.
20250         * gnulib-tool: Emit a verbose error message when --import is used
20251         without any module name.
20252
20253 2010-09-04  Bruno Haible  <bruno@clisp.org>
20254
20255         Update doc about gnulib-tool.
20256         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20257         'gnulib-tool --update' in more detail.
20258         Reported by Eric Blake.
20259
20260 2010-09-04  Bruno Haible  <bruno@clisp.org>
20261
20262         gnulib-tool: Change --import. New options --add/remove-import.
20263         * gnulib-tool: New options --add-import, --remove-import.
20264         (func_usage): Document them.
20265         (have_associative): Define always.
20266         (func_import): In import mode, don't merge the specified settings with
20267         the cached settings. Implement remove-import mode.
20268         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20269         Explain when to use them versus --import.
20270         (Simple update): Use --add-import instead of --import.
20271         * NEWS: Mention the change.
20272
20273 2010-09-04  Bruno Haible  <bruno@clisp.org>
20274
20275         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20276         separate gnulib.mk.
20277
20278 2010-09-04  Bruno Haible  <bruno@clisp.org>
20279
20280         gnulib-tool: Don't talk about CVS any more.
20281         * gnulib-tool (func_usage, func_import): Write "version control"
20282         instead of CVS.
20283
20284 2010-09-04  Jim Meyering  <meyering@redhat.com>
20285
20286         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20287         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20288         false positives (whose names may be ill-chosen) when searching
20289         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20290         would cause a false-positive.
20291
20292         avoid coreutils "make distcheck" failure
20293         Coreutils tests with an absolute build directory name that contains
20294         a space.  Not quoting this directory name caused a failure.
20295         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20296         * tests/test-vc-list-files-cvs.sh: Likewise.
20297
20298 2010-09-04  Bruno Haible  <bruno@clisp.org>
20299
20300         gnulib-tool: Avoid error when run in a package without Makefile.am.
20301         * gnulib-tool: When collecting the m4dirs in a package that does not
20302         have a Makefile.am, eliminate those directories that contain no
20303         gnulib-cache.m4. Fix expression that counts these directories.
20304
20305 2010-09-04  Bruno Haible  <bruno@clisp.org>
20306
20307         update-copyright test: Improve output when perl is missing or too old.
20308         * tests/test-update-copyright.sh: Move test of Perl version down after
20309         the test whether Perl exists. Provide an explanation relating Perl's
20310         error message to Automake's SKIP: message.
20311
20312 2010-09-04  Bruno Haible  <bruno@clisp.org>
20313
20314         Don't augment PATH in TESTS_ENVIRONMENT.
20315         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20316         set abs_aux_dir instead of augmenting PATH.
20317         * modules/vc-list-files-tests (Makefile.am): Likewise.
20318         * tests/test-update-copyright.sh: Augment PATH here.
20319         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20320         path_prepend_.
20321         * tests/test-vc-list-files-git.sh: Likewise.
20322
20323 2010-09-04  Jim Meyering  <meyering@redhat.com>
20324
20325         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20326         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20327
20328 2010-09-04  Bruno Haible  <bruno@clisp.org>
20329
20330         strdup: Fix compilation error in C++ mode.
20331         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20332         the macro.
20333
20334 2010-09-04  Bruno Haible  <bruno@clisp.org>
20335
20336         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20337         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20338         macro into a function.
20339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20340
20341 2010-09-04  Bruno Haible  <bruno@clisp.org>
20342
20343         Set PATH_SEPARATOR the same way autoconf does.
20344         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20345         the value of PATH_SEPARATOR the same way autoconf-generated configure
20346         scripts do.
20347         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20348         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20349
20350 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20351
20352         Set PATH_SEPARATOR the same way autoconf does.
20353         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20354         the same way autoconf-generated configure scripts do.
20355         * posix-modules: Likewise.
20356
20357 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20358
20359         hash: fix safe_hasher const typo
20360         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20361         const; otherwise, there is a type error later.
20362
20363 2010-09-02  Jim Meyering  <meyering@redhat.com>
20364
20365         test-update-copyright.sh: require perl 5.8.0
20366         * tests/test-update-copyright.sh: Require 5.8.0,
20367         which Tom G. Christensen has confirmed is adequate,
20368         while 5.6.1 is not.
20369
20370 2010-09-02  Eric Blake  <eblake@redhat.com>
20371
20372         tests: init.sh improvements for re-exec'ing with zsh
20373         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20374         -vx through shell re-exec.
20375         Reported by Tom G. Christensen.
20376
20377         wctype: fix typo in previous commit
20378         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20379         Reported by Ludovic Courtès.
20380
20381 2010-09-02  Jim Meyering  <meyering@redhat.com>
20382
20383         test-update-copyright.sh: skip test if Perl is too old
20384         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20385         Reported by Tom G. Christensen.
20386
20387 2010-09-02  Bruno Haible  <bruno@clisp.org>
20388
20389         wctype: Avoid compilation error on IRIX 6.5.30.
20390         * lib/wctype.in.h (iswblank): Declare with a replacement if
20391         REPLACE_ISWBLANK is set.
20392         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20393         declared. Set REPLACE_ISWBLANK.
20394         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20395         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20396         * doc/posix-headers/wctype.texi: Likewise.
20397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20398
20399 2010-09-01  Bruno Haible  <bruno@clisp.org>
20400
20401         New module 'socketlib'.
20402         * modules/socketlib: New file.
20403         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20404         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20405         * modules/sockets (Depends-on): Add socketlib.
20406         Suggested by Sam Steingold <sds@gnu.org>.
20407
20408 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20409
20410         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20411
20412         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20413         when one needs search access to a directory but not read access.
20414         On systems where it is available, it works in some cases where
20415         O_RDONLY does not, namely on directories that are searchable but
20416         not readable, and which need only to be searchable.  If O_SEARCH
20417         is not available, fall back to the traditional method of using
20418         O_RDONLY.
20419
20420         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20421         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20422         when opening a directory that needs only to be searchable.
20423         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20424         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20425         * lib/openat-proc.c (openat_proc_name): Likewise.
20426         * lib/openat.c (openat_needs_fchdir): Likewise.
20427         * lib/save-cwd.c (save_cwd): Likewise.
20428         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20429
20430 2010-08-28  Bruno Haible  <bruno@clisp.org>
20431
20432         New module 'host-cpu-c-abi'.
20433         * modules/host-cpu-c-abi: New file.
20434         * m4/host-cpu-c-abi.m4: New file, based on part of
20435         clisp/src/m4/general.m4.
20436         Requested by Sam Steingold <sds@gnu.org>.
20437
20438 2010-08-31  Eric Blake  <eblake@redhat.com>
20439         and Jim Meyering  <meyering@redhat.com>
20440
20441         hash: factor, and guard against misbehaving hasher function
20442         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20443         of table->hasher's return value.  Also protect against a hash value
20444         so large that adding it to table->bucket results in a NULL pointer.
20445         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20446         Use it in place of open-coded check-and-abort.
20447
20448 2010-08-30  Bruno Haible  <bruno@clisp.org>
20449
20450         hash: silence spurious clang warning
20451         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20452         Reported by Eric Blake.
20453
20454 2010-08-30  Eric Blake  <eblake@redhat.com>
20455
20456         strstr, memmem, strcasestr: avoid leaked shell message
20457         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20458         FreeBSD.
20459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20460         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20461
20462         tests: silence clang warning
20463         * tests/test-malloca.c (do_allocation): Avoid dead store.
20464
20465 2010-08-29  Bruno Haible  <bruno@clisp.org>
20466
20467         gettext: Fix recent mistake.
20468         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20469
20470 2010-08-29  Bruno Haible  <bruno@clisp.org>
20471
20472         selinux-h: Offer a --without-selinux option.
20473         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20474         --without-selinux was specified, skip all tests and define
20475         HAVE_SELINUX_SELINUX_H to 0.
20476         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20477         set LIB_SELINUX to empty.
20478         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20479         gl_LIBSELINUX. If --without-selinux was specified, replace
20480         selinux/context.h.
20481         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20482
20483 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20484             Bruno Haible  <bruno@clisp.org>
20485
20486         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20487         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20488         of HAVE_REALLOC.
20489         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20490         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20491         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20492         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20493
20494 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20495             Bruno Haible  <bruno@clisp.org>
20496
20497         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20498         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20499         HAVE_CALLOC.
20500         * lib/xmalloc.c: Update accordingly.
20501         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20502         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20503         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20504
20505 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20506             Bruno Haible  <bruno@clisp.org>
20507
20508         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20509         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20510         HAVE_MALLOC.
20511         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20512         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20513         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20514
20515 2010-08-29  Bruno Haible  <bruno@clisp.org>
20516
20517         Update modules list.
20518         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20519         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20520         (String handling <string.h>): Add astrxfrm.
20521         (File system functions): Add readlinkat.
20522
20523 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20524
20525         Tests for module 'realloc-gnu'.
20526         * modules/realloc-gnu-tests: New file.
20527         * tests/test-realloc-gnu.c: New file.
20528
20529         Tests for module 'calloc-gnu'.
20530         * modules/calloc-gnu-tests: New file.
20531         * tests/test-calloc-gnu.c: New file.
20532
20533         Tests for module 'malloc-gnu'.
20534         * modules/malloc-gnu-tests: New file.
20535         * tests/test-malloc-gnu.c: New file.
20536
20537 2010-08-28  Bruno Haible  <bruno@clisp.org>
20538
20539         Rename module 'realloc' -> 'realloc-gnu'.
20540         * modules/realloc-gnu: New file, copied from modules/realloc.
20541         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20542         obsolete.
20543         * modules/mgetgroups (Depends-on): Update.
20544         * doc/posix-functions/realloc.texi: Update.
20545         * NEWS: Mention the change.
20546
20547         Rename module 'calloc' -> 'calloc-gnu'.
20548         * modules/calloc-gnu: New file, copied from modules/calloc.
20549         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20550         obsolete.
20551         * doc/posix-functions/calloc.texi: Update.
20552         * NEWS: Mention the change.
20553
20554         Rename module 'malloc' -> 'malloc-gnu'.
20555         * modules/malloc-gnu: New file, copied from modules/malloc.
20556         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20557         obsolete.
20558         * modules/argp (Depends-on): Update.
20559         * modules/regex (Depends-on): Update.
20560         * doc/posix-functions/malloc.texi: Update.
20561         * NEWS: Mention the change.
20562
20563 2010-08-28  Eric Blake  <eblake@redhat.com>
20564
20565         pread, pwrite: add missing dependency
20566         * modules/pread (Depends-on): Add extensions.
20567         * modules/pwrite (Depends-on): Likewise.
20568
20569 2010-08-28  Bruno Haible  <bruno@clisp.org>
20570
20571         unistr/u*-strchr: Fix tests dependencies.
20572         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20573         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20574         Reported by Ian Beckwith <ianb@erislabs.net>.
20575
20576 2010-08-28  Bruno Haible  <bruno@clisp.org>
20577
20578         read-file: Don't occupy too much unused memory.
20579         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20580
20581 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20582             Eric Blake  <eblake@redhat.com>
20583             Bruno Haible  <bruno@clisp.org>
20584
20585         read-file: Avoid memory reallocations with regular files.
20586         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20587         (fread_file): With regular files, use the remaining length as the
20588         initial buffer size.  Check against overflow.
20589         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20590         sys_stat.
20591
20592 2010-08-28  Bruno Haible  <bruno@clisp.org>
20593
20594         ftello: Relax license.
20595         * modules/ftello (License): Relax to LGPLv2+.
20596         Reported by Eric Blake.
20597
20598 2010-08-28  Bruno Haible  <bruno@clisp.org>
20599
20600         Avoid relocwrapper link errors due to gnulib replacement functions.
20601         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20602         function.
20603         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20604
20605 2010-08-28  Bruno Haible  <bruno@clisp.org>
20606
20607         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20608         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20609         defined.
20610         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20611         Suggested by Eric Blake.
20612
20613 2010-08-28  Bruno Haible  <bruno@clisp.org>
20614
20615         sys_socket, netdb: Ensure socklen_t gets defined.
20616         * modules/sys_socket (Depends-on): Add socklen.
20617         * modules/netdb (Depends-on): Likewise.
20618         * modules/getaddrinfo (Depends-on): Remove socklen.
20619         * modules/getsockopt (Depends-on): Likewise.
20620         * modules/setsockopt (Depends-on): Likewise.
20621         * tests/test-sys_socket.c: Check that socklen_t is defined.
20622         * tests/test-netdb.c: Likewise.
20623         * m4/socklen.m4: Update comments.
20624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20625
20626 2010-08-27  Eric Blake  <eblake@redhat.com>
20627
20628         login_tty: add missing dependency
20629         * modules/login_tty (Depends-on): Add pty.
20630
20631 2010-08-26  Eric Blake  <eblake@redhat.com>
20632
20633         lib-symbol-versions: fix m4 quoting
20634         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20635         format for AC_LINK_IFELSE.
20636
20637         glob: fix compile test
20638         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20639
20640         btowc: fix missing file
20641         * modules/btowc (Files): Also ship locale-fr.m4.
20642
20643         lseek: fix link test
20644         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20645         AC_LINK_IFELSE.
20646
20647         include_next: silence autoconf 2.68 warning
20648         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20649         AC_COMPILE_IFELSE as special.
20650         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20651         autoconf < 2.68.
20652
20653         acl: fix compilation test
20654         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20655         AC_COMPILE_IFELSE.
20656
20657 2010-08-26  Bruno Haible  <bruno@clisp.org>
20658
20659         Modernize AC_TRY_RUN invocations.
20660         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20661         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20662         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20663         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20664         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20665         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20666         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20667         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20668         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20669         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20670         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20671         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20672         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20673         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20674         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20675         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20676         gl_MBRLEN_NUL_RETVAL): Likewise.
20677         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20678         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20679         Likewise.
20680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20681         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20682         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20683         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20684         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20685         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20686         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20687         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20688         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20689         Likewise.
20690         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20691         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20692         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20693         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20694         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20695         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20696         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20697         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20698         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20699         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20700
20701 2010-08-26  Bruno Haible  <bruno@clisp.org>
20702
20703         Modernize AC_TRY_LINK invocations.
20704         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20705         AC_TRY_LINK.
20706         * m4/argp.m4 (gl_ARGP): Likewise.
20707         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20708         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20709         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20710         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20711         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20712         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20713         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20714         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20715         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20716         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20717         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20718         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20719         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20720         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20721         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20722         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20723         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20724         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20725         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20726         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20727         Likewise.
20728         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20729         Likewise.
20730         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20731         Likewise.
20732         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20734         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20735         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20736         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20737         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20738         * m4/servent.m4 (gl_SERVENT): Likewise.
20739         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20740         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20741         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20742         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20743         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20744         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20745         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20746         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20747         * modules/tsearch-tests (configure.ac): Likewise.
20748
20749 2010-08-26  Bruno Haible  <bruno@clisp.org>
20750
20751         Modernize AC_TRY_COMPILE invocations.
20752         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20753         AC_TRY_COMPILE.
20754         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20755         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20756         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20757         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20758         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20759         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20760         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20761         * m4/lock.m4 (gl_LOCK): Likewise.
20762         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20763         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20764         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20765         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20766         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20767         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20768         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20770         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20771         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20772         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20773         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20774         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20775         extraneous semicolon.
20776
20777 2010-08-26  Jim Meyering  <meyering@redhat.com>
20778
20779         stat-time: relax license LGPL
20780         * modules/stat-time (License): Change from GPL to LGPL,
20781         with consent from all contributors, for use in libguile.
20782         Requested by Ludovic Courtès.
20783
20784 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20785
20786         poll: return immediately on POLLHUP.
20787         * lib/poll.c (poll): Always set timeout before wait_timeout is
20788         computed.
20789
20790 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20791
20792         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20793         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20794         rmdir ("dir/.//"), unlinkat.
20795
20796 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20797
20798         stdbool: avoid spurious failure with modern xlc
20799         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20800
20801 2010-08-24  Bruno Haible  <bruno@clisp.org>
20802
20803         getloadavg: simplify code
20804         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20805         gl_have_func. Update comments.
20806
20807 2010-08-24  Eric Blake  <eblake@redhat.com>
20808
20809         getloadavg: don't define SVR4 on cygwin
20810         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20811         only define SVR4 when -lkvm is required.
20812         Reported by Yaakov Selkowitz.
20813
20814 2010-08-24  Bruno Haible  <bruno@clisp.org>
20815
20816         priv-set: fix comment
20817         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20818
20819 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20820
20821         priv-set: fix comments
20822         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20823         to match code, as suggested by David Bartley in:
20824         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20825
20826 2010-08-23  Eric Blake  <eblake@redhat.com>
20827
20828         stdbool: avoid rejecting clang
20829         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20830         * tests/test-stdbool.c: Enable more tests if using the system
20831         <stdbool.h> instead of the gnulib replacement.
20832         (main): Move xlc bug test to a runtime test for all compilers.
20833         Reported by Anders Kaseorg.
20834
20835         argz: fix shell quoting issue
20836         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20837         Reported by Charles Wilson.
20838
20839 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20840             Erik Faye-Lund <kusmabite@gmail.com>
20841
20842         poll, select: handle ERROR_BROKEN_PIPE.
20843         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20844         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20845         * lib/select.c (win32_compute_revents): Do not mark a pipe
20846         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20847
20848 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20849
20850         fts: allow compilation with C++
20851         * lib/fts_.h: Specify extern "C" linkage with C++.
20852
20853 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20854
20855         Fix gnulib-tool sed script de-commentation for AIX sed.
20856         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20857         sed.
20858
20859 2010-08-17  Eric Blake  <eblake@redhat.com>
20860
20861         test-stddef: test for (some) offsetof bugs
20862         * tests/test-stddef.c: Enhance test to ensure correct type of
20863         offsetof.
20864         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20865         that we are not fixing at this time.
20866
20867 2010-08-15  Bruno Haible  <bruno@clisp.org>
20868
20869         stpncpy: Allow stpncpy to be defined as a macro.
20870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20871         if it's already correctly declared.
20872         * lib/string.in.h (stpncpy): Undefine before redefining.
20873         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20874
20875 2010-08-14  Bruno Haible  <bruno@clisp.org>
20876
20877         Rename module 'memxfrm' to 'amemxfrm'.
20878         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20879         (amemxfrm): Renamed from memxfrm.
20880         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20881         (amemxfrm): Renamed from memxfrm.
20882         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20883         * NEWS: Mention the change.
20884         * MODULES.html.sh (String handling <string.h>): Update.
20885         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20886         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20887         * lib/unicase/u16-casexfrm.c: Likewise.
20888         * lib/unicase/u32-casexfrm.c: Likewise.
20889         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20890         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20891         * lib/uninorm/u16-normxfrm.c: Likewise.
20892         * lib/uninorm/u32-normxfrm.c: Likewise.
20893         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20894         memxfrm.
20895         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20896         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20897         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20898         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20899         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20900         Suggested by Paul Eggert.
20901
20902 2010-08-14  Bruno Haible  <bruno@clisp.org>
20903
20904         Tests for module 'astrxfrm'.
20905         * modules/astrxfrm-tests: New file.
20906         * tests/test-astrxfrm.c: New file.
20907
20908         New module 'astrxfrm'.
20909         * lib/astrxfrm.h: New file.
20910         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20911         * modules/astrxfrm: New file.
20912
20913 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20914
20915         regex: Tweak doc.
20916         * doc/regex.texi (Overview): Don't mention regex.c.
20917         (GNU Regular Expression Compiling): Likewise.
20918         (Match-end-of-line Operator): Mention 'not_eol'.
20919
20920 2010-08-14  Brian Gough  <bjg@gnu.org>
20921             Bruno Haible  <bruno@clisp.org>
20922
20923         git-merge-changelog: add doc relating to use with bzr and hg.
20924         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20925
20926 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20927
20928         pthread: fix pthread.h creation for srcdir != builddir
20929         * modules/pthread (Makefile.am): Fix the rule to work also in a
20930         non-srcdir build.
20931
20932 2010-08-13  Karl Berry  <karl@gnu.org>
20933
20934         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20935         * doc/posix-*/*: force line break before @url of POSIX
20936         specifications.
20937         Suggested by Werner Lemberg.
20938
20939 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         strtod: fix const diagnostic
20942         * lib/strtod.c (strtod): Don't assign const char * to char *,
20943         as this elicits a warning from GCC when warnings are enabled.
20944
20945 2010-08-10  Pádraig Brady <P@draigbrady.com>
20946         and Eric Blake  <eblake@redhat.com>
20947
20948         copy-acl: ignore ENOTSUP on HP-UX
20949         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20950         so that it is available for HP-UX.
20951         * lib/copy-acl.c (qcopy_acl): Use it.
20952         Reported by Patrick M. Callahan.
20953
20954 2010-08-10  Eric Blake  <eblake@redhat.com>
20955
20956         open, chown: relax license
20957         * modules/open (License): Change to LGPLv2+, with consent by all
20958         authors, for use in augeas.
20959         * modules/chown (License): Likewise.
20960         * modules/lchown (Likewise): Likewise.
20961         Requested by Adam Stokes.
20962
20963 2010-08-09  Karl Berry  <karl@gnu.org>
20964
20965         * build-aux/ar-lib: new file, import from Automake.
20966         * config/srclist.txt: autocheck for updates.
20967
20968 2010-08-09  Eric Blake  <eblake@redhat.com>
20969
20970         readlinkat: adjust client modules
20971         * modules/areadlinkat (Depends-on): Use readlinkat, not
20972         symlinkat.
20973         * modules/areadlinkat-with-size (Depends-on): Likewise.
20974
20975         mknod: be more vocal about danger of running tests as root
20976         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20977         root, since that is just asking for problems.
20978         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20979
20980         readlinkat: split into its own module
20981         * modules/symlinkat: Split readlinkat...
20982         * modules/readlinkat: ...into separate module.
20983         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20984         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20985         * lib/symlinkat.c (readlinkat): Move...
20986         * lib/readlinkat.c: ...into new file.
20987         * modules/symlinkat-tests: Split readlinkat test...
20988         * modules/readlinkat-tests: ...into separate module.
20989         * tests/test-symlinkat.c: Split...
20990         * tests/test-readlinkat.c: ...into new file.
20991         * NEWS: Document the split.
20992         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20993         * lib/unistd.in.h (readlinkat): Likewise.
20994         Suggested by Bruno Haible.
20995
20996 2010-08-08  Bruno Haible  <bruno@clisp.org>
20997
20998         memxfrm: Speed up.
20999         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21000         that usually only one call to strxfrm is necessary for each string
21001         part.
21002         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21003
21004 2010-08-07  Karl Berry  <karl@gnu.org>
21005
21006         * doc/posix-headers/limits.texi,
21007         * doc/posix-functions/malloc.texi,
21008         * doc/posix-functions/strsignal.texi: missing @item.
21009         * doc/ld-version-script.texi: spurious leading i.
21010         * doc/regex.texi (Interval Operators): no commas inside @var.
21011
21012 2010-08-01  Bruno Haible  <bruno@clisp.org>
21013
21014         Integrate the regex documentation.
21015         * doc/gnulib.texi: Define 'cn' index.
21016         (Regular expressions): New a chapter that includes regex.texi and
21017         regexprops-generic.texi.
21018         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21019         syntax.
21020
21021         Whitespace cleanup.
21022         * doc/regex.texi: Remove trailing spaces.
21023
21024         Add regex documentation.
21025         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21026         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21027         Written by Kathy A. Hargreaves and Karl Berry.
21028
21029 2010-08-01  Bruno Haible  <bruno@clisp.org>
21030
21031         link: Update documentation.
21032         * doc/posix-functions/link.texi: Update regarding Solaris.
21033
21034 2010-07-31  Bruno Haible  <bruno@clisp.org>
21035
21036         Update modules list.
21037         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21038         (String handling <string.h>): Add memcmp2, memxfrm.
21039         (Container data structures): Add xlist, xsublist, xoset.
21040         (Core language properties): Add alignof, unused-parameter.
21041         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21042         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21043         (Unibyte characters <ctype.h>): New section.
21044         (String handling <string.h>): New section.
21045         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21046         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21047         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21048         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21049         tan, tanh, tanl, y0, y1, yn.
21050         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21051         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21052         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21053         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21054         unlockpt, vdprintf, vdprintf-posix.
21055         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21056         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21057         xconcat-filename.
21058         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21059         getdtablesize, pipe2, pipe2-safer.
21060         (Security): New section.
21061         (Networking functions): Add accept4.
21062         (Signal handling): Add sigpipe.
21063         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21064         mbmemcasecoll.
21065         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21066         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21067         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21068         pipe-filter-ii.
21069         (Misc): Add argp-version-etc, login_tty, parse-duration.
21070
21071 2010-07-31  Bruno Haible  <bruno@clisp.org>
21072
21073         Improve doc in MODULES.html.
21074         * modules/linkat (Description): Add the word "function".
21075         * modules/mkfifo (Description): Likewise.
21076         * modules/mknod (Description): Likewise.
21077         * modules/remove (Description): Likewise.
21078         * modules/renameat (Description): Likewise.
21079         * modules/stat (Description): Likewise.
21080         * modules/symlink (Description): Likewise.
21081         * modules/unlink (Description): Likewise.
21082
21083 2010-07-31  Bruno Haible  <bruno@clisp.org>
21084
21085         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21086         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21087         option --enable/disable-c++ instead of --enable/disable-cxx.
21088         * NEWS: Mention the change.
21089
21090 2010-07-31  Bruno Haible  <bruno@clisp.org>
21091
21092         readlink, areadlink: Relax test a bit.
21093         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21094         alternative to ENOTDIR.
21095         * tests/test-areadlink.h (test_areadlink): Likewise.
21096         Reported by Rainer Tammer.
21097
21098 2010-07-31  Bruno Haible  <bruno@clisp.org>
21099
21100         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21101         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21102         character, perform the search using U_STRCHR.
21103         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21104         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21105         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21106         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21107         Suggested by Paolo Bonzini.
21108
21109 2010-07-31  Bruno Haible  <bruno@clisp.org>
21110
21111         unistr/u*-strstr: Fix dependencies.
21112         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21113         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21114         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21115
21116 2010-07-31  Bruno Haible  <bruno@clisp.org>
21117
21118         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21119         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21120         the beginning of the loop.
21121         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21122         cases in 'switch' statement.
21123
21124         unistr/u8-strchr: Fix several bugs.
21125         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21126         the string. When not found, return NULL, not a pointer near the end.
21127
21128         More tests for unistr/u8-strchr.
21129         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21130         that the function does not read past the first occurrence of the byte
21131         being searched.
21132         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21133         * tests/unistr/test-u16-strchr.c (main): New function.
21134         * tests/unistr/test-u32-strchr.c (main): New function.
21135
21136 2010-07-31  Bruno Haible  <bruno@clisp.org>
21137
21138         posix-modules: Ignore backup files of documentation files.
21139         * posix-modules: grep only through files named *.texi.
21140
21141 2010-07-31  Bruno Haible  <bruno@clisp.org>
21142
21143         symlinkat: Fix documentation.
21144         * doc/posix-functions/readlinkat.texi: Fix module name.
21145
21146 2010-07-31  Bruno Haible  <bruno@clisp.org>
21147
21148         fchownat: Replace also when chown has the trailing slash bug.
21149         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21150         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21151         introduced on 2010-04-10.
21152         Reported by Rainer Tammer.
21153
21154 2010-07-31  Bruno Haible  <bruno@clisp.org>
21155
21156         linkat: Work around AIX 7.1 bug.
21157         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21158         whether linkat handles trailing slash correctly. If not, replace linkat
21159         and define LINKAT_TRAILING_SLASH_BUG.
21160         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21161         check whether (fd1,file1) points to a directory if file1 or file2 ends
21162         in a slash. Code taken from lib/link.c.
21163         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21164         Reported by Rainer Tammer.
21165
21166 2010-07-31  Bruno Haible  <bruno@clisp.org>
21167
21168         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21169         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21170         This disables an xlc optimization that was causing wrong test results.
21171         Reported by Rainer Tammer.
21172
21173 2010-07-31  Bruno Haible  <bruno@clisp.org>
21174
21175         iconv: Work around AIX 6.1..7.1 bug.
21176         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21177         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21178         cross-compiling, guess no on all versions of AIX.
21179         Reported by Rainer Tammer.
21180
21181 2010-07-31  Bruno Haible  <bruno@clisp.org>
21182
21183         readlink: Relax test a bit.
21184         * tests/test-readlink.h (test_readlink): Allow different errno value
21185         when readlink is called with a file name that ends in / and refers to
21186         a file.
21187         Suggested by Eric Blake.
21188         Reported by Rainer Tammer.
21189
21190 2010-07-31  Bruno Haible  <bruno@clisp.org>
21191
21192         copysign: Does not require -lm on glibc systems.
21193         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21194         gl_COMMON_DOUBLE_MATHFUNC.
21195         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21196
21197 2010-07-31  Bruno Haible  <bruno@clisp.org>
21198
21199         duplocale: Work around AIX 7.1 bug.
21200         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21201         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21202         * lib/duplocale.c (rpl_duplocale): Update comment.
21203         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21204         Reported by Rainer Tammer.
21205
21206 2010-07-30  Bruno Haible  <bruno@clisp.org>
21207
21208         dirfd: Avoid link error on AIX 7.1.
21209         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21210         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21211         exist, set REPLACE_DIRFD.
21212         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21213         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21214         * doc/posix-functions/dirfd.texi: Update.
21215         Reported by Rainer Tammer.
21216
21217 2010-07-30  Eric Blake  <eblake@redhat.com>
21218
21219         strtod: next round of AIX fixes
21220         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21221         exponent.
21222         * tests/test-strtod.c (main): Enhance tests.
21223         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21224         Reported by Rainer Tammer.
21225
21226         futimens: fix configure check
21227         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21228         Reported by Bruno Haible.
21229
21230 2010-07-30  Bruno Haible  <bruno@clisp.org>
21231
21232         getline: Update regarding AIX.
21233         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21234         Reported by Rainer Tammer.
21235
21236 2010-07-30  Bruno Haible  <bruno@clisp.org>
21237
21238         wcwidth: Drop replacement on AIX 7.
21239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21240         AIX 7.
21241         Reported by Rainer Tammer.
21242
21243 2010-07-30  Bruno Haible  <bruno@clisp.org>
21244
21245         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21246         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21247         a 'char *'.
21248         Reported by Rainer Tammer.
21249
21250 2010-07-30  Bruno Haible  <bruno@clisp.org>
21251
21252         unlink: Update regarding AIX.
21253         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21254         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21255         Reported by Rainer Tammer.
21256
21257 2010-07-30  Bruno Haible  <bruno@clisp.org>
21258
21259         symlink: Update regarding AIX.
21260         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21261         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21262         Reported by Rainer Tammer.
21263
21264 2010-07-30  Bruno Haible  <bruno@clisp.org>
21265
21266         strndup: Update regarding AIX.
21267         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21268         AIX 7.
21269         Reported by Rainer Tammer.
21270
21271 2010-07-30  Bruno Haible  <bruno@clisp.org>
21272
21273         stat: Update regarding AIX.
21274         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21275         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21276         Reported by Rainer Tammer.
21277
21278 2010-07-30  Bruno Haible  <bruno@clisp.org>
21279
21280         truncl: Fix autoconf test.
21281         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21282         whether truncl works.
21283         Reported by Rainer Tammer.
21284
21285 2010-07-30  Bruno Haible  <bruno@clisp.org>
21286
21287         round: Update regarding AIX.
21288         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21289         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21290         Reported by Rainer Tammer.
21291
21292 2010-07-30  Bruno Haible  <bruno@clisp.org>
21293
21294         rename: Update regarding AIX.
21295         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21296         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21297         Reported by Rainer Tammer.
21298
21299 2010-07-30  Bruno Haible  <bruno@clisp.org>
21300
21301         printf.m4: Update regarding AIX.
21302         * m4/printf.m4: Update comments regarding AIX.
21303         Reported by Rainer Tammer.
21304
21305 2010-07-30  Bruno Haible  <bruno@clisp.org>
21306
21307         iconv: Update regarding AIX.
21308         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21309         AIX 7.
21310         Reported by Rainer Tammer.
21311
21312 2010-07-30  Bruno Haible  <bruno@clisp.org>
21313
21314         getopt: Update regarding AIX.
21315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21316         no on AIX.
21317         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21318         Reported by Rainer Tammer.
21319
21320 2010-07-30  Bruno Haible  <bruno@clisp.org>
21321
21322         ldexpl; Update regarding AIX.
21323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21324         on AIX 7.
21325         Reported by Rainer Tammer.
21326
21327 2010-07-30  Bruno Haible  <bruno@clisp.org>
21328
21329         frexpl: Update regarding AIX.
21330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21331         on AIX 7.
21332         Reported by Rainer Tammer.
21333
21334 2010-07-30  Bruno Haible  <bruno@clisp.org>
21335
21336         open, fopen: Update regarding AIX.
21337         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21338         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21339         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21340         * doc/posix-functions/fopen.texi: Likewise.
21341         Reported by Rainer Tammer.
21342
21343 2010-07-30  Bruno Haible  <bruno@clisp.org>
21344
21345         chown: Update doc regarding AIX.
21346         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21347         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21348         Reported by Rainer Tammer.
21349
21350 2010-07-30  Eric Blake  <eblake@redhat.com>
21351
21352         strtod: fix bug in replacement function on AIX
21353         * lib/strtod.c (strtod): Special case broken "0x" parse in
21354         underlying strtod.
21355         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21356         * doc/posix-functions/strtod.texi (strtod): Likewise.
21357         Reported by Rainer Tammer.
21358
21359 2010-07-30  Bruno Haible  <bruno@clisp.org>
21360
21361         mbrlen: Fix cross-compilation guess for AIX.
21362         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21363         guess. Leftover from 2008-12-22.
21364
21365 2010-07-30  Bruno Haible  <bruno@clisp.org>
21366
21367         mbrtowc: Fix cross-compilation guess for AIX.
21368         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21369         guess. Leftover from 2008-12-21.
21370
21371 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21372
21373         init.sh: work around trap limitation of some shells
21374         * tests/init.sh (setup_): Move exit trap outside of shell function.
21375
21376 2010-07-29  Eric Blake  <eblake@redhat.com>
21377
21378         strtod: aid debugging
21379         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21380         understanding why strtod is rejected.
21381
21382 2010-07-28  Bruno Haible  <bruno@clisp.org>
21383
21384         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21385         * lib/unistr/u8-chr.c: Include <string.h>.
21386         * tests/unistr/test-u8-chr.c: Likewise.
21387         * tests/unistr/test-u16-chr.c: Likewise.
21388         * tests/unistr/test-u32-chr.c: Likewise.
21389         * tests/unistr/test-u8-strchr.c: Likewise.
21390         * tests/unistr/test-u16-strchr.c: Likewise.
21391         * tests/unistr/test-u32-strchr.c: Likewise.
21392         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21393         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21394         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21395         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21396
21397 2010-07-28  Bruno Haible  <bruno@clisp.org>
21398
21399         Use spaces for indentation, not tabs.
21400         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21401
21402 2010-07-27  Bruno Haible  <bruno@clisp.org>
21403
21404         mbspcasecmp: Fix function specification.
21405         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21406         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21407         Reported by Eric Blake <eblake@redhat.com>.
21408
21409 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21410
21411         timespec: use cast and not conditional, as truncation isn't possible
21412         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21413         instead of a conditional.  Comment about the situation in more detail.
21414         This undoes most of the 2009-10-29 patch.
21415
21416 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21417
21418         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21419         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21420         * lib/unistr/u8-strchr.c: Likewise.
21421         * modules/unistr/u8-chr: Depend on memchr.
21422
21423         unistr/u*-strchr: add tests
21424         * modules/unistr/u8-strchr-tests: New file.
21425         * modules/unistr/u16-strchr-tests: New file.
21426         * modules/unistr/u32-strchr-tests: New file.
21427         * tests/unistr/test-strchr.h: New file.
21428         * tests/unistr/test-u8-strchr.c: New file.
21429         * tests/unistr/test-u16-strchr.c: New file.
21430         * tests/unistr/test-u32-strchr.c: New file.
21431
21432         unistr/u*-chr: test multibyte sequences more
21433         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21434         test vector.
21435         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21436         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21437         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21438
21439         unistr/u*-chr: test multibyte sequences
21440         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21441
21442         unistr/u*-chr: prepare for multibyte tests
21443         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21444         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21445         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21446         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21447         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21448         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21449
21450 2010-07-18  Bruno Haible  <bruno@clisp.org>
21451
21452         unistr/u8-strchr: Optimize non-ASCII argument case.
21453         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21454         because the first byte often matches anyway.
21455         Reported by Pádraig Brady <P@draigbrady.com>.
21456
21457 2010-07-15  Karl Berry  <karl@gnu.org>
21458
21459         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21460
21461 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21462
21463         getcwd: on Solaris, work better if ancestors are inaccessible
21464         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21465         buffer and size, try again with a large buffer.  This works better
21466         on Solaris, since its getcwd succeeds even if the path to the root
21467         is inaccessible, and this is helpful in common cases such as .zfs
21468         hidden directories.  Problem reported by J Chapman Flack in
21469         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21470         Use system getcwd if it's declared, not merely if it's partly
21471         working; use the partly-working test only to avoid needless effort
21472         if the system getcwd fails.
21473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21474         comment that was already obsolete and is now even more obsolete.
21475         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21476         now might call strdup.
21477
21478 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21479
21480         pthread: Add enough so that coreutils/src/sort.c compiles.
21481         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21482         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21483         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21484         Include <sys/types.h>, in case it defines pthread_t.
21485         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21486         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21487         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21488         (pthread_rwlockattr_t, pthread_spinlock_t):
21489         New typedefs, if HAVE_PTHREAD_T is not defined.
21490         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21491         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21492         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21493         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21494         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21495         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21496         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21497         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21498         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21499         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21500         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21501         New macros.
21502         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21503         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21504         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21505         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21506         (pthread_spin_unlock): New dummy functions.
21507         (pthread_create): Return EAGAIN; don't set errno.
21508         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21509         require AC_C_INLINE.
21510         * modules/pthread (Depends-on): Add sched, time.
21511         (pthread.h): Use AM_V_GEN.
21512
21513 2010-07-13  Bruno Haible  <bruno@clisp.org>
21514
21515         striconveh: Don't malloc memory if the result buffer is sufficient.
21516         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21517         buffer if its size is sufficient.
21518         Reported by Ludovic Courtès <ludo@gnu.org>.
21519
21520 2010-07-13  Bruno Haible  <bruno@clisp.org>
21521
21522         strtod: Add safety check.
21523         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21524
21525 2010-07-12  Bruno Haible  <bruno@clisp.org>
21526
21527         Unify tests that set gl_cv_func_ldexpl_no_libm.
21528         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21529         gl_FUNC_LDEXPL.
21530         (gl_FUNC_LDEXPL): Invoke it.
21531         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21532
21533 2010-07-12  Bruno Haible  <bruno@clisp.org>
21534
21535         Unify tests that set gl_cv_func_ldexp_no_libm.
21536         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21537         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21538         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21539         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21540         * modules/strtod (Files): Add m4/ldexp.m4.
21541
21542 2010-07-12  Bruno Haible  <bruno@clisp.org>
21543
21544         Unify tests that set gl_cv_func_frexpl_no_libm.
21545         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21546         gl_FUNC_FREXPL_NO_LIBM.
21547         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21549
21550 2010-07-12  Bruno Haible  <bruno@clisp.org>
21551
21552         Unify tests that set gl_cv_func_frexp_no_libm.
21553         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21554         gl_FUNC_FREXP_NO_LIBM.
21555         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21556         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21557
21558 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21559
21560         memcoll: clarify sizes versus lengths, document better, and tweak perf
21561         * lib/memcoll.c (strcoll_loop, memcoll0):
21562         Improve quality of descriptive comments.  Name variables
21563         consistently as to whether they are lengths (which do not include
21564         terminating null) versus sizes (which do).
21565         * lib/xmemcoll.c (xmemcoll0): Likewise.
21566         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21567         returned when s1size == 0; this is easier to compile and saves
21568         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21569
21570 2010-07-12  Bruno Haible  <bruno@clisp.org>
21571
21572         Tests for module '_Exit'.
21573         * modules/_Exit-tests: New file.
21574         * tests/test-_Exit.sh: New file.
21575         * tests/test-_Exit.c: New file.
21576
21577         New module '_Exit'.
21578         * lib/stdlib.in.h (__attribute__): New macro.
21579         (_Exit): New declaration.
21580         * lib/_Exit.c: New file.
21581         * m4/_Exit.m4: New file.
21582         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21583         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21584         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21585         * modules/_Exit: New file.
21586         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21587         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21588
21589 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21590
21591         strtod: make it more-accurate typically, and don't require libm
21592         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21593         Include limits.h.  Don't include string.h.
21594         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21595         (locale_isspace): New function, so that no casts are needed to
21596         check whether *s is a space.
21597         (ldexp): Provide an unused dummy if not available.
21598         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21599         (strtod): Use them.  This implementation prefers to use the
21600         underlying strtod if available, falling back on our own code
21601         only to fix known bugs.  This is more likely to produce an
21602         accurate result.  Also, it avoids the use of libm functions.
21603         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21604         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21605         was absent, but it caused a test failure with coreutils.
21606         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21607         with libm.
21608         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21609         * modules/strtod-tests (Makefile.am): Likewise.
21610
21611 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21612             Bruno Haible  <bruno@clisp.org>
21613
21614         unistr/u8-strchr: Optimize ASCII argument case.
21615         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21616
21617 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21618
21619         (x)memcoll: minor tweaks
21620         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21621         is after the type that it qualifies.
21622         (memcoll0): Likewise.
21623         * lib/memcoll.h (memcoll0): Likewise.
21624         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21625         * lib/xmemcoll.h (xmemcoll0): Likewise.
21626         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21627         differs from memcoll in that the NUL byte is part of the argument.
21628         Omit the abort-checks, as performance is a real issue here.  Plus,
21629         the checks were wrong anyway (an off-by-one error).  Omit local
21630         variable 'diff', as it's a bit clearer that way.
21631         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21632         no longer needed.
21633
21634 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21635
21636         (x)memcoll: speedup when input is known to be NUL delimited
21637         * lib/memcoll.c: Include stdlib.
21638         (memcoll0): New function.
21639         (strcoll_loop): New function, refactored for use in both memcoll
21640         and memcoll0.
21641         * lib/memcoll.h (memcoll0): Add prototype.
21642         * lib/xmemcoll.c (xmemcoll0): New function.
21643         (collate_error): New function, refactored for use in both xmemcoll
21644         and xmemcoll0.
21645         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21646         * m4/memcoll.m4: add inline invocation.
21647
21648 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21649
21650         * build-aux/bootstrap: Remove any local translations
21651         from the translation project synchronization directory,
21652         so that local only translations are not distributed.
21653
21654 2010-07-04  Bruno Haible  <bruno@clisp.org>
21655
21656         fsusage: Clarify which code applies to which platforms.
21657         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21658         platform.
21659         * lib/fsusage.c (get_fs_usage): Likewise.
21660
21661 2010-07-04  Bruno Haible  <bruno@clisp.org>
21662
21663         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21664         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21665         Reported by Martin Lambers <marlam@marlam.de>.
21666
21667 2010-07-04  Jim Meyering  <meyering@redhat.com>
21668
21669         hash: once again explicitly disallow insertion of NULL
21670         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21671         inserting a NULL pointer cannot work with these functions.
21672         Add a comment with details.
21673         This reverts part of the 2010-07-01 commit, 5bef1a35
21674         "hash: extend module to deal with non-pointer keys".
21675
21676 2010-07-01  Bruno Haible  <bruno@clisp.org>
21677
21678         stdbool: Update doc.
21679         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21680         Info from Christian Weisgerber <naddy@mips.inka.de>.
21681
21682 2010-07-01  Jim Meyering  <meyering@redhat.com>
21683
21684         hash: extend module to deal with non-pointer keys
21685         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21686         but that allows insertion of non-pointer entries.
21687         Do not disallow an ENTRY value of NULL.
21688         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21689         * lib/hash.h (hash_insert0): Declare.
21690
21691 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21692
21693         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21694         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21695         not present (i.e. with autoconf 2.59 and when using gettextize, not
21696         gnulib), require AC_GNU_SOURCE instead.
21697
21698 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21699
21700         idpriv-drop: Fix tests.
21701         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21702         not to the test-idpriv-droptemp program.
21703
21704 2010-06-29  Bruno Haible  <bruno@clisp.org>
21705
21706         string: Fix syntax error with g++ 2.96.
21707         * lib/string.in.h (__pure__): Remove definition.
21708         (_GL_ATTRIBUTE_PURE): New macro.
21709         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21710         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21711         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21712
21713 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21714
21715         unitypes: Fix bug introduced on 2010-05-18.
21716         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21717
21718 2010-06-22  Eric Blake  <eblake@redhat.com>
21719
21720         memmem: slight optimization
21721         * lib/str-two-way.h (critical_factorization): Update comments.
21722         Reduce work during factorization phase.
21723         Reported by Carlos Bueno <carlos@bueno.org>.
21724
21725 2010-06-21  Bruno Haible  <bruno@clisp.org>
21726
21727         Fix HAVE_CALLOC_POSIX misnomer.
21728         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21729         !HAVE_CALLOC_POSIX.
21730         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21731         HAVE_CALLOC_POSIX.
21732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21733         instead of HAVE_CALLOC_POSIX.
21734         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21735         HAVE_CALLOC_POSIX.
21736
21737         Use modern idiom for calloc() replacement.
21738         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21739         AC_FUNC_CALLOC.
21740         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21741         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21742         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21743         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21744         (gl_REPLACE_CALLOC): New macro.
21745
21746 2010-06-21  Bruno Haible  <bruno@clisp.org>
21747
21748         Fix HAVE_REALLOC_POSIX misnomer.
21749         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21750         !HAVE_REALLOC_POSIX.
21751         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21752         HAVE_REALLOC_POSIX.
21753         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21754         instead of HAVE_REALLOC_POSIX.
21755         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21756         HAVE_REALLOC_POSIX.
21757
21758         Use modern idiom for realloc() replacement.
21759         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21760         AC_FUNC_REALLOC.
21761         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21762         Autoconf's AC_FUNC_REALLOC.
21763         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21764         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21765         (gl_REPLACE_REALLOC): New macro.
21766         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21767
21768 2010-06-21  Bruno Haible  <bruno@clisp.org>
21769
21770         Fix HAVE_MALLOC_POSIX misnomer.
21771         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21772         !HAVE_MALLOC_POSIX.
21773         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21774         HAVE_MALLOC_POSIX.
21775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21776         instead of HAVE_MALLOC_POSIX.
21777         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21778         HAVE_MALLOC_POSIX.
21779
21780         Use modern idiom for malloc() replacement.
21781         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21782         AC_FUNC_MALLOC.
21783         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21784         Autoconf's AC_FUNC_MALLOC.
21785         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21786         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21787         (gl_REPLACE_MALLOC): New macro.
21788         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21789
21790 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21791
21792         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21793         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21794         This macro takes 3 arguments, not 4.
21795
21796 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21797
21798         ipv6: fix detection under mingw
21799         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21800         in6_addr.
21801
21802 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21803
21804         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21805         that strtod() works when cross-compiling to a glibc version known
21806         to work.
21807
21808 2010-06-15  Bruno Haible  <bruno@clisp.org>
21809
21810         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21811
21812 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21813
21814         select: Correct timeout.
21815         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21816
21817 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21818
21819         git-version-gen: init shell var to avoid env var influence
21820         * build-aux/git-version-gen (v): Init shell var to empty.
21821
21822 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21823
21824         priv-set: Don't assume that priv.h exists merely because getppriv does.
21825         See Jan Andersen's bug report about AIX 5L in
21826         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21827         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21828         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21829         * lib/priv-set.h: Likewise.
21830         * tests/test-priv-set.c: Likewise.
21831
21832 2010-06-13  Bruno Haible  <bruno@clisp.org>
21833
21834         relocatable: Make it easier to test whether to install wrappers.
21835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21836         RELOCATABLE_VIA_WRAPPER.
21837
21838 2010-06-13  Bruno Haible  <bruno@clisp.org>
21839
21840         gnulib-tool: Display specified modules and dependencies differently.
21841         * gnulib-tool (func_show_module_list): New function.
21842         (func_import, func_create_testdir): Invoke it.
21843         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21844
21845 2010-06-13  Bruno Haible  <bruno@clisp.org>
21846
21847         gnulib-tool: Align code of func_import and func_create_testdir.
21848         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21849         specified_modules.
21850
21851 2010-06-12  Jim Meyering  <meyering@redhat.com>
21852
21853         test-inttostr: avoid spurious failure on Solaris 9
21854         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21855         to accept "%ju".  Reported by Bruno Haible.
21856
21857 2010-06-11  Jim Meyering  <meyering@redhat.com>
21858
21859         test-sys_socket: mark variables as used more readably
21860         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21861         as "used" explicitly via (void) statement casts.  This is more
21862         readable than using them in an artificial return expression.
21863         Suggestion from Bruno Haible.
21864
21865 2010-06-11  Bruno Haible  <bruno@clisp.org>
21866
21867         Avoid some more warnings from "gcc -Wwrite-strings".
21868         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21869         to 'const char *'.
21870         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21871         * tests/test-c-strcasestr.c (main): Likewise.
21872         * tests/test-mbscasestr1.c (main): Likewise.
21873         * tests/test-mbscasestr2.c (main): Likewise.
21874         * tests/test-memmem.c (main): Likewise.
21875         * tests/test-strstr.c (main): Likewise.
21876         * tests/test-strcasestr.c (main): Likewise.
21877
21878 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21879
21880         init.sh: change framework_failure_ to fail with status 99, not 1
21881         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21882         automake's parallel-tests rule that this is an unexpected failure,
21883         even if the test is listed in XFAIL_TESTS.
21884
21885 2010-06-11  Jim Meyering  <meyering@redhat.com>
21886
21887         test-inttostr: avoid warnings about 4-6KB literal strings
21888         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21889         Include "macros.h", for its definition of ASSERT.
21890         (CK): s/assert/ASSERT/
21891         * modules/inttostr-tests (Files): Add macros.h.
21892
21893         init.sh: don't use $ME_ or skip_ before they are defined
21894         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21895         their first uses.  Also hoist their companions: warn_, fail_,
21896         framework_failure_, $stderr_fileno.  Prompted by a patch from
21897         Stefano Lattarini.
21898
21899         test-sys_socket: avoid set-but-not-used warnings from gcc
21900         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21901         avoid warning about set-but-not-used variables.
21902
21903         test-xvasprintf: avoid 'const' discard warnings
21904         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21905         "const" when assigning from literal strings.
21906         (test_xasprintf): Add "void" in function argument list to placate
21907         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21908
21909         tests: avoid compilation warnings in argmatch and exclude tests...
21910         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21911         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21912         Since it always exits, declare with the "noreturn" attribute.
21913         * tests/test-argmatch.c: Likewise.
21914
21915         tests: avoid 'const' discard warnings in mbsstr tests
21916         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21917         * tests/test-mbsstr2.c (main): Likewise.
21918
21919         test-verify: avoid warning from gcc's -Wmissing-declarations
21920         * tests/test-verify.c (function): Declare to be static.
21921
21922         test-inttostr.c: include <string.h> for use of strcmp
21923         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21924
21925         test-linkat: avoid failed assertion on "other" architectures
21926         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21927         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21928         sparc: https://bugs.launchpad.net/bugs/591968
21929
21930 2010-06-11  Jim Meyering  <meyering@redhat.com>
21931
21932         printf.m4: avoid autoconf's "Expanded Before Required" warning
21933         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21934         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21935         autoconf warning.
21936
21937 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21938
21939         Replacement header templates are now named with ".in", not "_".
21940         * doc/gnulib-intro.texi: Correct.
21941
21942 2010-06-10  Jim Meyering  <meyering@redhat.com>
21943
21944         inttostr-tests: depend on snprintf, not snprintf-posix
21945         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21946         snprintf-posix, to avoid this aclocal failure:
21947           missing file gnulib-tests/vasnprintf.c
21948           configure.ac:45: error: expected source file, required through \
21949           AC_LIBSOURCES, not found
21950
21951 2010-06-10  Jim Meyering  <meyering@redhat.com>
21952
21953         inttostr: add a new function, inttostr, and tests
21954         The namesake function was not available.  The existence of the
21955         template file, inttostr.c makes its addition nontrivial.
21956         * lib/anytostr.c: Rename from inttostr.c.
21957         (anytostr): Rename from inttostr.
21958         * lib/inttostr.c: New file.
21959         * modules/inttostr (Files): Add anytostr.c.
21960         (Makefile.am): Set lib_SOURCES instead of ...
21961         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21962         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21963         * lib/offtostr.c: Likewise.
21964         * lib/uinttostr.c: Likewise.
21965         * lib/umaxtostr.c: Likewise.
21966         * modules/inttostr-tests: New file.
21967         * tests/test-inttostr.c: New file.  Test these functions.
21968
21969 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21970             Bruno Haible  <bruno@clisp.org>
21971
21972         Add "Extending Gnulib" chapter to manual.
21973         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21974         chapter.
21975         (Extending Gnulib): New chapter.
21976         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21977         chapter.
21978
21979 2010-06-09  Bruno Haible  <bruno@clisp.org>
21980
21981         Avoid relocwrapper link errors due to gnulib replacement functions.
21982         * lib/areadlink.c: Use the system's malloc, realloc functions.
21983         (areadlink): Set errno to ENOMEM explicitly.
21984         * modules/areadlink (Depends-on): Remove malloc-posix.
21985         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21986
21987 2010-06-09  Bruno Haible  <bruno@clisp.org>
21988
21989         Avoid relocwrapper link errors due to gnulib replacement functions.
21990         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21991         * lib/malloca.c: Likewise.
21992         * lib/relocatable.c: Likewise.
21993         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21994         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21995         * lib/setenv.c: Use the system's malloc, realloc functions.
21996         * lib/strerror.c: Use the system's sprintf function.
21997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21998
21999 2010-06-04  Bruno Haible  <bruno@clisp.org>
22000
22001         Prefer documented low-level autoconf macro names.
22002         * m4/lib-link.m4: Use m4_translit instead of translit.
22003         * m4/environ.m4: Likewise.
22004         * m4/mathfunc.m4: Likewise.
22005         * m4/onceonly.m4: Likewise.
22006         * m4/stdint.m4: Likewise.
22007         Suggested by Eric Blake.
22008
22009 2010-06-04  Martin Lambers  <marlam@marlam.de>
22010             Bruno Haible  <bruno@clisp.org>
22011
22012         havelib: Allow library names with '+' characters.
22013         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22014         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22015
22016 2010-06-09  Bruno Haible  <bruno@clisp.org>
22017
22018         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22019         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22020         realloc failed.
22021
22022 2010-06-08  Peter Simons  <simons@cryp.to>
22023
22024         maint.mk: make the news-check rule more configurable
22025         * top/maint.mk (news-check-lines-spec): New variable.
22026         (news-check): Use "sed -n 1,10p" in place of "head".
22027
22028 2010-06-07  Jim Meyering  <meyering@redhat.com>
22029
22030         do-release-commit-and-tag: fix typo in --help
22031         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22032
22033         regex: avoid new dead-code warning with gcc-4.6.0
22034         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22035         if-block containing a while-loop.  It's been unused for at least
22036         5 years.
22037
22038 2010-06-05  Bruno Haible  <bruno@clisp.org>
22039
22040         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22041         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22042
22043 2010-06-04  Bruno Haible  <bruno@clisp.org>
22044
22045         Update to GNU gettext 0.18.1.
22046         * modules/gettext (configure.ac): Require gettext infrastructure from
22047         version 0.18.1.
22048
22049 2010-06-03  Bruno Haible  <bruno@clisp.org>
22050
22051         Don't use AC_LIBOBJ with file names in subdirectories.
22052         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22053         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22054         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22055         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22056         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22057         gl_LIBUNISTRING_LIBSOURCE.
22058         (Makefile.am): Augment lib_SOURCES here, conditionally.
22059         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22060
22061 2010-06-03  Bruno Haible  <bruno@clisp.org>
22062
22063         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22064         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22065         expansion does not end with a newline.
22066         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22067         unnecessary newline.
22068
22069 2010-06-03  Bruno Haible  <bruno@clisp.org>
22070
22071         Reduce dependencies.
22072         * tests/test-quotearg.h: New file, extracted from
22073         tests/test-quotearg.c.
22074         * tests/test-quotearg-simple.c: New file, extracted from
22075         tests/test-quotearg.c.
22076         * tests/test-quotearg.c: Don't include <ctype.h>.
22077         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22078         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22079         use_quote_double_quotes, use_quotearg_colon): Moved to
22080         tests/test-quotearg.h.
22081         (results_g, flag_results, custom_quotes, custom_results): Moved
22082         to tests/test-quotearg-simple.c.
22083         (main): Moved the part that does not depend on gettext to
22084         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22085         performed.
22086         * modules/quotearg-simple: New file.
22087         * modules/quotearg-simple-tests: New file.
22088         * modules/quotearg (Depends-on): Add quotearg-simple.
22089         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22090         (Files): Add tests/test-quotearg.h.
22091         Reported by Paolo Bonzini.
22092
22093 2010-06-03  Bruno Haible  <bruno@clisp.org>
22094
22095         Reduce dependencies.
22096         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22097
22098 2010-06-03  Bruno Haible  <bruno@clisp.org>
22099
22100         time: Undefine more broken macros.
22101         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22102         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22103         Reported by Eric Blake.
22104
22105 2010-06-03  Bruno Haible  <bruno@clisp.org>
22106
22107         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22108         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22109         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22110         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22111         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22112         Reported by Ludovic Courtès <ludo@gnu.org>.
22113
22114 2010-06-02  Eric Blake  <eblake@redhat.com>
22115
22116         time: work with mingw + pthreads-win32 library
22117         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22118         if timespec is defined only in pthread.h.
22119         * modules/time (Makefile.am): Substitute it.
22120         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22121         <pthread.h>, when needed.
22122         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22123         from the library.
22124
22125 2010-05-31  Bruno Haible  <bruno@clisp.org>
22126
22127         Avoid expanding two macros in the wrong order.
22128         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22129         gl_LIBUNISTRING if it is defined.
22130         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22131         autoconf >= 2.64.
22132         Reported by Ludovic Courtès <ludo@gnu.org>.
22133
22134 2010-05-27  Jim Meyering  <meyering@redhat.com>
22135
22136         maint.mk: also prohibit "#undef" of always-defined symbols
22137         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22138         Allow more than one space before the symbol name.
22139         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22140         the regexp uses alternation.
22141
22142 2010-05-26  Eric Blake  <eblake@redhat.com>
22143
22144         maint.mk: avoid echo -e
22145         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22146         Convert all uses of echo -* to printf.
22147         Reported by Matthias Bolte.
22148
22149 2010-05-25  Bruno Haible  <bruno@clisp.org>
22150
22151         Update to GNU gettext 0.18, part 2.
22152         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22153         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22154
22155 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22156
22157         Add missing include in test-pwrite.c.
22158         * tests/test-pwrite.c: Include string.h, for strcmp.
22159
22160 2010-05-24  Bruno Haible  <bruno@clisp.org>
22161
22162         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22163
22164 2010-05-24  Bruno Haible  <bruno@clisp.org>
22165
22166         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22167         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22168         iconveh_error argument.
22169         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22170         U_STRCONV_TO_LOCALE.
22171         * lib/unistr/u16-strcoll.c: Likewise.
22172         * lib/unistr/u32-strcoll.c: Likewise.
22173         * modules/unistr/u8-strcoll (Depends-on): Add
22174         uniconv/u8-strconv-to-enc, localcharset. Remove
22175         uniconv/u8-strconv-to-locale.
22176         (configure.ac): Bump version number.
22177         * modules/unistr/u16-strcoll (Depends-on): Add
22178         uniconv/u16-strconv-to-enc, localcharset. Remove
22179         uniconv/u16-strconv-to-locale.
22180         (configure.ac): Bump version number.
22181         * modules/unistr/u32-strcoll (Depends-on): Add
22182         uniconv/u32-strconv-to-enc, localcharset. Remove
22183         uniconv/u32-strconv-to-locale.
22184         (configure.ac): Bump version number.
22185
22186 2010-05-24  Bruno Haible  <bruno@clisp.org>
22187
22188         Avoid a test failure on NetBSD 5.0.
22189         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22190         an iconv() bug.
22191
22192 2010-05-24  Bruno Haible  <bruno@clisp.org>
22193
22194         Adjust #include directive style.
22195         * modules/regex (Includes): Recommend to write <regex.h>.
22196
22197 2010-05-24  Bruno Haible  <bruno@clisp.org>
22198
22199         regex: Don't require alloca.
22200         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22201         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22202         only inside if (0).
22203
22204 2010-05-23  Jim Meyering  <meyering@redhat.com>
22205
22206         test-renameat.c: include <sys/stat.h>
22207         * tests/test-renameat.c: Include <sys/stat.h>; required for
22208         definition of S_IS* macros.
22209
22210 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22211
22212         Update maintainer documentation for 'relocatable-prog' module.
22213         * doc/relocatable-maint.texi: Update.
22214         Comments by Bruno Haible.
22215
22216 2010-05-23  Bruno Haible  <bruno@clisp.org>
22217
22218         git-merge-changelog: Enable --split-merged-entry by default.
22219         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22220         (usage): Don't mention this option any more.
22221         Reported by Ralf Wildenhues.
22222
22223 2010-05-23  Jim Meyering  <meyering@redhat.com>
22224
22225         test-pwrite: do not leave behind a test file named "out"
22226         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22227         The trivial-looking use of init.sh is really necessary.
22228         It ensures that the temporary file, "out", is created in
22229         a temporary directory, and removed upon termination.
22230         * tests/test-pwrite.sh: Re-add file.
22231         * modules/pwrite-tests: Reference it.
22232
22233 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22234
22235         Fix output redirection buglet in init.sh.
22236         * tests/init.sh: Fix redirection of stderr.
22237
22238 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22239
22240         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22241
22242 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22243
22244         * modules/valgrind-tests: New file.
22245         * m4/valgrind-tests.m4: New file.
22246         * doc/valgrind-tests.texi: New file.
22247         * doc/gnulib.texi (Running self-tests under valgrind): New
22248         section.
22249
22250 2010-05-19  Bruno Haible  <bruno@clisp.org>
22251
22252         Clean up dead code in recent commit.
22253         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22254         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22255         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22256         Suggested by Paolo Bonzini.
22257
22258 2010-05-19  Bruno Haible  <bruno@clisp.org>
22259
22260         Avoid valgrind error reports from libunistring.
22261         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22262         * modules/libunistring (Files): Add it.
22263         * modules/libunistring-optional (Files): Likewise.
22264
22265 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22266             Bruno Haible  <bruno@clisp.org>
22267
22268         New module 'libunistring-optional'.
22269         * modules/libunistring-optional: New file.
22270         * m4/libunistring-base.m4: New file.
22271         * m4/libunistring-optional.m4: New file.
22272         * lib/unicase.in.h: Renamed from lib/unicase.h.
22273         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22274         * lib/unictype.in.h: Renamed from lib/unictype.h.
22275         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22276         * lib/uniname.in.h: Renamed from lib/uniname.h.
22277         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22278         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22279         * lib/unistr.in.h: Renamed from lib/unistr.h.
22280         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22281         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22282         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22283         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22284         gl_LIBUNISTRING. If the library was found, determine the installed
22285         version and set LIBUNISTRING_VERSION.
22286         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22287         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22288         handle a configuration option --with-included-libunistring.
22289         * modules/libunistring (Files): Add m4/absolute-header.m4.
22290         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22291         Add m4/libunistring-base.m4.
22292         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22293         (Makefile.am): Build unicase.h from unicase.in.h.
22294         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22295         Add m4/libunistring-base.m4.
22296         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22297         (Makefile.am): Build uniconv.h from uniconv.in.h.
22298         * modules/unictype/base (Files): Use unictype.in.h instead of
22299         unictype.h. Add m4/libunistring-base.m4.
22300         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22301         (Makefile.am): Build unictype.h from unictype.in.h.
22302         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22303         Add m4/libunistring-base.m4.
22304         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22305         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22306         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22307         Add m4/libunistring-base.m4.
22308         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22309         (Makefile.am): Build uniname.h from uniname.in.h.
22310         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22311         Add m4/libunistring-base.m4.
22312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22313         (Makefile.am): Build uninorm.h from uninorm.in.h.
22314         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22315         unistdio.h. Add m4/libunistring-base.m4.
22316         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22317         (Makefile.am): Build unistdio.h from unistdio.in.h.
22318         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22319         Add m4/libunistring-base.m4.
22320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22321         (Makefile.am): Build unistr.h from unistr.in.h.
22322         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22323         Add m4/libunistring-base.m4.
22324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22325         (Makefile.am): Build unitypes.h from unitypes.in.h.
22326         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22327         Add m4/libunistring-base.m4.
22328         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22329         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22330         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22331         uniwidth.h. Add m4/libunistring-base.m4.
22332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22333         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22334         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22335         instead of augmenting lib_SOURCES.
22336         * modules/unicase/empty-suffix-context: Likewise.
22337         * modules/unicase/locale-language: Likewise.
22338         * modules/unicase/tolower: Likewise.
22339         * modules/unicase/totitle: Likewise.
22340         * modules/unicase/toupper: Likewise.
22341         * modules/unicase/u8-casecmp: Likewise.
22342         * modules/unicase/u8-casecoll: Likewise.
22343         * modules/unicase/u8-casefold: Likewise.
22344         * modules/unicase/u8-casexfrm: Likewise.
22345         * modules/unicase/u8-ct-casefold: Likewise.
22346         * modules/unicase/u8-ct-tolower: Likewise.
22347         * modules/unicase/u8-ct-totitle: Likewise.
22348         * modules/unicase/u8-ct-toupper: Likewise.
22349         * modules/unicase/u8-is-cased: Likewise.
22350         * modules/unicase/u8-is-casefolded: Likewise.
22351         * modules/unicase/u8-is-lowercase: Likewise.
22352         * modules/unicase/u8-is-titlecase: Likewise.
22353         * modules/unicase/u8-is-uppercase: Likewise.
22354         * modules/unicase/u8-prefix-context: Likewise.
22355         * modules/unicase/u8-suffix-context: Likewise.
22356         * modules/unicase/u8-tolower: Likewise.
22357         * modules/unicase/u8-totitle: Likewise.
22358         * modules/unicase/u8-toupper: Likewise.
22359         * modules/unicase/u16-casecmp: Likewise.
22360         * modules/unicase/u16-casecoll: Likewise.
22361         * modules/unicase/u16-casefold: Likewise.
22362         * modules/unicase/u16-casexfrm: Likewise.
22363         * modules/unicase/u16-ct-casefold: Likewise.
22364         * modules/unicase/u16-ct-tolower: Likewise.
22365         * modules/unicase/u16-ct-totitle: Likewise.
22366         * modules/unicase/u16-ct-toupper: Likewise.
22367         * modules/unicase/u16-is-cased: Likewise.
22368         * modules/unicase/u16-is-casefolded: Likewise.
22369         * modules/unicase/u16-is-lowercase: Likewise.
22370         * modules/unicase/u16-is-titlecase: Likewise.
22371         * modules/unicase/u16-is-uppercase: Likewise.
22372         * modules/unicase/u16-prefix-context: Likewise.
22373         * modules/unicase/u16-suffix-context: Likewise.
22374         * modules/unicase/u16-tolower: Likewise.
22375         * modules/unicase/u16-totitle: Likewise.
22376         * modules/unicase/u16-toupper: Likewise.
22377         * modules/unicase/u32-casecmp: Likewise.
22378         * modules/unicase/u32-casecoll: Likewise.
22379         * modules/unicase/u32-casefold: Likewise.
22380         * modules/unicase/u32-casexfrm: Likewise.
22381         * modules/unicase/u32-ct-casefold: Likewise.
22382         * modules/unicase/u32-ct-tolower: Likewise.
22383         * modules/unicase/u32-ct-totitle: Likewise.
22384         * modules/unicase/u32-ct-toupper: Likewise.
22385         * modules/unicase/u32-is-cased: Likewise.
22386         * modules/unicase/u32-is-casefolded: Likewise.
22387         * modules/unicase/u32-is-lowercase: Likewise.
22388         * modules/unicase/u32-is-titlecase: Likewise.
22389         * modules/unicase/u32-is-uppercase: Likewise.
22390         * modules/unicase/u32-prefix-context: Likewise.
22391         * modules/unicase/u32-suffix-context: Likewise.
22392         * modules/unicase/u32-tolower: Likewise.
22393         * modules/unicase/u32-totitle: Likewise.
22394         * modules/unicase/u32-toupper: Likewise.
22395         * modules/unicase/ulc-casecmp: Likewise.
22396         * modules/unicase/ulc-casecoll: Likewise.
22397         * modules/unicase/ulc-casexfrm: Likewise.
22398         * modules/uniconv/u8-conv-from-enc: Likewise.
22399         * modules/uniconv/u8-conv-to-enc: Likewise.
22400         * modules/uniconv/u8-strconv-from-enc: Likewise.
22401         * modules/uniconv/u8-strconv-from-locale: Likewise.
22402         * modules/uniconv/u8-strconv-to-enc: Likewise.
22403         * modules/uniconv/u8-strconv-to-locale: Likewise.
22404         * modules/uniconv/u16-conv-from-enc: Likewise.
22405         * modules/uniconv/u16-conv-to-enc: Likewise.
22406         * modules/uniconv/u16-strconv-from-enc: Likewise.
22407         * modules/uniconv/u16-strconv-from-locale: Likewise.
22408         * modules/uniconv/u16-strconv-to-enc: Likewise.
22409         * modules/uniconv/u16-strconv-to-locale: Likewise.
22410         * modules/uniconv/u32-conv-from-enc: Likewise.
22411         * modules/uniconv/u32-conv-to-enc: Likewise.
22412         * modules/uniconv/u32-strconv-from-enc: Likewise.
22413         * modules/uniconv/u32-strconv-from-locale: Likewise.
22414         * modules/uniconv/u32-strconv-to-enc: Likewise.
22415         * modules/uniconv/u32-strconv-to-locale: Likewise.
22416         * modules/unictype/bidicategory-byname: Likewise.
22417         * modules/unictype/bidicategory-name: Likewise.
22418         * modules/unictype/bidicategory-of: Likewise.
22419         * modules/unictype/bidicategory-test: Likewise.
22420         * modules/unictype/block-list: Likewise.
22421         * modules/unictype/block-test: Likewise.
22422         * modules/unictype/category-C: Likewise.
22423         * modules/unictype/category-Cc: Likewise.
22424         * modules/unictype/category-Cf: Likewise.
22425         * modules/unictype/category-Cn: Likewise.
22426         * modules/unictype/category-Co: Likewise.
22427         * modules/unictype/category-Cs: Likewise.
22428         * modules/unictype/category-L: Likewise.
22429         * modules/unictype/category-Ll: Likewise.
22430         * modules/unictype/category-Lm: Likewise.
22431         * modules/unictype/category-Lo: Likewise.
22432         * modules/unictype/category-Lt: Likewise.
22433         * modules/unictype/category-Lu: Likewise.
22434         * modules/unictype/category-M: Likewise.
22435         * modules/unictype/category-Mc: Likewise.
22436         * modules/unictype/category-Me: Likewise.
22437         * modules/unictype/category-Mn: Likewise.
22438         * modules/unictype/category-N: Likewise.
22439         * modules/unictype/category-Nd: Likewise.
22440         * modules/unictype/category-Nl: Likewise.
22441         * modules/unictype/category-No: Likewise.
22442         * modules/unictype/category-P: Likewise.
22443         * modules/unictype/category-Pc: Likewise.
22444         * modules/unictype/category-Pd: Likewise.
22445         * modules/unictype/category-Pe: Likewise.
22446         * modules/unictype/category-Pf: Likewise.
22447         * modules/unictype/category-Pi: Likewise.
22448         * modules/unictype/category-Po: Likewise.
22449         * modules/unictype/category-Ps: Likewise.
22450         * modules/unictype/category-S: Likewise.
22451         * modules/unictype/category-Sc: Likewise.
22452         * modules/unictype/category-Sk: Likewise.
22453         * modules/unictype/category-Sm: Likewise.
22454         * modules/unictype/category-So: Likewise.
22455         * modules/unictype/category-Z: Likewise.
22456         * modules/unictype/category-Zl: Likewise.
22457         * modules/unictype/category-Zp: Likewise.
22458         * modules/unictype/category-Zs: Likewise.
22459         * modules/unictype/category-and: Likewise.
22460         * modules/unictype/category-and-not: Likewise.
22461         * modules/unictype/category-byname: Likewise.
22462         * modules/unictype/category-name: Likewise.
22463         * modules/unictype/category-none: Likewise.
22464         * modules/unictype/category-of: Likewise.
22465         * modules/unictype/category-or: Likewise.
22466         * modules/unictype/category-test: Likewise.
22467         * modules/unictype/combining-class: Likewise.
22468         * modules/unictype/ctype-alnum: Likewise.
22469         * modules/unictype/ctype-alpha: Likewise.
22470         * modules/unictype/ctype-blank: Likewise.
22471         * modules/unictype/ctype-cntrl: Likewise.
22472         * modules/unictype/ctype-digit: Likewise.
22473         * modules/unictype/ctype-graph: Likewise.
22474         * modules/unictype/ctype-lower: Likewise.
22475         * modules/unictype/ctype-print: Likewise.
22476         * modules/unictype/ctype-punct: Likewise.
22477         * modules/unictype/ctype-space: Likewise.
22478         * modules/unictype/ctype-upper: Likewise.
22479         * modules/unictype/ctype-xdigit: Likewise.
22480         * modules/unictype/decimal-digit: Likewise.
22481         * modules/unictype/digit: Likewise.
22482         * modules/unictype/mirror: Likewise.
22483         * modules/unictype/numeric: Likewise.
22484         * modules/unictype/property-alphabetic: Likewise.
22485         * modules/unictype/property-ascii-hex-digit: Likewise.
22486         * modules/unictype/property-bidi-arabic-digit: Likewise.
22487         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22488         * modules/unictype/property-bidi-block-separator: Likewise.
22489         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22490         * modules/unictype/property-bidi-common-separator: Likewise.
22491         * modules/unictype/property-bidi-control: Likewise.
22492         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22493         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22494         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22495         * modules/unictype/property-bidi-european-digit: Likewise.
22496         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22497         * modules/unictype/property-bidi-left-to-right: Likewise.
22498         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22499         * modules/unictype/property-bidi-other-neutral: Likewise.
22500         * modules/unictype/property-bidi-pdf: Likewise.
22501         * modules/unictype/property-bidi-segment-separator: Likewise.
22502         * modules/unictype/property-bidi-whitespace: Likewise.
22503         * modules/unictype/property-byname: Likewise.
22504         * modules/unictype/property-combining: Likewise.
22505         * modules/unictype/property-composite: Likewise.
22506         * modules/unictype/property-currency-symbol: Likewise.
22507         * modules/unictype/property-dash: Likewise.
22508         * modules/unictype/property-decimal-digit: Likewise.
22509         * modules/unictype/property-default-ignorable-code-point: Likewise.
22510         * modules/unictype/property-deprecated: Likewise.
22511         * modules/unictype/property-diacritic: Likewise.
22512         * modules/unictype/property-extender: Likewise.
22513         * modules/unictype/property-format-control: Likewise.
22514         * modules/unictype/property-grapheme-base: Likewise.
22515         * modules/unictype/property-grapheme-extend: Likewise.
22516         * modules/unictype/property-grapheme-link: Likewise.
22517         * modules/unictype/property-hex-digit: Likewise.
22518         * modules/unictype/property-hyphen: Likewise.
22519         * modules/unictype/property-id-continue: Likewise.
22520         * modules/unictype/property-id-start: Likewise.
22521         * modules/unictype/property-ideographic: Likewise.
22522         * modules/unictype/property-ids-binary-operator: Likewise.
22523         * modules/unictype/property-ids-trinary-operator: Likewise.
22524         * modules/unictype/property-ignorable-control: Likewise.
22525         * modules/unictype/property-iso-control: Likewise.
22526         * modules/unictype/property-join-control: Likewise.
22527         * modules/unictype/property-left-of-pair: Likewise.
22528         * modules/unictype/property-line-separator: Likewise.
22529         * modules/unictype/property-logical-order-exception: Likewise.
22530         * modules/unictype/property-lowercase: Likewise.
22531         * modules/unictype/property-math: Likewise.
22532         * modules/unictype/property-non-break: Likewise.
22533         * modules/unictype/property-not-a-character: Likewise.
22534         * modules/unictype/property-numeric: Likewise.
22535         * modules/unictype/property-other-alphabetic: Likewise.
22536         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22537         * modules/unictype/property-other-grapheme-extend: Likewise.
22538         * modules/unictype/property-other-id-continue: Likewise.
22539         * modules/unictype/property-other-id-start: Likewise.
22540         * modules/unictype/property-other-lowercase: Likewise.
22541         * modules/unictype/property-other-math: Likewise.
22542         * modules/unictype/property-other-uppercase: Likewise.
22543         * modules/unictype/property-paired-punctuation: Likewise.
22544         * modules/unictype/property-paragraph-separator: Likewise.
22545         * modules/unictype/property-pattern-syntax: Likewise.
22546         * modules/unictype/property-pattern-white-space: Likewise.
22547         * modules/unictype/property-private-use: Likewise.
22548         * modules/unictype/property-punctuation: Likewise.
22549         * modules/unictype/property-quotation-mark: Likewise.
22550         * modules/unictype/property-radical: Likewise.
22551         * modules/unictype/property-sentence-terminal: Likewise.
22552         * modules/unictype/property-soft-dotted: Likewise.
22553         * modules/unictype/property-space: Likewise.
22554         * modules/unictype/property-terminal-punctuation: Likewise.
22555         * modules/unictype/property-test: Likewise.
22556         * modules/unictype/property-titlecase: Likewise.
22557         * modules/unictype/property-unassigned-code-value: Likewise.
22558         * modules/unictype/property-unified-ideograph: Likewise.
22559         * modules/unictype/property-uppercase: Likewise.
22560         * modules/unictype/property-variation-selector: Likewise.
22561         * modules/unictype/property-white-space: Likewise.
22562         * modules/unictype/property-xid-continue: Likewise.
22563         * modules/unictype/property-xid-start: Likewise.
22564         * modules/unictype/property-zero-width: Likewise.
22565         * modules/unictype/scripts: Likewise.
22566         * modules/unictype/syntax-c-ident: Likewise.
22567         * modules/unictype/syntax-c-whitespace: Likewise.
22568         * modules/unictype/syntax-java-ident: Likewise.
22569         * modules/unictype/syntax-java-whitespace: Likewise.
22570         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22571         * modules/unilbrk/u8-width-linebreaks: Likewise.
22572         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22573         * modules/unilbrk/u16-width-linebreaks: Likewise.
22574         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22575         * modules/unilbrk/u32-width-linebreaks: Likewise.
22576         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22577         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22578         * modules/uniname/uniname: Likewise.
22579         * modules/uninorm/canonical-decomposition: Likewise.
22580         * modules/uninorm/composition: Likewise.
22581         * modules/uninorm/decomposing-form: Likewise.
22582         * modules/uninorm/decomposition: Likewise.
22583         * modules/uninorm/filter: Likewise.
22584         * modules/uninorm/nfc: Likewise.
22585         * modules/uninorm/nfd: Likewise.
22586         * modules/uninorm/nfkc: Likewise.
22587         * modules/uninorm/nfkd: Likewise.
22588         * modules/uninorm/u8-normalize: Likewise.
22589         * modules/uninorm/u8-normcmp: Likewise.
22590         * modules/uninorm/u8-normcoll: Likewise.
22591         * modules/uninorm/u8-normxfrm: Likewise.
22592         * modules/uninorm/u16-normalize: Likewise.
22593         * modules/uninorm/u16-normcmp: Likewise.
22594         * modules/uninorm/u16-normcoll: Likewise.
22595         * modules/uninorm/u16-normxfrm: Likewise.
22596         * modules/uninorm/u32-normalize: Likewise.
22597         * modules/uninorm/u32-normcmp: Likewise.
22598         * modules/uninorm/u32-normcoll: Likewise.
22599         * modules/uninorm/u32-normxfrm: Likewise.
22600         * modules/unistdio/u8-asnprintf: Likewise.
22601         * modules/unistdio/u8-asprintf: Likewise.
22602         * modules/unistdio/u8-snprintf: Likewise.
22603         * modules/unistdio/u8-sprintf: Likewise.
22604         * modules/unistdio/u8-u8-asnprintf: Likewise.
22605         * modules/unistdio/u8-u8-asprintf: Likewise.
22606         * modules/unistdio/u8-u8-snprintf: Likewise.
22607         * modules/unistdio/u8-u8-sprintf: Likewise.
22608         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22609         * modules/unistdio/u8-u8-vasprintf: Likewise.
22610         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22611         * modules/unistdio/u8-u8-vsprintf: Likewise.
22612         * modules/unistdio/u8-vasnprintf: Likewise.
22613         * modules/unistdio/u8-vasprintf: Likewise.
22614         * modules/unistdio/u8-vsnprintf: Likewise.
22615         * modules/unistdio/u8-vsprintf: Likewise.
22616         * modules/unistdio/u16-asnprintf: Likewise.
22617         * modules/unistdio/u16-asprintf: Likewise.
22618         * modules/unistdio/u16-snprintf: Likewise.
22619         * modules/unistdio/u16-sprintf: Likewise.
22620         * modules/unistdio/u16-u16-asnprintf: Likewise.
22621         * modules/unistdio/u16-u16-asprintf: Likewise.
22622         * modules/unistdio/u16-u16-snprintf: Likewise.
22623         * modules/unistdio/u16-u16-sprintf: Likewise.
22624         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22625         * modules/unistdio/u16-u16-vasprintf: Likewise.
22626         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22627         * modules/unistdio/u16-u16-vsprintf: Likewise.
22628         * modules/unistdio/u16-vasnprintf: Likewise.
22629         * modules/unistdio/u16-vasprintf: Likewise.
22630         * modules/unistdio/u16-vsnprintf: Likewise.
22631         * modules/unistdio/u16-vsprintf: Likewise.
22632         * modules/unistdio/u32-asnprintf: Likewise.
22633         * modules/unistdio/u32-asprintf: Likewise.
22634         * modules/unistdio/u32-snprintf: Likewise.
22635         * modules/unistdio/u32-sprintf: Likewise.
22636         * modules/unistdio/u32-u32-asnprintf: Likewise.
22637         * modules/unistdio/u32-u32-asprintf: Likewise.
22638         * modules/unistdio/u32-u32-snprintf: Likewise.
22639         * modules/unistdio/u32-u32-sprintf: Likewise.
22640         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22641         * modules/unistdio/u32-u32-vasprintf: Likewise.
22642         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22643         * modules/unistdio/u32-u32-vsprintf: Likewise.
22644         * modules/unistdio/u32-vasnprintf: Likewise.
22645         * modules/unistdio/u32-vasprintf: Likewise.
22646         * modules/unistdio/u32-vsnprintf: Likewise.
22647         * modules/unistdio/u32-vsprintf: Likewise.
22648         * modules/unistdio/ulc-asnprintf: Likewise.
22649         * modules/unistdio/ulc-asprintf: Likewise.
22650         * modules/unistdio/ulc-fprintf: Likewise.
22651         * modules/unistdio/ulc-snprintf: Likewise.
22652         * modules/unistdio/ulc-sprintf: Likewise.
22653         * modules/unistdio/ulc-vasnprintf: Likewise.
22654         * modules/unistdio/ulc-vasprintf: Likewise.
22655         * modules/unistdio/ulc-vfprintf: Likewise.
22656         * modules/unistdio/ulc-vsnprintf: Likewise.
22657         * modules/unistdio/ulc-vsprintf: Likewise.
22658         * modules/unistr/u8-check: Likewise.
22659         * modules/unistr/u8-chr: Likewise.
22660         * modules/unistr/u8-cmp: Likewise.
22661         * modules/unistr/u8-cmp2: Likewise.
22662         * modules/unistr/u8-cpy: Likewise.
22663         * modules/unistr/u8-cpy-alloc: Likewise.
22664         * modules/unistr/u8-endswith: Likewise.
22665         * modules/unistr/u8-mblen: Likewise.
22666         * modules/unistr/u8-mbsnlen: Likewise.
22667         * modules/unistr/u8-mbtouc: Likewise.
22668         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22669         * modules/unistr/u8-mbtoucr: Likewise.
22670         * modules/unistr/u8-move: Likewise.
22671         * modules/unistr/u8-next: Likewise.
22672         * modules/unistr/u8-prev: Likewise.
22673         * modules/unistr/u8-set: Likewise.
22674         * modules/unistr/u8-startswith: Likewise.
22675         * modules/unistr/u8-stpcpy: Likewise.
22676         * modules/unistr/u8-stpncpy: Likewise.
22677         * modules/unistr/u8-strcat: Likewise.
22678         * modules/unistr/u8-strchr: Likewise.
22679         * modules/unistr/u8-strcmp: Likewise.
22680         * modules/unistr/u8-strcoll: Likewise.
22681         * modules/unistr/u8-strcpy: Likewise.
22682         * modules/unistr/u8-strcspn: Likewise.
22683         * modules/unistr/u8-strdup: Likewise.
22684         * modules/unistr/u8-strlen: Likewise.
22685         * modules/unistr/u8-strmblen: Likewise.
22686         * modules/unistr/u8-strmbtouc: Likewise.
22687         * modules/unistr/u8-strncat: Likewise.
22688         * modules/unistr/u8-strncmp: Likewise.
22689         * modules/unistr/u8-strncpy: Likewise.
22690         * modules/unistr/u8-strnlen: Likewise.
22691         * modules/unistr/u8-strpbrk: Likewise.
22692         * modules/unistr/u8-strrchr: Likewise.
22693         * modules/unistr/u8-strspn: Likewise.
22694         * modules/unistr/u8-strstr: Likewise.
22695         * modules/unistr/u8-strtok: Likewise.
22696         * modules/unistr/u8-to-u16: Likewise.
22697         * modules/unistr/u8-to-u32: Likewise.
22698         * modules/unistr/u8-uctomb: Likewise.
22699         * modules/unistr/u16-check: Likewise.
22700         * modules/unistr/u16-chr: Likewise.
22701         * modules/unistr/u16-cmp: Likewise.
22702         * modules/unistr/u16-cmp2: Likewise.
22703         * modules/unistr/u16-cpy: Likewise.
22704         * modules/unistr/u16-cpy-alloc: Likewise.
22705         * modules/unistr/u16-endswith: Likewise.
22706         * modules/unistr/u16-mblen: Likewise.
22707         * modules/unistr/u16-mbsnlen: Likewise.
22708         * modules/unistr/u16-mbtouc: Likewise.
22709         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22710         * modules/unistr/u16-mbtoucr: Likewise.
22711         * modules/unistr/u16-move: Likewise.
22712         * modules/unistr/u16-next: Likewise.
22713         * modules/unistr/u16-prev: Likewise.
22714         * modules/unistr/u16-set: Likewise.
22715         * modules/unistr/u16-startswith: Likewise.
22716         * modules/unistr/u16-stpcpy: Likewise.
22717         * modules/unistr/u16-stpncpy: Likewise.
22718         * modules/unistr/u16-strcat: Likewise.
22719         * modules/unistr/u16-strchr: Likewise.
22720         * modules/unistr/u16-strcmp: Likewise.
22721         * modules/unistr/u16-strcoll: Likewise.
22722         * modules/unistr/u16-strcpy: Likewise.
22723         * modules/unistr/u16-strcspn: Likewise.
22724         * modules/unistr/u16-strdup: Likewise.
22725         * modules/unistr/u16-strlen: Likewise.
22726         * modules/unistr/u16-strmblen: Likewise.
22727         * modules/unistr/u16-strmbtouc: Likewise.
22728         * modules/unistr/u16-strncat: Likewise.
22729         * modules/unistr/u16-strncmp: Likewise.
22730         * modules/unistr/u16-strncpy: Likewise.
22731         * modules/unistr/u16-strnlen: Likewise.
22732         * modules/unistr/u16-strpbrk: Likewise.
22733         * modules/unistr/u16-strrchr: Likewise.
22734         * modules/unistr/u16-strspn: Likewise.
22735         * modules/unistr/u16-strstr: Likewise.
22736         * modules/unistr/u16-strtok: Likewise.
22737         * modules/unistr/u16-to-u32: Likewise.
22738         * modules/unistr/u16-to-u8: Likewise.
22739         * modules/unistr/u16-uctomb: Likewise.
22740         * modules/unistr/u32-check: Likewise.
22741         * modules/unistr/u32-chr: Likewise.
22742         * modules/unistr/u32-cmp: Likewise.
22743         * modules/unistr/u32-cmp2: Likewise.
22744         * modules/unistr/u32-cpy: Likewise.
22745         * modules/unistr/u32-cpy-alloc: Likewise.
22746         * modules/unistr/u32-endswith: Likewise.
22747         * modules/unistr/u32-mblen: Likewise.
22748         * modules/unistr/u32-mbsnlen: Likewise.
22749         * modules/unistr/u32-mbtouc: Likewise.
22750         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22751         * modules/unistr/u32-mbtoucr: Likewise.
22752         * modules/unistr/u32-move: Likewise.
22753         * modules/unistr/u32-next: Likewise.
22754         * modules/unistr/u32-prev: Likewise.
22755         * modules/unistr/u32-set: Likewise.
22756         * modules/unistr/u32-startswith: Likewise.
22757         * modules/unistr/u32-stpcpy: Likewise.
22758         * modules/unistr/u32-stpncpy: Likewise.
22759         * modules/unistr/u32-strcat: Likewise.
22760         * modules/unistr/u32-strchr: Likewise.
22761         * modules/unistr/u32-strcmp: Likewise.
22762         * modules/unistr/u32-strcoll: Likewise.
22763         * modules/unistr/u32-strcpy: Likewise.
22764         * modules/unistr/u32-strcspn: Likewise.
22765         * modules/unistr/u32-strdup: Likewise.
22766         * modules/unistr/u32-strlen: Likewise.
22767         * modules/unistr/u32-strmblen: Likewise.
22768         * modules/unistr/u32-strmbtouc: Likewise.
22769         * modules/unistr/u32-strncat: Likewise.
22770         * modules/unistr/u32-strncmp: Likewise.
22771         * modules/unistr/u32-strncpy: Likewise.
22772         * modules/unistr/u32-strnlen: Likewise.
22773         * modules/unistr/u32-strpbrk: Likewise.
22774         * modules/unistr/u32-strrchr: Likewise.
22775         * modules/unistr/u32-strspn: Likewise.
22776         * modules/unistr/u32-strstr: Likewise.
22777         * modules/unistr/u32-strtok: Likewise.
22778         * modules/unistr/u32-to-u16: Likewise.
22779         * modules/unistr/u32-to-u8: Likewise.
22780         * modules/unistr/u32-uctomb: Likewise.
22781         * modules/uniwbrk/u8-wordbreaks: Likewise.
22782         * modules/uniwbrk/u16-wordbreaks: Likewise.
22783         * modules/uniwbrk/u32-wordbreaks: Likewise.
22784         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22785         * modules/uniwbrk/wordbreak-property: Likewise.
22786         * modules/uniwidth/u8-strwidth: Likewise.
22787         * modules/uniwidth/u8-width: Likewise.
22788         * modules/uniwidth/u16-strwidth: Likewise.
22789         * modules/uniwidth/u16-width: Likewise.
22790         * modules/uniwidth/u32-strwidth: Likewise.
22791         * modules/uniwidth/u32-width: Likewise.
22792         * modules/uniwidth/width: Likewise.
22793         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22794         with $(LIBUNISTRING).
22795         * modules/unicase/ignorable-tests: Likewise.
22796         * modules/unicase/locale-language-tests: Likewise.
22797         * modules/unicase/tolower-tests: Likewise.
22798         * modules/unicase/totitle-tests: Likewise.
22799         * modules/unicase/toupper-tests: Likewise.
22800         * modules/unicase/u8-casecmp-tests: Likewise.
22801         * modules/unicase/u8-casecoll-tests: Likewise.
22802         * modules/unicase/u8-casefold-tests: Likewise.
22803         * modules/unicase/u8-is-cased-tests: Likewise.
22804         * modules/unicase/u8-is-casefolded-tests: Likewise.
22805         * modules/unicase/u8-is-lowercase-tests: Likewise.
22806         * modules/unicase/u8-is-titlecase-tests: Likewise.
22807         * modules/unicase/u8-is-uppercase-tests: Likewise.
22808         * modules/unicase/u8-tolower-tests: Likewise.
22809         * modules/unicase/u8-totitle-tests: Likewise.
22810         * modules/unicase/u8-toupper-tests: Likewise.
22811         * modules/unicase/u16-casecmp-tests: Likewise.
22812         * modules/unicase/u16-casecoll-tests: Likewise.
22813         * modules/unicase/u16-casefold-tests: Likewise.
22814         * modules/unicase/u16-is-cased-tests: Likewise.
22815         * modules/unicase/u16-is-casefolded-tests: Likewise.
22816         * modules/unicase/u16-is-lowercase-tests: Likewise.
22817         * modules/unicase/u16-is-titlecase-tests: Likewise.
22818         * modules/unicase/u16-is-uppercase-tests: Likewise.
22819         * modules/unicase/u16-tolower-tests: Likewise.
22820         * modules/unicase/u16-totitle-tests: Likewise.
22821         * modules/unicase/u16-toupper-tests: Likewise.
22822         * modules/unicase/u32-casecmp-tests: Likewise.
22823         * modules/unicase/u32-casecoll-tests: Likewise.
22824         * modules/unicase/u32-casefold-tests: Likewise.
22825         * modules/unicase/u32-is-cased-tests: Likewise.
22826         * modules/unicase/u32-is-casefolded-tests: Likewise.
22827         * modules/unicase/u32-is-lowercase-tests: Likewise.
22828         * modules/unicase/u32-is-titlecase-tests: Likewise.
22829         * modules/unicase/u32-is-uppercase-tests: Likewise.
22830         * modules/unicase/u32-tolower-tests: Likewise.
22831         * modules/unicase/u32-totitle-tests: Likewise.
22832         * modules/unicase/u32-toupper-tests: Likewise.
22833         * modules/unicase/ulc-casecmp-tests: Likewise.
22834         * modules/unicase/ulc-casecoll-tests: Likewise.
22835         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22836         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22837         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22838         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22839         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22840         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22841         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22842         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22843         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22844         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22845         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22846         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22847         * modules/unictype/bidicategory-byname-tests: Likewise.
22848         * modules/unictype/bidicategory-name-tests: Likewise.
22849         * modules/unictype/bidicategory-of-tests: Likewise.
22850         * modules/unictype/bidicategory-test-tests: Likewise.
22851         * modules/unictype/block-list-tests: Likewise.
22852         * modules/unictype/block-of-tests: Likewise.
22853         * modules/unictype/block-test-tests: Likewise.
22854         * modules/unictype/category-C-tests: Likewise.
22855         * modules/unictype/category-Cc-tests: Likewise.
22856         * modules/unictype/category-Cf-tests: Likewise.
22857         * modules/unictype/category-Cn-tests: Likewise.
22858         * modules/unictype/category-Co-tests: Likewise.
22859         * modules/unictype/category-Cs-tests: Likewise.
22860         * modules/unictype/category-L-tests: Likewise.
22861         * modules/unictype/category-Ll-tests: Likewise.
22862         * modules/unictype/category-Lm-tests: Likewise.
22863         * modules/unictype/category-Lo-tests: Likewise.
22864         * modules/unictype/category-Lt-tests: Likewise.
22865         * modules/unictype/category-Lu-tests: Likewise.
22866         * modules/unictype/category-M-tests: Likewise.
22867         * modules/unictype/category-Mc-tests: Likewise.
22868         * modules/unictype/category-Me-tests: Likewise.
22869         * modules/unictype/category-Mn-tests: Likewise.
22870         * modules/unictype/category-N-tests: Likewise.
22871         * modules/unictype/category-Nd-tests: Likewise.
22872         * modules/unictype/category-Nl-tests: Likewise.
22873         * modules/unictype/category-No-tests: Likewise.
22874         * modules/unictype/category-P-tests: Likewise.
22875         * modules/unictype/category-Pc-tests: Likewise.
22876         * modules/unictype/category-Pd-tests: Likewise.
22877         * modules/unictype/category-Pe-tests: Likewise.
22878         * modules/unictype/category-Pf-tests: Likewise.
22879         * modules/unictype/category-Pi-tests: Likewise.
22880         * modules/unictype/category-Po-tests: Likewise.
22881         * modules/unictype/category-Ps-tests: Likewise.
22882         * modules/unictype/category-S-tests: Likewise.
22883         * modules/unictype/category-Sc-tests: Likewise.
22884         * modules/unictype/category-Sk-tests: Likewise.
22885         * modules/unictype/category-Sm-tests: Likewise.
22886         * modules/unictype/category-So-tests: Likewise.
22887         * modules/unictype/category-Z-tests: Likewise.
22888         * modules/unictype/category-Zl-tests: Likewise.
22889         * modules/unictype/category-Zp-tests: Likewise.
22890         * modules/unictype/category-Zs-tests: Likewise.
22891         * modules/unictype/category-and-not-tests: Likewise.
22892         * modules/unictype/category-and-tests: Likewise.
22893         * modules/unictype/category-byname-tests: Likewise.
22894         * modules/unictype/category-name-tests: Likewise.
22895         * modules/unictype/category-none-tests: Likewise.
22896         * modules/unictype/category-of-tests: Likewise.
22897         * modules/unictype/category-or-tests: Likewise.
22898         * modules/unictype/category-test-withtable-tests: Likewise.
22899         * modules/unictype/combining-class-tests: Likewise.
22900         * modules/unictype/ctype-alnum-tests: Likewise.
22901         * modules/unictype/ctype-alpha-tests: Likewise.
22902         * modules/unictype/ctype-blank-tests: Likewise.
22903         * modules/unictype/ctype-cntrl-tests: Likewise.
22904         * modules/unictype/ctype-digit-tests: Likewise.
22905         * modules/unictype/ctype-graph-tests: Likewise.
22906         * modules/unictype/ctype-lower-tests: Likewise.
22907         * modules/unictype/ctype-print-tests: Likewise.
22908         * modules/unictype/ctype-punct-tests: Likewise.
22909         * modules/unictype/ctype-space-tests: Likewise.
22910         * modules/unictype/ctype-upper-tests: Likewise.
22911         * modules/unictype/ctype-xdigit-tests: Likewise.
22912         * modules/unictype/decimal-digit-tests: Likewise.
22913         * modules/unictype/digit-tests: Likewise.
22914         * modules/unictype/mirror-tests: Likewise.
22915         * modules/unictype/numeric-tests: Likewise.
22916         * modules/unictype/property-alphabetic-tests: Likewise.
22917         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22918         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22919         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22920         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22921         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22922         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22923         * modules/unictype/property-bidi-control-tests: Likewise.
22924         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22925         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22926         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22927         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22928         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22929         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22930         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22931         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22932         * modules/unictype/property-bidi-pdf-tests: Likewise.
22933         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22934         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22935         * modules/unictype/property-byname-tests: Likewise.
22936         * modules/unictype/property-combining-tests: Likewise.
22937         * modules/unictype/property-composite-tests: Likewise.
22938         * modules/unictype/property-currency-symbol-tests: Likewise.
22939         * modules/unictype/property-dash-tests: Likewise.
22940         * modules/unictype/property-decimal-digit-tests: Likewise.
22941         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22942         * modules/unictype/property-deprecated-tests: Likewise.
22943         * modules/unictype/property-diacritic-tests: Likewise.
22944         * modules/unictype/property-extender-tests: Likewise.
22945         * modules/unictype/property-format-control-tests: Likewise.
22946         * modules/unictype/property-grapheme-base-tests: Likewise.
22947         * modules/unictype/property-grapheme-extend-tests: Likewise.
22948         * modules/unictype/property-grapheme-link-tests: Likewise.
22949         * modules/unictype/property-hex-digit-tests: Likewise.
22950         * modules/unictype/property-hyphen-tests: Likewise.
22951         * modules/unictype/property-id-continue-tests: Likewise.
22952         * modules/unictype/property-id-start-tests: Likewise.
22953         * modules/unictype/property-ideographic-tests: Likewise.
22954         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22955         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22956         * modules/unictype/property-ignorable-control-tests: Likewise.
22957         * modules/unictype/property-iso-control-tests: Likewise.
22958         * modules/unictype/property-join-control-tests: Likewise.
22959         * modules/unictype/property-left-of-pair-tests: Likewise.
22960         * modules/unictype/property-line-separator-tests: Likewise.
22961         * modules/unictype/property-logical-order-exception-tests: Likewise.
22962         * modules/unictype/property-lowercase-tests: Likewise.
22963         * modules/unictype/property-math-tests: Likewise.
22964         * modules/unictype/property-non-break-tests: Likewise.
22965         * modules/unictype/property-not-a-character-tests: Likewise.
22966         * modules/unictype/property-numeric-tests: Likewise.
22967         * modules/unictype/property-other-alphabetic-tests: Likewise.
22968         * modules/unictype/property-other-default-ignorable-code-point-tests:
22969         Likewise.
22970         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22971         * modules/unictype/property-other-id-continue-tests: Likewise.
22972         * modules/unictype/property-other-id-start-tests: Likewise.
22973         * modules/unictype/property-other-lowercase-tests: Likewise.
22974         * modules/unictype/property-other-math-tests: Likewise.
22975         * modules/unictype/property-other-uppercase-tests: Likewise.
22976         * modules/unictype/property-paired-punctuation-tests: Likewise.
22977         * modules/unictype/property-paragraph-separator-tests: Likewise.
22978         * modules/unictype/property-pattern-syntax-tests: Likewise.
22979         * modules/unictype/property-pattern-white-space-tests: Likewise.
22980         * modules/unictype/property-private-use-tests: Likewise.
22981         * modules/unictype/property-punctuation-tests: Likewise.
22982         * modules/unictype/property-quotation-mark-tests: Likewise.
22983         * modules/unictype/property-radical-tests: Likewise.
22984         * modules/unictype/property-sentence-terminal-tests: Likewise.
22985         * modules/unictype/property-soft-dotted-tests: Likewise.
22986         * modules/unictype/property-space-tests: Likewise.
22987         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22988         * modules/unictype/property-test-tests: Likewise.
22989         * modules/unictype/property-titlecase-tests: Likewise.
22990         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22991         * modules/unictype/property-unified-ideograph-tests: Likewise.
22992         * modules/unictype/property-uppercase-tests: Likewise.
22993         * modules/unictype/property-variation-selector-tests: Likewise.
22994         * modules/unictype/property-white-space-tests: Likewise.
22995         * modules/unictype/property-xid-continue-tests: Likewise.
22996         * modules/unictype/property-xid-start-tests: Likewise.
22997         * modules/unictype/property-zero-width-tests: Likewise.
22998         * modules/unictype/scripts-tests: Likewise.
22999         * modules/unictype/syntax-c-ident-tests: Likewise.
23000         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23001         * modules/unictype/syntax-java-ident-tests: Likewise.
23002         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23003         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23004         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23005         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23006         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23007         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23008         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23009         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23010         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23011         * modules/uniname/uniname-tests: Likewise.
23012         * modules/uninorm/canonical-decomposition-tests: Likewise.
23013         * modules/uninorm/compat-decomposition-tests: Likewise.
23014         * modules/uninorm/composition-tests: Likewise.
23015         * modules/uninorm/decomposing-form-tests: Likewise.
23016         * modules/uninorm/decomposition-tests: Likewise.
23017         * modules/uninorm/filter-tests: Likewise.
23018         * modules/uninorm/nfc-tests: Likewise.
23019         * modules/uninorm/nfd-tests: Likewise.
23020         * modules/uninorm/nfkc-tests: Likewise.
23021         * modules/uninorm/nfkd-tests: Likewise.
23022         * modules/uninorm/u8-normcmp-tests: Likewise.
23023         * modules/uninorm/u8-normcoll-tests: Likewise.
23024         * modules/uninorm/u16-normcmp-tests: Likewise.
23025         * modules/uninorm/u16-normcoll-tests: Likewise.
23026         * modules/uninorm/u32-normcmp-tests: Likewise.
23027         * modules/uninorm/u32-normcoll-tests: Likewise.
23028         * modules/unistdio/u8-asnprintf-tests: Likewise.
23029         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23030         * modules/unistdio/u8-vasprintf-tests: Likewise.
23031         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23032         * modules/unistdio/u8-vsprintf-tests: Likewise.
23033         * modules/unistdio/u16-asnprintf-tests: Likewise.
23034         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23035         * modules/unistdio/u16-vasprintf-tests: Likewise.
23036         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23037         * modules/unistdio/u16-vsprintf-tests: Likewise.
23038         * modules/unistdio/u32-asnprintf-tests: Likewise.
23039         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23040         * modules/unistdio/u32-vasprintf-tests: Likewise.
23041         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23042         * modules/unistdio/u32-vsprintf-tests: Likewise.
23043         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23044         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23045         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23046         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23047         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23048         * modules/unistr/u8-check-tests: Likewise.
23049         * modules/unistr/u8-chr-tests: Likewise.
23050         * modules/unistr/u8-cmp-tests: Likewise.
23051         * modules/unistr/u8-cmp2-tests: Likewise.
23052         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23053         * modules/unistr/u8-cpy-tests: Likewise.
23054         * modules/unistr/u8-mblen-tests: Likewise.
23055         * modules/unistr/u8-mbsnlen-tests: Likewise.
23056         * modules/unistr/u8-mbtouc-tests: Likewise.
23057         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23058         * modules/unistr/u8-mbtoucr-tests: Likewise.
23059         * modules/unistr/u8-move-tests: Likewise.
23060         * modules/unistr/u8-next-tests: Likewise.
23061         * modules/unistr/u8-prev-tests: Likewise.
23062         * modules/unistr/u8-set-tests: Likewise.
23063         * modules/unistr/u8-stpcpy-tests: Likewise.
23064         * modules/unistr/u8-stpncpy-tests: Likewise.
23065         * modules/unistr/u8-strcat-tests: Likewise.
23066         * modules/unistr/u8-strcmp-tests: Likewise.
23067         * modules/unistr/u8-strcoll-tests: Likewise.
23068         * modules/unistr/u8-strcpy-tests: Likewise.
23069         * modules/unistr/u8-strdup-tests: Likewise.
23070         * modules/unistr/u8-strlen-tests: Likewise.
23071         * modules/unistr/u8-strmblen-tests: Likewise.
23072         * modules/unistr/u8-strmbtouc-tests: Likewise.
23073         * modules/unistr/u8-strncat-tests: Likewise.
23074         * modules/unistr/u8-strncmp-tests: Likewise.
23075         * modules/unistr/u8-strncpy-tests: Likewise.
23076         * modules/unistr/u8-strnlen-tests: Likewise.
23077         * modules/unistr/u8-to-u16-tests: Likewise.
23078         * modules/unistr/u8-to-u32-tests: Likewise.
23079         * modules/unistr/u8-uctomb-tests: Likewise.
23080         * modules/unistr/u16-check-tests: Likewise.
23081         * modules/unistr/u16-chr-tests: Likewise.
23082         * modules/unistr/u16-cmp-tests: Likewise.
23083         * modules/unistr/u16-cmp2-tests: Likewise.
23084         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23085         * modules/unistr/u16-cpy-tests: Likewise.
23086         * modules/unistr/u16-mblen-tests: Likewise.
23087         * modules/unistr/u16-mbsnlen-tests: Likewise.
23088         * modules/unistr/u16-mbtouc-tests: Likewise.
23089         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23090         * modules/unistr/u16-mbtoucr-tests: Likewise.
23091         * modules/unistr/u16-move-tests: Likewise.
23092         * modules/unistr/u16-next-tests: Likewise.
23093         * modules/unistr/u16-prev-tests: Likewise.
23094         * modules/unistr/u16-set-tests: Likewise.
23095         * modules/unistr/u16-stpcpy-tests: Likewise.
23096         * modules/unistr/u16-stpncpy-tests: Likewise.
23097         * modules/unistr/u16-strcat-tests: Likewise.
23098         * modules/unistr/u16-strcmp-tests: Likewise.
23099         * modules/unistr/u16-strcoll-tests: Likewise.
23100         * modules/unistr/u16-strcpy-tests: Likewise.
23101         * modules/unistr/u16-strdup-tests: Likewise.
23102         * modules/unistr/u16-strlen-tests: Likewise.
23103         * modules/unistr/u16-strmblen-tests: Likewise.
23104         * modules/unistr/u16-strmbtouc-tests: Likewise.
23105         * modules/unistr/u16-strncat-tests: Likewise.
23106         * modules/unistr/u16-strncmp-tests: Likewise.
23107         * modules/unistr/u16-strncpy-tests: Likewise.
23108         * modules/unistr/u16-strnlen-tests: Likewise.
23109         * modules/unistr/u16-to-u32-tests: Likewise.
23110         * modules/unistr/u16-to-u8-tests: Likewise.
23111         * modules/unistr/u16-uctomb-tests: Likewise.
23112         * modules/unistr/u32-check-tests: Likewise.
23113         * modules/unistr/u32-chr-tests: Likewise.
23114         * modules/unistr/u32-cmp-tests: Likewise.
23115         * modules/unistr/u32-cmp2-tests: Likewise.
23116         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23117         * modules/unistr/u32-cpy-tests: Likewise.
23118         * modules/unistr/u32-mblen-tests: Likewise.
23119         * modules/unistr/u32-mbsnlen-tests: Likewise.
23120         * modules/unistr/u32-mbtouc-tests: Likewise.
23121         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23122         * modules/unistr/u32-mbtoucr-tests: Likewise.
23123         * modules/unistr/u32-move-tests: Likewise.
23124         * modules/unistr/u32-next-tests: Likewise.
23125         * modules/unistr/u32-prev-tests: Likewise.
23126         * modules/unistr/u32-set-tests: Likewise.
23127         * modules/unistr/u32-stpcpy-tests: Likewise.
23128         * modules/unistr/u32-stpncpy-tests: Likewise.
23129         * modules/unistr/u32-strcat-tests: Likewise.
23130         * modules/unistr/u32-strcmp-tests: Likewise.
23131         * modules/unistr/u32-strcoll-tests: Likewise.
23132         * modules/unistr/u32-strcpy-tests: Likewise.
23133         * modules/unistr/u32-strdup-tests: Likewise.
23134         * modules/unistr/u32-strlen-tests: Likewise.
23135         * modules/unistr/u32-strmblen-tests: Likewise.
23136         * modules/unistr/u32-strmbtouc-tests: Likewise.
23137         * modules/unistr/u32-strncat-tests: Likewise.
23138         * modules/unistr/u32-strncmp-tests: Likewise.
23139         * modules/unistr/u32-strncpy-tests: Likewise.
23140         * modules/unistr/u32-strnlen-tests: Likewise.
23141         * modules/unistr/u32-to-u16-tests: Likewise.
23142         * modules/unistr/u32-to-u8-tests: Likewise.
23143         * modules/unistr/u32-uctomb-tests: Likewise.
23144         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23145         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23146         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23147         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23148         * modules/uniwidth/u8-strwidth-tests: Likewise.
23149         * modules/uniwidth/u8-width-tests: Likewise.
23150         * modules/uniwidth/u16-strwidth-tests: Likewise.
23151         * modules/uniwidth/u16-width-tests: Likewise.
23152         * modules/uniwidth/u32-strwidth-tests: Likewise.
23153         * modules/uniwidth/u32-width-tests: Likewise.
23154         * modules/uniwidth/width-tests: Likewise.
23155
23156 2010-05-18  Richard Jones  <rjones@redhat.com>
23157
23158         doc: users.txt: list hivex
23159         * users.txt: Add hivex.
23160
23161 2010-05-18  Richard Jones  <rjones@redhat.com>
23162
23163         doc: users.txt: list febootstrap
23164         * users.txt: Add febootstrap.
23165
23166 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23167
23168         bootstrap: fix an error when gnulib is not used as a git submodule
23169         * build-aux/bootstrap (gnulib_path): If its length is zero then
23170         assign "gnulib" to it.
23171         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23172
23173 2010-05-16  Bruno Haible  <bruno@clisp.org>
23174
23175         Avoid autoconf warnings about AM_ICONV.
23176         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23177         2.64.
23178
23179 2010-05-16  Bruno Haible  <bruno@clisp.org>
23180
23181         absolute-header: Make the macro usable in more situations.
23182         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23183         from gl_ABSOLUTE_HEADER.
23184         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23185
23186 2010-05-16  James Youngman  <jay@gnu.org>
23187
23188         doc: update users.txt
23189         * users.txt: Add CSSC.
23190
23191 2010-05-16  Jim Meyering  <meyering@redhat.com>
23192
23193         init.sh: fix an error in the previous change; add more comments
23194         * tests/init.sh: Compare exit code in loop against 9, not 2.
23195         Patch by Bruno Haible.
23196         Make the two tests more similar by adding an empty "then" clause.
23197         Add comments.
23198
23199         init.sh: avoid unnecessary shell re-exec
23200         * tests/init.sh: Improve the re-exec-required check to first test the
23201         current shell.  If it passes the test, do not search for a shell that
23202         does pass, and do not re-exec.  This test is particularly contorted to
23203         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23204         of $(...) evokes a syntax error and causes immediate shell exit with
23205         status 2.  Bruno Haible reported that the re-exec made it impossible
23206         to single-step through any init.sh-using script.
23207
23208 2010-05-16  Bruno Haible  <bruno@clisp.org>
23209
23210         Fix collision between gnulib's and libintl's printf replacements.
23211         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23212         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23213         (printf): When using GNU C, map the __printf__ function to rpl_printf
23214         via __asm__. When not using GNU C, define rpl_printf instead of
23215         __printf__.
23216         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23217         commit.
23218         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23219         commit.
23220         * m4/asm-underscore.m4: New file.
23221         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23222         * modules/stdio (Files): Add m4/asm-underscore.m4.
23223         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23224         Reported by Ben Pfaff.
23225
23226 2010-05-16  Bruno Haible  <bruno@clisp.org>
23227
23228         verify: Avoid skipping the test on openSUSE 11.0.
23229         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23230
23231 2010-05-13  Bruno Haible  <bruno@clisp.org>
23232
23233         Avoid useless warnings from G++.
23234         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23235         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23236         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23237
23238 2010-05-11  Jim Meyering  <meyering@redhat.com>
23239
23240         maint.mk: tweak preceding change
23241         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23242         regexps tighter by anchoring at EOL, and make the new group "shy"
23243         for slightly decreased overhead.
23244
23245 2010-05-11  Eric Blake  <eblake@redhat.com>
23246
23247         maint.mk: gnulib doesn't guarantee NSIG
23248         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23249
23250 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23251
23252         test-pwrite.c: Remove unused variable declaration.
23253         * tests/test-pwrite.c (main): Remove read_buf declaration.
23254
23255         Remove useless test-pwrite.sh file.
23256         * tests/test-pwrite.sh: Delete file.
23257         * modules/pwrite-tests: Remove references.
23258         Reported by Bruno Haible.
23259
23260 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23261
23262         init.sh: fix a typo
23263         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23264
23265 2010-05-10  Jim Meyering  <meyering@redhat.com>
23266
23267         maint.mk: avoid using a temporary file in the always-defined-macros check
23268         * top/maint.mk (.re-defmac): Remove rule.
23269         (gl_trap_): Remove definition.
23270         (sc_prohibit_always-defined_macros): Rewrite not to create and
23271         depend on a temporary file.  Instead, depend on GNU grep's ability
23272         to read a list of regular expressions from stdin when given "-f -".
23273
23274 2010-05-09  Bruno Haible  <bruno@clisp.org>
23275
23276         Update to GNU gettext 0.18, part 1.
23277         * m4/gettext.m4: Update to GNU gettext 0.18.
23278         * m4/intl.m4: Likewise.
23279         * m4/po.m4: Likewise.
23280         * modules/gettext (Files): Add m4/fcntl-o.m4.
23281         (configure.ac): Require gettext infrastructure from version 0.18.
23282
23283 2010-05-09  Jim Meyering  <meyering@redhat.com>
23284
23285         init.sh: enable MALLOC_PERTURB_
23286         * tests/init.sh: Enable glibc's malloc-perturbing option.
23287
23288         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23289         With my recent change in init.sh from the two-line form:
23290             -#   : ${srcdir=.}
23291             -#   . "$srcdir/init.sh"; path_prepend_ .
23292             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23293         I noticed that using the one-line form would cause this test
23294         to fail with a false-positive, or to stop working altogether,
23295         depending on whether help-version changed or all the tests did.
23296         * top/maint.mk (_hv_regex): Remove this definition.
23297         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23298         (_hv_regex_strong): Use a stronger regex to check for conformance.
23299         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23300         Give a separate diagnostic for lack of conforming use.
23301
23302         maint.mk: prohibit definition of symbols defined by gnulib
23303         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23304         definition of symbols defined by gnulib.
23305
23306 2010-05-09  Bruno Haible  <bruno@clisp.org>
23307
23308         acl: Avoid test failure on Cygwin-hosted mingw.
23309         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23310
23311 2010-05-09  Bruno Haible  <bruno@clisp.org>
23312
23313         error: Use system's fcntl function.
23314         * lib/error.c (fcntl): Undefine.
23315
23316 2010-05-09  Jim Meyering  <meyering@redhat.com>
23317
23318         verify: adjust formatting to be more consistent
23319         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23320         argument-list '('s, and after one comma.
23321
23322 2010-05-09  Bruno Haible  <bruno@clisp.org>
23323
23324         error: More reliable output on mingw.
23325         * lib/error.c: Include <windows.h>.
23326         (is_open): New function.
23327         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23328         defined.
23329
23330 2010-05-09  Bruno Haible  <bruno@clisp.org>
23331
23332         vasnprintf: Fix syntax errors in libintl build on mingw.
23333         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23334         pad_ourselves and prec_ourselves after use.
23335
23336 2010-05-08  Bruno Haible  <bruno@clisp.org>
23337
23338         * lib/config.charset: Update comments for Cygwin 1.7.
23339         * lib/localcharset.c: Likewise.
23340
23341 2010-05-07  Jim Meyering  <meyering@redhat.com>
23342
23343         init.sh: improve comments
23344         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23345         . "${srcdir=.}/init.sh"; path_prepend_ .
23346         Add a note about path_prepend_ and the alternative of using
23347         TESTS_ENVIRONMENT.
23348
23349 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23350
23351         exclude: Unescape hashed patterns in wildcard mode.
23352         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23353         to the hash list.
23354         * tests/test-exclude8.sh: New test case.
23355         * modules/exclude-tests: Add new test.
23356
23357 2010-05-05  Eric Blake  <eblake@redhat.com>
23358
23359         verify: automate tests
23360         * modules/verify-tests: New module.
23361         * tests/test-verify.sh: New file.
23362         * tests/test-verify.c: Guard each negative test with a unique id.
23363         Also avoid warning about unused left hand of comma expressions.
23364
23365 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23366
23367         Further improvements to verify.h, suggested by Eric Blake.
23368         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23369         the GL_* versions, to avoid collision with OpenGL.
23370         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23371         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23372         than testing merely whether it's defined.
23373
23374         Modify verify.h to pacify gcc -Wredundant_decls.
23375         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23376         These use the prefix "GL_" since they're likely to be useful elsewhere.
23377         We may need to break them out into a different .h file.
23378         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23379         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23380         of verify_function__.
23381
23382 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23383
23384         Tests for module pwrite.
23385         * modules/pwrite-tests: New file.
23386         * tests/test-pwrite.sh: New file.
23387         * tests/test-pwrite.c: New file.
23388
23389         New module pwrite.
23390         * lib/unistd.in.h (pwrite): New declaration.
23391         * lib/pwrite.c: New file, from glibc with modifications.
23392         * m4/pwrite.m4: New file.
23393         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23394         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23395         REPLACE_PWRITE.
23396         * modules/pwrite: New file.
23397         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23398         REPLACE_PWRITE.
23399         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23400         * doc/posix-functions/pwrite.texi: Mention the new module.
23401
23402 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23403
23404         pread: Update documentation.
23405         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23406
23407 2010-05-04  Eric Blake  <eblake@redhat.com>
23408
23409         docs: update cygwin progress
23410         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23411         this bug.
23412         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23413         Added in cygwin 1.7.2.
23414         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23415         Likewise.
23416         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23417         Likewise.
23418         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23419         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23420         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23421         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23422         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23423         Mention nproc module.
23424         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23425         bug in cygwin 1.7.5 addition.
23426         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23427         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23428         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23429         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23430         1.7.5.
23431         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23432         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23433         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23434         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23435         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23436         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23437         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23438         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23439         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23440         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23441         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23442         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23443         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23444         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23445         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23446         Likewise.
23447         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23448         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23449         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23450         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23451         Likewise.
23452         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23453         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23454         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23455         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23456         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23457         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23458         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23459         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23460         Likewise.
23461         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23462         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23463         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23464         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23465         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23466         Likewise.
23467         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23468         Likewise.
23469         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23470         Likewise.
23471         * doc/glibc-functions/xdrrec_endofrecord.texi
23472         (xdrrec_endofrecord): Likewise.
23473         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23474         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23475         Likewise.
23476         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23477         Likewise.
23478
23479 2010-05-04  Jim Meyering  <meyering@redhat.com>
23480
23481         gendocs.sh: make its "-s FILE" option more useful
23482         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23483         $PACKAGE to reflect the probably-different basename of "FILE".
23484
23485 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23486
23487         bootstrap: don't ignore download_po_files failure
23488         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23489         failure.
23490
23491 2010-05-03  Jim Meyering  <meyering@redhat.com>
23492
23493         maint.mk: allow to pass options to gendocs.sh
23494         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23495         (gendocs_options_): New overridable variable.
23496
23497         gnu-web-doc-update: don't ignore configure or build failure
23498         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23499
23500         announce-gen: backslash-escape '@'s in --help output
23501         * build-aux/announce-gen: Fix syntax errors.
23502
23503         maint.mk, announce-gen: allow project-specific announcement mail headers
23504         * top/maint.mk (translation_project_): Define default.
23505         (announcement_Cc_, announcement_mail_headers_): Likewise.
23506         (announcement): Invoke announce-gen with new --mail-headers option.
23507         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23508
23509         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23510         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23511         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23512         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23513         line in the "err2" output file when running "make check" in verbose
23514         mode (i.e., with set -x enabled).
23515
23516 2010-05-03  Bruno Haible  <bruno@clisp.org>
23517
23518         wctob: Fix for weird platforms.
23519         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23520         argument value.
23521
23522 2010-05-03  Jim Meyering  <meyering@redhat.com>
23523
23524         maint.mk: prohibit unwarranted use of <strings.h>
23525         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23526         strings.h in a file that does not also use strcasecmp, strncasecmp,
23527         ffs or ffsll.
23528
23529         maint.mk: remove obsolete comments
23530         * top/maint.mk: Remove stale, commented-out rules.
23531
23532 2010-05-02  Bruno Haible  <bruno@clisp.org>
23533
23534         wcwidth: Declare also when it's aliased.
23535         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23536         macro.
23537
23538 2010-05-02  Bruno Haible  <bruno@clisp.org>
23539
23540         Fix regression from 2010-04-25.
23541         * gnulib-tool (func_modules_transitive_closure): Check the status of
23542         all modules, not only of the tests that are of the form foo-tests where
23543         foo is a module.
23544
23545 2010-05-02  Bruno Haible  <bruno@clisp.org>
23546
23547         wctob: Work around nasty Cygwin 1.7.2 bug.
23548         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23549         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23550
23551 2010-05-01  Bruno Haible  <bruno@clisp.org>
23552
23553         fpurge: Sharper test.
23554         * tests/test-fpurge.c (main): Add one more ftell check.
23555         * modules/fpurge-tests (Depends-on): Add ftell.
23556         Suggested by Eric Blake.
23557
23558 2010-05-01  Bruno Haible  <bruno@clisp.org>
23559
23560         ftello: Another test.
23561         * tests/test-ftello3.c: New file.
23562         * modules/ftello-tests (Files): Add it.
23563         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23564         MOSTLYCLEANFILES.
23565
23566         ftell: Another test.
23567         * tests/test-ftell3.c: New file.
23568         * modules/ftell-tests (Files): Add it.
23569         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23570         MOSTLYCLEANFILES.
23571
23572 2010-05-01  Bruno Haible  <bruno@clisp.org>
23573
23574         ftell, ftello: Work around Solaris bug.
23575         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23576         * lib/ftello.c: Include stdio-impl.h.
23577         (ftello): On Solaris, when _IOWRT is set, compute the result without
23578         looking at _IOREAD.
23579         * modules/ftello (Files): Add lib/stdio-impl.h.
23580         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23581         * doc/posix-functions/ftello.texi: Likewise.
23582         Reported by Eric Blake.
23583
23584 2010-05-01  Bruno Haible  <bruno@clisp.org>
23585
23586         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23587         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23588         the _IOWRT flag is also set.
23589
23590 2010-05-01  Bruno Haible  <bruno@clisp.org>
23591
23592         Fix doc about a HP-UX stdio bug.
23593         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23594         * doc/posix-functions/ftello.texi: Likewise.
23595
23596 2010-05-01  Bruno Haible  <bruno@clisp.org>
23597
23598         lseek test: Fix failure on Solaris.
23599         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23600         output.
23601
23602 2010-04-30  Jim Meyering  <meyering@redhat.com>
23603
23604         bootstrap: don't ignore failure to generate po*/Makevars
23605         * build-aux/bootstrap (with_gettext): Don't ignore failure
23606         to create po/Makevars or runtime-po/Makevars.
23607
23608 2010-04-29  Eric Blake  <eblake@redhat.com>
23609
23610         headers: relax license to LGPLv2+
23611         * modules/fcntl-h (License): Relax license.
23612         * modules/getopt-posix (License): Likewise.
23613         * modules/locale (License): Likewise.
23614         * modules/math (License): Likewise.
23615         * modules/pty (License): Likewise.
23616         * modules/sched (License): Likewise.
23617         * modules/search (License): Likewise.
23618         * modules/spawn (License): Likewise.
23619         * modules/stdarg (License): Likewise.
23620         * modules/sysexits (License): Likewise.
23621
23622 2010-04-29  Jim Meyering  <meyering@redhat.com>
23623
23624         inttypes: relax license to LGPLv2+
23625         * modules/inttypes (License): Relax license.
23626
23627 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23628
23629         * top/maint.mk (indent): Run twice to produce idempotent results.
23630
23631 2010-04-28  Bruno Haible  <bruno@clisp.org>
23632
23633         getdate: Generate getdate.c in the source directory.
23634         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23635         MOSTLYCLEANFILES.
23636         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23637
23638 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23639
23640         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23641         is not declared as a const *; avoid warnings in that case.
23642
23643 2010-04-28  Eric Blake  <eblake@redhat.com>
23644
23645         canonicalize-lgpl: avoid compiler warning
23646         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23647         declaration' / 'extraneous semicolon' warning with some compilers.
23648         Reported by Andreas Gruenbacher.
23649
23650 2010-04-28  Jim Meyering  <meyering@redhat.com>
23651
23652         init.sh: ensure a more reliable exit status when exiting via trap
23653         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23654         Inspired by patches from Dmitry V. Levin.
23655         Also trap on signal 3 (SIGQUIT).
23656
23657 2010-04-27  Bruno Haible  <bruno@clisp.org>
23658
23659         Update doc about utimes().
23660         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23661         'utimens' module.
23662         Reported by Andreas Gruenbacher <agruen@suse.de>.
23663
23664 2010-04-27  Eric Blake  <eblake@redhat.com>
23665
23666         full-read, full-write: relax license
23667         * modules/full-read (License): Drop to LGPLv2+.
23668         * modules/full-write (License): Likewise.
23669         * modules/safe-read (License): Likewise.
23670         * modules/safe-write (License): Likewise.
23671
23672         pthread: mention library for linking
23673         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23674
23675 2010-04-27  Jim Meyering  <meyering@redhat.com>
23676
23677         maint.mk: fix a bug introduced in last change
23678         * top/maint.mk (gl_assured_headers_): Now that all names are on
23679         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23680         is not anchored to end of word, it should be adequate.
23681
23682         maint.mk: avoid side-effect in latest syntax-check
23683         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23684         to run commands via $(shell...), and hence to incur cost only when
23685         the new rule is actually run.
23686
23687         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23688         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23689         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23690         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23691         (gl_assured_headers_, az_, AZ_): Define.
23692         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23693
23694 2010-04-26  Jim Meyering  <jim@meyering.net>
23695             Bruno Haible  <bruno@clisp.org>
23696
23697         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23698         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23699         Prompted by an exchange with Gilles Espinasse.
23700
23701 2010-04-26  Jim Meyering  <meyering@redhat.com>
23702
23703         git-version-gen: aesthetic tweak
23704         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23705         so that the command remains on a single line.
23706
23707 2010-04-26  Eric Blake  <eblake@redhat.com>
23708
23709         git-version-gen: allow use on EBCDIC hosts
23710         * build-aux/git-version-gen (dirty): Use literal rather than tying
23711         ourselves to ascii.
23712         Reported by Steve Goetze.
23713
23714 2010-04-25  Bruno Haible  <bruno@clisp.org>
23715
23716         netdb: Add support for GNULIB_POSIXCHECK.
23717         * lib/netdb.in.h: Include warn-on-use.h.
23718         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23719         functions are used when GNULIB_POSIXCHECK is defined and the
23720         getaddrinfo module is not in use.
23721         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23722         freeaddrinfo, gai_strerror, getnameinfo are declared.
23723         * modules/netdb (Depends-on): Add warn-on-use.
23724         (Makefile.am): Include warn-on-use.h in netdb.h.
23725
23726 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23727
23728         build: avoid "make check" failure without .git/ directory
23729         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23730         there is no .git/ directory.
23731
23732 2010-04-25  Bruno Haible  <bruno@clisp.org>
23733
23734         ptsname: Fix misuse of ttyname_r.
23735         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23736         of errno.
23737
23738 2010-04-25  Bruno Haible  <bruno@clisp.org>
23739
23740         ttyname_r: Make it work on Solaris 10.
23741         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23742         if the system function has the POSIX declaration. Test whether the
23743         function fails if the buffer is less than 128 bytes large.
23744         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23745         system's ttyname_r function. Provide a reasonably large buffer.
23746         * modules/ttyname_r (Depends-on): Add extensions.
23747         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23748
23749 2010-04-25  Bruno Haible  <bruno@clisp.org>
23750
23751         Use the 'extensions' module for some more functions on Solaris.
23752         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23753         module.
23754         * doc/posix-functions/ctime_r.texi: Likewise.
23755         * doc/posix-functions/getgrgid_r.texi: Likewise.
23756         * doc/posix-functions/getgrnam_r.texi: Likewise.
23757         * doc/posix-functions/getpwnam_r.texi: Likewise.
23758         * doc/posix-functions/getpwuid_r.texi: Likewise.
23759         * doc/posix-functions/readdir_r.texi: Likewise.
23760         * doc/posix-functions/sigwait.texi: Likewise.
23761         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23762         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23763
23764 2010-04-25  Bruno Haible  <bruno@clisp.org>
23765
23766         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23767         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23768         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23769         * lib/ttyname_r.c: Include <limits.h>.
23770         (ttyname_r): Define using the system's ttyname_r function, if it exists
23771         and not on Solaris.
23772         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23773         set.
23774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23775         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23776         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23777         Reported by Simon Josefsson.
23778
23779 2010-04-25  Bruno Haible  <bruno@clisp.org>
23780
23781         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23782         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23783         * doc/posix-functions/ctime_r.texi: Likewise.
23784         * doc/posix-functions/getgrgid_r.texi: Likewise.
23785         * doc/posix-functions/getgrnam_r.texi: Likewise.
23786         * doc/posix-functions/getlogin_r.texi: Likewise.
23787         * doc/posix-functions/getpwnam_r.texi: Likewise.
23788         * doc/posix-functions/getpwuid_r.texi: Likewise.
23789         * doc/posix-functions/readdir_r.texi: Likewise.
23790         * doc/posix-functions/sigwait.texi: Likewise.
23791         * doc/posix-functions/ttyname_r.texi: Likewise.
23792         Reported by Simon Josefsson.
23793
23794 2010-04-25  Bruno Haible  <bruno@clisp.org>
23795
23796         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23797         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23798         also to --create-testdir.
23799         (func_acceptable): Don't consider the status of *-tests modules here.
23800         (func_modules_transitive_closure): Consider it here, before including a
23801         test module.
23802         (func_import, func_create_testdir): Set inc_all_direct_tests,
23803         inc_all_indirect_tests.
23804         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23805         --create-testdir and --create-megatestdir.
23806
23807 2010-04-25  Bruno Haible  <bruno@clisp.org>
23808
23809         gnulib-tool: Add --without-*-tests options.
23810         * gnulib-tool (func_usage): Document the --without-*-tests options.
23811         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23812         excl_unportable_tests): New variables.
23813         Fail if they are specified with --import or --update.
23814         (func_acceptable): Respect the excl_*_tests variables.
23815         (func_import): Set the excl_*_tests variables to empty.
23816
23817 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23818             Bruno Haible  <bruno@clisp.org>
23819
23820         Work around a MacOS X 10.4 bug with openpty.
23821         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23822         * tests/test-openpty.c (main): Close the master side explicitly.
23823
23824 2010-04-25  Bruno Haible  <bruno@clisp.org>
23825
23826         strnlen: Fix a C++ test error on MacOS X and Solaris.
23827         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23828         the function is not declared.
23829         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23830         Simon Josefsson.
23831
23832 2010-04-24  Bruno Haible  <bruno@clisp.org>
23833
23834         Avoid a gcc warning.
23835         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23836         of correct type for %08lx directive.
23837         Reported by Eric Blake.
23838
23839 2010-04-24  Bruno Haible  <bruno@clisp.org>
23840
23841         vasnprintf: Correct errno value in case of out-of-memory.
23842         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23843         or sprintf. Use the errno value from SNPRINTF or sprintf.
23844         Reported by Ian Beckwith <ianb@erislabs.net>.
23845
23846 2010-04-24  Bruno Haible  <bruno@clisp.org>
23847
23848         ansi-c++-opt: Find correct compiler when cross-compiling.
23849         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23850         AC_CHECK_PROGS.
23851         Reported by Simon Josefsson.
23852
23853 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23854
23855         vc-list-files: Add support for subversion
23856         * build-aux/vc-list-files: Use "svn list" to generate the list of
23857         files controlled by subversion.
23858
23859 2010-04-23  Jim Meyering  <meyering@redhat.com>
23860
23861         vc-list-files tests: convert to use init.sh
23862         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23863         path_prepend_.
23864         Use Exit, not exit.
23865         Use skip_ rather than open coding it.
23866         Remove trap set-up and compare definitions.
23867         * tests/test-vc-list-files-git.sh: Likewise.
23868         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23869
23870 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23871
23872         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23873         backup files.
23874
23875 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23876
23877         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23878
23879 2010-04-20  Eric Blake  <eblake@redhat.com>
23880
23881         tests: be robust to ignored SIGPIPE
23882         * tests/test-select-in.sh: Consume all output.
23883         * tests/test-lseek.sh: Check correct exit status, while avoiding
23884         EPIPE.
23885
23886 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23887             Bruno Haible  <bruno@clisp.org>
23888
23889         visibility: Don't use -fvisibility if it leads to a warning.
23890         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23891         yes, don't pretend that visibility works if it leads to a warning.
23892         Reported by Mike Gran <spk121@yahoo.com>.
23893
23894 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23895
23896         * build-aux/bootstrap: Use "git -h" for testing for supported options
23897         instead of "git --help".  The short-form option only shows a summary,
23898         and doesn't layout the full man page.  Grep for the full option name
23899         in the summary, too.
23900
23901 2010-04-19  Bruno Haible  <bruno@clisp.org>
23902
23903         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23904         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23905         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23906         mention of RELOCATABLE_STRIP.
23907         Reported by Sylvain Beucler <beuc@beuc.net>.
23908
23909 2010-04-19  Bruno Haible  <bruno@clisp.org>
23910
23911         * lib/diffseq.h: Fix typo in comment.
23912         Reported by Eric Blake.
23913
23914 2010-04-19  Bruno Haible  <bruno@clisp.org>
23915
23916         ioctl: Move autoconf macro to a .m4 file.
23917         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23918         * modules/ioctl (Files): Add it.
23919         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23920         Reported by Ian Beckwith <ianb@erislabs.net>.
23921
23922 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23923             Bruno Haible  <bruno@clisp.org>
23924
23925         diffseq: Accommodate use-case with abstract arrays.
23926         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23927         is not defined.
23928         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23929         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23930
23931 2010-04-18  Bruno Haible  <bruno@clisp.org>
23932
23933         * doc/posix-headers/stdbool.texi: More precise wording.
23934
23935 2010-04-17  Jim Meyering  <meyering@redhat.com>
23936
23937         maint.mk: use gnu-style indentation in an embedded perl script
23938         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23939         Rename variable: s/two/last_two_bytes/
23940
23941 2010-04-16  Eric Blake  <eblake@redhat.com>
23942
23943         test-stdbool: skip test that fails with Solaris CC
23944         * tests/test-stdbool.c (f): Skip test that causes compilation
23945         error under buggy C++ compiler.
23946         * lib/stdbool.in.h: Document the limitation.
23947         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23948
23949         setenv: allow compilation with C++
23950         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23951         register keyword.
23952
23953         stdint: allow test to pass with C++
23954         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23955
23956         getopt: allow compilation with C++
23957         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23958         struct.
23959         * lib/getopt.c (_getopt_internal_r): Use correct type.
23960         Reported by Dagobert Michelson, via Joel E. Denny.
23961
23962 2010-04-16  Bruno Haible  <bruno@clisp.org>
23963
23964         Override netdb.h always.
23965         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23966         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23967         Reported by Ludovic Courtès <ludo@gnu.org>.
23968
23969 2010-04-15  Bruno Haible  <bruno@clisp.org>
23970
23971         openpty: Fix mistake from 2010-03-21.
23972         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23973         Reported by Simon Josefsson.
23974
23975 2010-04-15  Eric Blake  <eblake@redhat.com>
23976
23977         test-forkpty: fix expected signature
23978         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23979         Reported by Simon Josefsson.
23980
23981 2010-04-15  Jim Meyering  <meyering@redhat.com>
23982
23983         maint.mk: texinfo_suffix_re_: correct the default regexp
23984         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23985
23986         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23987         make it configurable via texinfo_suffix_re_.
23988
23989 2010-04-14  Eric Blake  <eblake@redhat.com>
23990
23991         strtok_r: relax license to LGPLv2+
23992         * modules/strtok_r (License): Relax license.
23993         Reported by Matthias Bolte.
23994
23995 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23996
23997         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23998         version 1.4.4 by default instead of requiring the libgcrypt
23999         version used during build.  This makes it possible to use the
24000         application with older but still binary compatible libgcrypt
24001         versions.
24002
24003 2010-04-13  Eric Blake  <eblake@redhat.com>
24004
24005         getopt-gnu: match recent glibc fixes and posix ruling
24006         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24007         '+' handling, when requesting extensions.
24008         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24009         'W;' handling.
24010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24011         * doc/posix-functions/getopt.texi (getopt): Document this.
24012         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24013         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24014         Likewise.
24015
24016         getopt: merge bug fixes from glibc
24017         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24018         diagnostics.  Honor '+:' correctly.  Reject ';'.
24019
24020         getopt-posix: detect MacOS bug
24021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24022         optind when missing a required argument.
24023         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24024         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24025         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24026         Likewise.
24027
24028         getopt-posix: avoid spurious failure on Solaris
24029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24030         an indicator that setting optind=1 is sufficient for reset.
24031
24032         getopt-posix: avoid spurious failure on FreeBSD
24033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24034         in POSIX mode, since the m4 test uses it.
24035
24036         gnulib-tool: silence warning on BSD sh
24037         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24038
24039 2010-04-13  Jim Meyering  <meyering@redhat.com>
24040
24041         doc: users.txt: GNU patch now uses gnulib
24042         * users.txt: Add patch.
24043
24044 2010-04-12  Jim Meyering  <meyering@redhat.com>
24045
24046         maint.mk: generate more concise timing data for syntax-check rules
24047         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24048         " done" from each line that reports a syntax-check test duration.
24049
24050 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24051
24052         git-version-gen: use "git update-index..." rather than "git status"
24053         * build-aux/git-version-gen: Use git update-index --refresh, not
24054         "git status".  With some versions of git, "git status" would fail
24055         to update the index and result in an unwarranted "-dirty" suffix.
24056
24057 2010-04-11  Jim Meyering  <meyering@redhat.com>
24058
24059         openat: correct formatting (no semantic change)
24060         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24061         Suggested by Bruno Haible.
24062
24063 2010-04-11  Bruno Haible  <bruno@clisp.org>
24064
24065         Stricter declaration checking in testdirs.
24066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24067         If for_tests is true, augment AM_CPPFLAGS to define
24068         GNULIB_STRICT_CHECKING.
24069         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24070         GNULIB_STRICT_CHECKING is defined, verify that the function is
24071         declared.
24072
24073 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24074             Bruno Haible  <bruno@clisp.org>
24075
24076         libunistring: Improve configure output.
24077         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24078         Don't say "consider installing GNU libunistring" when checking again
24079         with libiconv.
24080
24081 2010-04-11  Bruno Haible  <bruno@clisp.org>
24082
24083         libunistring: Correct value of $LTLIBUNISTRING.
24084         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24085         correct the value of $LTLIBUNISTRING.
24086
24087 2010-04-11  Bruno Haible  <bruno@clisp.org>
24088
24089         havelib: Add static libraries to LIBS in the right order.
24090         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24091         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24092
24093 2010-04-11  Bruno Haible  <bruno@clisp.org>
24094
24095         libunistring: Detect libunistring also when it depends on libiconv.
24096         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24097         the second AC_LIB_HAVE_LINKFLAGS invocation.
24098
24099 2010-04-11  James Youngman  <jay@gnu.org>
24100
24101         close-stream: declare local scalars to be "const"
24102         * lib/close-stream.c (close_stream): Make boolean variables const
24103         to document the fact that we set but do not change them.
24104
24105 2010-04-11  Bruno Haible  <bruno@clisp.org>
24106
24107         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24108
24109 2010-04-11  Jim Meyering  <meyering@redhat.com>
24110
24111         maint.mk: don't include dist-check.mk
24112         * top/maint.mk: Remove bogus include directive.
24113
24114         maint.mk: improve empty-line-at-EOF check
24115         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24116         solution, rather than tail+Perl-based one.  The latter would read
24117         a few kilobytes from the end of each file, and did not handle empty
24118         files properly.
24119
24120         maint.mk: print the elapsed time for each syntax-check rule
24121         * top/maint.mk (sc_m_rules_): Save start time in a file.
24122         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24123         (local-check): Interpose the .z rules
24124
24125 2010-04-11  Jim Meyering  <meyering@redhat.com>
24126
24127         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24128         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24129         empty file with one that ends in an empty line.
24130
24131 2010-04-10  Bruno Haible  <bruno@clisp.org>
24132
24133         mkdir: Make it work on mingw64.
24134         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24135         * lib/mkdir.c: Update comment.
24136         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24137
24138 2010-04-10  Bruno Haible  <bruno@clisp.org>
24139
24140         Don't override improved macro from newer autoconf.
24141         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24142         autoconf >= 2.62.
24143         Reported by Joel E. Denny <jdenny@clemson.edu>.
24144
24145 2010-04-10  Jim Meyering  <meyering@redhat.com>
24146
24147         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24148         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24149
24150         maint.mk: correct a diagnostic
24151         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24152         in diagnostic; now use $prohibit.
24153
24154 2010-04-10  Bruno Haible  <address@hidden>
24155
24156         fchownat: Fix a C++ test error on Solaris 8.
24157         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24158         the function does not exist.
24159
24160 2010-04-10  Bruno Haible  <bruno@clisp.org>
24161
24162         vasnprintf: Add more tests.
24163         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24164         (test_function): Test converting an invalid wide string.
24165
24166         vasnprintf: Correct handling of unconvertible wide string arguments.
24167         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24168         VASNPRINTF.
24169         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24170         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24171         smaller than the expected maximum need for the directive. Set errno to
24172         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24173         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24175         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24176         * modules/vasnprintf (Files): Add m4/printf.m4.
24177         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24178
24179 2010-04-10  Bruno Haible  <bruno@clisp.org>
24180
24181         vasnprintf: Fix crash in %ls directive.
24182         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24183         string is passed as argument to %ls, with no precision and no width.
24184         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24185
24186 2010-04-10  Bruno Haible  <bruno@clisp.org>
24187
24188         vasnprintf: Fix multiple test failures on mingw.
24189         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24190         _snprintf, or snwprintf, not _snwprintf.
24191
24192 2010-04-10  Bruno Haible  <bruno@clisp.org>
24193
24194         write: Fix a C++ test error on mingw.
24195         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24196
24197 2010-04-10  Bruno Haible  <bruno@clisp.org>
24198
24199         vasnprintf test: Reduce code duplication.
24200         * tests/test-vasnprintf.c (test_function): New function, extracted from
24201         test_vasnprintf.
24202         (test_vasnprintf, test_asnprintf): Invoke it.
24203
24204 2010-04-10  Bruno Haible  <bruno@clisp.org>
24205
24206         strnlen: Fix warning in C++ mode on MacOS X.
24207         * lib/string.in.h (strnlen): Use the modern idiom.
24208         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24209         defining strnlen as a macro already in <config.h>.
24210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24211         REPLACE_STRNLEN.
24212         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24213         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24214
24215 2010-04-08  James Youngman  <jay@gnu.org>
24216
24217         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24218         the example.
24219
24220 2010-04-09  Jim Meyering  <meyering@redhat.com>
24221
24222         maint.mk: print better diagnostic when there is no $(_hv_file)
24223         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24224         announce that when $(_hv_file) (aka help-version) does not exist.
24225
24226         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24227         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24228         not try to interpret its random input bytes.  Jarno Rajahalme reported
24229         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24230         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24231         (mktempd_): Likewise, just in case.
24232
24233         ftruncate: add two years to projected module removal date: 2012
24234         * m4/ftruncate.m4: Adjust comments.
24235
24236         ftruncate: mark module as obsolete; even MinGW provides it, now
24237         * modules/ftruncate (Status): Obsolete.
24238         (Notice): Say that.
24239         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24240         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24241
24242 2010-04-08  Bruno Haible  <bruno@clisp.org>
24243
24244         Fix side effects from tests-related modules.
24245         * modules/dprintf-posix (Comment): New section.
24246         * modules/fprintf-posix (Comment): Likewise.
24247         * modules/obstack-printf-posix (Comment): Likewise.
24248         * modules/printf-posix (Comment): Likewise.
24249         * modules/snprintf-posix (Comment): Likewise.
24250         * modules/sprintf-posix (Comment): Likewise.
24251         * modules/vasnprintf-posix (Comment): Likewise.
24252         * modules/vasprintf-posix (Comment): Likewise.
24253         * modules/vdprintf-posix (Comment): Likewise.
24254         * modules/vfprintf-posix (Comment): Likewise.
24255         * modules/vprintf-posix (Comment): Likewise.
24256         * modules/vsnprintf-posix (Comment): Likewise.
24257         * modules/vsprintf-posix (Comment): Likewise.
24258         * modules/xprintf-posix (Comment): Likewise.
24259         * modules/xvasprintf-posix (Comment): Likewise.
24260         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24261         * modules/floorf-tests (Depends-on): Likewise.
24262         * modules/round-tests (Depends-on): Likewise.
24263         * modules/roundf-tests (Depends-on): Likewise.
24264         * modules/trunc-tests (Depends-on): Likewise.
24265         * modules/truncf-tests (Depends-on): Likewise.
24266         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24267         'fprintf-posix' module is not present.
24268         * tests/test-floorf2.c (check): Likewise.
24269         * tests/test-trunc2.c (check): Likewise.
24270         * tests/test-truncf2.c (check): Likewise.
24271         * tests/test-round2.c (equal): Likewise.
24272         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24273
24274 2010-04-07  Karl Berry  <karl@gnu.org>
24275
24276         * config/srclist.txt,
24277         * config/srclistvars.sh,
24278         * config/srclist-update: doc fixes.
24279
24280 2010-04-07  Jim Meyering  <meyering@redhat.com>
24281
24282         maint.mk: add a PATH crosschecking syntax-check rule
24283         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24284         Useful if you use a test like the one in help-version (coreutils,
24285         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24286         printed by prog --version.
24287
24288 2010-04-06  Bruno Haible  <bruno@clisp.org>
24289
24290         Fix link error on mingw.
24291         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24292         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24293
24294 2010-04-06  Bruno Haible  <bruno@clisp.org>
24295
24296         Assume rmdir exists.
24297         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24298
24299 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24300
24301         doc: update users.txt
24302         * users.txt: Add gcal.
24303
24304 2010-04-06  Jim Meyering  <meyering@redhat.com>
24305
24306         init.sh: simply unset TMPDIR rather than risking env -i
24307         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24308         although it probably works fine on all Unix-based systems, some
24309         systems (Cygwin?) cannot tolerate a totally cleared environment.
24310         Suggestion from Eric Blake.
24311
24312 2010-04-06  Jim Meyering  <meyering@redhat.com>
24313
24314         init.sh: portability fix: use env's POSIX-specified -i option not -u
24315         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24316         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24317
24318 2010-04-05  Bruno Haible  <bruno@clisp.org>
24319
24320         btowc: Work around Cygwin 1.7.2 bug.
24321         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24322         does not map NUL to 0.
24323         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24324
24325 2010-04-05  Bruno Haible  <bruno@clisp.org>
24326
24327         Make the multithread modules work on Cygwin 1.7.2.
24328         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24329         imported symbols can be declared weak, so that it returns "no" on
24330         Cygwin 1.7.2.
24331
24332 2010-04-05  Bruno Haible  <bruno@clisp.org>
24333
24334         Use the module 'strncat'.
24335         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24336
24337         Tests for module 'strncat'.
24338         * modules/strncat-tests: New file.
24339         * tests/test-strncat.c: New file.
24340
24341         New module 'strncat'.
24342         * lib/string.in.h (strncat): New declaration.
24343         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24344         * m4/strncat.m4: New file, based on m4/memchr.m4.
24345         * modules/strncat: New file.
24346         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24347         is declared.
24348         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24349         REPLACE_STRNCAT.
24350         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24351         REPLACE_STRNCAT.
24352         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24353         module.
24354         * tests/test-string-c++.cc: Check signature of strncat.
24355
24356 2010-04-05  Jim Meyering  <meyering@redhat.com>
24357
24358         xstrtoumax-tests: convert to use init.sh
24359         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24360         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24361         Use Exit, not exit.
24362         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24363
24364         xstrtoimax-tests: convert to use init.sh
24365         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24366         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24367         Use Exit, not exit.
24368         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24369
24370 2010-04-05  Bruno Haible  <bruno@clisp.org>
24371
24372         sys_socket: Avoid #define replacements in C++ mode.
24373         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24374         warning to the function if possible, rather than #defining the symbol
24375         to a dysfunctional alias.
24376
24377 2010-04-05  Bruno Haible  <bruno@clisp.org>
24378
24379         fseeko: Fix C++ test error on mingw.
24380         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24381         gl_FUNC_FSEEKO.
24382         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24383         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24384         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24385         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24386
24387 2010-04-05  Bruno Haible  <bruno@clisp.org>
24388
24389         duplocale: Improve test output.
24390         * tests/test-duplocale.c (main): Print reason for skipped test.
24391
24392 2010-04-05  Bruno Haible  <bruno@clisp.org>
24393
24394         Assume rmdir exists.
24395         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24396         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24397
24398 2010-04-05  Bruno Haible  <bruno@clisp.org>
24399
24400         Fix link error on Solaris 8 with cc.
24401         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24402
24403 2010-04-05  Bruno Haible  <bruno@clisp.org>
24404
24405         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24406         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24407
24408 2010-04-05  Bruno Haible  <bruno@clisp.org>
24409
24410         vasprintf: Update documentation.
24411         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24412
24413 2010-04-05  Bruno Haible  <bruno@clisp.org>
24414
24415         ptsname: Improve test.
24416         * tests/test-ptsname.c (main): Also try the various master names of BSD
24417         systems.
24418
24419 2010-04-05  Bruno Haible  <bruno@clisp.org>
24420
24421         memchr: Avoid a possible C++ test error.
24422         * lib/string.in.h (memchr): Provide declaration if function is missing.
24423         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24424         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24426         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24427
24428 2010-04-05  Bruno Haible  <bruno@clisp.org>
24429
24430         strtok_r: Improve idiom.
24431         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24432         AC_LIBOBJ is used.
24433
24434 2010-04-05  Bruno Haible  <bruno@clisp.org>
24435
24436         strdup: Improve idiom.
24437         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24438         AC_LIBOBJ is used.
24439         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24440         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24441         when AC_LIBOBJ is used.
24442
24443 2010-04-05  Bruno Haible  <bruno@clisp.org>
24444
24445         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24446         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24447         don't set REPLACE_MBSINIT to 1.
24448         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24449         don't set REPLACE_MBRTOWC to 1.
24450         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24451         exist, don't set REPLACE_MBSRTOWCS to 1.
24452         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24453         exist, don't set REPLACE_MBSNRTOWCS to 1.
24454         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24455         don't set REPLACE_WCRTOMB to 1.
24456         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24457         exist, don't set REPLACE_WCSRTOMBS to 1.
24458         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24459         exist, don't set REPLACE_WCSNRTOMBS to 1.
24460
24461 2010-04-05  Bruno Haible  <bruno@clisp.org>
24462
24463         ldexpl: Improve idiom.
24464         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24465         make sure to set HAVE_DECL_LDEXPL to 0.
24466
24467 2010-04-05  Jim Meyering  <meyering@redhat.com>
24468
24469         xstrtol-tests: convert to use init.sh
24470         * modules/xstrtol-tests (Files): Add tests/init.sh.
24471         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24472         Use Exit, not exit.
24473         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24474
24475         atexit-tests: convert to use init.sh
24476         * modules/atexit-tests (Files): Add tests/init.sh.
24477         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24478         Use Exit, not exit.
24479         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24480
24481         init.sh: fix typo
24482         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24483
24484         init.sh: make it easier for a test script to write to the tty, ...
24485         when using automake's parallel-tests mode.
24486         * tests/init.sh (stderr_fileno_): Define overridable variable.
24487         (warn_): New function, to use it.
24488         (fail_, skip_, framework_failure_): Use warn_.
24489
24490 2010-04-04  Bruno Haible  <bruno@clisp.org>
24491
24492         btowc: Avoid warning.
24493         * lib/btowc.c: Include <stdlib.h>.
24494         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24495
24496 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24497             Bruno Haible  <bruno@clisp.org>
24498
24499         wchar: Port to NetBSD 1.5.
24500         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24501         * lib/wctype.in.h (WEOF): Likewise.
24502
24503 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24504             Bruno Haible  <bruno@clisp.org>
24505
24506         Port extended stdio to NetBSD 1.5.
24507         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24508         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24509         older.
24510
24511 2010-04-04  Bruno Haible  <bruno@clisp.org>
24512
24513         string: Remove unused substitution.
24514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24515         HAVE_DECL_STRERROR.
24516         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24517
24518 2010-04-04  Bruno Haible  <bruno@clisp.org>
24519
24520         strtod: Avoid a possible C++ test error.
24521         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24522         set REPLACE_STRTOD.
24523
24524 2010-04-04  Bruno Haible  <bruno@clisp.org>
24525
24526         strerror: Update documentation.
24527         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24528
24529 2010-04-04  Bruno Haible  <bruno@clisp.org>
24530
24531         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24532         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24533         _GL_CXXALIAS_SYS_CAST.
24534
24535 2010-04-04  Bruno Haible  <bruno@clisp.org>
24536
24537         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24538         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24539         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24540         REPLACE_FREXPL to 1.
24541         * doc/posix-functions/frexpl.texi: Update documentation.
24542
24543 2010-04-04  Bruno Haible  <bruno@clisp.org>
24544
24545         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24546         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24547
24548 2010-04-04  Bruno Haible  <bruno@clisp.org>
24549
24550         Implement nanosleep for native Windows.
24551         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24552
24553 2010-04-04  Bruno Haible  <bruno@clisp.org>
24554
24555         math: Fix some C++ test errors on Solaris 8.
24556         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24557
24558 2010-04-04  Bruno Haible  <bruno@clisp.org>
24559
24560         math: Fix some C++ test errors on Cygwin.
24561         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24562         truncl): Provide declaration if the system does not have it.
24563         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24564         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24565         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24566         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24567         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24568         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24569         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24570         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24571         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24572         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24573         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24574         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24575         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24576         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24577         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24578         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24580         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24581         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24582         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24583         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24584         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24585
24586 2010-04-04  Bruno Haible  <bruno@clisp.org>
24587
24588         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24589         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24590         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24591         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24592         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24593         * m4/isinf.m4 (gl_ISINF): Likewise.
24594         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24595
24596 2010-04-04  Bruno Haible  <bruno@clisp.org>
24597
24598         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24599         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24600
24601 2010-04-04  Bruno Haible  <bruno@clisp.org>
24602
24603         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24604         * modules/tmpfile (configure.ac): Update.
24605
24606         tmpfile: Fix C++ test error on mingw.
24607         * lib/stdio.in.h (tmpfile): New declaration.
24608         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24609         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24610         * modules/tmpfile (Depends-on): Add stdio.
24611         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24612         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24613         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24614         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24615         REPLACE_TMPFILE.
24616         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24617
24618 2010-04-04  Bruno Haible  <bruno@clisp.org>
24619
24620         ioctl: Fix C++ test error on mingw.
24621         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24622         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24623         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24624
24625 2010-04-03  Bruno Haible  <bruno@clisp.org>
24626
24627         wcwidth: Fix C++ test error on mingw.
24628         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24630         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24631
24632 2010-04-03  Bruno Haible  <bruno@clisp.org>
24633
24634         nanosleep: Fix C++ test error on mingw.
24635         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24636         * lib/time.in.h (nanosleep): Use modern idiom.
24637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24638         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24639         REPLACE_NANOSLEEP to 1.
24640         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24641         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24642
24643 2010-04-03  Bruno Haible  <bruno@clisp.org>
24644
24645         strptime: Fix C++ test error on mingw.
24646         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24647         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24648         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24649         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24651         not REPLACE_STRPTIME.
24652         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24653         REPLACE_STRPTIME.
24654
24655 2010-04-03  Bruno Haible  <bruno@clisp.org>
24656
24657         timegm: Fix C++ test error on mingw.
24658         * lib/time.in.h (timegm): Use modern idiom.
24659         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24660         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24661         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24662         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24663
24664 2010-04-03  Bruno Haible  <bruno@clisp.org>
24665
24666         timegm: Assume declaration if function exists.
24667         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24668         if it exists. Don't clobber ac_cv_func_timegm.
24669
24670 2010-04-03  Bruno Haible  <bruno@clisp.org>
24671
24672         time_r: Fix C++ test error on mingw.
24673         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24674         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24675         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24676         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24677         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24678
24679 2010-04-03  Bruno Haible  <bruno@clisp.org>
24680
24681         time_r: Minor updates.
24682         * modules/time_r (Description): Mention the provided functions.
24683         * lib/time_r.c: Don't include <string.h>.
24684         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24685         * doc/posix-functions/localtime_r.texi: Likewise.
24686
24687 2010-04-03  Bruno Haible  <bruno@clisp.org>
24688
24689         time: Fix regression introduced on 2010-03-08.
24690         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24691         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24692
24693 2010-04-03  Jim Meyering  <meyering@redhat.com>
24694
24695         maint.mk: don't silently disable project-specific syntax-check rules
24696         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24697         that they need to convert their project-specific syntax-check rules
24698         to use the new _sc_search_regexp.
24699
24700 2010-04-03  Bruno Haible  <bruno@clisp.org>
24701
24702         fchdir: Fix regression introduced on 2010-03-08.
24703         * lib/unistd.in.h (fchdir): Fix declaration.
24704         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24706         REPLACE_FCHDIR.
24707         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24708         REPLACE_FCHDIR.
24709
24710 2010-04-03  Bruno Haible  <bruno@clisp.org>
24711
24712         getpagesize: Fix C++ test error on mingw.
24713         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24714         system does not declare the function.
24715         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24716         declared.
24717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24718         HAVE_DECL_GETPAGESIZE.
24719         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24720
24721 2010-04-03  Bruno Haible  <bruno@clisp.org>
24722
24723         stdio: Make C++ tests work on mingw.
24724         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24725         does not declare the function.
24726
24727 2010-04-03  Bruno Haible  <bruno@clisp.org>
24728
24729         ftello: Fix C++ test error on mingw.
24730         * lib/stdio.in.h (ftello): Use modern idiom.
24731         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24732         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24733         is missing and that it needs to be replaced.
24734         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24736         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24737
24738 2010-04-03  Bruno Haible  <bruno@clisp.org>
24739
24740         fseeko: Fix C++ test error on mingw.
24741         * lib/stdio.in.h (fseeko): Use modern idiom.
24742         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24743         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24744         is missing and that it needs to be replaced.
24745         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24747         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24748
24749 2010-04-03  Bruno Haible  <bruno@clisp.org>
24750
24751         mkstemp: Fix C++ test error on mingw.
24752         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24753         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24754         function is missing and that it needs to be replaced.
24755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24756         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24757
24758 2010-04-03  Bruno Haible  <bruno@clisp.org>
24759
24760         stpncpy: Fix C++ test error on mingw.
24761         * lib/string.in.h (stpncpy): Use modern idiom.
24762         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24763         function is missing and that it needs to be replaced.
24764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24765         REPLACE_STPNCPY.
24766         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24767
24768 2010-04-03  Bruno Haible  <bruno@clisp.org>
24769
24770         sys_stat: Fix C++ test error on mingw.
24771         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24772         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24773
24774 2010-04-03  Bruno Haible  <bruno@clisp.org>
24775
24776         pty: Update doc.
24777         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24778
24779 2010-04-03  Bruno Haible  <bruno@clisp.org>
24780
24781         unistd: Fix C++ test error on mingw.
24782         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24783
24784 2010-04-03  Bruno Haible  <bruno@clisp.org>
24785
24786         Update doc regarding mingw.
24787         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24788         * doc/glibc-functions/login_tty.texi: Likewise.
24789         * doc/glibc-functions/forkpty.texi: Likewise.
24790
24791 2010-04-03  Bruno Haible  <bruno@clisp.org>
24792
24793         stdlib: Avoid compilation failure of c-strtold on mingw.
24794         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24795
24796 2010-04-03  Bruno Haible  <bruno@clisp.org>
24797
24798         locale: Make C++ tests work on Cygwin and mingw.
24799         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24800         cannot provide the function.
24801         Reported by Simon Josefsson.
24802
24803 2010-04-03  Bruno Haible  <bruno@clisp.org>
24804
24805         localename: Port to MacOS X 10.6.
24806         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24807         memory layout of the locales in MacOS X 10.6 as well.
24808         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24809
24810 2010-04-02  Bruno Haible  <bruno@clisp.org>
24811
24812         gnulib-tool: Ensure that long-running tests are executed last.
24813         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24814         running tests after the one for the other tests.
24815
24816 2010-04-02  Bruno Haible  <bruno@clisp.org>
24817
24818         gnulib-tool: Ensure the tests in the main directory are executed first.
24819         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24820         start with the current directory.
24821
24822 2010-04-02  Bruno Haible  <bruno@clisp.org>
24823
24824         Tests for module 'havelib', moved here from GNU gettext.
24825         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24826         modifications.
24827         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24828         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24829         with modifications.
24830         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24831         modifications.
24832         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24833         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24834         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24835         with modifications.
24836         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24837         with modifications.
24838         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24839         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24840         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24841         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24842         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24843         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24844         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24845         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24846         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24847         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24848         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24849         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24850         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24851         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24852         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24853         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24854         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24855         with modifications.
24856         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24857         with modifications.
24858         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24859         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24860         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24861         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24862         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24863         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24864         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24865         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24866         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24867         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24868         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24869         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24870         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24871         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24872         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24873         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24874         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24875         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24876         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24877         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24878         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24879         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24880         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24881         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24882         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24883         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24884         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24885         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24886         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24887         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24888         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24889         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24890         * tests/havelib/rpathx/rpathx.c: New file, from
24891         gettext/autoconf-lib-link.
24892         * tests/havelib/rpathx/Makefile.am: New file, from
24893         gettext/autoconf-lib-link.
24894         * tests/havelib/rpathx/configure.ac: New file, from
24895         gettext/autoconf-lib-link with modifications.
24896         * tests/havelib/rpathy/rpathy.c: New file, from
24897         gettext/autoconf-lib-link.
24898         * tests/havelib/rpathy/Makefile.am: New file, from
24899         gettext/autoconf-lib-link.
24900         * tests/havelib/rpathy/configure.ac: New file, from
24901         gettext/autoconf-lib-link with modifications.
24902         * tests/havelib/rpathz/rpathz.c: New file, from
24903         gettext/autoconf-lib-link.
24904         * tests/havelib/rpathz/Makefile.am: New file, from
24905         gettext/autoconf-lib-link.
24906         * tests/havelib/rpathz/configure.ac: New file, from
24907         gettext/autoconf-lib-link with modifications.
24908         * tests/havelib/rpathlx/usex.c: New file, from
24909         gettext/autoconf-lib-link.
24910         * tests/havelib/rpathlx/Makefile.am: New file, from
24911         gettext/autoconf-lib-link.
24912         * tests/havelib/rpathlx/configure.ac: New file, from
24913         gettext/autoconf-lib-link with modifications.
24914         * tests/havelib/rpathly/usey.c: New file, from
24915         gettext/autoconf-lib-link.
24916         * tests/havelib/rpathly/Makefile.am: New file, from
24917         gettext/autoconf-lib-link.
24918         * tests/havelib/rpathly/configure.ac: New file, from
24919         gettext/autoconf-lib-link with modifications.
24920         * tests/havelib/rpathlz/usez.c: New file, from
24921         gettext/autoconf-lib-link.
24922         * tests/havelib/rpathlz/Makefile.am: New file, from
24923         gettext/autoconf-lib-link.
24924         * tests/havelib/rpathlz/configure.ac: New file, from
24925         gettext/autoconf-lib-link with modifications.
24926         * tests/havelib/rpathlyx/usey.c: New file, from
24927         gettext/autoconf-lib-link.
24928         * tests/havelib/rpathlyx/Makefile.am: New file, from
24929         gettext/autoconf-lib-link.
24930         * tests/havelib/rpathlyx/configure.ac: New file, from
24931         gettext/autoconf-lib-link with modifications.
24932         * tests/havelib/rpathlzyx/usez.c: New file, from
24933         gettext/autoconf-lib-link.
24934         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24935         gettext/autoconf-lib-link.
24936         * tests/havelib/rpathlzyx/configure.ac: New file, from
24937         gettext/autoconf-lib-link with modifications.
24938         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24939         with modifications.
24940
24941 2010-04-02  Bruno Haible  <bruno@clisp.org>
24942
24943         gnulib-tool: Create distributed built sources also for the tests.
24944         * gnulib-tool (func_create_testdir): Also generate distributed built
24945         sources in the tests directory.
24946
24947 2010-04-02  Bruno Haible  <bruno@clisp.org>
24948
24949         gnulib-tool: Obey user's environment variables.
24950         * gnulib-tool (func_create_testdir): When creating built sources,
24951         respect the environment variables for autoconf, automake, etc. given by
24952         the user.
24953
24954 2010-04-02  Bruno Haible  <bruno@clisp.org>
24955
24956         gnulib-tool: Provide the value of --m4-base to modules.
24957         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24958         of gl_m4_base.
24959
24960 2010-04-02  Eric Blake  <eblake@redhat.com>
24961
24962         maint.mk: fix some fallout
24963         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24964         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24965
24966 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24967
24968         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24969         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24970         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24971         (sc_cast_of_x_alloc_return_value): Likewise.
24972         (sc_cast_of_alloca_return_value): Likewise.
24973         (sc_space_tab): Likewise.
24974         (sc_prohibit_atoi_atof): Likewise.
24975         (sc_prohibit_magic_number_exit): Likewise.
24976         (sc_error_exit_success): Likewise.
24977         (sc_file_system): Likewise.
24978         (sc_prohibit_have_config_h): Likewise.
24979         (sc_require_config_h): Likewise.
24980         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24981         (sc_obsolete_symbols): Likewise.
24982         (sc_changelog): Likewise.
24983         (sc_program_name): Likewise.
24984         (sc_the_the): Likewise.
24985         (sc_trailing_blank): Likewise.
24986         (sc_two_space_separator_in_usage): Likewise.
24987         (sc_useless_cpp_parens): Likewise.
24988         (sc_GPL_version): Likewise.
24989         (sc_GFDL_version): Likewise.
24990         (sc_texinfo_acronym): Likewise.
24991         (sc_prohibit_cvs_keyword): Likewise.
24992         (sc_prohibit_stat_st_blocks): Likewise.
24993         (sc_prohibit_S_IS_definition): Likewise.
24994         (sc_redundant_const): Likewise.
24995         (sc_makefile_TAB_only_indentation): Likewise.
24996         (sc_m4_quote_check): Likewise.
24997         (sc_makefile_path_separator_check): Likewise.
24998         (sc_copyright_check): Likewise.
24999         (sc_Wundef_boolean): Likewise.
25000         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25001
25002         maint.mk: match 0 or more whitespace-before-function-call '('
25003         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25004         that have zero or two-and-more spaces between the function name
25005         and the open parenthesis.
25006         (sc_error_message_warn_fatal): Likewise.
25007         (sc_error_message_uppercase): Likewise.
25008         (sc_error_message_period): Likewise.
25009
25010 2010-03-31  Eric Blake  <eblake@redhat.com>
25011
25012         maint.mk: check for [ as well as test
25013         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25014         Based on a libvirt report by Matthias Bolte.
25015
25016         gnumakefile: don't squelch _version output
25017         * top/GNUmakefile (_version): Create one-shot dependency rather
25018         than using $(shell) when version must be regenerated.
25019         (_autoreconf): Run verbosely, by default.
25020
25021         sys_time: avoid compiler warnings
25022         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25023         unconditional, fixing regression from 2010-03-29.
25024         Reported by Simon Josefsson.
25025
25026 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25027
25028         maint.mk: s/_header_without_use/_sc_header_without_use/
25029         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25030         (sc_prohibit_assert_without_use): Use the new name.
25031         (sc_prohibit_close_stream_without_use): Likewise.
25032         (sc_prohibit_getopt_without_use): Likewise.
25033         (sc_prohibit_quotearg_without_use): Likewise.
25034         (sc_prohibit_quote_without_use): Likewise.
25035         (sc_prohibit_long_options_without_use): Likewise.
25036         (sc_prohibit_inttostr_without_use): Likewise.
25037         (sc_prohibit_ignore_value_without_use): Likewise.
25038         (sc_prohibit_error_without_use): Likewise.
25039         (sc_prohibit_xalloc_without_use): Likewise.
25040         (sc_prohibit_hash_without_use): Likewise.
25041         (sc_prohibit_hash_pjw_without_use): Likewise.
25042         (sc_prohibit_safe_read_without_use): Likewise.
25043         (sc_prohibit_argmatch_without_use): Likewise.
25044         (sc_prohibit_canonicalize_without_use): Likewise.
25045         (sc_prohibit_root_dev_ino_without_use): Likewise.
25046         (sc_prohibit_openat_without_use): Likewise.
25047         (sc_prohibit_c_ctype_without_use): Likewise.
25048         (sc_prohibit_signal_without_use): Likewise.
25049         (sc_prohibit_intprops_without_use): Likewise.
25050
25051 2010-03-30  Eric Blake  <eblake@redhat.com>
25052
25053         maint: improve module indicators
25054         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25055         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25056         columns, and avoid extra macro expansion.
25057
25058         fdopendir: work around FreeBSD bug
25059         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25060         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25061         * modules/dirent (Makefile.am): Substitute it.
25062         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25063         declaration.
25064         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25065         fix.
25066         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25067
25068 2010-03-29  Bruno Haible  <bruno@clisp.org>
25069
25070         Emit #pragma system_header after the inclusion guard, not before.
25071         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25072         guard that spans the entire file, not before. This enables an
25073         optimization in GCC's preprocessor.
25074         * lib/ctype.in.h: Likewise.
25075         * lib/dirent.in.h: Likewise.
25076         * lib/errno.in.h: Likewise.
25077         * lib/float.in.h: Likewise.
25078         * lib/getopt.in.h: Likewise.
25079         * lib/iconv.in.h: Likewise.
25080         * lib/langinfo.in.h: Likewise.
25081         * lib/locale.in.h: Likewise.
25082         * lib/math.in.h: Likewise.
25083         * lib/netdb.in.h: Likewise.
25084         * lib/netinet_in.in.h: Likewise.
25085         * lib/pty.in.h: Likewise.
25086         * lib/sched.in.h: Likewise.
25087         * lib/se-selinux.in.h: Likewise.
25088         * lib/search.in.h: Likewise.
25089         * lib/spawn.in.h: Likewise.
25090         * lib/stdarg.in.h: Likewise.
25091         * lib/stdint.in.h: Likewise.
25092         * lib/string.in.h: Likewise.
25093         * lib/strings.in.h: Likewise.
25094         * lib/sys_file.in.h: Likewise.
25095         * lib/sys_ioctl.in.h: Likewise.
25096         * lib/sys_time.in.h: Likewise.
25097         * lib/sys_times.in.h: Likewise.
25098         * lib/sys_utsname.in.h: Likewise.
25099         * lib/sys_wait.in.h: Likewise.
25100         * lib/sysexits.in.h: Likewise.
25101         * lib/wctype.in.h: Likewise.
25102
25103 2010-03-28  James Youngman  <jay@gnu.org>
25104
25105         save-cwd: don't leak a file descriptor when the caller execs.
25106         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25107         saved file descriptor.
25108         * modules/save-cwd (Depends-on): Depend on cloexec.
25109
25110 2010-03-29  Bruno Haible  <bruno@clisp.org>
25111
25112         Remove vestiges of fts-lgpl module.
25113         * lib/fts_.h: Assume GNULIB_FTS is 1.
25114         * lib/fts.c: Likewise.
25115         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25116
25117 2010-03-28  Bruno Haible  <bruno@clisp.org>
25118
25119         Fix definition of tests witness macro.
25120         * gnulib-tool (func_import): Fix definition of witness macro.
25121
25122 2010-03-28  Bruno Haible  <bruno@clisp.org>
25123
25124         Fix ioctl's protoype on glibc systems.
25125         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25126         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25127         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25128         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25129         signature. If not, arrange to replace the ioctl function.
25130         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25131         REPLACE_IOCTL.
25132         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25133         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25134         Reported by Ludovic Courtès <ludo@gnu.org>.
25135
25136 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25137
25138         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25139         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25140         made it so grep -r --include=GLOB* ... did not work.
25141
25142 2010-03-26  Jim Meyering  <meyering@redhat.com>
25143             Eric Blake  <eblake@redhat.com>
25144
25145         maint.mk: prohibit use of test's -o and -a operators
25146         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25147
25148 2010-03-28  Bruno Haible  <bruno@clisp.org>
25149
25150         Remove unused GNULIB_XYZ macro definitions.
25151         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25152         invocation.
25153
25154 2010-03-28  Bruno Haible  <bruno@clisp.org>
25155
25156         Mark privileged tests modules.
25157         * modules/idpriv-drop-tests (Status): New section.
25158         * modules/idpriv-droptemp-tests (Status): New section.
25159
25160 2010-03-28  Bruno Haible  <bruno@clisp.org>
25161
25162         Split C++ tests into separate tests modules.
25163         * modules/dirent-c++-tests: New file, extracted from
25164         modules/dirent-tests.
25165         * modules/dirent-tests: Depend on it.
25166         * modules/fcntl-h-c++-tests: New file, extracted from
25167         modules/fcntl-h-tests.
25168         * modules/fcntl-h-tests: Depend on it.
25169         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25170         * modules/glob-tests: Depend on it.
25171         * modules/iconv-h-c++-tests: New file, extracted from
25172         modules/iconv-h-tests.
25173         * modules/iconv-h-tests: Depend on it.
25174         * modules/langinfo-c++-tests: New file, extracted from
25175         modules/langinfo-tests.
25176         * modules/langinfo-tests: Depend on it.
25177         * modules/locale-c++-tests: New file, extracted from
25178         modules/locale-tests.
25179         * modules/locale-tests: Depend on it.
25180         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25181         * modules/math-tests: Depend on it.
25182         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25183         * modules/pty-tests: Depend on it.
25184         * modules/search-c++-tests: New file, extracted from
25185         modules/search-tests.
25186         * modules/search-tests: Depend on it.
25187         * modules/signal-c++-tests: New file, extracted from
25188         modules/signal-tests.
25189         * modules/signal-tests: Depend on it.
25190         * modules/spawn-c++-tests: New file, extracted from
25191         modules/spawn-tests.
25192         * modules/spawn-tests: Depend on it.
25193         * modules/stdio-c++-tests: New file, extracted from
25194         modules/stdio-tests.
25195         * modules/stdio-tests: Depend on it.
25196         * modules/stdlib-c++-tests: New file, extracted from
25197         modules/stdlib-tests.
25198         * modules/stdlib-tests: Depend on it.
25199         * modules/string-c++-tests: New file, extracted from
25200         modules/string-tests.
25201         * modules/string-tests: Depend on it.
25202         * modules/sys_ioctl-c++-tests: New file, extracted from
25203         modules/sys_ioctl-tests.
25204         * modules/sys_ioctl-tests: Depend on it.
25205         * modules/sys_select-c++-tests: New file, extracted from
25206         modules/sys_select-tests.
25207         * modules/sys_select-tests: Depend on it.
25208         * modules/sys_socket-c++-tests: New file, extracted from
25209         modules/sys_socket-tests.
25210         * modules/sys_socket-tests: Depend on it.
25211         * modules/sys_stat-c++-tests: New file, extracted from
25212         modules/sys_stat-tests.
25213         * modules/sys_stat-tests: Depend on it.
25214         * modules/sys_time-c++-tests: New file, extracted from
25215         modules/sys_time-tests.
25216         * modules/sys_time-tests: Depend on it.
25217         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25218         * modules/time-tests: Depend on it.
25219         * modules/unistd-c++-tests: New file, extracted from
25220         modules/unistd-tests.
25221         * modules/unistd-tests: Depend on it.
25222         * modules/wchar-c++-tests: New file, extracted from
25223         modules/wchar-tests.
25224         * modules/wchar-tests: Depend on it.
25225         * modules/wctype-c++-tests: New file, extracted from
25226         modules/wctype-tests.
25227         * modules/wctype-tests: Depend on it.
25228         Reported by Simon Josefsson.
25229
25230 2010-03-28  Bruno Haible  <bruno@clisp.org>
25231
25232         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25233         * gnulib-tool (func_exists_module): New function, extracted from
25234         func_verify_module.
25235         (func_verify_module): Use it.
25236         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25237         'foo' only if 'foo' exists.
25238         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25239         module.
25240
25241 2010-03-28  Bruno Haible  <bruno@clisp.org>
25242
25243         gnulib-tool: Add support for special categories of tests.
25244         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25245         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25246         (func_usage): Document them.
25247         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25248         inc_unportable_tests, inc_all_tests): New variables.
25249         (func_acceptable): Consider these variables.
25250         (func_modules_transitive_closure): Make it work when the 'Status' field
25251         consists of multiple words.
25252         (func_import): Store and restore the values of inc_cxx_tests,
25253         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25254         inc_all_tests in gnulib-comp.m4.
25255         (func_create_testdir): Set inc_all_tests to true.
25256         * doc/gnulib.texi (Extra tests modules): New section.
25257         Suggested by Jim Meyering.
25258
25259 2010-03-28  Bruno Haible  <bruno@clisp.org>
25260
25261         ansi-c++-opt: Allow turning off the C++ build by default.
25262         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25263         gl_CXX_CHOICE_DEFAULT_NO is defined.
25264         Requested by Eric Blake.
25265
25266 2010-03-28  Bruno Haible  <bruno@clisp.org>
25267
25268         unistd: Avoid #define replacements in C++ mode.
25269         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25270         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25271         setsockopt, shutdown, select): In C++, attach a warning to the function
25272         if possible, rather than #defining the symbol to a dysfunctional alias.
25273         Reported by John W. Eaton <jwe@gnu.org>.
25274
25275 2010-03-28  Bruno Haible  <bruno@clisp.org>
25276
25277         Fix link errors on mingw.
25278         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25279         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25280         $(LIBSOCKET).
25281         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25282         $(LIBSOCKET).
25283
25284 2010-03-28  Bruno Haible  <bruno@clisp.org>
25285             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25286
25287         lib-ignore: Determine different options for different compilers.
25288         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25289         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25290         Add comments.
25291         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25292         * NEWS: Mention the change.
25293
25294 2010-03-27  Bruno Haible  <bruno@clisp.org>
25295
25296         Remove unused GNULIB_XYZ macro definitions.
25297         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25298         * modules/fseek (configure.ac): Likewise.
25299         * modules/ioctl (configure.ac): Likewise.
25300         * modules/open (configure.ac): Likewise.
25301         * modules/stdlib-safer (configure.ac): Likewise.
25302
25303 2010-03-27  Bruno Haible  <bruno@clisp.org>
25304
25305         Add a remark about certain modules.
25306         * modules/malloc (Comment): New section.
25307         * modules/realloc (Comment): Likewise.
25308         * modules/sigpipe (Comment): Likewise.
25309
25310 2010-03-27  Bruno Haible  <bruno@clisp.org>
25311
25312         Resolve conflict between the two kinds of module indicators.
25313         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25314         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25315         * modules/canonicalize (configure.ac): Invoke
25316         gl_MODULE_INDICATOR_FOR_TESTS.
25317         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25318         GNULIB_XYZ.
25319         * tests/test-dirent-c++.cc: Likewise.
25320         * tests/test-dirent-safer.c: Likewise.
25321         * tests/test-dup2.c: Likewise.
25322         * tests/test-fchdir.c: Likewise.
25323         * tests/test-fcntl-h-c++.cc: Likewise.
25324         * tests/test-getopt.c: Likewise.
25325         * tests/test-getopt.h: Likewise.
25326         * tests/test-langinfo-c++.cc: Likewise.
25327         * tests/test-locale-c++.cc: Likewise.
25328         * tests/test-math-c++.cc: Likewise.
25329         * tests/test-pty-c++.cc: Likewise.
25330         * tests/test-search-c++.cc: Likewise.
25331         * tests/test-signal-c++.cc: Likewise.
25332         * tests/test-spawn-c++.cc: Likewise.
25333         * tests/test-stdio-c++.cc: Likewise.
25334         * tests/test-stdlib-c++.cc: Likewise.
25335         * tests/test-string-c++.cc: Likewise.
25336         * tests/test-sys_ioctl-c++.cc: Likewise.
25337         * tests/test-sys_select-c++.cc: Likewise.
25338         * tests/test-sys_socket-c++.cc: Likewise.
25339         * tests/test-sys_stat-c++.cc: Likewise.
25340         * tests/test-sys_time-c++.cc: Likewise.
25341         * tests/test-time-c++.cc: Likewise.
25342         * tests/test-unistd-c++.cc: Likewise.
25343         * tests/test-wchar-c++.cc: Likewise.
25344         * tests/uninorm/test-u8-nfc.c: Likewise.
25345         * tests/uninorm/test-u8-nfd.c: Likewise.
25346         * tests/uninorm/test-u8-nfkc.c: Likewise.
25347         * tests/uninorm/test-u8-nfkd.c: Likewise.
25348         * tests/uninorm/test-u16-nfc.c: Likewise.
25349         * tests/uninorm/test-u16-nfd.c: Likewise.
25350         * tests/uninorm/test-u16-nfkc.c: Likewise.
25351         * tests/uninorm/test-u16-nfkd.c: Likewise.
25352         * tests/uninorm/test-u32-nfc.c: Likewise.
25353         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25354         * tests/uninorm/test-u32-nfd.c: Likewise.
25355         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25356         * tests/uninorm/test-u32-nfkc.c: Likewise.
25357         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25358         * tests/uninorm/test-u32-nfkd.c: Likewise.
25359         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25360         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25361
25362 2010-03-27  Bruno Haible  <bruno@clisp.org>
25363
25364         Distinguish two kinds of module indicators.
25365         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25366         gl_MODULE_INDICATOR.
25367         (gl_MODULE_INDICATOR): New macro.
25368         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25369         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25370         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25371         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25372         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25373         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25374         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25375         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25376         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25377         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25378         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25379         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25382         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25384         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25385         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25386         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25387         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25388         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25389         * modules/cloexec (configure.ac): Likewise.
25390         * modules/getopt-gnu (configure.ac): Likewise.
25391         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25392         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25393         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25394         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25395
25396 2010-03-27  Bruno Haible  <bruno@clisp.org>
25397
25398         New module description field 'Comment'.
25399         * gnulib-tool: New option --extract-comment.
25400         (func_usage): Document it.
25401         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25402         (func_get_comment): New function.
25403         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25404
25405 2010-03-27  Bruno Haible  <bruno@clisp.org>
25406
25407         Addendum to 2010-02-07 commit.
25408         * gnulib-tool (func_usage): Document --extract-applicability option.
25409
25410 2010-03-27  Bruno Haible  <bruno@clisp.org>
25411
25412         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25413         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25414         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25415         rather than link errors.
25416
25417 2010-03-27  Bruno Haible  <bruno@clisp.org>
25418
25419         Avoid side effects from tests-related modules on the compilation of lib.
25420         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25421         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25422         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25423         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25424         macro.
25425         (func_import): Define a witness macro. Assign it a value that depends
25426         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25427         tests-related modules.
25428         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25429         Reported by Jim Meyering.
25430
25431 2010-03-27  Bruno Haible  <bruno@clisp.org>
25432
25433         Factorize common .m4 code.
25434         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25435         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25436         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25437         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25438         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25439         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25440         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25441         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25442         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25443         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25444         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25445         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25446         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25447         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25448         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25449         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25450         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25451         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25453         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25454         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25455         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25456         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25457         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25458         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25459         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25460         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25461         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25462         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25463         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25464         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25465         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25466
25467 2010-03-27  Bruno Haible  <bruno@clisp.org>
25468
25469         Fix a compilation error on Cygwin with g++ >= 4.3.
25470         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25471         if it is undefined or if we alias it to chmod.
25472         (lstat): Don't warn about the use of this function if it is undefined
25473         or if we alias it to stat.
25474         Reported by Simon Josefsson.
25475
25476 2010-03-27  Bruno Haible  <bruno@clisp.org>
25477
25478         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25479         * modules/getlogin (configure.ac): Update.
25480
25481         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25482         * modules/getlogin_r (configure.ac): Update.
25483
25484         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25486         * modules/inet_ntop (configure.ac): Update.
25487
25488         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25489         * modules/inet_pton (configure.ac): Update.
25490
25491         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25492         * modules/mbslen (configure.ac): Update.
25493
25494         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25495         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25496         * modules/forkpty (configure.ac): Update.
25497         * modules/openpty (configure.ac): Update.
25498
25499 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25500
25501         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25502         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25503
25504 2010-03-25  Eric Blake  <eblake@redhat.com>
25505
25506         maint: use pragma consistently across replacement headers
25507         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25508         * lib/dirent.in.h (system_header): Likewise.
25509         * lib/errno.in.h (system_header): Likewise.
25510         * lib/float.in.h (system_header): Likewise.
25511         * lib/getopt.in.h (system_header): Likewise.
25512         * lib/iconv.in.h (system_header): Likewise.
25513         * lib/inttypes.in.h (system_header): Likewise.
25514         * lib/langinfo.in.h (system_header): Likewise.
25515         * lib/locale.in.h (system_header): Likewise.
25516         * lib/math.in.h (system_header): Likewise.
25517         * lib/netdb.in.h (system_header): Likewise.
25518         * lib/netinet_in.in.h (system_header): Likewise.
25519         * lib/pty.in.h (system_header): Likewise.
25520         * lib/sched.in.h (system_header): Likewise.
25521         * lib/se-selinux.in.h (system_header): Likewise.
25522         * lib/search.in.h (system_header): Likewise.
25523         * lib/spawn.in.h (system_header): Likewise.
25524         * lib/stdarg.in.h (system_header): Likewise.
25525         * lib/stdint.in.h (system_header): Likewise.
25526         * lib/string.in.h (system_header): Likewise.
25527         * lib/strings.in.h (system_header): Likewise.
25528         * lib/sys_file.in.h (system_header): Likewise.
25529         * lib/sys_ioctl.in.h (system_header): Likewise.
25530         * lib/sys_socket.in.h (system_header): Likewise.
25531         * lib/sys_times.in.h (system_header): Likewise.
25532         * lib/sys_utsname.in.h (system_header): Likewise.
25533         * lib/sys_wait.in.h (system_header): Likewise.
25534         * lib/sysexits.in.h (system_header): Likewise.
25535         * lib/unistd.in.h (system_header): Likewise.
25536         * lib/wctype.in.h (system_header): Likewise.
25537
25538         arpa/inet: fix mingw compilation warning
25539         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25540         Reported by Matthew Bolte.
25541
25542 2010-03-25  Bruno Haible  <bruno@clisp.org>
25543
25544         Avoid collision between gnulib wrapper and libintl wrapper.
25545         * lib/printf.c (printf): Don't define if a printf wrapper is already
25546         defined in intl/printf.c.
25547         Reported by Michel Boaventura <michel@michelboaventura.com>.
25548
25549 2010-03-25  Bruno Haible  <bruno@clisp.org>
25550
25551         Use ANSI C.
25552         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25553
25554 2010-03-25  Bruno Haible  <bruno@clisp.org>
25555
25556         Minor formatting changes.
25557         * lib/acosl.c: Insert space before function argument list.
25558         * lib/argz.c: Likewise.
25559         * lib/asinl.c: Likewise.
25560         * lib/expl.c: Likewise.
25561         * lib/gen-uni-tables.c: Likewise.
25562         * lib/gettext.h: Likewise.
25563         * lib/glthread/lock.h: Likewise.
25564         * lib/tanl.c: Likewise.
25565         * lib/uniname/uniname.c: Likewise.
25566         * tests/test-idpriv-drop.c: Likewise.
25567         * tests/test-idpriv-droptemp.c: Likewise.
25568         * tests/test-lock.c: Likewise.
25569         * tests/test-tls.c: Likewise.
25570         * lib/argp-help.c: Insert space before function-like macro argument
25571         list.
25572         * lib/memcmp.c: Likewise.
25573         * tests/test-base64.c: Likewise.
25574         * lib/localename.c: Insert space before sizeof's argument list.
25575         * lib/safe-alloc.h: Likewise.
25576         * lib/file-set.h: Insert space before macro argument list.
25577         * tests/test-argp.c: Likewise.
25578         * lib/argp-namefrob.h: Insert space before function parameter list.
25579         * lib/getaddrinfo.c: Likewise.
25580         * lib/netdb.in.h: Likewise.
25581         * lib/parse-duration.h: Likewise.
25582         * lib/parse-duration.c: Likewise.
25583         * lib/poll.c: Likewise.
25584         * lib/select.c: Likewise.
25585         * lib/trim.h: Likewise.
25586         * tests/test-usleep.c: Likewise.
25587         * lib/ldexpl.c: Insert space before function parameter list and before
25588         function argument list.
25589         * lib/logl.c: Likewise.
25590         * lib/sqrtl.c: Likewise.
25591         * lib/trim.c: Likewise.
25592         * lib/cosl.c: Use GNU style indentation. Insert space before function
25593         argument list.
25594         * lib/sinl.c: Likewise.
25595         * lib/tsearch.c: Insert space after 'for'.
25596         Reported by Jim Meyering.
25597
25598 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25599
25600         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25601         config header before grepping, as it's not present before
25602         autoreconf/configure are run.  Reported by Simon Josefsson.
25603
25604 2010-03-23  Bruno Haible  <bruno@clisp.org>
25605
25606         pt_chown: Make it work with automake < 1.11.
25607         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25608         Reported by Simon Josefsson.
25609
25610 2010-03-23  Bruno Haible  <bruno@clisp.org>
25611
25612         pt_chown: Don't depend on GPLed modules.
25613         * lib/pt_chown.c: Don't include idpriv.h.
25614         (main): Don't drop privileges.
25615         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25616         Reported by Simon Josefsson.
25617
25618 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25619
25620         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25621         suggestions from karl@freefriends.org (Karl Berry).
25622
25623 2010-03-22  Eric Blake  <eblake@redhat.com>
25624
25625         gethostname: further tweaks
25626         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25627         are overriding gethostname.
25628         Suggested by Bruno Haible.
25629
25630 2010-03-21  Bruno Haible  <bruno@clisp.org>
25631
25632         Fix comments.
25633         * lib/forkpty.c (rpl_forkpty): Fix comment.
25634         * lib/openpty.c (rpl_openpty): Likewise.
25635         Reported by Eric Blake.
25636
25637 2010-03-22  Eric Blake  <eblake@redhat.com>
25638
25639         gethostname: fix build on mingw
25640         * lib/unistd.in.h (includes): Work around fact that mingw
25641         <winsock2.h> re-includes <unistd.h>, by avoiding any
25642         redeclarations if we are being included by <winsock2.h>.
25643         Reported by Matthias Bolte.
25644
25645 2010-03-21  Bruno Haible  <bruno@clisp.org>
25646
25647         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25648         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25649         modifications.
25650         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25651         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25652         provide the replacement.
25653         * modules/forkpty (Depends-on): Add openpty, login_tty.
25654         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25655         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25656         * doc/glibc-functions/forkpty.texi: More supported platforms.
25657         * config/srclist.txt: Add forkpty.c (commented).
25658
25659 2010-03-21  Bruno Haible  <bruno@clisp.org>
25660
25661         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25662         (Makefile.am): Verify that PTY_LIB is defined.
25663
25664         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25665
25666 2010-03-21  Bruno Haible  <bruno@clisp.org>
25667
25668         Tests for module 'login_tty'.
25669         * modules/login_tty-tests: New file.
25670         * tests/test-login_tty.c: New file.
25671
25672         New module 'login_tty'.
25673         * lib/login_tty.c: New file.
25674         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25675         * modules/login_tty: New file.
25676         * doc/glibc-functions/login_tty.texi: Mention the new module.
25677
25678 2010-03-21  Bruno Haible  <bruno@clisp.org>
25679
25680         login_tty: Documentation.
25681         * doc/glibc-functions/login_tty.texi: New file.
25682         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25683
25684 2010-03-21  Bruno Haible  <bruno@clisp.org>
25685
25686         pty: Consistent macro naming.
25687         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25688         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25689         * modules/pty (configure.ac): Update.
25690
25691 2010-03-21  Bruno Haible  <bruno@clisp.org>
25692
25693         Tests for openpty: Make stricter.
25694         * tests/test-openpty.c (main): Add test of canonical processing and
25695         erase.
25696         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25697
25698         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25699         * lib/openpty.c (openpty): New replacement function.
25700         * lib/pty.in.h: Include <termios.h>.
25701         (openpty): Update declaration. Add comments.
25702         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25703         is not declared, arrange to provide the replacement. Check for _getpty
25704         and posix_openpt.
25705         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25706         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25707         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25708         * modules/pty-tests (test_pty_c___LDADD): New variable.
25709         * doc/glibc-functions/openpty.texi: More supported platforms.
25710
25711 2010-03-21  Bruno Haible  <bruno@clisp.org>
25712
25713         setenv: Tweaks.
25714         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25715         the test program.
25716         * doc/posix-functions/setenv.texi: Update platforms list.
25717
25718 2010-03-21  Bruno Haible  <bruno@clisp.org>
25719
25720         New module 'unlockpt'.
25721         * lib/unlockpt.c: New file, from glibc with modifications.
25722         * m4/unlockpt.m4: New file.
25723         * modules/unlockpt: New file.
25724         * lib/stdlib.in.h (unlockpt): New declaration.
25725         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25726         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25727         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25728         HAVE_UNLOCKPT.
25729         * doc/posix-functions/unlockpt.texi: Mention the new module.
25730         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25731         * config/srclist.txt: Add unlockpt.c (commented).
25732
25733 2010-03-21  Jim Meyering  <meyering@redhat.com>
25734
25735         maint.mk: prohibit inclusion of "intprops.h" without use
25736         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25737
25738 2010-03-21  Bruno Haible  <bruno@clisp.org>
25739
25740         New module 'grantpt'.
25741         * lib/grantpt.c: New file, from glibc with modifications.
25742         * m4/grantpt.m4: New file.
25743         * modules/grantpt: New file.
25744         * lib/stdlib.in.h (grantpt): New declaration.
25745         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25746         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25747         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25748         HAVE_GRANTPT.
25749         * doc/posix-functions/grantpt.texi: Mention the new module.
25750         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25751         * config/srclist.txt: Add grantpt.c (commented).
25752
25753 2010-03-21  Bruno Haible  <bruno@clisp.org>
25754
25755         New module 'pt_chown'.
25756         * lib/pt_chown.c: New file, from glibc with modifications.
25757         * lib/pty-private.h: New file, from glibc with modifications.
25758         * modules/pt_chown: New file.
25759         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25760
25761 2010-03-21  Bruno Haible  <bruno@clisp.org>
25762
25763         Tests for module 'ptsname'.
25764         * modules/ptsname-tests: New file.
25765         * tests/test-ptsname.c: New file.
25766
25767         New module 'ptsname'.
25768         * lib/ptsname.c: New file, from glibc with modifications.
25769         * m4/ptsname.m4: New file.
25770         * modules/ptsname: New file.
25771         * lib/stdlib.in.h (ptsname): New declaration.
25772         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25773         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25774         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25775         HAVE_PTSNAME.
25776         * doc/posix-functions/ptsname.texi: Mention the new module.
25777         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25778         * config/srclist.txt: Add ptsname.c (commented).
25779
25780 2010-03-21  Bruno Haible  <bruno@clisp.org>
25781
25782         Tests for module 'ttyname_r'.
25783         * modules/ttyname_r-tests: New file.
25784         * tests/test-ttyname_r.c: New file.
25785
25786         New module 'ttyname_r'.
25787         * lib/ttyname_r.c: New file.
25788         * m4/ttyname_r.m4: New file.
25789         * modules/ttyname_r: New file.
25790         * lib/unistd.in.h (ttyname_r): New declaration.
25791         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25792         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25793         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25794         HAVE_TTYNAME_R.
25795         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25796         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25797
25798 2010-03-20  Bruno Haible  <bruno@clisp.org>
25799
25800         signal: Undefine macro definitions in C++ mode.
25801         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25802         sigfillset): Undefine macro definitions from the system header in C++
25803         mode.
25804         Reported by John W. Eaton <jwe@gnu.org>.
25805
25806 2010-03-20  Bruno Haible  <bruno@clisp.org>
25807
25808         Ensure no #include statements inside extern "C" { ... }.
25809         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25810         contain #include statements.
25811         * lib/time.in.h: Likewise.
25812
25813 2010-03-20  Bruno Haible  <bruno@clisp.org>
25814
25815         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25816         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25817         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25818         Reported by John W. Eaton <jwe@gnu.org>.
25819
25820 2010-03-20  Bruno Haible  <bruno@clisp.org>
25821
25822         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25823         Reported by Jim Meyering.
25824
25825 2010-03-20  Bruno Haible  <bruno@clisp.org>
25826
25827         pipe: Set errno upon failure.
25828         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25829         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25830         errno value in error message.
25831
25832 2010-03-20  Bruno Haible  <bruno@clisp.org>
25833             Jim Meyering  <meyering@redhat.com>
25834
25835         lchown: Avoid "unused variable" warning.
25836         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25837
25838 2010-03-20  Bruno Haible  <bruno@clisp.org>
25839
25840         Work around unlink() bug on MacOS X 10.5.6.
25841         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25842         attempting to unlink a parent directory.
25843         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25844         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25845         activate for the replacement function.
25846         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25847
25848 2010-03-20  Bruno Haible  <bruno@clisp.org>
25849
25850         Fix link errors on Solaris 8.
25851         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25852         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25853
25854 2010-03-19  Jim Meyering  <meyering@redhat.com>
25855
25856         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25857         The _LIBC implementation of build_range_exp correctly honors the
25858         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25859         However, the non-_LIBC implementation would ignore that syntax-bit
25860         flag and return REG_ERANGE unconditionally.
25861         This change makes it honor that flag.
25862         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25863         Make two pointer parameters "const".
25864         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25865         (parse_bracket_exp): Update caller.
25866
25867         regex.m4: correct the reversed range endpoint ([b-a]) test
25868         * m4/regex.m4: When requiring that [b-a] evoke failure,
25869         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25870         test pass once again for x86-based systems.
25871
25872 2010-03-19  Bruno Haible  <bruno@clisp.org>
25873
25874         scandir: Fix link error on Solaris 8.
25875         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25876         macros.
25877
25878 2010-03-19  Bruno Haible  <bruno@clisp.org>
25879
25880         getusershell: Fix documentation.
25881         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25882         module.
25883         * doc/glibc-functions/setusershell.texi: Likewise.
25884
25885         getusershell: Provide declaration, missing on Solaris 9.
25886         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25887         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25888         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25889         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25891         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25892         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25893         HAVE_GETUSERSHELL.
25894         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25895
25896 2010-03-19  Bruno Haible  <bruno@clisp.org>
25897
25898         wctype: Provide iswblank function.
25899         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25900         exists and is fine.
25901         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25902         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25903         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25904         * doc/posix-functions/iswblank.texi: Update.
25905
25906 2010-03-19  Bruno Haible  <bruno@clisp.org>
25907
25908         Tests of module 'pty' in C++ mode.
25909         * modules/pty-tests: New file.
25910         * tests/test-pty-c++.cc: New file.
25911         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25912
25913 2010-03-19  Eric Blake  <eblake@redhat.com>
25914
25915         logb: fix documentation
25916         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25917         1.5 declaration bug.
25918
25919         forkpty, openpty: prefer glibc's const-safe prototype
25920         * lib/forkpty.c (rpl_forkpty): New file.
25921         * lib/openpty.c (rpl_openpty): Likewise.
25922         * modules/forkpty (Files): Distribute it.
25923         * modules/openpty (Files): Likewise.
25924         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25925         check...
25926         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25927         replacement for for non-const BSD signature.
25928         * modules/pty (Makefile.am): Substitute witnesses.
25929         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25930         * tests/test-forkpty.c: Update signature check.
25931         * tests/test-openpty.c: Likewise.
25932         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25933         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25934
25935         forkpty, openpty: split functions into new modules
25936         * modules/pty (Makefile.am): Substitute new witnesses.
25937         (Libraries): Move library detection...
25938         * modules/forkpty: ...into new module.
25939         * modules/openpty: Another new module.
25940         * modules/pty-tests: Rename and split...
25941         * modules/forkpty-tests: ...to this...
25942         * modules/openpty-tests: ...and this.
25943         * tests/test-pty.c: Rename and split...
25944         * tests/test-forkpty.c: ...to this...
25945         * tests/test-openpty.c: ...and this.
25946         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25947         (gl_PTY): Split library searching...
25948         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25949         (gl_FORKPTY, gl_OPENPTY): New macros.
25950         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25951         * NEWS: Mention the split.
25952         * MODULES.html.sh (Misc): Document the modules.
25953         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25954         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25955
25956         pty: improve replacement header
25957         * lib/pty.in.h: New file.
25958         * modules/pty (Files): Ship it.
25959         (Makefile.am): Always build replacement.
25960         * m4/pty.m4: Rename...
25961         * m4/pty_h.m4: ...to this.
25962         (gl_PTY): Modernize setting of witness macros; update check of
25963         forkpty to take proper advantage of cache.
25964         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25965
25966         getopt: avoid compiler warning
25967         * lib/getopt.c (attribute_hidden): Remove unused macro.
25968
25969 2010-03-18  Bruno Haible  <bruno@clisp.org>
25970
25971         Fix link errors on Solaris 8.
25972         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25973         * modules/search-tests (test_search_c___LDADD): Likewise.
25974         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25975         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25976         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25977         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25978         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25979         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25980         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25981
25982 2010-03-18  Bruno Haible  <bruno@clisp.org>
25983
25984         Fix bug introduced on 2010-03-14.
25985         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25986         (gl_SPAWN_H): Require it.
25987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25988         Reported by Simon Josefsson.
25989
25990 2010-03-18  Bruno Haible  <bruno@clisp.org>
25991
25992         Fix typo introduced on 2009-12-31.
25993         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25994         posix_spawn_file_actions_adddup2.
25995
25996 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25997         and Eric Blake  <eblake@redhat.com>
25998
25999         test-vc-list-files-git: make more robust
26000         * tests/test-vc-list-files-git.sh: Unset problematic environment
26001         variables.  Chain commands together.
26002
26003 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26004
26005         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26006         `AC_CHECK_DECL' invocation.
26007
26008 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26009
26010         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26011         appears before executable statements. Suggested by Petr Sumbera
26012         <Petr.Sumbera@Sun.COM>.
26013
26014 2010-03-14  Bruno Haible  <bruno@clisp.org>
26015
26016         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26017         portability problems. Instead use a simpler test.
26018         (main): Check that invalid arguments are rejected only on Linux.
26019
26020 2010-03-14  Bruno Haible  <bruno@clisp.org>
26021
26022         Fix bug introduced on 2009-12-31.
26023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26024         gl_PREREQ_SYS_H_WINSOCK2 always.
26025         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26026         SYS_SOCKET_H variable.
26027         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26028         Update comments.
26029         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26030         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26031         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26032         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26033         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26034
26035 2010-03-14  Bruno Haible  <bruno@clisp.org>
26036
26037         Fix values returned by sinl, cosl.
26038         * lib/trigl.h: Add specification comments.
26039         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26040         that combines the values from the precomputed table with the values of
26041         the Chebyshev polynomials.
26042
26043 2010-03-14  Bruno Haible  <bruno@clisp.org>
26044
26045         Fix compilation error when modules 'posix_spawn[p]' are not used.
26046         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26048
26049 2010-03-14  Bruno Haible  <bruno@clisp.org>
26050
26051         Fix compilation error on mingw when module 'time_r' is not used.
26052         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26053         is 1.
26054         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26055         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26056         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26057         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26058
26059 2010-03-14  Bruno Haible  <bruno@clisp.org>
26060
26061         Fix compilation error with Sun C.
26062         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26063         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26064         instead of GCC specific ULONG_LONG_MAX.
26065         * lib/xstrtoll.c: Likewise.
26066         * lib/xstrtoull.c: Likewise.
26067
26068 2010-03-13  Bruno Haible  <bruno@clisp.org>
26069
26070         Allow the user to disable C++ code and tests.
26071         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26072         (gl_PROG_ANSI_CXX): Require it.
26073
26074 2010-03-13  Bruno Haible  <bruno@clisp.org>
26075
26076         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26077         cases.
26078
26079 2010-03-13  Bruno Haible  <bruno@clisp.org>
26080
26081         Test that gnulib does not break the standard C++ headers.
26082         * tests/test-locale-c++2.cc: New file.
26083         * modules/locale-tests (Files): Add it.
26084         (Makefile.am): Compile it for test-locale-c++.
26085         * tests/test-math-c++2.cc: New file.
26086         * modules/math-tests (Files): Add it.
26087         (Makefile.am): Compile it for test-math-c++.
26088         * tests/test-signal-c++2.cc: New file.
26089         * modules/signal-tests (Files): Add it.
26090         (Makefile.am): Compile it for test-signal-c++.
26091         * tests/test-stdio-c++2.cc: New file.
26092         * modules/stdio-tests (Files): Add it.
26093         (Makefile.am): Compile it for test-stdio-c++.
26094         * tests/test-stdlib-c++2.cc: New file.
26095         * modules/stdlib-tests (Files): Add it.
26096         (Makefile.am): Compile it for test-stdlib-c++.
26097         * tests/test-string-c++2.cc: New file.
26098         * modules/string-tests (Files): Add it.
26099         (Makefile.am): Compile it for test-string-c++.
26100         * tests/test-time-c++2.cc: New file.
26101         * modules/time-tests (Files): Add it.
26102         (Makefile.am): Compile it for test-time-c++.
26103         Reported by John W. Eaton <jwe@gnu.org>.
26104
26105 2010-03-13  Bruno Haible  <bruno@clisp.org>
26106
26107         * gnulib-tool (func_usage): Clarify which options are available for
26108         --create-testdir and --create-megatestdir.
26109
26110 2010-03-13  Bruno Haible  <bruno@clisp.org>
26111
26112         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26113         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26114         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26115         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26116         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26117         when appropriate.
26118         Reported by Jim Meyering.
26119
26120 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26121
26122         * gnulib-tool (func_import): Explain origin of code.
26123
26124 2010-03-12  Bruno Haible  <bruno@clisp.org>
26125
26126         Fix problem with automake's definition of CXXLINK.
26127         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26128         Reported by Simon Josefsson and Ludovic Courtès.
26129
26130 2010-03-12  Bruno Haible  <bruno@clisp.org>
26131
26132         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26133         stable releases.
26134
26135 2010-03-11  Bruno Haible  <bruno@clisp.org>
26136
26137         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26138         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26139         whether the system provides one variant or multiple variants of the
26140         function.
26141         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26142         C++ compilers.
26143         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26144         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26145         Reported by Jim Meyering.
26146
26147 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26148
26149         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26150
26151 2010-03-08  Bruno Haible  <bruno@clisp.org>
26152
26153         gnulib-tool: Add support for --libtool in --create-testdir.
26154         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26155         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26156
26157 2010-03-08  Eric Blake  <eblake@redhat.com>
26158
26159         gnulib-tool.texi: mention possibility of git submodule
26160         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26161         submodules.
26162         * doc/.gitignore: Ignore another generated file.
26163
26164 2010-03-08  Karl Berry  <karl@gnu.org>
26165
26166         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26167         of committing gnulib files while skipping others.
26168
26169 2010-03-07  Bruno Haible  <bruno@clisp.org>
26170
26171         Tests of module 'wctype' in C++ mode.
26172         * tests/test-wctype-c++.cc: New file.
26173         * modules/wctype-tests (Files): Add it and tests/signature.h.
26174         (Depends-on): Add ansi-c++-opt.
26175         (Makefile.am): Arrange to compile and run test-wctype-c++.
26176
26177         Tests of module 'wchar' in C++ mode.
26178         * tests/test-wchar-c++.cc: New file.
26179         * modules/wchar-tests (Files): Add it and tests/signature.h.
26180         (Depends-on): Add ansi-c++-opt.
26181         (Makefile.am): Arrange to compile and run test-wchar-c++.
26182         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26183         gl_MODULE_INDICATOR.
26184
26185         Tests of module 'unistd' in C++ mode.
26186         * tests/test-unistd-c++.cc: New file.
26187         * modules/unistd-tests (Files): Add it and tests/signature.h.
26188         (Depends-on): Add ansi-c++-opt.
26189         (Makefile.am): Arrange to compile and run test-unistd-c++.
26190         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26191         gl_MODULE_INDICATOR.
26192
26193         Tests of module 'time' in C++ mode.
26194         * tests/test-time-c++.cc: New file.
26195         * modules/time-tests (Files): Add it and tests/signature.h.
26196         (Depends-on): Add ansi-c++-opt.
26197         (Makefile.am): Arrange to compile and run test-time-c++.
26198         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26199
26200         Tests of module 'sys_time' in C++ mode.
26201         * tests/test-sys_time-c++.cc: New file.
26202         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26203         (Depends-on): Add ansi-c++-opt.
26204         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26205         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26206         gl_MODULE_INDICATOR.
26207
26208         Tests of module 'sys_stat' in C++ mode.
26209         * tests/test-sys_stat-c++.cc: New file.
26210         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26211         (Depends-on): Add ansi-c++-opt.
26212         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26213         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26214         gl_MODULE_INDICATOR.
26215
26216         Tests of module 'sys_socket' in C++ mode.
26217         * tests/test-sys_socket-c++.cc: New file.
26218         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26219         (Depends-on): Add ansi-c++-opt.
26220         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26221         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26222         gl_MODULE_INDICATOR.
26223
26224         Tests of module 'sys_select' in C++ mode.
26225         * tests/test-sys_select-c++.cc: New file.
26226         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26227         (Depends-on): Add ansi-c++-opt.
26228         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26229         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26230         gl_MODULE_INDICATOR.
26231
26232         Tests of module 'sys_ioctl' in C++ mode.
26233         * tests/test-sys_ioctl-c++.cc: New file.
26234         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26235         (Depends-on): Add ansi-c++-opt.
26236         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26237         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26238         gl_MODULE_INDICATOR.
26239
26240         Tests of module 'string' in C++ mode.
26241         * tests/test-string-c++.cc: New file.
26242         * modules/string-tests (Files): Add it and tests/signature.h.
26243         (Depends-on): Add ansi-c++-opt.
26244         (Makefile.am): Arrange to compile and run test-string-c++.
26245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26246         gl_MODULE_INDICATOR.
26247
26248         Tests of module 'stdlib' in C++ mode.
26249         * tests/test-stdlib-c++.cc: New file.
26250         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26251         (Depends-on): Add ansi-c++-opt.
26252         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26253         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26254         gl_MODULE_INDICATOR.
26255
26256         Tests of module 'stdio' in C++ mode.
26257         * tests/test-stdio-c++.cc: New file.
26258         * modules/stdio-tests (Files): Add it and tests/signature.h.
26259         (Depends-on): Add ansi-c++-opt.
26260         (Makefile.am): Arrange to compile and run test-stdio-c++.
26261         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26262         gl_MODULE_INDICATOR.
26263
26264         Tests of module 'spawn' in C++ mode.
26265         * tests/test-spawn-c++.cc: New file.
26266         * modules/spawn-tests (Files): Add it and tests/signature.h.
26267         (Depends-on): Add ansi-c++-opt.
26268         (Makefile.am): Arrange to compile and run test-spawn-c++.
26269         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26270         gl_MODULE_INDICATOR.
26271
26272         Tests of module 'signal' in C++ mode.
26273         * tests/test-signal-c++.cc: New file.
26274         * modules/signal-tests (Files): Add it and tests/signature.h.
26275         (Depends-on): Add ansi-c++-opt.
26276         (Makefile.am): Arrange to compile and run test-signal-c++.
26277         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26278         gl_MODULE_INDICATOR.
26279
26280         Tests of module 'search' in C++ mode.
26281         * tests/test-search-c++.cc: New file.
26282         * modules/search-tests (Files): Add it and tests/signature.h.
26283         (Depends-on): Add ansi-c++-opt.
26284         (Makefile.am): Arrange to compile and run test-search-c++.
26285         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26286         gl_MODULE_INDICATOR.
26287
26288         Tests of module 'math' in C++ mode.
26289         * tests/test-math-c++.cc: New file.
26290         * modules/math-tests (Files): Add it and tests/signature.h.
26291         (Depends-on): Add ansi-c++-opt.
26292         (Makefile.am): Arrange to compile and run test-math-c++.
26293         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26294
26295         Tests of module 'locale' in C++ mode.
26296         * tests/test-locale-c++.cc: New file.
26297         * modules/locale-tests (Files): Add it and tests/signature.h.
26298         (Depends-on): Add ansi-c++-opt.
26299         (Makefile.am): Arrange to compile and run test-locale-c++.
26300         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26301         gl_MODULE_INDICATOR.
26302
26303         Tests of module 'langinfo' in C++ mode.
26304         * tests/test-langinfo-c++.cc: New file.
26305         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26306         (Depends-on): Add ansi-c++-opt.
26307         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26308         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26309         gl_MODULE_INDICATOR.
26310
26311         Tests of module 'iconv-h' in C++ mode.
26312         * tests/test-iconv-h-c++.cc: New file.
26313         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26314         (Depends-on): Add ansi-c++-opt.
26315         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26316
26317         Tests of module 'glob' in C++ mode.
26318         * tests/test-glob-c++.cc: New file.
26319         * modules/glob-tests (Files): Add it.
26320         (Depends-on): Add ansi-c++-opt.
26321         (Makefile.am): Arrange to compile and run test-glob-c++.
26322
26323         Tests of module 'fcntl-h' in C++ mode.
26324         * tests/test-fcntl-h-c++.cc: New file.
26325         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26326         (Depends-on): Add ansi-c++-opt.
26327         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26328         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26329         gl_MODULE_INDICATOR.
26330
26331         Tests of module 'dirent' in C++ mode.
26332         * tests/test-dirent-c++.cc: New file.
26333         * modules/dirent-tests (Files): Add it and tests/signature.h.
26334         (Depends-on): Add ansi-c++-opt.
26335         (Makefile.am): Arrange to compile and run test-dirent-c++.
26336         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26337         gl_MODULE_INDICATOR.
26338
26339         New module 'ansi-c++-opt'.
26340         * modules/ansi-c++-opt: New file.
26341         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26342
26343         Document C++ namespace mode.
26344         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26345
26346         wctype: Avoid #define replacements in C++ mode.
26347         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26348         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26349         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26350         In C++, define a namespaced alias symbol.
26351         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26352         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26353         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26354         rule.
26355
26356         wchar: Avoid #define replacements in C++ mode.
26357         * lib/wchar.in.h: Include c++defs.h.
26358         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26359         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26360         symbol.
26361         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26362         * modules/wchar (Depends-on): Add c++defs.
26363         (Makefile.am): Update wchar.h rule.
26364
26365         unistd: Avoid #define replacements in C++ mode.
26366         * lib/unistd.in.h: Include c++defs.h.
26367         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26368         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26369         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26370         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26371         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26372         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26373         symbol.
26374         (environ): Update.
26375         * modules/unistd (Depends-on): Add c++defs.
26376         (Makefile.am): Update unistd.h rule.
26377
26378         time: Avoid #define replacements in C++ mode.
26379         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26380         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26381         define a namespaced alias symbol.
26382         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26383         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26384         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26385         * modules/time (Depends-on): Add c++defs, warn-on-use.
26386         (Makefile.am): Update time.h rule.
26387         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26388         * modules/nanosleep (configure.ac): Likewise.
26389         * modules/strptime (configure.ac): Likewise.
26390         * modules/timegm (configure.ac): Likewise.
26391
26392         sys_time: Avoid #define replacements in C++ mode.
26393         * lib/sys_time.in.h: Include c++defs.h.
26394         (gettimeofday): In C++, define a namespaced alias symbol.
26395         * modules/sys_time (Depends-on): Add c++defs.
26396         (Makefile.am): Update sys/time.h rule.
26397
26398         sys_stat: Avoid #define replacements in C++ mode.
26399         * lib/sys_stat.in.h: Include c++defs.h.
26400         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26401         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26402         namespaced alias symbol.
26403         In C++, define a namespaced alias symbol.
26404         * modules/sys_stat (Depends-on): Add c++defs.
26405         (Makefile.am): Update sys/stat.h rule.
26406
26407         sys_socket: Avoid #define replacements in C++ mode.
26408         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26409         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26410         definitions also when the system has a <sys/socket.h>.
26411         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26412         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26413         In C++, define a namespaced alias symbol.
26414         * modules/sys_socket (Depends-on): Add c++defs.
26415         (Makefile.am): Update sys/socket.h rule.
26416
26417         sys_select: Avoid #define replacements in C++ mode.
26418         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26419         definitions also when the system has a <sys/select.h>.
26420         (select): In C++, define a namespaced alias symbol.
26421         * modules/sys_select (Depends-on): Add c++defs.
26422         (Makefile.am): Update sys/select.h rule.
26423
26424         sys_ioctl: Avoid #define replacements in C++ mode.
26425         * lib/sys_ioctl.in.h: Include c++defs.h.
26426         (ioctl): In C++, define a namespaced alias symbol.
26427         * modules/sys_ioctl (Depends-on): Add c++defs.
26428         (Makefile.am): Update sys/ioctl.h rule.
26429
26430         string: Avoid #define replacements in C++ mode.
26431         * lib/string.in.h: Include c++defs.h.
26432         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26433         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26434         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26435         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26436         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26437         * modules/string (Depends-on): Add c++defs.
26438         (Makefile.am): Update string.h rule.
26439
26440         stdlib: Avoid #define replacements in C++ mode.
26441         * lib/stdlib.in.h: Include c++defs.h.
26442         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26443         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26444         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26445         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26446         symbol.
26447         * modules/stdlib (Depends-on): Add c++defs.
26448         (Makefile.am): Update stdlib.h rule.
26449
26450         stdio: Avoid #define replacements in C++ mode.
26451         * lib/stdio.in.h: Include c++defs.h.
26452         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26453         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26454         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26455         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26456         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26457         namespaced alias symbol.
26458         * modules/stdio (Depends-on): Add c++defs.
26459         (Makefile.am): Update stdio.h rule.
26460
26461         spawn: Avoid #define replacements in C++ mode.
26462         * lib/spawn.in.h: Include c++defs.h.
26463         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26464         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26465         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26466         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26467         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26468         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26469         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26470         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26471         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26472         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26473         In C++, define a namespaced alias symbol.
26474         * modules/spawn (Depends-on): Add c++defs.
26475         (Makefile.am): Update spawn.h rule.
26476
26477         signal: Avoid #define replacements in C++ mode.
26478         * lib/signal.in.h: Include c++defs.h.
26479         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26480         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26481         namespaced alias symbol.
26482         * modules/signal (Depends-on): Add c++defs.
26483         (Makefile.am): Update signal.h rule.
26484
26485         search: Avoid #define replacements in C++ mode.
26486         * lib/search.in.h: Include c++defs.h.
26487         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26488         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26489         symbol.
26490         * modules/search (Depends-on): Add c++defs.
26491         (Makefile.am): Update search.h rule.
26492
26493         math: Avoid #define replacements in C++ mode.
26494         * lib/math.in.h: Include c++defs.h.
26495         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26496         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26497         trunc, truncl): In C++, define a namespaced alias symbol.
26498         * modules/math (Depends-on): Add c++defs.
26499         (Makefile.am): Update math.h rule.
26500
26501         locale: Avoid #define replacements in C++ mode.
26502         * lib/locale.in.h: Include c++defs.h.
26503         (duplocale): In C++, define a namespaced alias symbol.
26504         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26505         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26506         * modules/locale (Depends-on): Add c++defs.
26507         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26508
26509         langinfo: Avoid #define replacements in C++ mode.
26510         * lib/langinfo.in.h: Include c++defs.h.
26511         (nl_langinfo): In C++, define a namespaced alias symbol.
26512         * modules/langinfo (Depends-on): Add c++defs.
26513         (Makefile.am): Update langinfo.h rule.
26514
26515         iconv-h: Avoid #define replacements in C++ mode.
26516         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26517         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26518         symbol.
26519         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26520         whenever iconv is present.
26521         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26522         (Makefile.am): Update iconv.h rule.
26523
26524         glob: Avoid #define replacements in C++ mode.
26525         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26526         (_gl_glob_errfunc_fn): New type.
26527         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26528         symbol.
26529         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26530         (Makefile.am): Update glob.h rule.
26531
26532         fcntl-h: Avoid #define replacements in C++ mode.
26533         * lib/fcntl.in.h: Include c++defs.h.
26534         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26535         * modules/fcntl-h (Depends-on): Add c++defs.
26536         (Makefile.am): Update fcntl.h rule.
26537
26538         dirent: Avoid #define replacements in C++ mode.
26539         * lib/dirent.in.h: Include c++defs.h.
26540         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26541         namespaced alias symbol.
26542         (dirfd): Update declaration.
26543         * modules/dirent (Depends-on): Add c++defs.
26544         (Makefile.am): Update dirent.h rule.
26545
26546         ctype: Make it usable in C++ code.
26547         * lib/ctype.in.h: Include c++defs.h.
26548         (isblank): Declare as extern "C".
26549         * modules/ctype (Depends-on): Add c++defs.
26550         (Makefile.am): Update ctype.h rule.
26551
26552         New module 'c++defs'.
26553         * modules/c++defs: New file.
26554         * build-aux/c++defs.h: New file.
26555         Reported by John W. Eaton <jwe@gnu.org>.
26556
26557 2010-03-07  Bruno Haible  <bruno@clisp.org>
26558
26559         logb: Provide missing declaration for Cygwin.
26560         * lib/math.in.h (logb): New declaration.
26561         * m4/logb.m4: New file.
26562         * modules/logb (Files): Add m4/logb.m4.
26563         (Depends-on): Add math.
26564         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26565         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26567         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26568         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26569
26570 2010-03-07  Bruno Haible  <bruno@clisp.org>
26571
26572         Fix test-cond link error.
26573         * tests/test-cond.c: Include <stdio.h>.
26574
26575 2010-03-07  Bruno Haible  <bruno@clisp.org>
26576
26577         Fix test-dirent-safer link error.
26578         * modules/dirent-safer-tests (Makefile.am): Define
26579         test_dirent_safer_LDADD.
26580
26581 2010-03-07  Bruno Haible  <bruno@clisp.org>
26582
26583         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26584         among default module list.
26585
26586 2010-03-07  Bruno Haible  <bruno@clisp.org>
26587
26588         Fix link error on platforms with GNU libiconv.
26589         * modules/unistr/u8-strcoll-tests (Makefile): Define
26590         test_u8_strcoll_LDADD.
26591         * modules/unistr/u16-strcoll-tests (Makefile): Define
26592         test_u16_strcoll_LDADD.
26593         * modules/unistr/u32-strcoll-tests (Makefile): Define
26594         test_u32_strcoll_LDADD.
26595
26596 2010-03-07  Bruno Haible  <bruno@clisp.org>
26597
26598         Use POSIX declarations for socket functions.
26599         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26600         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26601         rpl_sendto): Change declaration to match POSIX.
26602         * lib/connect.c (rpl_connect): Likewise.
26603         * lib/accept.c (rpl_accept): Likewise.
26604         * lib/bind.c (rpl_bind): Likewise.
26605         * lib/getpeername.c (rpl_getpeername): Likewise.
26606         * lib/getsockname.c (rpl_getsockname): Likewise.
26607         * lib/recv.c (rpl_recv): Likewise.
26608         * lib/send.c (rpl_send): Likewise.
26609         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26610         * lib/sendto.c (rpl_sendto): Likewise.
26611
26612 2010-03-06  Bruno Haible  <bruno@clisp.org>
26613
26614         Clarify access, euidaccess, faccessat.
26615         * doc/posix-functions/faccessat.texi: Mention security problem under
26616         "Other problems", not "Portability problems".
26617         * doc/posix-functions/access.texi: Likewise. Mention a related security
26618         problem.
26619         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26620         * lib/euidaccess.c: Add comments about platforms.
26621         * lib/unistd.in.h (access, euidaccess): Add warnings.
26622
26623 2010-03-07  Bruno Haible  <bruno@clisp.org>
26624
26625         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26626         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26627         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26628         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26629         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26630         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26631         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26632         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26633         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26634         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26635         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26636         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26637         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26638         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26639         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26640         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26641         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26642         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26643         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26644         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26645         Likewise.
26646         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26647         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26648         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26649         Likewise.
26650         * tests/test-spawn.c (main): Make it work when
26651         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26652
26653 2010-03-07  Bruno Haible  <bruno@clisp.org>
26654
26655         Fix incorrect Makefile.am generation in German locale.
26656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26657         Execute sed command with character range in C locale.
26658
26659 2010-03-06  Bruno Haible  <bruno@clisp.org>
26660
26661         Tests for module 'iconv-h'.
26662         * modules/iconv-h-tests: New file.
26663         * tests/test-iconv-h.c: New file.
26664
26665         New module 'iconv-h'.
26666         * modules/iconv-h: New file.
26667         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26668         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26669         (configure.ac): Remove gl_ICONV_H.
26670         (Makefile.am): Remove rule for iconv.h.
26671
26672 2010-03-06  Bruno Haible  <bruno@clisp.org>
26673
26674         More consistent naming of *.m4 files.
26675         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26676         * modules/wctype (Files): Update.
26677
26678         More consistent naming of *.m4 files.
26679         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26680         * modules/wchar (Files): Update.
26681
26682 2010-03-06  Jim Meyering  <meyering@redhat.com>
26683
26684         euidaccess: relax license to LGPLv2+
26685         * modules/euidaccess (License): Relax to LGPLv2+.
26686
26687 2010-03-06  Bruno Haible  <bruno@clisp.org>
26688
26689         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26690         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26691         (Makefile.am): Augment lib_SOURCES instead.
26692
26693 2010-03-04  Jim Meyering  <meyering@redhat.com>
26694
26695         utime: remove obsolete module
26696         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26697         unnecessary for years, and has been marked as obsolete for 10 months.
26698         * modules/utime: Remove file.
26699         * lib/utime.c: Remove file.
26700         * m4/utime.m4: Remove file.
26701         * m4/utimes-null.m4: Remove file.
26702         * doc/posix-functions/utime.texi (utime): Remove reference to
26703         the module.  Move the sole "fixed by gnulib" item into the
26704         "problems not fixed by Gnulib" list.
26705         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26706
26707 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26708
26709         * modules/exit (License): Relax license to LGPLv2+.
26710         (Status): Mark as obsolete.
26711         * NEWS: Mention deprecated 'exit' module.
26712         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26713         of now obsolete 'exit'.
26714
26715 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26716
26717         fts-lgpl: remove unused module
26718         * modules/fts-lgpl: Remove.
26719         * MODULES.html.sh (func_all_modules): Adjust.
26720         * check-module (find_included_lib_files): Adjust.
26721         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26722
26723 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26724
26725         copy-acl: enhance Solaris ACL error handling
26726         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26727         * lib/set-mode-acl.c (qset_acl): Likewise.
26728
26729 2010-03-02  Bruno Haible  <bruno@clisp.org>
26730
26731         spawn: Don't override the system defined values on FreeBSD 8.
26732         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26733         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26734         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26735         if HAVE_POSIX_SPAWN is 1.
26736         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26737
26738 2010-03-01  Bruno Haible  <bruno@clisp.org>
26739
26740         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26741         regarding Automake.
26742
26743 2010-02-25  Bruno Haible  <bruno@clisp.org>
26744
26745         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26746         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26747         setting, not afterwards.
26748         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26749
26750 2010-02-24  Eric Blake  <eblake@redhat.com>
26751
26752         bootstrap, git-version-gen: use timestamp
26753         * build-aux/git-version-gen (scriptversion): Force UTC.
26754         * build-aux/bootstrap (scriptversion): New variable.
26755
26756         bootstrap: allow older git
26757         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26758         older than 1.6.4.  Requested by the libvirt project.
26759
26760 2010-02-23  Eric Blake  <eblake@redhat.com>
26761
26762         warn-on-use: work with old autoconf
26763         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26764         AS_VAR semantics of autoconf 2.60.
26765         Reported by Bruno Haible.
26766
26767         bootstrap: improve some comments
26768         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26769         clarification comments.
26770
26771         gettimeofday: provide correct function
26772         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26773         when replacement is declared, otherwise provide gettimeofday.
26774         Reported by Michael Goffioul.
26775
26776 2010-02-23  Jim Meyering  <meyering@redhat.com>
26777
26778         lib-ignore: relax license to "unlimited", not LGPLv2+
26779         * modules/lib-ignore (License): Relax to "unlimited".
26780
26781 2010-02-23  Jim Meyering  <meyering@redhat.com>
26782
26783         lib-ignore: relax license to LGPLv2+
26784         * modules/lib-ignore (License): Relax to LGPLv2+.
26785
26786 2010-02-22  Eric Blake  <eblake@redhat.com>
26787
26788         lseek: avoid bash 3.2 broken pipe bug
26789         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26790         warning from bash 3.2.
26791         Reported by Ben Pfaff, with analysis from Bruno Haible.
26792
26793         bootstrap: support non-FSF copyright holder
26794         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26795         bootstrap.conf override of COPYRIGHT_HOLDER.
26796         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26797
26798         bootstrap: interoperate with gettext 0.14.1
26799         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26800
26801         bootstrap: allow for alternate submodule location
26802         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26803         hardcoding submodule location.
26804         (gnulib_mk): Allow direct use of Makefile.am.
26805
26806         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26807         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26808         rather than reconfiguring where the submodule points.
26809
26810         gettimeofday: restore support for platforms that lack function
26811         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26812         replacement if function is missing.
26813         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26814         * modules/sys_time (Makefile.am): Substitute it.
26815         * lib/sys_time.in.h (gettimeofday): Check it.
26816         Reported by Michael Goffioul.
26817
26818 2010-02-21  Bruno Haible  <bruno@clisp.org>
26819
26820         * lib/stdio.in.h (obstack_printf): Fix typo.
26821
26822 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26823
26824         vc-list-files: use bzr ls's -R option
26825         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26826         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26827
26828 2010-02-21  Jim Meyering  <meyering@redhat.com>
26829
26830         init.sh: fix EXEEXT shims to work also for names like test-prog
26831         * tests/init.sh: Re-exec a better shell, when needed.
26832         If the current shell lacks support for posix $(...), an init.sh-using
26833         test will now try to find a shell that supports that.  If EXEEXT is
26834         nonempty, we also require support for hyphen-in-alias-name and shell
26835         substitutions like ${var#glob}.  Failure to find such a shell results
26836         in a skipped test.
26837
26838 2010-02-21  Bruno Haible  <bruno@clisp.org>
26839
26840         Really work around around "broken pipe" error message from bash 3.2.
26841         * gnulib-tool (func_reset_sigpipe): Remove function.
26842         (echo): In bash 3.2, define to a function that uses printf.
26843         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26844
26845 2010-02-20  Bruno Haible  <bruno@clisp.org>
26846
26847         Restore support for automake 1.9.6 with autoconf 2.61.
26848         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26849         Reported by James Youngman <jay@gnu.org>.
26850
26851 2010-02-20  Bruno Haible  <bruno@clisp.org>
26852
26853         Improve *printf warning condition.
26854         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26855         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26856         and the function is overridden due to SIGPIPE emulation.
26857
26858 2010-02-20  Bruno Haible  <bruno@clisp.org>
26859
26860         * lib/stdio.in.h: Tweak comments.
26861
26862 2010-02-19  Bruno Haible  <bruno@clisp.org>
26863
26864         Make it easier to find modules. New gnulib-tool option '--find'.
26865         * gnulib-tool: New option --find.
26866         (func_usage): Document it.
26867         (func_sanitize_modulelist): New function, extracted from
26868         func_all_modules.
26869         (func_all_modules): Invoke it.
26870         * doc/gnulib-tool.texi (Which modules?): New node.
26871
26872 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26873
26874         * lib/sys_select.in.h: Provide select replacement even if
26875         sys/select.h exists on a system, for Interix.
26876
26877 2010-02-18  Jim Meyering  <meyering@redhat.com>
26878
26879         init.sh: don't use $(...) just yet
26880         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26881         to accommodate e.g., Solaris' /bin/sh.
26882
26883 2010-02-17  Bruno Haible  <bruno@clisp.org>
26884
26885         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26886         Reported by Ludovic Courtès <ludo@gnu.org>.
26887
26888 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26889
26890         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26891         linking with -lintl.
26892
26893 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26894
26895         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26896         if not provided by the system's netdb.h.  Reported by
26897         ludo@gnu.org (Ludovic Courtès).
26898
26899 2010-02-15  Jim Meyering  <meyering@redhat.com>
26900
26901         init.sh: improve portability and efficiency
26902         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26903         "dummy" in a for loop.
26904         Use '!', not '^' to select the complement of a character set used
26905         in a "case" statement.
26906         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26907         Suggestions from Eric Blake.
26908
26909         init.sh: automatically accommodate programs with the .exe suffix
26910         Automatically arrange for an invocation of "prog" to execute the
26911         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26912         may use the simpler "prog", yet still work when built on a system
26913         that requires specifying the added suffix.
26914         Do this by constructing a function named "prog" that invokes
26915         "prog.exe" for each .exe file in selected directories.
26916         * tests/init.sh (find_exe_basenames_): New function.
26917         (create_exe_shim_functions_): New function.
26918         (path_prepend_): Use it.
26919
26920         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26921         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26922         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26923
26924 2010-02-14  Jim Meyering  <meyering@redhat.com>
26925
26926         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26927         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26928         (sc_prohibit_hash_pjw_without_use): New rule.
26929
26930         maint.mk: allow the default upload destination dir to be overridden
26931         * top/maint.mk (upload_dest_dir_): Define with a default that
26932         preserves the status quo.
26933         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26934         Reported by Peter Simons.
26935
26936         maint.mk: prohibit inclusion of "hash.h" without_use
26937         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26938
26939 2010-02-10  Jim Meyering  <meyering@redhat.com>
26940
26941         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26942         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26943
26944 2010-02-09  Eric Blake  <ebb9@byu.net>
26945         and Bruno Haible  <bruno@clisp.org>
26946
26947         obstack-printf-posix: ensure declaration
26948         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26949         extracted from gl_FUNC_OBSTACK_PRINTF.
26950         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26951         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26952         Likewise.
26953         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26954         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26955         0.
26956
26957 2010-02-08  Bruno Haible  <bruno@clisp.org>
26958
26959         gnulib-tool: Fix typo in 2010-02-07 commit.
26960         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26961         Reported by Eric Blake.
26962
26963 2010-02-07  Bruno Haible  <bruno@clisp.org>
26964
26965         gnulib-tool: Fix up caching patches.
26966         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26967         option --no-cache. Use associative arrays when supported by the shell.
26968         (sed_comments): New variable.
26969         (modcache): Renamed from do_cache.
26970         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26971         abbreviate unnecessarily.
26972         (have_associative): New variable.
26973         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26974         way also for ksh and zsh.
26975         (func_init_sed_convert_to_cache_statements): New function, extracted
26976         from func_cache_lookup_module. Add support for associative arrays.
26977         Don't set the c_MODULE_cached variable here. Ignore all lines before
26978         the first field header. Remove only the final newline, not all trailing
26979         newlines. Support empty fields correctly. Limit the use of 'eval' to
26980         assignments.
26981         (func_get_description, func_get_status, func_get_notice,
26982         func_get_applicability, func_get_filelist, func_get_dependencies,
26983         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26984         func_get_automake_snippet, func_get_include_directive,
26985         func_get_link_directive, func_get_license, func_get_maintainer):
26986         Update documentation. List the unoptimized code first. Add support for
26987         associative arrays. Limit the use of 'eval' to assignments.
26988         (func_get_applicability): Undo stylistic pessimisations.
26989         (func_get_automake_snippet, func_get_include_directive): Reduce code
26990         duplication.
26991         (func_modules_transitive_closure, func_modules_add_dummy,
26992         func_modules_notice, func_modules_to_filelist, func_add_file,
26993         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26994         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26995         func_create_testdir, func_create_megatestdir): Update documentation.
26996
26997 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26998
26999         * gnulib-tool (func_cache_lookup_module): Store the module name
27000         belonging to the cache variable; error out if two different
27001         module names map to the same cache variable name.
27002
27003 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27004
27005         gnulib-tool: Make caching optional.
27006         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27007         Update matching short versions of --no-changelog.
27008         (func_usage): Update.
27009         (sed_extract_cache_prog): Renamed from ...
27010         (sed_extract_prog): ... this; revert to old extraction script.
27011         (func_get_description, func_get_status)
27012         (func_get_notice, func_get_applicability, func_get_filelist)
27013         (func_get_dependencies, func_get_autoconf_early_snippet)
27014         (func_get_autoconf_snippet, func_get_automake_snippet)
27015         (func_get_include_directive, func_get_link_directive)
27016         (func_get_license, func_get_maintainer): If $do_cache is false,
27017         use old, non-caching extraction scripts.
27018         Suggestion by Bruno Haible.
27019
27020 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27021
27022         gnulib-tool: cache module metainformation.
27023         * gnulib-tool (sed_extract_prog): Match newline before each
27024         header, and rewrite header to a shell variable suffix.
27025         (func_cache_var, func_cache_lookup_module): New functions,
27026         to turn a module name into a cache variable prefix, and to
27027         look up and cache module metainformation.
27028         (func_get_description, func_get_status)
27029         (func_get_notice, func_get_applicability, func_get_filelist)
27030         (func_get_dependencies, func_get_autoconf_early_snippet)
27031         (func_get_autoconf_snippet, func_get_automake_snippet)
27032         (func_get_include_directive, func_get_link_directive)
27033         (func_get_license, func_get_maintainer): Use
27034         func_cache_lookup_module.
27035
27036 2010-02-07  Bruno Haible  <bruno@clisp.org>
27037
27038         fnctl: Fix missing dependency.
27039         * modules/fcntl (Depends-on): Add getdtablesize.
27040         Reported by John W. Eaton <jwe@gnu.org>.
27041
27042 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27043
27044         Argp: fix recognition of short alias options.
27045
27046         * lib/argp-parse.c (convert_options): Fix improper use of
27047         `|' between character values.
27048         * tests/test-argp.c (group1_option): New alias option
27049         --read (-r).
27050         (group1_parser): Special handling for 'r'.
27051         (test15): New test case.
27052         (test_fun): Add test15.
27053         * tests/test-argp-2.sh: Update expected --help and --usage
27054         outputs.
27055
27056 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27057
27058         * tests/test-argp.c: Fix indentation.
27059
27060 2010-02-04  Eric Blake  <ebb9@byu.net>
27061
27062         gettimeofday: expose type of second argument
27063         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27064         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27065         * tests/test-gettimeofday.c: Use it to silence warning.
27066         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27067         the issue.
27068
27069 2010-02-03  Jim Meyering  <meyering@redhat.com>
27070
27071         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27072         * lib/regcomp.c (TYPE_SIGNED): Define.
27073         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27074
27075         regcomp.c: avoid a new -Wshadow warning
27076         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27077
27078 2010-02-01  Jim Meyering  <meyering@redhat.com>
27079
27080         removing useless parentheses in cpp #define directives
27081         For motivation, see commit c0221df4, "define STREQ(a,b)
27082         consistently, removing useless parentheses"
27083         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27084         * lib/mountlist.c (MNT_IGNORE): Likewise.
27085         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27086
27087 2010-02-01  Eric Blake  <ebb9@byu.net>
27088
27089         sys_time: use link-warning
27090         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27091         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27092         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27093         * modules/sys_time (Depends-on): Add warn-on-use.
27094         (Makefile.am): Always build replacement.
27095         (configure.ac): Update substitutions.
27096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27097         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27098         bother with SYS_TIME_H.
27099         * modules/gettimeofday (configure.ac): Declare indicator.
27100         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27101         in use.
27102
27103         closein-tests: silence compiler warning
27104         * tests/test-closein.c (main): Ignore fread result.
27105         * modules/closein-tests (Depends-on): Add ignore-value.
27106
27107         tests: silence warning about system return
27108         * tests/test-areadlink-with-size.c (main): Ignore system result.
27109         * tests/test-areadlink.c (main): Likewise.
27110         * tests/test-areadlinkat-with-size.c (main): Likewise.
27111         * tests/test-areadlinkat.c (main): Likewise.
27112         * tests/test-canonicalize-lgpl.c (main): Likewise.
27113         * tests/test-canonicalize.c (main): Likewise.
27114         * tests/test-chown.c (main): Likewise.
27115         * tests/test-fchownat.c (main): Likewise.
27116         * tests/test-fdutimensat.c (main): Likewise.
27117         * tests/test-fstatat.c (main): Likewise.
27118         * tests/test-futimens.c (main): Likewise.
27119         * tests/test-lchown.c (main): Likewise.
27120         * tests/test-link.c (main): Likewise.
27121         * tests/test-linkat.c (main): Likewise.
27122         * tests/test-lstat.c (main): Likewise.
27123         * tests/test-mkdir.c (main): Likewise.
27124         * tests/test-mkdirat.c (main): Likewise.
27125         * tests/test-mkfifo.c (main): Likewise.
27126         * tests/test-mkfifoat.c (main): Likewise.
27127         * tests/test-mknod.c (main): Likewise.
27128         * tests/test-readlink.c (main): Likewise.
27129         * tests/test-remove.c (main): Likewise.
27130         * tests/test-rename.c (main): Likewise.
27131         * tests/test-renameat.c (main): Likewise.
27132         * tests/test-rmdir.c (main): Likewise.
27133         * tests/test-symlink.c (main): Likewise.
27134         * tests/test-symlinkat.c (main): Likewise.
27135         * tests/test-unlink.c (main): Likewise.
27136         * tests/test-unlinkat.c (main): Likewise.
27137         * tests/test-utimens.c (main): Likewise.
27138         * tests/test-utimensat.c (main): Likewise.
27139         * modules/areadlink-tests (Depends-on): Add ignore-value.
27140         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27141         * modules/areadlinkat-tests (Depends-on): Likewise.
27142         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27143         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27144         * modules/canonicalize-tests (Depends-on): Likewise.
27145         * modules/chown-tests (Depends-on): Likewise.
27146         * modules/fdutimensat-tests (Depends-on): Likewise.
27147         * modules/futimens-tests (Depends-on): Likewise.
27148         * modules/lchown-tests (Depends-on): Likewise.
27149         * modules/link-tests (Depends-on): Likewise.
27150         * modules/linkat-tests (Depends-on): Likewise.
27151         * modules/lstat-tests (Depends-on): Likewise.
27152         * modules/mkdir-tests (Depends-on): Likewise.
27153         * modules/mkfifo-tests (Depends-on): Likewise.
27154         * modules/mkfifoat-tests (Depends-on): Likewise.
27155         * modules/mknod-tests (Depends-on): Likewise.
27156         * modules/openat-tests (Depends-on): Likewise.
27157         * modules/readlink-tests (Depends-on): Likewise.
27158         * modules/remove-tests (Depends-on): Likewise.
27159         * modules/rename-tests (Depends-on): Likewise.
27160         * modules/renameat-tests (Depends-on): Likewise.
27161         * modules/rmdir-tests (Depends-on): Likewise.
27162         * modules/symlink-tests (Depends-on): Likewise.
27163         * modules/symlinkat-tests (Depends-on): Likewise.
27164         * modules/unlink-tests (Depends-on): Likewise.
27165         * modules/utimens-tests (Depends-on): Likewise.
27166         * modules/utimensat-tests (Depends-on): Likewise.
27167
27168 2010-01-31  Bruno Haible  <bruno@clisp.org>
27169
27170         Perform the same test for many <math.h> functions.
27171         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27172         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27173         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27174         of gl_MATHFUNC.
27175         * modules/acos (configure.ac): Likewise.
27176         * modules/asin (configure.ac): Likewise.
27177         * modules/atan (configure.ac): Likewise.
27178         * modules/atan2 (configure.ac): Likewise.
27179         * modules/cbrt (configure.ac): Likewise.
27180         * modules/copysign (configure.ac): Likewise.
27181         * modules/cos (configure.ac): Likewise.
27182         * modules/cosh (configure.ac): Likewise.
27183         * modules/erf (configure.ac): Likewise.
27184         * modules/erfc (configure.ac): Likewise.
27185         * modules/exp (configure.ac): Likewise.
27186         * modules/fmod (configure.ac): Likewise.
27187         * modules/hypot (configure.ac): Likewise.
27188         * modules/j0 (configure.ac): Likewise.
27189         * modules/j1 (configure.ac): Likewise.
27190         * modules/jn (configure.ac): Likewise.
27191         * modules/lgamma (configure.ac): Likewise.
27192         * modules/log (configure.ac): Likewise.
27193         * modules/log10 (configure.ac): Likewise.
27194         * modules/log1p (configure.ac): Likewise.
27195         * modules/pow (configure.ac): Likewise.
27196         * modules/remainder (configure.ac): Likewise.
27197         * modules/sin (configure.ac): Likewise.
27198         * modules/sinh (configure.ac): Likewise.
27199         * modules/tan (configure.ac): Likewise.
27200         * modules/tanh (configure.ac): Likewise.
27201         * modules/y0 (configure.ac): Likewise.
27202         * modules/y1 (configure.ac): Likewise.
27203         * modules/yn (configure.ac): Likewise.
27204         Suggested by Paolo Bonzini.
27205
27206 2010-01-31  Bruno Haible  <bruno@clisp.org>
27207
27208         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27209
27210 2010-01-31  Bruno Haible  <bruno@clisp.org>
27211
27212         Work around getdelim() bug on FreeBSD 8.0.
27213         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27214         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27215         not work.
27216         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27217         is 1.
27218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27219         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27220         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27221         a non-zero size.
27222         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27223
27224 2010-01-31  Bruno Haible  <bruno@clisp.org>
27225
27226         Work around getline() bug on FreeBSD 8.0.
27227         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27228         and a non-zero size.
27229         * tests/test-getline.c (main): Likewise.
27230         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27231         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27232
27233 2010-01-28  Eric Blake  <ebb9@byu.net>
27234
27235         regex: fix build failure
27236         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27237         platforms.
27238
27239 2010-01-28  Jim Meyering  <meyering@redhat.com>
27240
27241         regex: do not ignore memory allocation failure
27242         * lib/regex_internal.c (create_cd_newstate): Detect
27243         re_node_set_init_copy failure.   Extracted from glibc commit
27244         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27245
27246         regex: sync more white-space changes from libc
27247         * lib/regex_internal.c: White-space only changes.
27248         * lib/regexec.c: Likewise.
27249
27250         regex: add many uses of __attribute_warn_unused_result__
27251         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27252         * lib/regexec.c: Likewise.
27253         Extracted from a messy glibc commit.
27254
27255         regcomp.c: spelling and merge-artifact from glibc
27256         * lib/regcomp.c: Merge remainder of glibc's
27257         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27258
27259         regcomp.c: sync white-space changes from glibc
27260         * lib/regcomp.c: Merge to accommodate white space
27261         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27262
27263         regcomp.c: do not ignore internal return values
27264         * lib/regcomp.c: Do not ignore internal return values.
27265         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27266         but without its white-space changes and spelling fixes.
27267
27268         regex_internal.h: define __attribute_warn_unused_result__
27269         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27270
27271         maint: add a syntax-check rule to check for vulnerable Makefile.in
27272         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27273
27274 2010-01-27  Jim Meyering  <meyering@redhat.com>
27275
27276         ncftpput-ftp: clean up spaces
27277         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27278         Remove trailing blanks.
27279
27280 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27281
27282         * build-aux/git-version-gen: Fix copyright statement.
27283         * build-aux/gnupload: Likewise.
27284         * tests/test-arcfour.c: Likewise.
27285         * tests/test-arctwo.c: Likewise.
27286         * tests/test-count-one-bits.c: Likewise.
27287         * tests/test-crc.c: Likewise.
27288         * tests/test-des.c: Likewise.
27289         * tests/test-gc-arcfour.c: Likewise.
27290         * tests/test-gc-arctwo.c: Likewise.
27291         * tests/test-gc-des.c: Likewise.
27292         * tests/test-gc-hmac-md5.c: Likewise.
27293         * tests/test-gc-hmac-sha1.c: Likewise.
27294         * tests/test-gc-md2.c: Likewise.
27295         * tests/test-gc-md4.c: Likewise.
27296         * tests/test-gc-md5.c: Likewise.
27297         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27298         * tests/test-gc-rijndael.c: Likewise.
27299         * tests/test-gc-sha1.c: Likewise.
27300         * tests/test-gc.c: Likewise.
27301         * tests/test-gethostname.c: Likewise.
27302         * tests/test-gettimeofday.c: Likewise.
27303         * tests/test-hash.c: Likewise.
27304         * tests/test-hmac-md5.c: Likewise.
27305         * tests/test-hmac-sha1.c: Likewise.
27306         * tests/test-md2.c: Likewise.
27307         * tests/test-md4.c: Likewise.
27308         * tests/test-md5.c: Likewise.
27309         * tests/test-memchr.c: Likewise.
27310         * tests/test-memchr2.c: Likewise.
27311         * tests/test-memcmp.c: Likewise.
27312         * tests/test-memmem.c: Likewise.
27313         * tests/test-memrchr.c: Likewise.
27314         * tests/test-rawmemchr.c: Likewise.
27315         * tests/test-read-file.c: Likewise.
27316         * tests/test-rijndael.c: Likewise.
27317         * tests/test-sockets.c: Likewise.
27318         * tests/test-strchrnul.c: Likewise.
27319         * tests/test-strstr.c: Likewise.
27320         * tests/test-strtod.c: Likewise.
27321         * build-aux/ncftpput-ftp: Likewise.
27322
27323 2010-01-26  Eric Blake  <ebb9@byu.net>
27324
27325         ignore-value: update recommended header name
27326         * modules/ignore-value (Include): Only use <> for headers that
27327         exist in glibc.
27328
27329 2010-01-26  Jim Meyering  <meyering@redhat.com>
27330
27331         test-userspec.c: avoid compiler warnings
27332         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27333         and "initialization discards qualifiers..." warnings.
27334         Put the first "uid" in its own scope, and make char* members "const".
27335
27336 2010-01-25  Bruno Haible  <bruno@clisp.org>
27337
27338         gnulib-tool: Make warning diagnostics consistent.
27339         * gnulib-tool (func_warning): New function.
27340         Use it everywhere where gnulib-tool produces output to stderr and it is
27341         not a fatal error.
27342
27343 2010-01-25  Bruno Haible  <bruno@clisp.org>
27344
27345         Fix test dependencies.
27346         * modules/xstrtol-tests (Depends-on): Add inttypes.
27347         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27348
27349 2010-01-25 Pádraig Brady <P@draigBrady.com>
27350
27351         syntax-check: detect incorrect boolean macro values in config.h
27352         * modules/maintainer-makefile (configure.ac): Parameterize the location
27353         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27354         The logic is from Eric Blake and the location indicated by Jim Meyering.
27355         Note the more natural CONFIG_HEADER name is prohibited by automake
27356         for backwards compatibility reasons.
27357         * top/maint.mk (sc_Wundef_boolean): New rule.
27358
27359 2010-01-25  Jim Meyering  <meyering@redhat.com>
27360
27361         bootstrap: detect MacOS 10.6's shasum, too
27362         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27363         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27364
27365 2010-01-23  Jim Meyering  <meyering@redhat.com>
27366
27367         xstrtoll: new module
27368         * modules/xstrtoll: New file.
27369         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27370         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27371         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27372         ./configure fails if you use this module and lack "long long".
27373         * modules/xstrtoll-tests: New module.
27374         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27375         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27376         new init.sh-based test framework.
27377
27378 2010-01-24  Bruno Haible  <bruno@clisp.org>
27379
27380         Tests for module 'yn'.
27381         * modules/yn-tests: New file.
27382         * tests/test-yn.c: New file.
27383
27384         Tests for module 'y1'.
27385         * modules/y1-tests: New file.
27386         * tests/test-y1.c: New file.
27387
27388         Tests for module 'y0'.
27389         * modules/y0-tests: New file.
27390         * tests/test-y0.c: New file.
27391
27392         Tests for module 'tanh'.
27393         * modules/tanh-tests: New file.
27394         * tests/test-tanh.c: New file.
27395
27396         Tests for module 'tan'.
27397         * modules/tan-tests: New file.
27398         * tests/test-tan.c: New file.
27399
27400         Tests for module 'sqrt'.
27401         * modules/sqrt-tests: New file.
27402         * tests/test-sqrt.c: New file.
27403
27404         Tests for module 'sinh'.
27405         * modules/sinh-tests: New file.
27406         * tests/test-sinh.c: New file.
27407
27408         Tests for module 'sin'.
27409         * modules/sin-tests: New file.
27410         * tests/test-sin.c: New file.
27411
27412         Tests for module 'rint'.
27413         * modules/rint-tests: New file.
27414         * tests/test-rint.c: New file.
27415
27416         Tests for module 'remainder'.
27417         * modules/remainder-tests: New file.
27418         * tests/test-remainder.c: New file.
27419
27420         Tests for module 'pow'.
27421         * modules/pow-tests: New file.
27422         * tests/test-pow.c: New file.
27423
27424         Tests for module 'nextafter'.
27425         * modules/nextafter-tests: New file.
27426         * tests/test-nextafter.c: New file.
27427
27428         Tests for module 'modf'.
27429         * modules/modf-tests: New file.
27430         * tests/test-modf.c: New file.
27431
27432         Tests for module 'logb'.
27433         * modules/logb-tests: New file.
27434         * tests/test-logb.c: New file.
27435
27436         Tests for module 'log1p'.
27437         * modules/log1p-tests: New file.
27438         * tests/test-log1p.c: New file.
27439
27440         Tests for module 'log10'.
27441         * modules/log10-tests: New file.
27442         * tests/test-log10.c: New file.
27443
27444         Tests for module 'log'.
27445         * modules/log-tests: New file.
27446         * tests/test-log.c: New file.
27447
27448         Tests for module 'lgamma'.
27449         * modules/lgamma-tests: New file.
27450         * tests/test-lgamma.c: New file.
27451
27452         Tests for module 'ldexp'.
27453         * modules/ldexp-tests: New file.
27454         * tests/test-ldexp.c: New file.
27455
27456         Tests for module 'jn'.
27457         * modules/jn-tests: New file.
27458         * tests/test-jn.c: New file.
27459
27460         Tests for module 'j1'.
27461         * modules/j1-tests: New file.
27462         * tests/test-j1.c: New file.
27463
27464         Tests for module 'j0'.
27465         * modules/j0-tests: New file.
27466         * tests/test-j0.c: New file.
27467
27468         Tests for module 'hypot'.
27469         * modules/hypot-tests: New file.
27470         * tests/test-hypot.c: New file.
27471
27472         Tests for module 'fmod'.
27473         * modules/fmod-tests: New file.
27474         * tests/test-fmod.c: New file.
27475
27476         Tests for module 'fabs'.
27477         * modules/fabs-tests: New file.
27478         * tests/test-fabs.c: New file.
27479
27480         Tests for module 'exp'.
27481         * modules/exp-tests: New file.
27482         * tests/test-exp.c: New file.
27483
27484         Tests for module 'erfc'.
27485         * modules/erfc-tests: New file.
27486         * tests/test-erfc.c: New file.
27487
27488         Tests for module 'erf'.
27489         * modules/erf-tests: New file.
27490         * tests/test-erf.c: New file.
27491
27492         Tests for module 'cosh'.
27493         * modules/cosh-tests: New file.
27494         * tests/test-cosh.c: New file.
27495
27496         Tests for module 'cos'.
27497         * modules/cos-tests: New file.
27498         * tests/test-cos.c: New file.
27499
27500         Tests for module 'copysign'.
27501         * modules/copysign-tests: New file.
27502         * tests/test-copysign.c: New file.
27503
27504         Tests for module 'cbrt'.
27505         * modules/cbrt-tests: New file.
27506         * tests/test-cbrt.c: New file.
27507
27508         Tests for module 'atan2'.
27509         * modules/atan2-tests: New file.
27510         * tests/test-atan2.c: New file.
27511
27512         Tests for module 'atan'.
27513         * modules/atan-tests: New file.
27514         * tests/test-atan.c: New file.
27515
27516         Tests for module 'asin'.
27517         * modules/asin-tests: New file.
27518         * tests/test-asin.c: New file.
27519
27520         Tests for module 'acos'.
27521         * modules/acos-tests: New file.
27522         * tests/test-acos.c: New file.
27523
27524 2010-01-24  Bruno Haible  <bruno@clisp.org>
27525
27526         Fix tests for common <math.h> functions.
27527         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27528         code snippet that references the function pointer, rather than merely
27529         calling the function. Substitute the FUNC_LIBM variable.
27530         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27531         * modules/acos (configure.ac): Likewise.
27532         * modules/asin (configure.ac): Likewise.
27533         * modules/atan (configure.ac): Likewise.
27534         * modules/atan2 (configure.ac): Likewise.
27535         * modules/cbrt (configure.ac): Likewise.
27536         * modules/copysign (configure.ac): Likewise.
27537         * modules/cos (configure.ac): Likewise.
27538         * modules/cosh (configure.ac): Likewise.
27539         * modules/erf (configure.ac): Likewise.
27540         * modules/erfc (configure.ac): Likewise.
27541         * modules/exp (configure.ac): Likewise.
27542         * modules/fabs (configure.ac): Likewise.
27543         * modules/fmod (configure.ac): Likewise.
27544         * modules/hypot (configure.ac): Likewise.
27545         * modules/j0 (configure.ac): Likewise.
27546         * modules/j1 (configure.ac): Likewise.
27547         * modules/jn (configure.ac): Likewise.
27548         * modules/ldexp (configure.ac): Likewise.
27549         * modules/lgamma (configure.ac): Likewise.
27550         * modules/log (configure.ac): Likewise.
27551         * modules/log10 (configure.ac): Likewise.
27552         * modules/log1p (configure.ac): Likewise.
27553         * modules/logb (configure.ac): Likewise.
27554         * modules/modf (configure.ac): Likewise.
27555         * modules/nextafter (configure.ac): Likewise.
27556         * modules/pow (configure.ac): Likewise.
27557         * modules/remainder (configure.ac): Likewise.
27558         * modules/rint (configure.ac): Likewise.
27559         * modules/sin (configure.ac): Likewise.
27560         * modules/sinh (configure.ac): Likewise.
27561         * modules/tan (configure.ac): Likewise.
27562         * modules/tanh (configure.ac): Likewise.
27563         * modules/y0 (configure.ac): Likewise.
27564         * modules/y1 (configure.ac): Likewise.
27565         * modules/yn (configure.ac): Likewise.
27566
27567 2010-01-24  Bruno Haible  <bruno@clisp.org>
27568
27569         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27570         * tests/test-acosl.c (x): New variable.
27571         (main): Store argument in x and fetch it from x.
27572         * tests/test-asinl.c (x): New variable.
27573         (main): Store argument in x and fetch it from x.
27574         * tests/test-atanl.c (x): New variable.
27575         (main): Store argument in x and fetch it from x.
27576         * tests/test-cosl.c (x): New variable.
27577         (main): Store argument in x and fetch it from x.
27578         * tests/test-expl.c (x): New variable.
27579         (main): Store argument in x and fetch it from x.
27580         * tests/test-logl.c (x): New variable.
27581         (main): Store argument in x and fetch it from x.
27582         * tests/test-sinl.c (x): New variable.
27583         (main): Store argument in x and fetch it from x.
27584         * tests/test-sqrtl.c (x): New variable.
27585         (main): Store argument in x and fetch it from x.
27586         * tests/test-tanl.c (x): New variable.
27587         (main): Store argument in x and fetch it from x.
27588
27589 2010-01-24  Bruno Haible  <bruno@clisp.org>
27590
27591         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27592         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27593         assignments to the initial TESTS_ENVIRONMENT.
27594         * doc/gnulib.texi (Unit test modules): Document it.
27595         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27596         TESTS_ENVIRONMENT.
27597         * modules/btowc-tests (Makefile.am): Likewise.
27598         * modules/c-stack-tests (Makefile.am): Likewise.
27599         * modules/c-strcase-tests (Makefile.am): Likewise.
27600         * modules/copy-file-tests (Makefile.am): Likewise.
27601         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27602         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27603         * modules/mbrtowc-tests (Makefile.am): Likewise.
27604         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27605         * modules/mbscasestr-tests (Makefile.am): Likewise.
27606         * modules/mbschr-tests (Makefile.am): Likewise.
27607         * modules/mbscspn-tests (Makefile.am): Likewise.
27608         * modules/mbsinit-tests (Makefile.am): Likewise.
27609         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27610         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27611         * modules/mbspbrk-tests (Makefile.am): Likewise.
27612         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27613         * modules/mbsrchr-tests (Makefile.am): Likewise.
27614         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27615         * modules/mbsspn-tests (Makefile.am): Likewise.
27616         * modules/mbsstr-tests (Makefile.am): Likewise.
27617         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27618         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27619         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27620         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27621         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27622         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27623         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27624         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27625         * modules/wcrtomb-tests (Makefile.am): Likewise.
27626         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27627         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27628         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27629         assignments from TESTS_ENVIRONMENT.
27630         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27631         augmentation.
27632         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27633         * modules/atexit-tests (Makefile.am): Likewise.
27634         * modules/binary-io-tests (Makefile.am): Likewise.
27635         * modules/closein-tests (Makefile.am): Likewise.
27636         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27637         * modules/exclude-tests (Makefile.am): Likewise.
27638         * modules/fflush-tests (Makefile.am): Likewise.
27639         * modules/fpending-tests (Makefile.am): Likewise.
27640         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27641         * modules/freadahead-tests (Makefile.am): Likewise.
27642         * modules/freadptr-tests (Makefile.am): Likewise.
27643         * modules/freadseek-tests (Makefile.am): Likewise.
27644         * modules/fseek-tests (Makefile.am): Likewise.
27645         * modules/fseeko-tests (Makefile.am): Likewise.
27646         * modules/ftell-tests (Makefile.am): Likewise.
27647         * modules/ftello-tests (Makefile.am): Likewise.
27648         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27649         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27650         * modules/lseek-tests (Makefile.am): Likewise.
27651         * modules/parse-duration-tests (Makefile.am): Likewise.
27652         * modules/perror-tests (Makefile.am): Likewise.
27653         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27654         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27655         * modules/pipe-tests (Makefile.am): Likewise.
27656         * modules/pread-tests (Makefile.am): Likewise.
27657         * modules/printf-posix-tests (Makefile.am): Likewise.
27658         * modules/select-tests (Makefile.am): Likewise.
27659         * modules/sigpipe-tests (Makefile.am): Likewise.
27660         * modules/tsearch-tests (Makefile.am): Likewise.
27661         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27662         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27663         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27664         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27665         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27666         * modules/version-etc-tests (Makefile.am): Likewise.
27667         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27668         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27669         * modules/xalloc-die-tests (Makefile.am): Likewise.
27670         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27671         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27672         * modules/xstrtol-tests (Makefile.am): Likewise.
27673         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27674         * modules/yesno-tests (Makefile.am): Likewise.
27675         Suggested by Jim Meyering.
27676
27677 2010-01-24  Bruno Haible  <bruno@clisp.org>
27678
27679         More documentation.
27680         * doc/gnulib.texi (Writing modules): New chapter.
27681         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27682         the new chapter.
27683
27684 2010-01-24  Jim Meyering  <meyering@redhat.com>
27685
27686         maint.mk: do not prepend "./" after filtering
27687         * top/maint.mk (_prepend_srcdir_prefix): New variable
27688         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27689         "./" when $(srcdir) is ".".
27690
27691         define STREQ(a,b) consistently, removing useless parentheses
27692         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27693         since the only risk is that "a" or "b" contains an unparenthesized
27694         comma, but if either did that, STREQ would have 3 or more arguments.
27695         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27696         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27697         * lib/hash-triple.c (STREQ): Likewise.
27698         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27699         * lib/getugroups.c (STREQ): Likewise.
27700
27701 2010-01-23  Jim Meyering  <meyering@redhat.com>
27702
27703         maint.mk: fix syntax-check in a non-srcdir build directory
27704         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27705         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27706
27707 2010-01-22  Jim Meyering  <meyering@redhat.com>
27708
27709         userspec: add unit tests
27710         * tests/test-userspec.c: New file.
27711         * modules/userspec-tests: Likewise.
27712
27713 2010-01-21  Jim Meyering  <meyering@redhat.com>
27714
27715         maint.mk: handle source file names containing "." robustly
27716         * top/maint.mk (_dot_escaped_srcdir): Define.
27717         (VC_LIST): Use it in LHS of sed substitution.
27718
27719 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27720
27721         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27722         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27723         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27724         from a non-srcdir build.
27725
27726 2010-01-20  Eric Blake  <ebb9@byu.net>
27727
27728         warn-on-use: use instead of link-warning
27729         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27730         * modules/unistd (Depends-on, Makefile.am): Likewise.
27731         * modules/arpa_inet (Depends-on): Replace link-warning with
27732         warn-on-use.
27733         (Makefile.am): Update rules accordingly.
27734         * modules/ctype (Depends-on, Makefile.am): Likewise.
27735         * modules/dirent (Depends-on, Makefile.am): Likewise.
27736         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27737         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27738         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27739         * modules/locale (Depends-on, Makefile.am): Likewise.
27740         * modules/math (Depends-on, Makefile.am): Likewise.
27741         * modules/search (Depends-on, Makefile.am): Likewise.
27742         * modules/signal (Depends-on, Makefile.am): Likewise.
27743         * modules/spawn (Depends-on, Makefile.am): Likewise.
27744         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27745         * modules/string (Depends-on, Makefile.am): Likewise.
27746         * modules/strings (Depends-on, Makefile.am): Likewise.
27747         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27748         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27749         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27750         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27751         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27752         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27753         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27754         * modules/wchar (Depends-on, Makefile.am): Likewise.
27755         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27756         should be poisoned.
27757         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27758         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27759         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27760         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27761         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27762         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27763         * m4/math_h.m4 (gl_MATH_H): Likewise.
27764         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27765         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27766         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27767         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27768         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27769         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27770         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27771         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27772         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27773         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27774         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27775         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27776         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27777         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27778         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27779         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27780         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27781         GL_LINK_WARNING.
27782         * lib/ctype.in.h: Likewise.
27783         * lib/dirent.in.h: Likewise.
27784         * lib/fcntl.in.h: Likewise.
27785         * lib/inttypes.in.h: Likewise.
27786         * lib/langinfo.in.h: Likewise.
27787         * lib/locale.in.h: Likewise.
27788         * lib/math.in.h: Likewise.
27789         * lib/search.in.h: Likewise.
27790         * lib/signal.in.h: Likewise.
27791         * lib/spawn.in.h: Likewise.
27792         * lib/stdio.in.h: Likewise.
27793         * lib/stdlib.in.h: Likewise.
27794         * lib/string.in.h: Likewise.
27795         * lib/strings.in.h: Likewise.
27796         * lib/sys_file.in.h: Likewise.
27797         * lib/sys_ioctl.in.h: Likewise.
27798         * lib/sys_select.in.h: Likewise.
27799         * lib/sys_socket.in.h: Likewise.
27800         * lib/sys_stat.in.h: Likewise.
27801         * lib/sys_times.in.h: Likewise.
27802         * lib/sys_utsname.in.h: Likewise.
27803         * lib/unistd.in.h: Likewise.
27804         * lib/wchar.in.h: Likewise.
27805
27806 2010-01-20  Bruno Haible  <bruno@clisp.org>
27807
27808         Avoid duplicate -lm.
27809         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27810         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27811         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27812         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27813         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27814         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27815         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27816         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27817         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27818         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27819         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27820         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27821         Reported by Paolo Bonzini.
27822
27823 2010-01-19  Bruno Haible  <bruno@clisp.org>
27824
27825         langinfo, nl_langinfo: Relicense under LGPLv2+.
27826         * modules/langinfo (License): Change to LGPLv2+.
27827         * modules/nl_langinfo (License): Likewise.
27828         Patch by David Lutterkort <lutter@redhat.com>.
27829
27830 2010-01-19  Bruno Haible  <bruno@clisp.org>
27831
27832         Avoid compilation error with cc on OSF/1 5.1.
27833         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27834         statement, not before.
27835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27836
27837 2010-01-18  Bruno Haible  <bruno@clisp.org>
27838
27839         Avoid a link error due to the __printf__ symbol.
27840         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27841         and 2.6.x.
27842         (__format__, __printf__): Remove definitions.
27843         * lib/argp-fmtstream.h: Likewise.
27844         * lib/argp.h: Likewise.
27845         * lib/error.h: Likewise.
27846         * lib/vasnprintf.h: Likewise.
27847         * lib/xprintf.h: Likewise.
27848         * lib/xvasprintf.h: Likewise.
27849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27850
27851 2010-01-18  Bruno Haible  <bruno@clisp.org>
27852
27853         Tests for module 'tanl'.
27854         * modules/tanl-tests: New file.
27855         * tests/test-tanl.c: New file.
27856
27857         Tests for module 'sqrtl'.
27858         * modules/sqrtl-tests: New file.
27859         * tests/test-sqrtl.c: New file.
27860
27861         Tests for module 'sinl'.
27862         * modules/sinl-tests: New file.
27863         * tests/test-sinl.c: New file.
27864
27865         Tests for module 'logl'.
27866         * modules/logl-tests: New file.
27867         * tests/test-logl.c: New file.
27868
27869         Tests for module 'expl'.
27870         * modules/expl-tests: New file.
27871         * tests/test-expl.c: New file.
27872
27873         Tests for module 'cosl'.
27874         * modules/cosl-tests: New file.
27875         * tests/test-cosl.c: New file.
27876
27877         Tests for module 'atanl'.
27878         * modules/atanl-tests: New file.
27879         * tests/test-atanl.c: New file.
27880
27881         Tests for module 'asinl'.
27882         * modules/asinl-tests: New file.
27883         * tests/test-asinl.c: New file.
27884
27885         Tests for module 'acosl'.
27886         * modules/acosl-tests: New file.
27887         * tests/test-acosl.c: New file.
27888
27889         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27890         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27891         tanl): Use the standard gnulib idiom.
27892         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27893         * lib/sinl.c: Likewise.
27894         * lib/tanl.c: Don't include trigl.c.
27895         (kernel_tanl): Make static.
27896         * lib/sincosl.c: Include trigl.h first.
27897         * lib/trigl.c: Likewise.
27898         * m4/acosl.m4: New file.
27899         * m4/asinl.m4: New file.
27900         * m4/atanl.m4: New file.
27901         * m4/cosl.m4: New file.
27902         * m4/expl.m4: New file.
27903         * m4/logl.m4: New file.
27904         * m4/sinl.m4: New file.
27905         * m4/sqrtl.m4: New file.
27906         * m4/tanl.m4: New file.
27907         * m4/mathl.m4: Remove file.
27908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27909         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27910         Don't initialize GNULIB_MATHL.
27911         * modules/acosl: New file.
27912         * modules/asinl: New file.
27913         * modules/atanl: New file.
27914         * modules/cosl: New file.
27915         * modules/expl: New file.
27916         * modules/logl: New file.
27917         * modules/sinl: New file.
27918         * modules/sqrtl: New file.
27919         * modules/tanl: New file.
27920         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27921         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27922         substitute GNULIB_MATHL.
27923         * modules/mathl: Rewritten.
27924         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27925         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27926         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27927         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27928         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27929         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27930         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27931         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27932         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27933
27934 2010-01-18  Bruno Haible  <bruno@clisp.org>
27935
27936         sqrt: Make gl_FUNC_SQRT requirable.
27937         * m4/sqrt.m4: New file.
27938         * modules/sqrt (Files): Add it.
27939         (configure.ac): Invoke gl_FUNC_SQRT.
27940
27941 2010-01-18  Bruno Haible  <bruno@clisp.org>
27942
27943         New modules for common <math.h> functions.
27944         * m4/mathfunc.m4: New file.
27945         * modules/acos: New file.
27946         * modules/asin: New file.
27947         * modules/atan: New file.
27948         * modules/atan2: New file.
27949         * modules/cbrt: New file.
27950         * modules/copysign: New file.
27951         * modules/cos: New file.
27952         * modules/cosh: New file.
27953         * modules/erf: New file.
27954         * modules/erfc: New file.
27955         * modules/exp: New file.
27956         * modules/fabs: New file.
27957         * modules/fmod: New file.
27958         * modules/hypot: New file.
27959         * modules/j0: New file.
27960         * modules/j1: New file.
27961         * modules/jn: New file.
27962         * modules/ldexp: New file.
27963         * modules/lgamma: New file.
27964         * modules/log: New file.
27965         * modules/log10: New file.
27966         * modules/log1p: New file.
27967         * modules/logb: New file.
27968         * modules/modf: New file.
27969         * modules/nextafter: New file.
27970         * modules/pow: New file.
27971         * modules/remainder: New file.
27972         * modules/rint: New file.
27973         * modules/sin: New file.
27974         * modules/sinh: New file.
27975         * modules/sqrt: New file.
27976         * modules/tan: New file.
27977         * modules/tanh: New file.
27978         * modules/y0: New file.
27979         * modules/y1: New file.
27980         * modules/yn: New file.
27981         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27982         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27983         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27984         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27985         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27986         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27987         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27988         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27989         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27990         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27991         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27992         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27993         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27994         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27995         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27996         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27997         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27998         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27999         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28000         * doc/posix-functions/log.texi: Mention the 'log' module.
28001         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28002         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28003         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28004         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28005         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28006         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28007         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28008         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28009         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28010         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28011         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28012         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28013         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28014         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28015         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28016         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28017
28018 2010-01-18  Jim Meyering  <meyering@redhat.com>
28019
28020         ignore-value: relax license to LGPLv2+
28021         * modules/ignore-value (License): Relax to LGPLv2+.
28022
28023         getdate: don't leak when TZ contains two or more '"'s
28024         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28025         double quote in TZ after the first one.
28026
28027         readtokens: do not leak internal token_lengths buffer
28028         * lib/readtokens.c (readtokens): Free the local, lengths,
28029         when the supplied "token_lengths" parameter is NULL.
28030
28031 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28032
28033         Fix a couple of missing LIBTHREAD link failures on AIX.
28034         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28035         $(LIBTHREAD).
28036         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28037
28038         Link test-poll against INET_PTON_LIB.
28039         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28040         for inet_pton on Solaris 10.
28041
28042 2010-01-17  Bruno Haible  <bruno@clisp.org>
28043
28044         unistdio/*-sprintf: Fix typo in module description.
28045         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28046         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28047         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28048         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28049         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28050         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28051         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28052         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28053
28054 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28055
28056         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28057         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28058         variables in shell case patterns, for AIX and HP-UX ksh.
28059
28060         Split large sed scripts, for HP-UX sed.
28061         * modules/stdio: Split sed scripts around 50 sed commands,
28062         to avoid HP-UX limit of 99 commands, in the near future.
28063         * modules/string: Likewise.
28064         * modules/unistd: Likewise.
28065
28066         gnulib-tool: avoid writing in the current directory.
28067         * gnulib-tool (func_emit_lib_Makefile_am)
28068         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28069         not in the current directory, so concurrent gnulib-tool
28070         instances do not interfere.
28071
28072 2010-01-16  Jim Meyering  <meyering@redhat.com>
28073
28074         doc: update users.txt
28075         * users.txt: Add grep.
28076         (diffutils, gzip): Update URLs.
28077
28078 2010-01-12  Bruno Haible  <bruno@clisp.org>
28079
28080         posix_spawn: Avoid test failure on Cygwin.
28081         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28082         characters.
28083         Reported by Simon Josefsson.
28084
28085 2010-01-12  Bruno Haible  <bruno@clisp.org>
28086
28087         * tests/test-cond.c (main): When skipping the test, show the reason.
28088
28089 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28090
28091         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28092
28093 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28094
28095         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28096         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28097
28098 2010-01-12  Eric Blake  <ebb9@byu.net>
28099
28100         build: guarantee AS_VAR_IF
28101         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28102         (gl_AS_VAR_IF): Move...
28103         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28104         Reported by Simon Josefsson.
28105
28106 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28107
28108         * lib/stdio.in.h: Fix typo.
28109
28110 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28111
28112         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28113         libgpg-error.
28114
28115 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28116
28117         * tests/test-xalloc-die.sh: Use $EXEEXT.
28118
28119 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28120             Bruno Haible  <bruno@clisp.org>
28121
28122         getlogin, getlogin_r: Avoid test failure.
28123         * tests/test-getlogin.c: Include <stdio.h>.
28124         (main): Skip the test when the function fails because stdin is not a
28125         tty.
28126         * tests/test-getlogin_r.c: Include <stdio.h>.
28127         (main): Skip the test when the function fails because stdin is not a
28128         tty.
28129
28130 2010-01-11  Eric Blake  <ebb9@byu.net>
28131
28132         tests: avoid more large file warnings
28133         * tests/test-fflush.c: Avoid warning about ftell use.
28134         * tests/test-fseek.c: Avoid warning about fseek use.
28135
28136 2010-01-10  Bruno Haible  <bruno@clisp.org>
28137
28138         nproc: Work better on Linux when /proc and /sys are not mounted.
28139         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28140         as lower bound when, on glibc/Linux systems,
28141         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28142         Suggested by Pádraig Brady <P@draigbrady.com>.
28143         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28144
28145         nproc: Refactor.
28146         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28147         extracted from num_processors.
28148         (num_processors): Call it.
28149
28150 2010-01-11  Jim Meyering  <meyering@redhat.com>
28151
28152         utimecmp: avoid new warning from upcoming gcc-4.5.0
28153         * lib/utimecmp.c (BILLION): Define using #define rather than an
28154         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28155
28156 2010-01-11  Eric Blake  <ebb9@byu.net>
28157
28158         math: add portability warnings for classification macros
28159         * modules/math (Depends-on): Add warn-on-use.
28160         (Makefile.am): Provide new substitutions.
28161         * m4/math_h.m4 (gl_MATH_H): Require inline.
28162         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28163         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28164         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28165         implement warnings.
28166
28167         unistd: warn on use of environ without module
28168         * modules/unistd (Depends-on): Add warn-on-use.
28169         (Makefile.am): Provide new substitutions.
28170         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28171         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28172
28173         stdio: warn on suspicious uses
28174         * modules/stdio (Depends-on): Add warn-on-use.
28175         (Makefile.am): Provide new substitutions.
28176         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28177         fseeko.
28178         * lib/stdio.in.h (gets): Always warn on use.
28179         (fseek, ftell): Adjust when warnings are issued, and honor
28180         _GL_NO_LARGE_FILES as a way to silence the warning.
28181         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28182         any warning about large file offsets.
28183         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28184         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28185         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28186         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28187         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28188         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28189         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28190         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28191
28192         warn-on-use: new module
28193         * modules/warn-on-use: New file.
28194         * build-aux/warn-on-use.h: Likewise.
28195         * m4/warn-on-use.m4: Likewise.
28196         * MODULES.html.sh (Support for building): Mention it.
28197
28198 2010-01-10  Bruno Haible  <bruno@clisp.org>
28199
28200         Tests for module 'unistr/u32-strdup'.
28201         * modules/unistr/u32-strdup-tests: New file.
28202         * tests/unistr/test-u32-strdup.c: New file.
28203
28204         Tests for module 'unistr/u16-strdup'.
28205         * modules/unistr/u16-strdup-tests: New file.
28206         * tests/unistr/test-u16-strdup.c: New file.
28207
28208         Tests for module 'unistr/u8-strdup'.
28209         * modules/unistr/u8-strdup-tests: New file.
28210         * tests/unistr/test-u8-strdup.c: New file.
28211         * tests/unistr/test-strdup.h: New file.
28212
28213         Tests for module 'unistr/u32-strncmp'.
28214         * modules/unistr/u32-strncmp-tests: New file.
28215         * tests/unistr/test-u32-strncmp.c: New file.
28216
28217         Tests for module 'unistr/u16-strncmp'.
28218         * modules/unistr/u16-strncmp-tests: New file.
28219         * tests/unistr/test-u16-strncmp.c: New file.
28220
28221         Tests for module 'unistr/u8-strncmp'.
28222         * modules/unistr/u8-strncmp-tests: New file.
28223         * tests/unistr/test-u8-strncmp.c: New file.
28224         * tests/unistr/test-strncmp.h: New file.
28225
28226         Tests for module 'unistr/u32-strcoll'.
28227         * modules/unistr/u32-strcoll-tests: New file.
28228         * tests/unistr/test-u32-strcoll.c: New file.
28229
28230         Tests for module 'unistr/u16-strcoll'.
28231         * modules/unistr/u16-strcoll-tests: New file.
28232         * tests/unistr/test-u16-strcoll.c: New file.
28233
28234         Tests for module 'unistr/u8-strcoll'.
28235         * modules/unistr/u8-strcoll-tests: New file.
28236         * tests/unistr/test-u8-strcoll.c: New file.
28237
28238         Tests for module 'unistr/u32-strcmp'.
28239         * modules/unistr/u32-strcmp-tests: New file.
28240         * tests/unistr/test-u32-strcmp.c: New file.
28241         * tests/unistr/test-u32-strcmp.h: New file.
28242
28243         Tests for module 'unistr/u16-strcmp'.
28244         * modules/unistr/u16-strcmp-tests: New file.
28245         * tests/unistr/test-u16-strcmp.c: New file.
28246         * tests/unistr/test-u16-strcmp.h: New file.
28247
28248         Tests for module 'unistr/u8-strcmp'.
28249         * modules/unistr/u8-strcmp-tests: New file.
28250         * tests/unistr/test-u8-strcmp.c: New file.
28251         * tests/unistr/test-u8-strcmp.h: New file.
28252         * tests/unistr/test-strcmp.h: New file.
28253
28254         Tests for module 'unistr/u32-strncat'.
28255         * modules/unistr/u32-strncat-tests: New file.
28256         * tests/unistr/test-u32-strncat.c: New file.
28257
28258         Tests for module 'unistr/u16-strncat'.
28259         * modules/unistr/u16-strncat-tests: New file.
28260         * tests/unistr/test-u16-strncat.c: New file.
28261
28262         Tests for module 'unistr/u8-strncat'.
28263         * modules/unistr/u8-strncat-tests: New file.
28264         * tests/unistr/test-u8-strncat.c: New file.
28265         * tests/unistr/test-strncat.h: New file.
28266
28267         Tests for module 'unistr/u32-strcat'.
28268         * modules/unistr/u32-strcat-tests: New file.
28269         * tests/unistr/test-u32-strcat.c: New file.
28270
28271         Tests for module 'unistr/u16-strcat'.
28272         * modules/unistr/u16-strcat-tests: New file.
28273         * tests/unistr/test-u16-strcat.c: New file.
28274
28275         Tests for module 'unistr/u8-strcat'.
28276         * modules/unistr/u8-strcat-tests: New file.
28277         * tests/unistr/test-u8-strcat.c: New file.
28278         * tests/unistr/test-strcat.h: New file.
28279
28280         Tests for module 'unistr/u32-stpncpy'.
28281         * modules/unistr/u32-stpncpy-tests: New file.
28282         * tests/unistr/test-u32-stpncpy.c: New file.
28283
28284         Tests for module 'unistr/u16-stpncpy'.
28285         * modules/unistr/u16-stpncpy-tests: New file.
28286         * tests/unistr/test-u16-stpncpy.c: New file.
28287
28288         Tests for module 'unistr/u8-stpncpy'.
28289         * modules/unistr/u8-stpncpy-tests: New file.
28290         * tests/unistr/test-u8-stpncpy.c: New file.
28291         * tests/unistr/test-stpncpy.h: New file.
28292
28293         Tests for module 'unistr/u32-strncpy'.
28294         * modules/unistr/u32-strncpy-tests: New file.
28295         * tests/unistr/test-u32-strncpy.c: New file.
28296
28297         Tests for module 'unistr/u16-strncpy'.
28298         * modules/unistr/u16-strncpy-tests: New file.
28299         * tests/unistr/test-u16-strncpy.c: New file.
28300
28301         Tests for module 'unistr/u8-strncpy'.
28302         * modules/unistr/u8-strncpy-tests: New file.
28303         * tests/unistr/test-u8-strncpy.c: New file.
28304         * tests/unistr/test-strncpy.h: New file.
28305
28306         Tests for module 'unistr/u32-stpcpy'.
28307         * modules/unistr/u32-stpcpy-tests: New file.
28308         * tests/unistr/test-u32-stpcpy.c: New file.
28309
28310         Tests for module 'unistr/u16-stpcpy'.
28311         * modules/unistr/u16-stpcpy-tests: New file.
28312         * tests/unistr/test-u16-stpcpy.c: New file.
28313
28314         Tests for module 'unistr/u8-stpcpy'.
28315         * modules/unistr/u8-stpcpy-tests: New file.
28316         * tests/unistr/test-u8-stpcpy.c: New file.
28317         * tests/unistr/test-stpcpy.h: New file.
28318
28319         Tests for module 'unistr/u32-strcpy'.
28320         * modules/unistr/u32-strcpy-tests: New file.
28321         * tests/unistr/test-u32-strcpy.c: New file.
28322
28323         Tests for module 'unistr/u16-strcpy'.
28324         * modules/unistr/u16-strcpy-tests: New file.
28325         * tests/unistr/test-u16-strcpy.c: New file.
28326
28327         Tests for module 'unistr/u8-strcpy'.
28328         * modules/unistr/u8-strcpy-tests: New file.
28329         * tests/unistr/test-u8-strcpy.c: New file.
28330         * tests/unistr/test-strcpy.h: New file.
28331
28332         Tests for module 'unistr/u32-strnlen'.
28333         * modules/unistr/u32-strnlen-tests: New file.
28334         * tests/unistr/test-u32-strnlen.c: New file.
28335
28336         Tests for module 'unistr/u16-strnlen'.
28337         * modules/unistr/u16-strnlen-tests: New file.
28338         * tests/unistr/test-u16-strnlen.c: New file.
28339
28340         Tests for module 'unistr/u8-strnlen'.
28341         * modules/unistr/u8-strnlen-tests: New file.
28342         * tests/unistr/test-u8-strnlen.c: New file.
28343         * tests/unistr/test-strnlen.h: New file.
28344
28345         Tests for module 'unistr/u32-strlen'.
28346         * modules/unistr/u32-strlen-tests: New file.
28347         * tests/unistr/test-u32-strlen.c: New file.
28348
28349         Tests for module 'unistr/u16-strlen'.
28350         * modules/unistr/u16-strlen-tests: New file.
28351         * tests/unistr/test-u16-strlen.c: New file.
28352
28353         Tests for module 'unistr/u8-strlen'.
28354         * modules/unistr/u8-strlen-tests: New file.
28355         * tests/unistr/test-u8-strlen.c: New file.
28356
28357         Tests for module 'unistr/u32-prev'.
28358         * modules/unistr/u32-prev-tests: New file.
28359         * tests/unistr/test-u32-prev.c: New file.
28360
28361         Tests for module 'unistr/u16-prev'.
28362         * modules/unistr/u16-prev-tests: New file.
28363         * tests/unistr/test-u16-prev.c: New file.
28364
28365         Tests for module 'unistr/u8-prev'.
28366         * modules/unistr/u8-prev-tests: New file.
28367         * tests/unistr/test-u8-prev.c: New file.
28368
28369         Tests for module 'unistr/u32-next'.
28370         * modules/unistr/u32-next-tests: New file.
28371         * tests/unistr/test-u32-next.c: New file.
28372
28373         Tests for module 'unistr/u16-next'.
28374         * modules/unistr/u16-next-tests: New file.
28375         * tests/unistr/test-u16-next.c: New file.
28376
28377         Tests for module 'unistr/u8-next'.
28378         * modules/unistr/u8-next-tests: New file.
28379         * tests/unistr/test-u8-next.c: New file.
28380
28381         Tests for module 'unistr/u32-strmbtouc'.
28382         * modules/unistr/u32-strmbtouc-tests: New file.
28383         * tests/unistr/test-u32-strmbtouc.c: New file.
28384
28385         Tests for module 'unistr/u16-strmbtouc'.
28386         * modules/unistr/u16-strmbtouc-tests: New file.
28387         * tests/unistr/test-u16-strmbtouc.c: New file.
28388
28389         Tests for module 'unistr/u8-strmbtouc'.
28390         * modules/unistr/u8-strmbtouc-tests: New file.
28391         * tests/unistr/test-u8-strmbtouc.c: New file.
28392
28393         Tests for module 'unistr/u32-strmblen'.
28394         * modules/unistr/u32-strmblen-tests: New file.
28395         * tests/unistr/test-u32-strmblen.c: New file.
28396
28397         Tests for module 'unistr/u16-strmblen'.
28398         * modules/unistr/u16-strmblen-tests: New file.
28399         * tests/unistr/test-u16-strmblen.c: New file.
28400
28401         Tests for module 'unistr/u8-strmblen'.
28402         * modules/unistr/u8-strmblen-tests: New file.
28403         * tests/unistr/test-u8-strmblen.c: New file.
28404
28405         Tests for module 'unistr/u32-cpy-alloc'.
28406         * modules/unistr/u32-cpy-alloc-tests: New file.
28407         * tests/unistr/test-u32-cpy-alloc.c: New file.
28408
28409         Tests for module 'unistr/u16-cpy-alloc'.
28410         * modules/unistr/u16-cpy-alloc-tests: New file.
28411         * tests/unistr/test-u16-cpy-alloc.c: New file.
28412
28413         Tests for module 'unistr/u8-cpy-alloc'.
28414         * modules/unistr/u8-cpy-alloc-tests: New file.
28415         * tests/unistr/test-u8-cpy-alloc.c: New file.
28416         * tests/unistr/test-cpy-alloc.h: New file.
28417
28418         Tests for module 'unistr/u32-mbsnlen'.
28419         * modules/unistr/u32-mbsnlen-tests: New file.
28420         * tests/unistr/test-u32-mbsnlen.c: New file.
28421
28422         Tests for module 'unistr/u16-mbsnlen'.
28423         * modules/unistr/u16-mbsnlen-tests: New file.
28424         * tests/unistr/test-u16-mbsnlen.c: New file.
28425
28426         Tests for module 'unistr/u8-mbsnlen'.
28427         * modules/unistr/u8-mbsnlen-tests: New file.
28428         * tests/unistr/test-u8-mbsnlen.c: New file.
28429
28430         Tests for module 'unistr/u32-chr'.
28431         * modules/unistr/u32-chr-tests: New file.
28432         * tests/unistr/test-u32-chr.c: New file.
28433
28434         Tests for module 'unistr/u16-chr'.
28435         * modules/unistr/u16-chr-tests: New file.
28436         * tests/unistr/test-u16-chr.c: New file.
28437
28438         Tests for module 'unistr/u8-chr'.
28439         * modules/unistr/u8-chr-tests: New file.
28440         * tests/unistr/test-u8-chr.c: New file.
28441         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28442
28443         Tests for module 'unistr/u32-cmp2'.
28444         * modules/unistr/u32-cmp2-tests: New file.
28445         * tests/unistr/test-u32-cmp2.c: New file.
28446
28447         Tests for module 'unistr/u16-cmp2'.
28448         * modules/unistr/u16-cmp2-tests: New file.
28449         * tests/unistr/test-u16-cmp2.c: New file.
28450
28451         Tests for module 'unistr/u8-cmp2'.
28452         * modules/unistr/u8-cmp2-tests: New file.
28453         * tests/unistr/test-u8-cmp2.c: New file.
28454         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28455
28456         Tests for module 'unistr/u32-cmp'.
28457         * modules/unistr/u32-cmp-tests: New file.
28458         * tests/unistr/test-u32-cmp.c: New file.
28459
28460         Tests for module 'unistr/u16-cmp'.
28461         * modules/unistr/u16-cmp-tests: New file.
28462         * tests/unistr/test-u16-cmp.c: New file.
28463
28464         Tests for module 'unistr/u8-cmp'.
28465         * modules/unistr/u8-cmp-tests: New file.
28466         * tests/unistr/test-u8-cmp.c: New file.
28467         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28468
28469         Tests for module 'unistr/u32-set'.
28470         * modules/unistr/u32-set-tests: New file.
28471         * tests/unistr/test-u32-set.c: New file.
28472
28473         Tests for module 'unistr/u16-set'.
28474         * modules/unistr/u16-set-tests: New file.
28475         * tests/unistr/test-u16-set.c: New file.
28476
28477         Tests for module 'unistr/u8-set'.
28478         * modules/unistr/u8-set-tests: New file.
28479         * tests/unistr/test-u8-set.c: New file.
28480         * tests/unistr/test-set.h: New file.
28481
28482         Tests for module 'unistr/u32-move'.
28483         * modules/unistr/u32-move-tests: New file.
28484         * tests/unistr/test-u32-move.c: New file.
28485
28486         Tests for module 'unistr/u16-move'.
28487         * modules/unistr/u16-move-tests: New file.
28488         * tests/unistr/test-u16-move.c: New file.
28489
28490         Tests for module 'unistr/u8-move'.
28491         * modules/unistr/u8-move-tests: New file.
28492         * tests/unistr/test-u8-move.c: New file.
28493         * tests/unistr/test-move.h: New file.
28494
28495         Tests for module 'unistr/u32-cpy'.
28496         * modules/unistr/u32-cpy-tests: New file.
28497         * tests/unistr/test-u32-cpy.c: New file.
28498
28499         Tests for module 'unistr/u16-cpy'.
28500         * modules/unistr/u16-cpy-tests: New file.
28501         * tests/unistr/test-u16-cpy.c: New file.
28502
28503         Tests for module 'unistr/u8-cpy'.
28504         * modules/unistr/u8-cpy-tests: New file.
28505         * tests/unistr/test-u8-cpy.c: New file.
28506         * tests/unistr/test-cpy.h: New file.
28507
28508 2010-01-09  Bruno Haible  <bruno@clisp.org>
28509
28510         Tests for module 'unistr/u32-uctomb'.
28511         * modules/unistr/u32-uctomb-tests: New file.
28512         * tests/unistr/test-u32-uctomb.c: New file.
28513
28514         Tests for module 'unistr/u16-uctomb'.
28515         * modules/unistr/u16-uctomb-tests: New file.
28516         * tests/unistr/test-u16-uctomb.c: New file.
28517
28518         Tests for module 'unistr/u8-uctomb'.
28519         * modules/unistr/u8-uctomb-tests: New file.
28520         * tests/unistr/test-u8-uctomb.c: New file.
28521
28522         Tests for module 'unistr/u32-mbtoucr'.
28523         * modules/unistr/u32-mbtoucr-tests: New file.
28524         * tests/unistr/test-u32-mbtoucr.c: New file.
28525
28526         Tests for module 'unistr/u16-mbtoucr'.
28527         * modules/unistr/u16-mbtoucr-tests: New file.
28528         * tests/unistr/test-u16-mbtoucr.c: New file.
28529
28530         Tests for module 'unistr/u8-mbtoucr'.
28531         * modules/unistr/u8-mbtoucr-tests: New file.
28532         * tests/unistr/test-u8-mbtoucr.c: New file.
28533
28534         Tests for module 'unistr/u32-mbtouc'.
28535         * modules/unistr/u32-mbtouc-tests: New file.
28536         * tests/unistr/test-u32-mbtouc.c: New file.
28537
28538         Tests for module 'unistr/u16-mbtouc'.
28539         * modules/unistr/u16-mbtouc-tests: New file.
28540         * tests/unistr/test-u16-mbtouc.c: New file.
28541
28542         Tests for module 'unistr/u8-mbtouc'.
28543         * modules/unistr/u8-mbtouc-tests: New file.
28544         * tests/unistr/test-u8-mbtouc.c: New file.
28545
28546         Tests for module 'unistr/u32-mbtouc-unsafe'.
28547         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28548         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28549         * tests/unistr/test-u32-mbtouc.h: New file.
28550
28551         Tests for module 'unistr/u16-mbtouc-unsafe'.
28552         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28553         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28554         * tests/unistr/test-u16-mbtouc.h: New file.
28555
28556         Tests for module 'unistr/u8-mbtouc-unsafe'.
28557         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28558         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28559         * tests/unistr/test-u8-mbtouc.h: New file.
28560
28561         Tests for module 'unistr/u32-mblen'.
28562         * modules/unistr/u32-mblen-tests: New file.
28563         * tests/unistr/test-u32-mblen.c: New file.
28564
28565         Tests for module 'unistr/u16-mblen'.
28566         * modules/unistr/u16-mblen-tests: New file.
28567         * tests/unistr/test-u16-mblen.c: New file.
28568
28569         Tests for module 'unistr/u8-mblen'.
28570         * modules/unistr/u8-mblen-tests: New file.
28571         * tests/unistr/test-u8-mblen.c: New file.
28572
28573         Tests for module 'unistr/u32-to-u16'.
28574         * modules/unistr/u32-to-u16-tests: New file.
28575         * tests/unistr/test-u32-to-u16.c: New file.
28576
28577         Tests for module 'unistr/u32-to-u8'.
28578         * modules/unistr/u32-to-u8-tests: New file.
28579         * tests/unistr/test-u32-to-u8.c: New file.
28580
28581         Tests for module 'unistr/u16-to-u32'.
28582         * modules/unistr/u16-to-u32-tests: New file.
28583         * tests/unistr/test-u16-to-u32.c: New file.
28584
28585         Tests for module 'unistr/u16-to-u8'.
28586         * modules/unistr/u16-to-u8-tests: New file.
28587         * tests/unistr/test-u16-to-u8.c: New file.
28588
28589         Tests for module 'unistr/u8-to-u32'.
28590         * modules/unistr/u8-to-u32-tests: New file.
28591         * tests/unistr/test-u8-to-u32.c: New file.
28592
28593         Tests for module 'unistr/u8-to-u16'.
28594         * modules/unistr/u8-to-u16-tests: New file.
28595         * tests/unistr/test-u8-to-u16.c: New file.
28596
28597         Tests for module 'unistr/u32-check'.
28598         * modules/unistr/u32-check-tests: New file.
28599         * tests/unistr/test-u32-check.c: New file.
28600
28601         Tests for module 'unistr/u16-check'.
28602         * modules/unistr/u16-check-tests: New file.
28603         * tests/unistr/test-u16-check.c: New file.
28604
28605         Tests for module 'unistr/u8-check'.
28606         * modules/unistr/u8-check-tests: New file.
28607         * tests/unistr/test-u8-check.c: New file.
28608
28609         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28610         (category_equals): New function.
28611         (main): Add more tests.
28612         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28613
28614         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28615
28616 2010-01-10  Bruno Haible  <bruno@clisp.org>
28617
28618         unistr/u*-strcoll: Try harder to distinguish different strings.
28619         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28620         compare s1 and s2 to see if they are different.
28621
28622 2010-01-10  Bruno Haible  <bruno@clisp.org>
28623
28624         unistr/u*-stpncpy: Fix the return value.
28625         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28626         description of the return value consistent with stpncpy in glibc.
28627         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28628         written non-NUL unit.
28629
28630 2010-01-10  Bruno Haible  <bruno@clisp.org>
28631
28632         unistr/u*-next: Add missing dependencies.
28633         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28634         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28635         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28636
28637 2010-01-10  Bruno Haible  <bruno@clisp.org>
28638
28639         unistr/u8-mbsnlen: Fix return value for incomplete character.
28640         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28641         u8_mblen.
28642         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28643         Remove unistr/u8-mblen.
28644         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28645         u16_mblen.
28646         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28647         Remove unistr/u16-mblen.
28648
28649 2010-01-10  Bruno Haible  <bruno@clisp.org>
28650
28651         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28652         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28653         Reported by Brian Gough <bjg@gnu.org> and
28654         Chris Clayton <chris2553@googlemail.com> via
28655         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28656
28657 2010-01-09  Bruno Haible  <bruno@clisp.org>
28658
28659         unistr/u16-to-u32: Reject invalid input.
28660         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28661         u16_mbtouc.
28662         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28663         Remove unistr/u16-mbtouc.
28664
28665         unistr/u16-to-u8: Reject invalid input.
28666         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28667         u16_mbtouc.
28668         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28669         Remove unistr/u16-mbtouc.
28670
28671         unistr/u8-to-u32: Reject invalid input.
28672         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28673         u8_mbtouc.
28674         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28675         Remove unistr/u8-mbtouc.
28676
28677         unistr/u8-to-u16: Reject invalid input.
28678         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28679         u8_mbtouc.
28680         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28681         Remove unistr/u8-mbtouc.
28682
28683 2010-01-09  Bruno Haible  <bruno@clisp.org>
28684
28685         Tests for module 'getlogin'.
28686         * modules/getlogin-tests: New file.
28687         * tests/test-getlogin.c: New file.
28688
28689         New module 'getlogin'.
28690         * lib/unistd.in.h (getlogin): New declaration.
28691         * lib/getlogin.c: New file.
28692         * m4/getlogin.m4: New file.
28693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28694         HAVE_GETLOGIN.
28695         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28696         HAVE_GETLOGIN.
28697         * modules/getlogin: New file.
28698         * doc/posix-functions/getlogin.texi: Mention the new module.
28699         Reported by John W. Eaton <jwe@gnu.org>.
28700
28701 2010-01-09  Bruno Haible  <bruno@clisp.org>
28702
28703         getlogin_r: Support for native Windows.
28704         * lib/getlogin_r.c: Include <windows.h>
28705         (getlogin_r): Implement for native Windows.
28706         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28707         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28708         via John W. Eaton <jwe@gnu.org>.
28709
28710 2010-01-09  Bruno Haible  <bruno@clisp.org>
28711
28712         getlogin_r: Small fixes.
28713         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28714         succeeds.
28715         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28716         before testing whether getlogin_r is declared. No need to set
28717         HAVE_DECL_GETLOGIN_R to 1.
28718         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28719
28720 2010-01-09  Bruno Haible  <bruno@clisp.org>
28721
28722         * lib/unistd.in.h (getlogin_r): Add comment.
28723
28724 2010-01-09  Bruno Haible  <bruno@clisp.org>
28725
28726         Tests for module 'getlogin_r'.
28727         * modules/getlogin_r-tests: New file.
28728         * tests/test-getlogin_r.c: New file.
28729
28730 2010-01-09  Jim Meyering  <meyering@redhat.com>
28731
28732         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28733         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28734         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28735
28736 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28737
28738         * lib/dup2.c (rpl_dup2): Improve comment.
28739
28740 2010-01-08  Eric Blake  <ebb9@byu.net>
28741
28742         maint.mk: allow packages to add makefile @@ exceptions
28743         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28744         (sc_makefile_check): Rename...
28745         (sc_makefile_at_at_check): ...to this, and use hook.
28746
28747         dup2: work around mingw bug
28748         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28749         Reported by Simon Josefsson.
28750
28751 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28752
28753         glob: Fix C++ compilation.
28754         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28755         C++.
28756
28757 2010-01-07  Bruno Haible  <bruno@clisp.org>
28758
28759         Fix indentation of wctype.in.h, broken since 2007-01-06.
28760         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28761
28762 2010-01-07  Bruno Haible  <bruno@clisp.org>
28763
28764         mbslen: Avoid collision with system function.
28765         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28766         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28767         * m4/mbslen.m4: New file.
28768         * modules/mbslen (Files): Add it.
28769         (configure.ac): Invoke gl_MBSLEN.
28770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28771         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28772         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28773         via Ian Beckwith <ianb@erislabs.net>.
28774
28775 2010-01-07  Bruno Haible  <bruno@clisp.org>
28776
28777         dirent: Document the last fix.
28778         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28779
28780 2010-01-07  Bruno Haible  <bruno@clisp.org>
28781
28782         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28783         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28784         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28785         va_list are defined.
28786         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28787         Reported by Eric Blake.
28788
28789 2010-01-07  Bruno Haible  <bruno@clisp.org>
28790
28791         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28792         * modules/xlist (Depends-on): Add 'list',
28793         * modules/xoset (Depends-on): Add 'oset'.
28794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28795
28796 2010-01-07  Bruno Haible  <bruno@clisp.org>
28797
28798         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28799         * doc/posix-functions/strncasecmp.texi: Likewise.
28800
28801 2010-01-07  Bruno Haible  <bruno@clisp.org>
28802
28803         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28804
28805 2010-01-07  John W. Eaton  <jwe@octave.org>
28806
28807         wctype: allow C++ use
28808         * lib/wctype.in.h: Add extern "C" block for C++.
28809
28810 2010-01-06  Eric Blake  <ebb9@byu.net>
28811
28812         maint.mk: detect incorrect GFDL usage
28813         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28814
28815 2010-01-06  Jim Meyering  <meyering@redhat.com>
28816         and Eric Blake  <ebb9@byu.net>
28817
28818         maint.mk: ignore multi-line copyright in NEWS
28819         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28820
28821 2010-01-06  Eric Blake  <ebb9@byu.net>
28822
28823         select: add missing dependency
28824         * modules/select-tests (Depends-on): Move sockets dependency...
28825         * modules/select (Depends-on): ...here.
28826         Reported by Ian Beckwith.
28827
28828         doc: regenerate INSTALL
28829         * doc/INSTALL: Reflect recent autoconf update.
28830         * doc/INSTALL.ISO: Likewise.
28831         * doc/INSTALL.UTF-8: Likewise.
28832
28833         pread: fix compilation on glibc
28834         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28835         Reported by Ralf Wildenhues.
28836
28837         dirent: fix test failure
28838         * lib/dirent.in.h (includes): Guarantee ino_t.
28839         Reported by Ralf Wildenhues.
28840
28841 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28842
28843         linkat, renameat: avoid bad free
28844         * lib/at-func2.c (at_func2): Fix typo.
28845         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28846
28847 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28848
28849         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28850         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28851         to avoid failure of symlink test later.
28852
28853 2010-01-06  Eric Blake  <ebb9@byu.net>
28854
28855         stdio, unistd: guarantee ssize_t
28856         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28857         2008 are exposed when needed.
28858         * lib/stdio.in.h (includes): Likewise.
28859         Reported by Ralf Wildenhues.
28860
28861 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28862
28863         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28864         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28865         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28866
28867 2010-01-06  Jim Meyering  <meyering@redhat.com>
28868
28869         readtokens: this module *does* require xalloc.h
28870         It uses only functions that were omitted by the old syntax-check rule.
28871         * lib/readtokens.c: Include "xalloc.h" once again.
28872         * modules/readtokens (Depends-on): Add xalloc.
28873         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28874
28875 2010-01-05  Eric Blake  <ebb9@byu.net>
28876
28877         maint: support 'make announcement' from a VPATH build
28878         * top/maint.mk (announcement): Look for correct NEWS file.
28879
28880 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28881
28882         utimens (fdutimens): ignore a negative FD, per contract
28883         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28884         when we have a valid file descriptor.  Otherwise, using a brand
28885         new glibc (with just-patched futimens that now fails with EBADF)
28886         would cause this function to fail with ENOSYS.
28887         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28888         See also http://bugzilla.redhat.com/552320.
28889
28890 2010-01-05  Eric Blake  <ebb9@byu.net>
28891
28892         strcase: document what it provides
28893         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28894         gnulib module.
28895         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28896         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28897
28898 2010-01-05  Jim Meyering  <meyering@redhat.com>
28899
28900         maint: remove useless inclusions of "xalloc.h"
28901         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28902         * lib/readtokens.c: Likewise.
28903         * lib/same.c: Likewise.
28904         * modules/getloadavg (Depends-on): Remove xalloc.
28905         * modules/readtokens: Likewise.
28906         * modules/same: Likewise.
28907
28908         maint.mk: include 4 more function names in alloca.h-checking regexp
28909         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28910         regexp.  Before, we would give a false-positive (saying alloca.h
28911         is included unnecessarily) when the only uses involved omitted symbols.
28912
28913         xalloc.h: use consistent formatting
28914         * lib/xalloc.h: Move declarations to start in the first column.
28915
28916 2010-01-05  Eric Blake  <ebb9@byu.net>
28917
28918         mkdir: avoid xalloc
28919         * lib/mkdir.c (includes): Drop unused header.
28920         Reported by John W. Eaton.
28921
28922 2010-01-04  Jim Meyering  <meyering@redhat.com>
28923
28924         nl_langinfo: avoid configure-time syntax error
28925         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28926         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28927         the empty string.  Don't let that provoke a shell syntax error.
28928
28929         regcomp, regexec, fnmatch: avoid array bounds read error
28930         * lib/regcomp.c (build_equiv_class): From glibc:
28931         Use only the low 24 bits of a findidx return value as an index
28932         into the weights array.  Patch by Ulrich Drepper:
28933         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28934         * lib/regexec.c (check_node_accept_bytes): Likewise.
28935         * lib/fnmatch_loop.c (FCT): Likewise.
28936
28937         regcomp: skip collseq lookup when there are no rules
28938         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28939         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28940
28941         regcomp: recognize ill-formed { } expressions
28942         * lib/regcomp.c (parse_dup_op): From glibc:
28943         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28944
28945         regcomp: fix typo in comment
28946         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28947         s/satisfy/satisfies/.
28948
28949         regcomp: sync from glibc: remove dead store
28950         * lib/regcomp.c (duplicate_node_closure): Remove useless
28951         search_duplicated_node call and dead store.
28952
28953         regcomp: sync from glibc; always use nl_langinfo
28954         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28955         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28956         * modules/regex (Depends-on): Add nl_langinfo.
28957
28958 2010-01-04  Eric Blake  <ebb9@byu.net>
28959
28960         fdopendir: fix configure test
28961         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28962
28963 2010-01-01  Bruno Haible  <bruno@clisp.org>
28964
28965         wchar: Remove unused configure check.
28966         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28967
28968 2010-01-01  Eric Blake  <ebb9@byu.net>
28969
28970         headers: make check of system header explicit
28971         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28972         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28973         ourselves.
28974         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28975         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28976         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28977         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28978         internals.
28979         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28980         missing.
28981         Suggested by Bruno Haible.
28982
28983 2010-01-01  Jim Meyering  <meyering@redhat.com>
28984
28985         ChangeLog: tweak to eliminate unnecessary copyright line
28986         * ChangeLog: Remove a copyright line that was mistakenly updated
28987         by today's update-copyright run.  Reported by Eric Blake.
28988
28989         test-update-copyright: don't let envvar setting cause test failure
28990         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28991
28992 2010-01-01  Bruno Haible  <bruno@clisp.org>
28993
28994         localename: Avoid gcc warning.
28995         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28996         function if it is not used.
28997
28998 2010-01-01  Jim Meyering  <meyering@redhat.com>
28999
29000         update nearly all FSF copyright year lists to include 2010
29001         Use the same procedure as for 2009, outlined in
29002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29003
29004         version-etc: set COPYRIGHT_YEAR to 2010
29005         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29006
29007 2009-12-31  Eric Blake  <ebb9@byu.net>
29008
29009         doc: correct availability of cygwin 1.5.x getopt
29010         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29011         variables.
29012         * doc/posix-functions/opterr.texi (opterr): Likewise.
29013         * doc/posix-functions/optind.texi (optind): Likewise.
29014         * doc/posix-functions/optopt.texi (optopt): Likewise.
29015         * doc/posix-functions/tzname.texi (tzname): Likewise.
29016
29017         openat: update maintainer
29018         * modules/openat (Maintainer): Add myself.
29019
29020         utimens: avoid shadowing warning
29021         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29022         buffers into one, to avoid shadowing, as well as avoiding a
29023         redundant stat.
29024         Reported by Jim Meyering.
29025
29026         test-dup2: avoid compiler warning
29027         * tests/test-dup2.c (is_inheritable): Only define if used.
29028
29029 2010-01-01  Bruno Haible  <bruno@clisp.org>
29030
29031         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29032         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29033         defined, use wctomb instead of wcrtomb.
29034
29035 2010-01-01  Bruno Haible  <bruno@clisp.org>
29036
29037         iconv: Reject native Solaris iconv.
29038         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29039         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29040
29041 2009-12-31  Bruno Haible  <bruno@clisp.org>
29042
29043         * tests/test-signal.c (main): Remove test of 'SIG'.
29044
29045 2009-12-31  Bruno Haible  <bruno@clisp.org>
29046
29047         spawn: Fix incomplete fix.
29048         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29049         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29050         warnings for GNULIB_POSIXCHECK again.
29051         Reported by Eric Blake.
29052
29053 2009-12-31  Bruno Haible  <bruno@clisp.org>
29054
29055         Avoid namespace pollution on glibc systems.
29056         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29057         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29058         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29059         glibc systems.
29060
29061 2009-12-31  Bruno Haible  <bruno@clisp.org>
29062
29063         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29064         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29065         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29066         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29067         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29068         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29069         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29070
29071 2009-12-31  Bruno Haible  <bruno@clisp.org>
29072
29073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29074         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29075         afterwards.
29076
29077 2009-12-31  Bruno Haible  <bruno@clisp.org>
29078
29079         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29080         SYS_UTSNAME_H.
29081
29082 2009-12-31  Bruno Haible  <bruno@clisp.org>
29083
29084         spawn: Fix misapplied patch.
29085         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29086         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29087         warnings for GNULIB_POSIXCHECK.
29088
29089 2009-12-31  Bruno Haible  <bruno@clisp.org>
29090
29091         times: Update after sys_times changed.
29092         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29093         * modules/times (Files): Add it.
29094         (configure.ac): Invoke gl_FUNC_TIMES.
29095
29096 2009-12-31  Bruno Haible  <bruno@clisp.org>
29097
29098         Use AC_C_INLINE where necessary.
29099         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29100         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29101         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29102         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29103         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29104         * m4/mbiter.m4 (gl_MBITER): Likewise.
29105         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29106         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29107         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29108         * modules/u64 (configure.ac): Likewise.
29109
29110 2009-12-31  Bruno Haible  <bruno@clisp.org>
29111
29112         Use AC_C_INLINE instead of module 'inline' where possible.
29113         * modules/inline (Description): Clarify purpose.
29114         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29115         * modules/count-one-bits (Depends-on): Remove inline.
29116         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29117         * modules/openat (Depends-on): Remove inline.
29118         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29119         instead of depending on module 'inline'.
29120         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29121         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29122         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29123         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29124         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29125         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29126         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29127         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29128         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29129         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29130         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29131         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29132         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29133         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29134         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29135         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29136         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29137         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29138         Likewise.
29139         * modules/unictype/property-ascii-hex-digit (Depends-on,
29140         configure.ac): Likewise.
29141         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29142         configure.ac): Likewise.
29143         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29144         configure.ac): Likewise.
29145         * modules/unictype/property-bidi-block-separator (Depends-on,
29146         configure.ac): Likewise.
29147         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29148         configure.ac): Likewise.
29149         * modules/unictype/property-bidi-common-separator (Depends-on,
29150         configure.ac): Likewise.
29151         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29152         Likewise.
29153         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29154         configure.ac): Likewise.
29155         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29156         configure.ac): Likewise.
29157         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29158         configure.ac): Likewise.
29159         * modules/unictype/property-bidi-european-digit (Depends-on,
29160         configure.ac): Likewise.
29161         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29162         configure.ac): Likewise.
29163         * modules/unictype/property-bidi-left-to-right (Depends-on,
29164         configure.ac): Likewise.
29165         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29166         configure.ac): Likewise.
29167         * modules/unictype/property-bidi-other-neutral (Depends-on,
29168         configure.ac): Likewise.
29169         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29170         Likewise.
29171         * modules/unictype/property-bidi-segment-separator (Depends-on,
29172         configure.ac): Likewise.
29173         * modules/unictype/property-bidi-whitespace (Depends-on,
29174         configure.ac): Likewise.
29175         * modules/unictype/property-combining (Depends-on, configure.ac):
29176         Likewise.
29177         * modules/unictype/property-composite (Depends-on, configure.ac):
29178         Likewise.
29179         * modules/unictype/property-currency-symbol (Depends-on,
29180         configure.ac): Likewise.
29181         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29182         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29183         Likewise.
29184         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29185         configure.ac): Likewise.
29186         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29187         Likewise.
29188         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29189         Likewise.
29190         * modules/unictype/property-extender (Depends-on, configure.ac):
29191         Likewise.
29192         * modules/unictype/property-format-control (Depends-on, configure.ac):
29193         Likewise.
29194         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29195         Likewise.
29196         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29197         Likewise.
29198         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29199         Likewise.
29200         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29201         Likewise.
29202         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29203         Likewise.
29204         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29205         Likewise.
29206         * modules/unictype/property-id-start (Depends-on, configure.ac):
29207         Likewise.
29208         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29209         Likewise.
29210         * modules/unictype/property-ids-binary-operator (Depends-on,
29211         configure.ac): Likewise.
29212         * modules/unictype/property-ids-trinary-operator (Depends-on,
29213         configure.ac): Likewise.
29214         * modules/unictype/property-ignorable-control (Depends-on,
29215         configure.ac): Likewise.
29216         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29217         Likewise.
29218         * modules/unictype/property-join-control (Depends-on, configure.ac):
29219         Likewise.
29220         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29221         Likewise.
29222         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29223         Likewise.
29224         * modules/unictype/property-logical-order-exception (Depends-on,
29225         configure.ac): Likewise.
29226         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29227         Likewise.
29228         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29229         * modules/unictype/property-non-break (Depends-on, configure.ac):
29230         Likewise.
29231         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29232         Likewise.
29233         * modules/unictype/property-numeric (Depends-on, configure.ac):
29234         Likewise.
29235         * modules/unictype/property-other-alphabetic (Depends-on,
29236         configure.ac): Likewise.
29237         * modules/unictype/property-other-default-ignorable-code-point
29238         (Depends-on, configure.ac): Likewise.
29239         * modules/unictype/property-other-grapheme-extend (Depends-on,
29240         configure.ac): Likewise.
29241         * modules/unictype/property-other-id-continue (Depends-on,
29242         configure.ac): Likewise.
29243         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29244         Likewise.
29245         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29246         Likewise.
29247         * modules/unictype/property-other-math (Depends-on, configure.ac):
29248         Likewise.
29249         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29250         Likewise.
29251         * modules/unictype/property-paired-punctuation (Depends-on,
29252         configure.ac): Likewise.
29253         * modules/unictype/property-paragraph-separator (Depends-on,
29254         configure.ac): Likewise.
29255         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29256         Likewise.
29257         * modules/unictype/property-pattern-white-space (Depends-on,
29258         configure.ac): Likewise.
29259         * modules/unictype/property-private-use (Depends-on, configure.ac):
29260         Likewise.
29261         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29262         Likewise.
29263         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29264         Likewise.
29265         * modules/unictype/property-radical (Depends-on, configure.ac):
29266         Likewise.
29267         * modules/unictype/property-sentence-terminal (Depends-on,
29268         configure.ac): Likewise.
29269         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29270         Likewise.
29271         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29272         * modules/unictype/property-terminal-punctuation (Depends-on,
29273         configure.ac): Likewise.
29274         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29275         Likewise.
29276         * modules/unictype/property-unassigned-code-value (Depends-on,
29277         configure.ac): Likewise.
29278         * modules/unictype/property-unified-ideograph (Depends-on,
29279         configure.ac): Likewise.
29280         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29281         Likewise.
29282         * modules/unictype/property-variation-selector (Depends-on,
29283         configure.ac): Likewise.
29284         * modules/unictype/property-white-space (Depends-on, configure.ac):
29285         Likewise.
29286         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29287         Likewise.
29288         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29289         Likewise.
29290         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29291         Likewise.
29292         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29293         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29294         Likewise.
29295
29296 2009-12-31  Bruno Haible  <bruno@clisp.org>
29297
29298         Remove unnecessary AC_C_INLINE invocation.
29299         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29300         since 2009-08-21.
29301
29302 2009-12-31  Jim Meyering  <meyering@redhat.com>
29303
29304         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29305         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29306         With this change, we can all remove the gpg_key_ID = ... definition
29307         from our respective cfg.mk files.
29308
29309         maint.mk: create announcement template in ~/, not in /tmp
29310         * top/maint.mk (emit_upload_commands): Adjust.
29311         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29312         Remove temporary file, .ci-msg.
29313
29314 2009-12-31  Eric Blake  <ebb9@byu.net>
29315
29316         link-warning: always build headers with link warnings
29317         * modules/arpa_inet (Makefile.am): Always build replacement
29318         header.
29319         * modules/ctype (Makefile.am): Likewise.
29320         * modules/dirent (Makefile.am): Likewise.
29321         * modules/inttypes (Makefile.am): Likewise.
29322         * modules/langinfo (Makefile.am): Likewise.
29323         * modules/locale (Makefile.am): Likewise.
29324         * modules/spawn (Makefile.am): Likewise.
29325         * modules/sys_file (Makefile.am): Likewise.
29326         * modules/sys_ioctl (Makefile.am): Likewise.
29327         * modules/sys_select (Makefile.am): Likewise.
29328         * modules/sys_socket (Makefile.am): Likewise.
29329         * modules/sys_times (Makefile.am): Likewise.
29330         * modules/sys_utsname (Makefile.am): Likewise.
29331         * modules/sys_wait (Makefile.am): Likewise.
29332         * modules/wchar (Makefile.am): Likewise.
29333         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29334         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29335         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29336         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29337         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29338         Likewise.
29339         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29340         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29341         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29342         Likewise.
29343         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29344         Likewise.
29345         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29346         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29347         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29349         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29350         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29351         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29352         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29353         (gl_WCHAR_H_DEFAULTS): Likewise.
29354
29355 2009-12-31  Eric Blake  <ebb9@byu.net>
29356
29357         signal, spawn: use link warnings
29358         * lib/signal.in.h (sigset_t): Make unconditional.
29359         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29360         (sigpending, sigprocmask, sigaction): Add link warnings.
29361         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29362         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29363         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29364         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29365         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29366         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29367         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29368         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29369         (posix_spawn_file_actions_destroy)
29370         (posix_spawn_file_actions_addopen)
29371         (posix_spawn_file_actions_addclose)
29372         (posix_spawn_file_actions_adddup2): Likewise.
29373         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29374         * tests/test-signal.c (main): Enhance test.
29375
29376         spawn: improve wrapper support
29377         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29378         (gl_SPAWN_H_DEFAULTS): New defaults.
29379         * modules/spawn (Makefile.am): Substitute them.
29380         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29381         Only declare if missing or broken.
29382
29383         sys_times, sys_utsname: use include_next
29384         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29385         header.
29386         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29387         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29388         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29389         * modules/sys_times (Depends-on): Add include_next.
29390         (Makefile.am): Substitute additional values.
29391         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29392         * lib/sys_times.in.h (includes): Include native header, if
29393         available.
29394         * lib/sys_utsname.in.h (includes): Likewise.
29395         * tests/test-sys_times.c (main): Enhance test.
29396
29397         fdutimensat: revert prior patch
29398         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29399         utimens.h.
29400         Reported by Bruno Haible.
29401
29402 2009-12-30  Eric Blake  <ebb9@byu.net>
29403
29404         sys_wait: drop link-warning dependency
29405         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29406         link-warning efforts.
29407         * lib/sys_wait.in.h: Likewise.
29408
29409         fdutimensat: remove bogus dependency
29410         * modules/fdutimensat (Depends-on): Drop inline.
29411
29412         unistd: fix typo
29413         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29414
29415 2009-12-30  Bruno Haible  <bruno@clisp.org>
29416
29417         Fix compilation error with Solaris cc.
29418         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29419         * lib/unicase/u16-is-invariant.c: Likewise.
29420         * lib/unicase/u32-is-invariant.c: Likewise.
29421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29422
29423 2009-12-30  Bruno Haible  <bruno@clisp.org>
29424
29425         Fix test crash.
29426         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29427         locales.
29428         Reported by Simon Josefsson <simon@josefsson.org>.
29429
29430 2009-12-30  Bruno Haible  <bruno@clisp.org>
29431
29432         Fix compilation error on most platforms.
29433         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29434         Reported by Simon Josefsson <simon@josefsson.org>
29435         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29436
29437 2009-12-30  Eric Blake  <ebb9@byu.net>
29438
29439         futimens, utimensat: work around ntfs-3g bug
29440         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29441         a ctime bug is present, and expand workaround to cover ntfs-3g.
29442         * lib/utimens.c (fdutimens, lutimens): Likewise.
29443         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29444         (validate_timespec): Adjust return value.
29445         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29446         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29447         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29448
29449 2009-12-29  Eric Blake  <ebb9@byu.net>
29450
29451         link-warning: make usage consistent
29452         * modules/ctype (Depends-on): Add link-warning.
29453         (Makefile.am): Update rules accordingly.
29454         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29455         * modules/locale (Depends-on, Makefile.am): Likewise.
29456         * modules/sys_file (Makefile.am): Likewise.
29457         * modules/getopt-posix (Makefile.am): Delete unused link warning
29458         efforts.
29459         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29460         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29461         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29462         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29463
29464         stdio: remove unused variables
29465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29466         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29467         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29468
29469         tests: test more substitute headers
29470         * modules/ctype-tests: New file.
29471         * modules/dirent-tests: Likewise.
29472         * modules/spawn-tests: Likewise.
29473         * modules/sys_file-tests: Likewise.
29474         * modules/sys_ioctl-tests: Likewise.
29475         * modules/sys_wait-tests: Likewise.
29476         * tests/test-ctype.c: Likewise.
29477         * tests/test-dirent.c: Likewise.
29478         * tests/test-spawn.c: Likewise.
29479         * tests/test-sys_file.c: Likewise.
29480         * tests/test-sys_ioctl.c: Likewise.
29481         * tests/test-sys_wait.c: Likewise.
29482         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29483         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29484         whether or not flock is in use.
29485
29486         tests: remove License section from module
29487         * modules/arpa_inet-tests: Remove unneeded section.
29488         * modules/byteswap-tests: Likewise.
29489         * modules/ceilf-tests: Likewise.
29490         * modules/ceill-tests: Likewise.
29491         * modules/crypto/des-tests: Likewise.
29492         * modules/crypto/gc-arcfour-tests: Likewise.
29493         * modules/crypto/gc-arctwo-tests: Likewise.
29494         * modules/crypto/gc-des-tests: Likewise.
29495         * modules/crypto/gc-hmac-md5-tests: Likewise.
29496         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29497         * modules/crypto/gc-md2-tests: Likewise.
29498         * modules/crypto/gc-md4-tests: Likewise.
29499         * modules/crypto/gc-md5-tests: Likewise.
29500         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29501         * modules/crypto/gc-rijndael-tests: Likewise.
29502         * modules/crypto/gc-sha1-tests: Likewise.
29503         * modules/crypto/gc-tests: Likewise.
29504         * modules/crypto/md2-tests: Likewise.
29505         * modules/crypto/md4-tests: Likewise.
29506         * modules/fcntl-h-tests: Likewise.
29507         * modules/floorf-tests: Likewise.
29508         * modules/floorl-tests: Likewise.
29509         * modules/frexp-nolibm-tests: Likewise.
29510         * modules/frexp-tests: Likewise.
29511         * modules/frexpl-nolibm-tests: Likewise.
29512         * modules/frexpl-tests: Likewise.
29513         * modules/getaddrinfo-tests: Likewise.
29514         * modules/inttypes-tests: Likewise.
29515         * modules/isfinite-tests: Likewise.
29516         * modules/isinf-tests: Likewise.
29517         * modules/ldexpl-tests: Likewise.
29518         * modules/locale-tests: Likewise.
29519         * modules/math-tests: Likewise.
29520         * modules/netdb-tests: Likewise.
29521         * modules/netinet_in-tests: Likewise.
29522         * modules/printf-frexp-tests: Likewise.
29523         * modules/printf-frexpl-tests: Likewise.
29524         * modules/priv-set-tests: Likewise.
29525         * modules/random_r-tests: Likewise.
29526         * modules/round-tests: Likewise.
29527         * modules/roundf-tests: Likewise.
29528         * modules/roundl-tests: Likewise.
29529         * modules/search-tests: Likewise.
29530         * modules/select-tests: Likewise.
29531         * modules/signal-tests: Likewise.
29532         * modules/stdbool-tests: Likewise.
29533         * modules/stddef-tests: Likewise.
29534         * modules/stdint-tests: Likewise.
29535         * modules/stdio-tests: Likewise.
29536         * modules/stdlib-tests: Likewise.
29537         * modules/string-tests: Likewise.
29538         * modules/strings-tests: Likewise.
29539         * modules/sys_select-tests: Likewise.
29540         * modules/sys_socket-tests: Likewise.
29541         * modules/sys_stat-tests: Likewise.
29542         * modules/sys_time-tests: Likewise.
29543         * modules/sys_utsname-tests: Likewise.
29544         * modules/sysexits-tests: Likewise.
29545         * modules/time-tests: Likewise.
29546         * modules/trunc-tests: Likewise.
29547         * modules/truncf-tests: Likewise.
29548         * modules/truncl-tests: Likewise.
29549         * modules/tsearch-tests: Likewise.
29550         * modules/unistd-tests: Likewise.
29551         * modules/wchar-tests: Likewise.
29552         * modules/wctype-tests: Likewise.
29553
29554         tests: fix license on several tests
29555         * tests/test-des.c: Update to GPLv3+.
29556         * tests/test-flock.c: Likewise.
29557         * tests/test-fsync.c: Likewise.
29558         * tests/test-futimens.h: Likewise.
29559         * tests/test-gc-arcfour.c: Likewise.
29560         * tests/test-gc-arctwo.c: Likewise.
29561         * tests/test-gc-des.c: Likewise.
29562         * tests/test-gc-hmac-md5.c: Likewise.
29563         * tests/test-gc-hmac-sha1.c: Likewise.
29564         * tests/test-gc-md2.c: Likewise.
29565         * tests/test-gc-md4.c: Likewise.
29566         * tests/test-gc-md5.c: Likewise.
29567         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29568         * tests/test-gc-rijndael.c: Likewise.
29569         * tests/test-gc-sha1.c: Likewise.
29570         * tests/test-gc.c: Likewise.
29571         * tests/test-getcwd.c: Likewise.
29572         * tests/test-link.c: Likewise.
29573         * tests/test-link.h: Likewise.
29574         * tests/test-lutimens.h: Likewise.
29575         * tests/test-md2.c: Likewise.
29576         * tests/test-md4.c: Likewise.
29577         * tests/test-mkdir.h: Likewise.
29578         * tests/test-rename.c: Likewise.
29579         * tests/test-rename.h: Likewise.
29580         * tests/test-safe-alloc.c: Likewise.
29581         * tests/test-utimens-common.h: Likewise.
29582         * tests/test-utimens.h: Likewise.
29583
29584         maint: sync license texts
29585         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29586         * doc/gpl-3.0.texi: Revert copyright year update.
29587         * doc/lgpl-3.0.texi: Likewise.
29588
29589 2009-12-29  Jim Meyering  <meyering@redhat.com>
29590
29591         update nearly all FSF copyright year lists to include 2009
29592         The files named by the following are exempted:
29593             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29594               test -f "$dst" && { echo "$dst"; continue; }
29595               test -d "$dst" || continue
29596               echo "$dst"/$(basename "$src")
29597             done > exempt
29598             git ls-files tests/unictype >> exempt
29599         In the remaining files, convert to all-interval notation if
29600         - there is already at least one year interval like 2000-2003
29601         - the file is maintained by me
29602         - the file is in lib/uni*/, where that style already prevails
29603         Otherwise, use update-copyright's default.
29604
29605 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29606         and Eric Blake  <ebb9@byu.net>
29607
29608         tests: don't require debug system() to pass
29609         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29610         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29611         * tests/test-unlink.h (test_unlink_func): Likewise.
29612         * tests/test-fstatat.c (main): ...into callers.
29613         * tests/test-lstat.c (main): Likewise.
29614         * tests/test-rmdir.c (main): Likewise.
29615         * tests/test-unlink.c (main): Likewise.
29616         * tests/test-unlinkat.c (main): Likewise.
29617         * tests/test-areadlink-with-size.c (main): Don't require a
29618         debug-only system call to pass, aiding cross-testing to mingw.
29619         * tests/test-areadlink.c (main): Likewise.
29620         * tests/test-areadlinkat-with-size.c (main): Likewise.
29621         * tests/test-areadlinkat.c (main): Likewise.
29622         * tests/test-canonicalize-lgpl.c (main): Likewise.
29623         * tests/test-canonicalize.c (main): Likewise.
29624         * tests/test-chown.c (main): Likewise.
29625         * tests/test-fchownat.c (main): Likewise.
29626         * tests/test-lchown.c (main): Likewise.
29627         * tests/test-fdutimensat.c (main): Likewise.
29628         * tests/test-futimens.c (main): Likewise.
29629         * tests/test-link.c (main): Likewise.
29630         * tests/test-linkat.c (main): Likewise.
29631         * tests/test-mkdir.c (main): Likewise.
29632         * tests/test-mkdirat.c (main): Likewise.
29633         * tests/test-mkfifo.c (main): Likewise.
29634         * tests/test-mkfifoat.c (main): Likewise.
29635         * tests/test-mknod.c (main): Likewise.
29636         * tests/test-readlink.c (main): Likewise.
29637         * tests/test-remove.c (main): Likewise.
29638         * tests/test-rename.c (main): Likewise.
29639         * tests/test-renameat.c (main): Likewise.
29640         * tests/test-symlink.c (main): Likewise.
29641         * tests/test-symlinkat.c (main): Likewise.
29642         * tests/test-utimens.c (main): Likewise.
29643         * tests/test-utimensat.c (main): Likewise.
29644
29645 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29646
29647         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29648         on $(UNUSED_PARAMETER_H) to avoid build failure.
29649
29650 2009-12-28  Jim Meyering  <meyering@redhat.com>
29651
29652         update-copyright: you may specify a max. line length other than 72
29653         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29654
29655         maint: use consistent FSF copyright line syntax
29656         * lib/posixtm.c: Add missing comma in FSF copyright line.
29657         * lib/posixtm.h: Likewise.
29658         * lib/getugroups.c: Add missing ", Inc.".
29659
29660         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29661         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29662         FSF copyright line.  Remove trailing blanks.
29663
29664 2009-12-28  Eric Blake  <ebb9@byu.net>
29665
29666         test-dup2: reduce dependencies
29667         * modules/cloexec (Configure.ac): Set witness.
29668         * modules/dup2-tests (Depends-on): Drop cloexec.
29669         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29670         not present.
29671         Suggested by Bruno Haible.
29672
29673 2009-12-26  Bruno Haible  <bruno@clisp.org>
29674
29675         Remove an unneeded dependency.
29676         * modules/fseterr (Depends-on): Remove dup2.
29677
29678 2009-12-26  Eric Blake  <ebb9@byu.net>
29679
29680         tests: use macros.h in more places
29681         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29682         (ASSERT_STREAM): Provide default of stderr.
29683         * tests/test-dirent-safer.c: Include macros.h, using alternate
29684         stream for assertions.
29685         * tests/test-dup-safer.c: Likewise.
29686         * tests/test-freopen-safer.c: Likewise.
29687         * tests/test-getopt.c: Likewise.
29688         * tests/test-openat-safer.c: Likewise.
29689         * tests/test-pipe.c: Likewise.
29690         * tests/test-popen-safer.c: Likewise.
29691         * modules/dirent-safer-tests (Files): Include macros.h.
29692         * modules/unistd-safer-tests (Files): Likewise.
29693         * modules/freopen-safer-tests (Files): Likewise.
29694         * modules/getopt-posix-tests (Files): Likewise.
29695         * modules/openat-safer-tests (Files): Likewise.
29696         * modules/pipe-tests (Files): Likewise.
29697
29698 2009-12-26  Bruno Haible  <bruno@clisp.org>
29699
29700         javacomp: Portability fix.
29701         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29702         that it also works on Solaris.
29703
29704 2009-12-26  Bruno Haible  <bruno@clisp.org>
29705
29706         localename: Fix storage allocation of gl_locale_name_thread's result.
29707         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29708         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29709         all platforms that have 'uselocale'.
29710         (gl_locale_name_thread_unsafe): New function, extracted from
29711         gl_locale_name_thread.
29712         (gl_locale_name_thread): Call struniq on all platforms that have
29713         'uselocale'.
29714         * tests/test-localename.c (test_locale_name_thread): Check that the
29715         resulting strings are permanently allocated.
29716         * modules/localename-tests (Depends-on): Add strdup.
29717
29718 2009-12-26  Bruno Haible  <bruno@clisp.org>
29719
29720         * tests/test-localename.c (categories): Fill in the strings.
29721
29722 2009-12-26  Jim Meyering  <meyering@redhat.com>
29723
29724         isdir: complete the removal of m4/isdir.m4
29725         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29726
29727         isdir: clean up, since at least grep still uses it
29728         * lib/isdir.c: Include "isdir.h".
29729         (S_ISDIR): Remove now-unneeded definition.
29730         * modules/isdir (Files): Add lib/isdir.h.
29731         * lib/isdir.h: New file, with declaration.
29732         * m4/isdir.m4: Remove file -- unneeded.
29733
29734 2009-12-25  Bruno Haible  <bruno@clisp.org>
29735
29736         selinux-h: Make generated .h files standalone.
29737         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29738         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29739         * lib/se-selinux.in.h: Likewise.
29740         * modules/selinux-h (Depends-on): Add unused-parameter.
29741         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29742         selinux/selinux.h and selinux/context.h.
29743         Suggested by Eric Blake.
29744
29745 2009-12-25  Bruno Haible  <bruno@clisp.org>
29746
29747         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29748         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29749         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29750         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29751         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29752
29753 2009-12-24  Bruno Haible  <bruno@clisp.org>
29754
29755         openat: Fix warning.
29756         * lib/openat-proc.c: Include <unistd.h>.
29757
29758 2009-12-24  Bruno Haible  <bruno@clisp.org>
29759
29760         New module 'unused-parameter'.
29761         * build-aux/unused-parameter.h: New file, extracted from earlier
29762         gnulib-common.m4.
29763         * modules/unused-parameter: New file.
29764         * lib/unistr.h: Include unused-parameter.h.
29765         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29766         _GL_UNUSED.
29767         * modules/unistr/base (Depends-on): Add unused-parameter.
29768
29769 2009-12-24  Bruno Haible  <bruno@clisp.org>
29770
29771         Add missing dependencies to 'extensions' module.
29772         * m4/extensions.m4: Add comment.
29773         * modules/accept4 (Depends-on): Add extensions.
29774         * modules/dup3 (Depends-on): Likewise.
29775         * modules/fcntl (Depends-on): Likewise.
29776         * modules/futimens (Depends-on): Likewise.
29777         * modules/mknod (Depends-on): Likewise.
29778         * modules/pipe2 (Depends-on): Likewise.
29779         * modules/stat-time (Depends-on): Likewise.
29780         * modules/strcasestr-simple (Depends-on): Likewise.
29781         * modules/strsignal (Depends-on): Likewise.
29782         * modules/utimensat (Depends-on): Likewise.
29783         * modules/localcharset (Depends-on): Likewise. Needed because of
29784         gl_FCNTL_O_FLAGS.
29785         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29786         AC_TYPE_MBSTATE_T.
29787         * modules/wcsnrtombs (Depends-on): Likewise.
29788         * modules/wcsrtombs (Depends-on): Likewise.
29789
29790 2009-12-24  Bruno Haible  <bruno@clisp.org>
29791
29792         binary-io: Avoid gcc warning due to SET_BINARY.
29793         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29794         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29795
29796 2009-12-24  Bruno Haible  <bruno@clisp.org>
29797
29798         Avoid future namespace pollution on glibc systems.
29799         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29800         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29801         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29802         glibc systems.
29803
29804 2009-12-24  Bruno Haible  <bruno@clisp.org>
29805
29806         Refactor common macros used in tests.
29807         * tests/macros.h: New file.
29808         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29809         and/or <stdlib.h>, if appropriate.
29810         (ASSERT, SIZEOF): Remove macros.
29811         * tests/test-areadlink-with-size.c: Likewise.
29812         * tests/test-areadlinkat.c: Likewise.
29813         * tests/test-areadlinkat-with-size.c: Likewise.
29814         * tests/test-argmatch.c: Likewise.
29815         * tests/test-argv-iter.c: Likewise.
29816         * tests/test-array-mergesort.c: Likewise.
29817         * tests/test-array_list.c: Likewise.
29818         * tests/test-array_oset.c: Likewise.
29819         * tests/test-avltree_list.c: Likewise.
29820         * tests/test-avltree_oset.c: Likewise.
29821         * tests/test-avltreehash_list.c: Likewise.
29822         * tests/test-base64.c: Likewise.
29823         * tests/test-binary-io.c: Likewise.
29824         * tests/test-bitrotate.c: Likewise.
29825         * tests/test-btowc.c: Likewise.
29826         * tests/test-byteswap.c: Likewise.
29827         * tests/test-c-ctype.c: Likewise.
29828         * tests/test-c-stack.c: Likewise.
29829         * tests/test-c-strcasecmp.c: Likewise.
29830         * tests/test-c-strcasestr.c: Likewise.
29831         * tests/test-c-strncasecmp.c: Likewise.
29832         * tests/test-c-strstr.c: Likewise.
29833         * tests/test-canonicalize-lgpl.c: Likewise.
29834         * tests/test-canonicalize.c: Likewise.
29835         * tests/test-carray_list.c: Likewise.
29836         * tests/test-ceilf1.c: Likewise.
29837         * tests/test-ceilf2.c: Likewise.
29838         * tests/test-ceill.c: Likewise.
29839         * tests/test-chown.c: Likewise.
29840         * tests/test-cloexec.c: Likewise.
29841         * tests/test-copy-acl.c: Likewise.
29842         * tests/test-copy-file.c: Likewise.
29843         * tests/test-count-one-bits.c: Likewise.
29844         * tests/test-dprintf-posix.c: Likewise.
29845         * tests/test-dup2.c: Likewise.
29846         * tests/test-dup3.c: Likewise.
29847         * tests/test-duplocale.c: Likewise.
29848         * tests/test-fbufmode.c: Likewise.
29849         * tests/test-fchdir.c: Likewise.
29850         * tests/test-fchownat.c: Likewise.
29851         * tests/test-fcntl-safer.c: Likewise.
29852         * tests/test-fcntl.c: Likewise.
29853         * tests/test-fdopendir.c: Likewise.
29854         * tests/test-fdutimensat.c: Likewise.
29855         * tests/test-fflush2.c: Likewise.
29856         * tests/test-file-has-acl.c: Likewise.
29857         * tests/test-filevercmp.c: Likewise.
29858         * tests/test-flock.c: Likewise.
29859         * tests/test-floorf1.c: Likewise.
29860         * tests/test-floorf2.c: Likewise.
29861         * tests/test-floorl.c: Likewise.
29862         * tests/test-fnmatch.c: Likewise.
29863         * tests/test-fopen.h: Likewise.
29864         * tests/test-fpending.c: Likewise.
29865         * tests/test-fprintf-posix.c: Likewise.
29866         * tests/test-fpurge.c: Likewise.
29867         * tests/test-freadable.c: Likewise.
29868         * tests/test-freadahead.c: Likewise.
29869         * tests/test-freading.c: Likewise.
29870         * tests/test-freadptr.c: Likewise.
29871         * tests/test-freadptr2.c: Likewise.
29872         * tests/test-freadseek.c: Likewise.
29873         * tests/test-freopen.c: Likewise.
29874         * tests/test-frexp.c: Likewise.
29875         * tests/test-frexpl.c: Likewise.
29876         * tests/test-fseek.c: Likewise.
29877         * tests/test-fseeko.c: Likewise.
29878         * tests/test-fstatat.c: Likewise.
29879         * tests/test-fstrcmp.c: Likewise.
29880         * tests/test-fsync.c: Likewise.
29881         * tests/test-ftell.c: Likewise.
29882         * tests/test-ftello.c: Likewise.
29883         * tests/test-func.c: Likewise.
29884         * tests/test-futimens.c: Likewise.
29885         * tests/test-fwritable.c: Likewise.
29886         * tests/test-fwriting.c: Likewise.
29887         * tests/test-getcwd.c: Likewise.
29888         * tests/test-getdate.c: Likewise.
29889         * tests/test-getdelim.c: Likewise.
29890         * tests/test-getdtablesize.c: Likewise.
29891         * tests/test-getgroups.c: Likewise.
29892         * tests/test-getline.c: Likewise.
29893         * tests/test-getndelim2.c: Likewise.
29894         * tests/test-glob.c: Likewise.
29895         * tests/test-hash.c: Likewise.
29896         * tests/test-i-ring.c: Likewise.
29897         * tests/test-iconv-utf.c: Likewise.
29898         * tests/test-iconv.c: Likewise.
29899         * tests/test-idpriv-drop.c: Likewise.
29900         * tests/test-idpriv-droptemp.c: Likewise.
29901         * tests/test-inet_ntop.c: Likewise.
29902         * tests/test-inet_pton.c: Likewise.
29903         * tests/test-isblank.c: Likewise.
29904         * tests/test-isfinite.c: Likewise.
29905         * tests/test-isinf.c: Likewise.
29906         * tests/test-isnan.c: Likewise.
29907         * tests/test-isnand.h: Likewise.
29908         * tests/test-isnanf.h: Likewise.
29909         * tests/test-isnanl.h: Likewise.
29910         * tests/test-lchown.c: Likewise.
29911         * tests/test-ldexpl.c: Likewise.
29912         * tests/test-link.c: Likewise.
29913         * tests/test-linkat.c: Likewise.
29914         * tests/test-linked_list.c: Likewise.
29915         * tests/test-linkedhash_list.c: Likewise.
29916         * tests/test-localename.c: Likewise.
29917         * tests/test-lseek.c: Likewise.
29918         * tests/test-lstat.c: Likewise.
29919         * tests/test-mbmemcasecmp.c: Likewise.
29920         * tests/test-mbmemcasecoll.c: Likewise.
29921         * tests/test-mbrtowc.c: Likewise.
29922         * tests/test-mbscasecmp.c: Likewise.
29923         * tests/test-mbscasestr1.c: Likewise.
29924         * tests/test-mbscasestr2.c: Likewise.
29925         * tests/test-mbscasestr3.c: Likewise.
29926         * tests/test-mbscasestr4.c: Likewise.
29927         * tests/test-mbschr.c: Likewise.
29928         * tests/test-mbscspn.c: Likewise.
29929         * tests/test-mbsinit.c: Likewise.
29930         * tests/test-mbsncasecmp.c: Likewise.
29931         * tests/test-mbsnrtowcs.c: Likewise.
29932         * tests/test-mbspbrk.c: Likewise.
29933         * tests/test-mbspcasecmp.c: Likewise.
29934         * tests/test-mbsrchr.c: Likewise.
29935         * tests/test-mbsrtowcs.c: Likewise.
29936         * tests/test-mbsspn.c: Likewise.
29937         * tests/test-mbsstr1.c: Likewise.
29938         * tests/test-mbsstr2.c: Likewise.
29939         * tests/test-mbsstr3.c: Likewise.
29940         * tests/test-memchr.c: Likewise.
29941         * tests/test-memchr2.c: Likewise.
29942         * tests/test-memcmp.c: Likewise.
29943         * tests/test-memmem.c: Likewise.
29944         * tests/test-memrchr.c: Likewise.
29945         * tests/test-mkdir.c: Likewise.
29946         * tests/test-mkdirat.c: Likewise.
29947         * tests/test-mkfifo.c: Likewise.
29948         * tests/test-mkfifoat.c: Likewise.
29949         * tests/test-mknod.c: Likewise.
29950         * tests/test-nanosleep.c: Likewise.
29951         * tests/test-nl_langinfo.c: Likewise.
29952         * tests/test-obstack-printf.c: Likewise.
29953         * tests/test-open.c: Likewise.
29954         * tests/test-openat.c: Likewise.
29955         * tests/test-pipe-filter-gi1.c: Likewise.
29956         * tests/test-pipe-filter-gi2-main.c: Likewise.
29957         * tests/test-pipe-filter-ii1.c: Likewise.
29958         * tests/test-pipe-filter-ii2-main.c: Likewise.
29959         * tests/test-pipe2.c: Likewise.
29960         * tests/test-popen.h: Likewise.
29961         * tests/test-posixtm.c: Likewise.
29962         * tests/test-pread.c: Likewise.
29963         * tests/test-printf-frexp.c: Likewise.
29964         * tests/test-printf-frexpl.c: Likewise.
29965         * tests/test-printf-posix.c: Likewise.
29966         * tests/test-priv-set.c: Likewise.
29967         * tests/test-quotearg.c: Likewise.
29968         * tests/test-random_r.c: Likewise.
29969         * tests/test-rawmemchr.c: Likewise.
29970         * tests/test-rbtree_list.c: Likewise.
29971         * tests/test-rbtree_oset.c: Likewise.
29972         * tests/test-rbtreehash_list.c: Likewise.
29973         * tests/test-readlink.c: Likewise.
29974         * tests/test-remove.c: Likewise.
29975         * tests/test-rename.c: Likewise.
29976         * tests/test-renameat.c: Likewise.
29977         * tests/test-rmdir.c: Likewise.
29978         * tests/test-round1.c: Likewise.
29979         * tests/test-roundf1.c: Likewise.
29980         * tests/test-roundl.c: Likewise.
29981         * tests/test-safe-alloc.c: Likewise.
29982         * tests/test-sameacls.c: Likewise.
29983         * tests/test-set-mode-acl.c: Likewise.
29984         * tests/test-setenv.c: Likewise.
29985         * tests/test-sigaction.c: Likewise.
29986         * tests/test-signbit.c: Likewise.
29987         * tests/test-sleep.c: Likewise.
29988         * tests/test-snprintf-posix.c: Likewise.
29989         * tests/test-snprintf.c: Likewise.
29990         * tests/test-sprintf-posix.c: Likewise.
29991         * tests/test-stat-time.c: Likewise.
29992         * tests/test-stat.c: Likewise.
29993         * tests/test-strcasestr.c: Likewise.
29994         * tests/test-strchrnul.c: Likewise.
29995         * tests/test-strerror.c: Likewise.
29996         * tests/test-striconv.c: Likewise.
29997         * tests/test-striconveh.c: Likewise.
29998         * tests/test-striconveha.c: Likewise.
29999         * tests/test-strsignal.c: Likewise.
30000         * tests/test-strstr.c: Likewise.
30001         * tests/test-strtod.c: Likewise.
30002         * tests/test-strverscmp.c: Likewise.
30003         * tests/test-symlink.c: Likewise.
30004         * tests/test-symlinkat.c: Likewise.
30005         * tests/test-trunc1.c: Likewise.
30006         * tests/test-trunc2.c: Likewise.
30007         * tests/test-truncf1.c: Likewise.
30008         * tests/test-truncf2.c: Likewise.
30009         * tests/test-truncl.c: Likewise.
30010         * tests/test-uname.c: Likewise.
30011         * tests/test-unlink.c: Likewise.
30012         * tests/test-unlinkat.c: Likewise.
30013         * tests/test-unsetenv.c: Likewise.
30014         * tests/test-usleep.c: Likewise.
30015         * tests/test-utimens.c: Likewise.
30016         * tests/test-utimensat.c: Likewise.
30017         * tests/test-vasnprintf-posix.c: Likewise.
30018         * tests/test-vasnprintf-posix2.c: Likewise.
30019         * tests/test-vasnprintf.c: Likewise.
30020         * tests/test-vasprintf-posix.c: Likewise.
30021         * tests/test-vasprintf.c: Likewise.
30022         * tests/test-vdprintf-posix.c: Likewise.
30023         * tests/test-vfprintf-posix.c: Likewise.
30024         * tests/test-vprintf-posix.c: Likewise.
30025         * tests/test-vsnprintf-posix.c: Likewise.
30026         * tests/test-vsnprintf.c: Likewise.
30027         * tests/test-vsprintf-posix.c: Likewise.
30028         * tests/test-wcrtomb.c: Likewise.
30029         * tests/test-wcsnrtombs.c: Likewise.
30030         * tests/test-wcsrtombs.c: Likewise.
30031         * tests/test-wctype.c: Likewise.
30032         * tests/test-wcwidth.c: Likewise.
30033         * tests/test-xfprintf-posix.c: Likewise.
30034         * tests/test-xmemdup0.c: Likewise.
30035         * tests/test-xprintf-posix.c: Likewise.
30036         * tests/test-xvasprintf.c: Likewise.
30037         * tests/unicase/test-locale-language.c: Likewise.
30038         * tests/unicase/test-mapping-part1.h: Likewise.
30039         * tests/unicase/test-predicate-part1.h: Likewise.
30040         * tests/unicase/test-u8-casecmp.c: Likewise.
30041         * tests/unicase/test-u8-casecoll.c: Likewise.
30042         * tests/unicase/test-u8-casefold.c: Likewise.
30043         * tests/unicase/test-u8-is-cased.c: Likewise.
30044         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30045         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30046         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30047         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30048         * tests/unicase/test-u8-tolower.c: Likewise.
30049         * tests/unicase/test-u8-totitle.c: Likewise.
30050         * tests/unicase/test-u8-toupper.c: Likewise.
30051         * tests/unicase/test-u16-casecmp.c: Likewise.
30052         * tests/unicase/test-u16-casecoll.c: Likewise.
30053         * tests/unicase/test-u16-casefold.c: Likewise.
30054         * tests/unicase/test-u16-is-cased.c: Likewise.
30055         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30056         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30057         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30058         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30059         * tests/unicase/test-u16-tolower.c: Likewise.
30060         * tests/unicase/test-u16-totitle.c: Likewise.
30061         * tests/unicase/test-u16-toupper.c: Likewise.
30062         * tests/unicase/test-u32-casecmp.c: Likewise.
30063         * tests/unicase/test-u32-casecoll.c: Likewise.
30064         * tests/unicase/test-u32-casefold.c: Likewise.
30065         * tests/unicase/test-u32-is-cased.c: Likewise.
30066         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30067         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30068         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30069         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30070         * tests/unicase/test-u32-tolower.c: Likewise.
30071         * tests/unicase/test-u32-totitle.c: Likewise.
30072         * tests/unicase/test-u32-toupper.c: Likewise.
30073         * tests/unicase/test-ulc-casecmp.c: Likewise.
30074         * tests/unicase/test-ulc-casecoll.c: Likewise.
30075         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30076         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30077         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30078         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30079         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30080         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30081         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30082         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30083         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30084         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30085         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30086         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30087         * tests/unictype/test-bidi_byname.c: Likewise.
30088         * tests/unictype/test-bidi_name.c: Likewise.
30089         * tests/unictype/test-bidi_of.c: Likewise.
30090         * tests/unictype/test-bidi_test.c: Likewise.
30091         * tests/unictype/test-block_list.c: Likewise.
30092         * tests/unictype/test-block_of.c: Likewise.
30093         * tests/unictype/test-block_test.c: Likewise.
30094         * tests/unictype/test-categ_and.c: Likewise.
30095         * tests/unictype/test-categ_and_not.c: Likewise.
30096         * tests/unictype/test-categ_byname.c: Likewise.
30097         * tests/unictype/test-categ_name.c: Likewise.
30098         * tests/unictype/test-categ_none.c: Likewise.
30099         * tests/unictype/test-categ_of.c: Likewise.
30100         * tests/unictype/test-categ_or.c: Likewise.
30101         * tests/unictype/test-categ_test_withtable.c: Likewise.
30102         * tests/unictype/test-combining.c: Likewise.
30103         * tests/unictype/test-decdigit.c: Likewise.
30104         * tests/unictype/test-digit.c: Likewise.
30105         * tests/unictype/test-mirror.c: Likewise.
30106         * tests/unictype/test-numeric.c: Likewise.
30107         * tests/unictype/test-pr_byname.c: Likewise.
30108         * tests/unictype/test-pr_test.c: Likewise.
30109         * tests/unictype/test-predicate-part1.h: Likewise.
30110         * tests/unictype/test-scripts.c: Likewise.
30111         * tests/unictype/test-sy_c_ident.c: Likewise.
30112         * tests/unictype/test-sy_java_ident.c: Likewise.
30113         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30114         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30115         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30116         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30117         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30118         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30119         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30120         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30121         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30122         * tests/uninorm/test-compat-decomposition.c: Likewise.
30123         * tests/uninorm/test-composition.c: Likewise.
30124         * tests/uninorm/test-decomposing-form.c: Likewise.
30125         * tests/uninorm/test-decomposition.c: Likewise.
30126         * tests/uninorm/test-u8-nfc.c: Likewise.
30127         * tests/uninorm/test-u8-nfd.c: Likewise.
30128         * tests/uninorm/test-u8-nfkc.c: Likewise.
30129         * tests/uninorm/test-u8-nfkd.c: Likewise.
30130         * tests/uninorm/test-u8-normcmp.c: Likewise.
30131         * tests/uninorm/test-u8-normcoll.c: Likewise.
30132         * tests/uninorm/test-u16-nfc.c: Likewise.
30133         * tests/uninorm/test-u16-nfd.c: Likewise.
30134         * tests/uninorm/test-u16-nfkc.c: Likewise.
30135         * tests/uninorm/test-u16-nfkd.c: Likewise.
30136         * tests/uninorm/test-u16-normcmp.c: Likewise.
30137         * tests/uninorm/test-u16-normcoll.c: Likewise.
30138         * tests/uninorm/test-u32-nfc.c: Likewise.
30139         * tests/uninorm/test-u32-nfd.c: Likewise.
30140         * tests/uninorm/test-u32-nfkc.c: Likewise.
30141         * tests/uninorm/test-u32-nfkd.c: Likewise.
30142         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30143         * tests/uninorm/test-u32-normcmp.c: Likewise.
30144         * tests/uninorm/test-u32-normcoll.c: Likewise.
30145         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30146         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30147         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30148         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30149         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30150         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30151         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30152         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30153         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30154         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30155         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30156         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30157         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30158         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30159         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30160         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30161         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30162         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30163         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30164         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30165         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30166         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30167         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30168         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30169         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30170         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30171         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30172         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30173         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30174         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30175         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30176         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30177         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30178         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30179         * tests/uniwidth/test-u8-width.c: Likewise.
30180         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30181         * tests/uniwidth/test-u16-width.c: Likewise.
30182         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30183         * tests/uniwidth/test-u32-width.c: Likewise.
30184         * tests/uniwidth/test-uc_width.c: Likewise.
30185         * tests/uniwidth/test-uc_width2.c: Likewise.
30186         * modules/acl-tests (Files): Add tests/macros.h.
30187         * modules/areadlink-tests (Files): Likewise.
30188         * modules/areadlink-with-size-tests (Files): Likewise.
30189         * modules/areadlinkat-tests (Files): Likewise.
30190         * modules/areadlinkat-with-size-tests (Files): Likewise.
30191         * modules/argmatch-tests (Files): Likewise.
30192         * modules/argv-iter-tests (Files): Likewise.
30193         * modules/array-list-tests (Files): Likewise.
30194         * modules/array-mergesort-tests (Files): Likewise.
30195         * modules/array-oset-tests (Files): Likewise.
30196         * modules/avltree-list-tests (Files): Likewise.
30197         * modules/avltree-oset-tests (Files): Likewise.
30198         * modules/avltreehash-list-tests (Files): Likewise.
30199         * modules/base64-tests (Files): Likewise.
30200         * modules/binary-io-tests (Files): Likewise.
30201         * modules/bitrotate-tests (Files): Likewise.
30202         * modules/btowc-tests (Files): Likewise.
30203         * modules/byteswap-tests (Files): Likewise.
30204         * modules/c-ctype-tests (Files): Likewise.
30205         * modules/c-stack-tests (Files): Likewise.
30206         * modules/c-strcase-tests (Files): Likewise.
30207         * modules/c-strcasestr-tests (Files): Likewise.
30208         * modules/c-strstr-tests (Files): Likewise.
30209         * modules/canonicalize-lgpl-tests (Files): Likewise.
30210         * modules/canonicalize-tests (Files): Likewise.
30211         * modules/carray-list-tests (Files): Likewise.
30212         * modules/ceilf-tests (Files): Likewise.
30213         * modules/ceill-tests (Files): Likewise.
30214         * modules/chown-tests (Files): Likewise.
30215         * modules/cloexec-tests (Files): Likewise.
30216         * modules/copy-file-tests (Files): Likewise.
30217         * modules/count-one-bits-tests (Files): Likewise.
30218         * modules/dprintf-posix-tests (Files): Likewise.
30219         * modules/dup2-tests (Files): Likewise.
30220         * modules/dup3-tests (Files): Likewise.
30221         * modules/duplocale-tests (Files): Likewise.
30222         * modules/fbufmode-tests (Files): Likewise.
30223         * modules/fchdir-tests (Files): Likewise.
30224         * modules/fcntl-safer-tests (Files): Likewise.
30225         * modules/fcntl-tests (Files): Likewise.
30226         * modules/fdopendir-tests (Files): Likewise.
30227         * modules/fdutimensat-tests (Files): Likewise.
30228         * modules/fflush-tests (Files): Likewise.
30229         * modules/filevercmp-tests (Files): Likewise.
30230         * modules/flock-tests (Files): Likewise.
30231         * modules/floorf-tests (Files): Likewise.
30232         * modules/floorl-tests (Files): Likewise.
30233         * modules/fnmatch-tests (Files): Likewise.
30234         * modules/fopen-safer-tests (Files): Likewise.
30235         * modules/fopen-tests (Files): Likewise.
30236         * modules/fpending-tests (Files): Likewise.
30237         * modules/fprintf-posix-tests (Files): Likewise.
30238         * modules/fpurge-tests (Files): Likewise.
30239         * modules/freadable-tests (Files): Likewise.
30240         * modules/freadahead-tests (Files): Likewise.
30241         * modules/freading-tests (Files): Likewise.
30242         * modules/freadptr-tests (Files): Likewise.
30243         * modules/freadseek-tests (Files): Likewise.
30244         * modules/freopen-tests (Files): Likewise.
30245         * modules/frexp-nolibm-tests (Files): Likewise.
30246         * modules/frexp-tests (Files): Likewise.
30247         * modules/frexpl-nolibm-tests (Files): Likewise.
30248         * modules/frexpl-tests (Files): Likewise.
30249         * modules/fseek-tests (Files): Likewise.
30250         * modules/fseeko-tests (Files): Likewise.
30251         * modules/fstrcmp-tests (Files): Likewise.
30252         * modules/fsync-tests (Files): Likewise.
30253         * modules/ftell-tests (Files): Likewise.
30254         * modules/ftello-tests (Files): Likewise.
30255         * modules/func-tests (Files): Likewise.
30256         * modules/futimens-tests (Files): Likewise.
30257         * modules/fwritable-tests (Files): Likewise.
30258         * modules/fwriting-tests (Files): Likewise.
30259         * modules/getcwd-tests (Files): Likewise.
30260         * modules/getdate-tests (Files): Likewise.
30261         * modules/getdelim-tests (Files): Likewise.
30262         * modules/getdtablesize-tests (Files): Likewise.
30263         * modules/getgroups-tests (Files): Likewise.
30264         * modules/getline-tests (Files): Likewise.
30265         * modules/getndelim2-tests (Files): Likewise.
30266         * modules/glob-tests (Files): Likewise.
30267         * modules/hash-tests (Files): Likewise.
30268         * modules/i-ring-tests (Files): Likewise.
30269         * modules/iconv-tests (Files): Likewise.
30270         * modules/iconv_open-utf-tests (Files): Likewise.
30271         * modules/idpriv-drop-tests (Files): Likewise.
30272         * modules/idpriv-droptemp-tests (Files): Likewise.
30273         * modules/inet_ntop-tests (Files): Likewise.
30274         * modules/inet_pton-tests (Files): Likewise.
30275         * modules/isblank-tests (Files): Likewise.
30276         * modules/isfinite-tests (Files): Likewise.
30277         * modules/isinf-tests (Files): Likewise.
30278         * modules/isnan-tests (Files): Likewise.
30279         * modules/isnand-nolibm-tests (Files): Likewise.
30280         * modules/isnand-tests (Files): Likewise.
30281         * modules/isnanf-nolibm-tests (Files): Likewise.
30282         * modules/isnanf-tests (Files): Likewise.
30283         * modules/isnanl-nolibm-tests (Files): Likewise.
30284         * modules/isnanl-tests (Files): Likewise.
30285         * modules/lchown-tests (Files): Likewise.
30286         * modules/ldexpl-tests (Files): Likewise.
30287         * modules/link-tests (Files): Likewise.
30288         * modules/linkat-tests (Files): Likewise.
30289         * modules/linked-list-tests (Files): Likewise.
30290         * modules/linkedhash-list-tests (Files): Likewise.
30291         * modules/localename-tests (Files): Likewise.
30292         * modules/lseek-tests (Files): Likewise.
30293         * modules/lstat-tests (Files): Likewise.
30294         * modules/mbmemcasecmp-tests (Files): Likewise.
30295         * modules/mbmemcasecoll-tests (Files): Likewise.
30296         * modules/mbrtowc-tests (Files): Likewise.
30297         * modules/mbscasecmp-tests (Files): Likewise.
30298         * modules/mbscasestr-tests (Files): Likewise.
30299         * modules/mbschr-tests (Files): Likewise.
30300         * modules/mbscspn-tests (Files): Likewise.
30301         * modules/mbsinit-tests (Files): Likewise.
30302         * modules/mbsncasecmp-tests (Files): Likewise.
30303         * modules/mbsnrtowcs-tests (Files): Likewise.
30304         * modules/mbspbrk-tests (Files): Likewise.
30305         * modules/mbspcasecmp-tests (Files): Likewise.
30306         * modules/mbsrchr-tests (Files): Likewise.
30307         * modules/mbsrtowcs-tests (Files): Likewise.
30308         * modules/mbsspn-tests (Files): Likewise.
30309         * modules/mbsstr-tests (Files): Likewise.
30310         * modules/memchr-tests (Files): Likewise.
30311         * modules/memchr2-tests (Files): Likewise.
30312         * modules/memcmp-tests (Files): Likewise.
30313         * modules/memmem-tests (Files): Likewise.
30314         * modules/memrchr-tests (Files): Likewise.
30315         * modules/mkdir-tests (Files): Likewise.
30316         * modules/mkfifo-tests (Files): Likewise.
30317         * modules/mkfifoat-tests (Files): Likewise.
30318         * modules/mknod-tests (Files): Likewise.
30319         * modules/nanosleep-tests (Files): Likewise.
30320         * modules/nl_langinfo-tests (Files): Likewise.
30321         * modules/obstack-printf-tests (Files): Likewise.
30322         * modules/open-tests (Files): Likewise.
30323         * modules/openat-tests (Files): Likewise.
30324         * modules/pipe-filter-gi-tests (Files): Likewise.
30325         * modules/pipe-filter-ii-tests (Files): Likewise.
30326         * modules/pipe2-tests (Files): Likewise.
30327         * modules/popen-safer-tests (Files): Likewise.
30328         * modules/popen-tests (Files): Likewise.
30329         * modules/posixtm-tests (Files): Likewise.
30330         * modules/pread-tests (Files): Likewise.
30331         * modules/printf-frexp-tests (Files): Likewise.
30332         * modules/printf-frexpl-tests (Files): Likewise.
30333         * modules/printf-posix-tests (Files): Likewise.
30334         * modules/priv-set-tests (Files): Likewise.
30335         * modules/quotearg-tests (Files): Likewise.
30336         * modules/random_r-tests (Files): Likewise.
30337         * modules/rawmemchr-tests (Files): Likewise.
30338         * modules/rbtree-list-tests (Files): Likewise.
30339         * modules/rbtree-oset-tests (Files): Likewise.
30340         * modules/rbtreehash-list-tests (Files): Likewise.
30341         * modules/readlink-tests (Files): Likewise.
30342         * modules/remove-tests (Files): Likewise.
30343         * modules/rename-tests (Files): Likewise.
30344         * modules/renameat-tests (Files): Likewise.
30345         * modules/rmdir-tests (Files): Likewise.
30346         * modules/round-tests (Files): Likewise.
30347         * modules/roundf-tests (Files): Likewise.
30348         * modules/roundl-tests (Files): Likewise.
30349         * modules/safe-alloc-tests (Files): Likewise.
30350         * modules/setenv-tests (Files): Likewise.
30351         * modules/sigaction-tests (Files): Likewise.
30352         * modules/signbit-tests (Files): Likewise.
30353         * modules/sleep-tests (Files): Likewise.
30354         * modules/snprintf-posix-tests (Files): Likewise.
30355         * modules/snprintf-tests (Files): Likewise.
30356         * modules/sprintf-posix-tests (Files): Likewise.
30357         * modules/stat-tests (Files): Likewise.
30358         * modules/stat-time-tests (Files): Likewise.
30359         * modules/strcasestr-tests (Files): Likewise.
30360         * modules/strchrnul-tests (Files): Likewise.
30361         * modules/strerror-tests (Files): Likewise.
30362         * modules/striconv-tests (Files): Likewise.
30363         * modules/striconveh-tests (Files): Likewise.
30364         * modules/striconveha-tests (Files): Likewise.
30365         * modules/strsignal-tests (Files): Likewise.
30366         * modules/strstr-tests (Files): Likewise.
30367         * modules/strtod-tests (Files): Likewise.
30368         * modules/strverscmp-tests (Files): Likewise.
30369         * modules/symlink-tests (Files): Likewise.
30370         * modules/symlinkat-tests (Files): Likewise.
30371         * modules/trunc-tests (Files): Likewise.
30372         * modules/truncf-tests (Files): Likewise.
30373         * modules/truncl-tests (Files): Likewise.
30374         * modules/uname-tests (Files): Likewise.
30375         * modules/unicase/cased-tests (Files): Likewise.
30376         * modules/unicase/ignorable-tests (Files): Likewise.
30377         * modules/unicase/locale-language-tests (Files): Likewise.
30378         * modules/unicase/tolower-tests (Files): Likewise.
30379         * modules/unicase/totitle-tests (Files): Likewise.
30380         * modules/unicase/toupper-tests (Files): Likewise.
30381         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30382         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30383         * modules/unicase/u8-casefold-tests (Files): Likewise.
30384         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30385         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30386         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30387         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30388         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30389         * modules/unicase/u8-tolower-tests (Files): Likewise.
30390         * modules/unicase/u8-totitle-tests (Files): Likewise.
30391         * modules/unicase/u8-toupper-tests (Files): Likewise.
30392         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30393         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30394         * modules/unicase/u16-casefold-tests (Files): Likewise.
30395         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30396         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30397         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30398         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30399         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30400         * modules/unicase/u16-tolower-tests (Files): Likewise.
30401         * modules/unicase/u16-totitle-tests (Files): Likewise.
30402         * modules/unicase/u16-toupper-tests (Files): Likewise.
30403         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30404         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30405         * modules/unicase/u32-casefold-tests (Files): Likewise.
30406         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30407         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30408         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30409         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30410         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30411         * modules/unicase/u32-tolower-tests (Files): Likewise.
30412         * modules/unicase/u32-totitle-tests (Files): Likewise.
30413         * modules/unicase/u32-toupper-tests (Files): Likewise.
30414         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30415         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30416         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30417         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30418         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30419         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30420         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30421         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30422         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30423         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30424         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30425         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30426         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30427         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30428         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30429         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30430         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30431         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30432         * modules/unictype/block-list-tests (Files): Likewise.
30433         * modules/unictype/block-of-tests (Files): Likewise.
30434         * modules/unictype/block-test-tests (Files): Likewise.
30435         * modules/unictype/category-C-tests (Files): Likewise.
30436         * modules/unictype/category-Cc-tests (Files): Likewise.
30437         * modules/unictype/category-Cf-tests (Files): Likewise.
30438         * modules/unictype/category-Cn-tests (Files): Likewise.
30439         * modules/unictype/category-Co-tests (Files): Likewise.
30440         * modules/unictype/category-Cs-tests (Files): Likewise.
30441         * modules/unictype/category-L-tests (Files): Likewise.
30442         * modules/unictype/category-Ll-tests (Files): Likewise.
30443         * modules/unictype/category-Lm-tests (Files): Likewise.
30444         * modules/unictype/category-Lo-tests (Files): Likewise.
30445         * modules/unictype/category-Lt-tests (Files): Likewise.
30446         * modules/unictype/category-Lu-tests (Files): Likewise.
30447         * modules/unictype/category-M-tests (Files): Likewise.
30448         * modules/unictype/category-Mc-tests (Files): Likewise.
30449         * modules/unictype/category-Me-tests (Files): Likewise.
30450         * modules/unictype/category-Mn-tests (Files): Likewise.
30451         * modules/unictype/category-N-tests (Files): Likewise.
30452         * modules/unictype/category-Nd-tests (Files): Likewise.
30453         * modules/unictype/category-Nl-tests (Files): Likewise.
30454         * modules/unictype/category-No-tests (Files): Likewise.
30455         * modules/unictype/category-P-tests (Files): Likewise.
30456         * modules/unictype/category-Pc-tests (Files): Likewise.
30457         * modules/unictype/category-Pd-tests (Files): Likewise.
30458         * modules/unictype/category-Pe-tests (Files): Likewise.
30459         * modules/unictype/category-Pf-tests (Files): Likewise.
30460         * modules/unictype/category-Pi-tests (Files): Likewise.
30461         * modules/unictype/category-Po-tests (Files): Likewise.
30462         * modules/unictype/category-Ps-tests (Files): Likewise.
30463         * modules/unictype/category-S-tests (Files): Likewise.
30464         * modules/unictype/category-Sc-tests (Files): Likewise.
30465         * modules/unictype/category-Sk-tests (Files): Likewise.
30466         * modules/unictype/category-Sm-tests (Files): Likewise.
30467         * modules/unictype/category-So-tests (Files): Likewise.
30468         * modules/unictype/category-Z-tests (Files): Likewise.
30469         * modules/unictype/category-Zl-tests (Files): Likewise.
30470         * modules/unictype/category-Zp-tests (Files): Likewise.
30471         * modules/unictype/category-Zs-tests (Files): Likewise.
30472         * modules/unictype/category-and-not-tests (Files): Likewise.
30473         * modules/unictype/category-and-tests (Files): Likewise.
30474         * modules/unictype/category-byname-tests (Files): Likewise.
30475         * modules/unictype/category-name-tests (Files): Likewise.
30476         * modules/unictype/category-none-tests (Files): Likewise.
30477         * modules/unictype/category-of-tests (Files): Likewise.
30478         * modules/unictype/category-or-tests (Files): Likewise.
30479         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30480         * modules/unictype/combining-class-tests (Files): Likewise.
30481         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30482         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30483         * modules/unictype/ctype-blank-tests (Files): Likewise.
30484         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30485         * modules/unictype/ctype-digit-tests (Files): Likewise.
30486         * modules/unictype/ctype-graph-tests (Files): Likewise.
30487         * modules/unictype/ctype-lower-tests (Files): Likewise.
30488         * modules/unictype/ctype-print-tests (Files): Likewise.
30489         * modules/unictype/ctype-punct-tests (Files): Likewise.
30490         * modules/unictype/ctype-space-tests (Files): Likewise.
30491         * modules/unictype/ctype-upper-tests (Files): Likewise.
30492         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30493         * modules/unictype/decimal-digit-tests (Files): Likewise.
30494         * modules/unictype/digit-tests (Files): Likewise.
30495         * modules/unictype/mirror-tests (Files): Likewise.
30496         * modules/unictype/numeric-tests (Files): Likewise.
30497         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30498         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30499         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30500         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30501         Likewise.
30502         * modules/unictype/property-bidi-block-separator-tests (Files):
30503         Likewise.
30504         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30505         Likewise.
30506         * modules/unictype/property-bidi-common-separator-tests (Files):
30507         Likewise.
30508         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30509         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30510         Likewise.
30511         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30512         Likewise.
30513         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30514         Likewise.
30515         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30516         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30517         Likewise.
30518         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30519         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30520         Likewise.
30521         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30522         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30523         * modules/unictype/property-bidi-segment-separator-tests (Files):
30524         Likewise.
30525         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30526         * modules/unictype/property-byname-tests (Files): Likewise.
30527         * modules/unictype/property-combining-tests (Files): Likewise.
30528         * modules/unictype/property-composite-tests (Files): Likewise.
30529         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30530         * modules/unictype/property-dash-tests (Files): Likewise.
30531         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30532         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30533         Likewise.
30534         * modules/unictype/property-deprecated-tests (Files): Likewise.
30535         * modules/unictype/property-diacritic-tests (Files): Likewise.
30536         * modules/unictype/property-extender-tests (Files): Likewise.
30537         * modules/unictype/property-format-control-tests (Files): Likewise.
30538         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30539         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30540         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30541         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30542         * modules/unictype/property-hyphen-tests (Files): Likewise.
30543         * modules/unictype/property-id-continue-tests (Files): Likewise.
30544         * modules/unictype/property-id-start-tests (Files): Likewise.
30545         * modules/unictype/property-ideographic-tests (Files): Likewise.
30546         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30547         * modules/unictype/property-ids-trinary-operator-tests (Files):
30548         Likewise.
30549         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30550         * modules/unictype/property-iso-control-tests (Files): Likewise.
30551         * modules/unictype/property-join-control-tests (Files): Likewise.
30552         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30553         * modules/unictype/property-line-separator-tests (Files): Likewise.
30554         * modules/unictype/property-logical-order-exception-tests (Files):
30555         Likewise.
30556         * modules/unictype/property-lowercase-tests (Files): Likewise.
30557         * modules/unictype/property-math-tests (Files): Likewise.
30558         * modules/unictype/property-non-break-tests (Files): Likewise.
30559         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30560         * modules/unictype/property-numeric-tests (Files): Likewise.
30561         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30562         * modules/unictype/property-other-default-ignorable-code-point-tests
30563         (Files): Likewise.
30564         * modules/unictype/property-other-grapheme-extend-tests (Files):
30565         Likewise.
30566         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30567         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30568         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30569         * modules/unictype/property-other-math-tests (Files): Likewise.
30570         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30571         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30572         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30573         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30574         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30575         * modules/unictype/property-private-use-tests (Files): Likewise.
30576         * modules/unictype/property-punctuation-tests (Files): Likewise.
30577         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30578         * modules/unictype/property-radical-tests (Files): Likewise.
30579         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30580         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30581         * modules/unictype/property-space-tests (Files): Likewise.
30582         * modules/unictype/property-terminal-punctuation-tests (Files):
30583         Likewise.
30584         * modules/unictype/property-test-tests (Files): Likewise.
30585         * modules/unictype/property-titlecase-tests (Files): Likewise.
30586         * modules/unictype/property-unassigned-code-value-tests (Files):
30587         Likewise.
30588         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30589         * modules/unictype/property-uppercase-tests (Files): Likewise.
30590         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30591         * modules/unictype/property-white-space-tests (Files): Likewise.
30592         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30593         * modules/unictype/property-xid-start-tests (Files): Likewise.
30594         * modules/unictype/property-zero-width-tests (Files): Likewise.
30595         * modules/unictype/scripts-tests (Files): Likewise.
30596         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30597         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30598         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30599         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30600         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30601         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30602         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30603         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30604         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30605         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30606         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30607         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30608         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30609         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30610         * modules/uninorm/composition-tests (Files): Likewise.
30611         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30612         * modules/uninorm/decomposition-tests (Files): Likewise.
30613         * modules/uninorm/filter-tests (Files): Likewise.
30614         * modules/uninorm/nfc-tests (Files): Likewise.
30615         * modules/uninorm/nfd-tests (Files): Likewise.
30616         * modules/uninorm/nfkc-tests (Files): Likewise.
30617         * modules/uninorm/nfkd-tests (Files): Likewise.
30618         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30619         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30620         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30621         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30622         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30623         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30624         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30625         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30626         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30627         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30628         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30629         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30630         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30631         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30632         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30633         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30634         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30635         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30636         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30637         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30638         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30639         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30640         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30641         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30642         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30643         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30644         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30645         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30646         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30647         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30648         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30649         * modules/uniwidth/u8-width-tests (Files): Likewise.
30650         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30651         * modules/uniwidth/u16-width-tests (Files): Likewise.
30652         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30653         * modules/uniwidth/u32-width-tests (Files): Likewise.
30654         * modules/uniwidth/width-tests (Files): Likewise.
30655         * modules/unlink-tests (Files): Likewise.
30656         * modules/unsetenv-tests (Files): Likewise.
30657         * modules/usleep-tests (Files): Likewise.
30658         * modules/utimens-tests (Files): Likewise.
30659         * modules/utimensat-tests (Files): Likewise.
30660         * modules/vasnprintf-posix-tests (Files): Likewise.
30661         * modules/vasnprintf-tests (Files): Likewise.
30662         * modules/vasprintf-posix-tests (Files): Likewise.
30663         * modules/vasprintf-tests (Files): Likewise.
30664         * modules/vdprintf-posix-tests (Files): Likewise.
30665         * modules/vfprintf-posix-tests (Files): Likewise.
30666         * modules/vprintf-posix-tests (Files): Likewise.
30667         * modules/vsnprintf-posix-tests (Files): Likewise.
30668         * modules/vsnprintf-tests (Files): Likewise.
30669         * modules/vsprintf-posix-tests (Files): Likewise.
30670         * modules/wcrtomb-tests (Files): Likewise.
30671         * modules/wcsnrtombs-tests (Files): Likewise.
30672         * modules/wcsrtombs-tests (Files): Likewise.
30673         * modules/wctype-tests (Files): Likewise.
30674         * modules/wcwidth-tests (Files): Likewise.
30675         * modules/xmemdup0-tests (Files): Likewise.
30676         * modules/xprintf-posix-tests (Files): Likewise.
30677         * modules/xvasprintf-tests (Files): Likewise.
30678
30679 2009-12-24  Eric Blake  <ebb9@byu.net>
30680
30681         test-nanosleep: fix typo
30682         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30683         patch.
30684         Reported by Bruno Haible.
30685
30686 2009-12-24  Bruno Haible  <bruno@clisp.org>
30687
30688         Reduce namespace pollution on glibc systems.
30689         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30690         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30691         systems.
30692         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30693         <getopt.h> on glibc systems.
30694         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30695         systems.
30696         * lib/fcntl.c: Include <unistd.h> here instead.
30697
30698 2009-12-24  Bruno Haible  <bruno@clisp.org>
30699
30700         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30701
30702 2009-12-24  Eric Blake  <ebb9@byu.net>
30703
30704         tests: add signature checks
30705         * tests/signature.h (SIGNATURE_CHECK): New file.
30706         * modules/atexit-tests (Files): Use it.
30707         * modules/btowc-tests (Files): Likewise.
30708         * modules/canonicalize-lgpl-tests (Files): Likewise.
30709         * modules/ceilf-tests (Files): Likewise.
30710         * modules/ceill-tests (Files): Likewise.
30711         * modules/chown-tests (Files): Likewise.
30712         * modules/dprintf-posix-tests (Files): Likewise.
30713         * modules/dup2-tests (Files): Likewise.
30714         * modules/dup3-tests (Files): Likewise.
30715         * modules/duplocale-tests (Files): Likewise.
30716         * modules/fchdir-tests (Files): Likewise.
30717         * modules/fcntl-tests (Files): Likewise.
30718         * modules/fdopendir-tests (Files): Likewise.
30719         * modules/fflush-tests (Files): Likewise.
30720         * modules/flock-tests (Files): Likewise.
30721         * modules/floorf-tests (Files): Likewise.
30722         * modules/floorl-tests (Files): Likewise.
30723         * modules/fnmatch-tests (Files): Likewise.
30724         * modules/fopen-tests (Files): Likewise.
30725         * modules/fprintf-posix-tests (Files): Likewise.
30726         * modules/freopen-tests (Files): Likewise.
30727         * modules/frexp-nolibm-tests (Files): Likewise.
30728         * modules/frexp-tests (Files): Likewise.
30729         * modules/frexpl-nolibm-tests (Files): Likewise.
30730         * modules/frexpl-tests (Files): Likewise.
30731         * modules/fseek-tests (Files): Likewise.
30732         * modules/fseeko-tests (Files): Likewise.
30733         * modules/fsync-tests (Files): Likewise.
30734         * modules/ftell-tests (Files): Likewise.
30735         * modules/ftello-tests (Files): Likewise.
30736         * modules/futimens-tests (Files): Likewise.
30737         * modules/getaddrinfo-tests (Files): Likewise.
30738         * modules/getcwd-tests (Files): Likewise.
30739         * modules/getdelim-tests (Files): Likewise.
30740         * modules/getdtablesize-tests (Files): Likewise.
30741         * modules/getgroups-tests (Files): Likewise.
30742         * modules/gethostname-tests (Files): Likewise.
30743         * modules/getline-tests (Files): Likewise.
30744         * modules/getopt-posix-tests (Files): Likewise.
30745         * modules/gettimeofday-tests (Files): Likewise.
30746         * modules/glob-tests (Files): Likewise.
30747         * modules/iconv-tests (Files): Likewise.
30748         * modules/inet_ntop-tests (Files): Likewise.
30749         * modules/inet_pton-tests (Files): Likewise.
30750         * modules/isblank-tests (Files): Likewise.
30751         * modules/lchown-tests (Files): Likewise.
30752         * modules/ldexpl-tests (Files): Likewise.
30753         * modules/link-tests (Files): Likewise.
30754         * modules/linkat-tests (Files): Likewise.
30755         * modules/lseek-tests (Files): Likewise.
30756         * modules/lstat-tests (Files): Likewise.
30757         * modules/mbrtowc-tests (Files): Likewise.
30758         * modules/mbsinit-tests (Files): Likewise.
30759         * modules/mbsnrtowcs-tests (Files): Likewise.
30760         * modules/mbsrtowcs-tests (Files): Likewise.
30761         * modules/memchr-tests (Files): Likewise.
30762         * modules/memcmp-tests (Files): Likewise.
30763         * modules/memmem-tests (Files): Likewise.
30764         * modules/memrchr-tests (Files): Likewise.
30765         * modules/mkdir-tests (Files): Likewise.
30766         * modules/mkfifo-tests (Files): Likewise.
30767         * modules/mkfifoat-tests (Files): Likewise.
30768         * modules/mknod-tests (Files): Likewise.
30769         * modules/nanosleep-tests (Files): Likewise.
30770         * modules/nl_langinfo-tests (Files): Likewise.
30771         * modules/obstack-printf-tests (Files): Likewise.
30772         * modules/open-tests (Files): Likewise.
30773         * modules/openat-tests (Files): Likewise.
30774         * modules/perror-tests (Files): Likewise.
30775         * modules/pipe2-tests (Files): Likewise.
30776         * modules/poll-tests (Files): Likewise.
30777         * modules/popen-tests (Files): Likewise.
30778         * modules/posix_spawn-tests (Files): Likewise.
30779         * modules/posix_spawnp-tests (Files): Likewise.
30780         * modules/pread-tests (Files): Likewise.
30781         * modules/printf-posix-tests (Files): Likewise.
30782         * modules/pty-tests (Files): Likewise.
30783         * modules/random_r-tests (Files): Likewise.
30784         * modules/rawmemchr-tests (Files): Likewise.
30785         * modules/readlink-tests (Files): Likewise.
30786         * modules/remove-tests (Files): Likewise.
30787         * modules/rename-tests (Files): Likewise.
30788         * modules/renameat-tests (Files): Likewise.
30789         * modules/rmdir-tests (Files): Likewise.
30790         * modules/round-tests (Files): Likewise.
30791         * modules/roundf-tests (Files): Likewise.
30792         * modules/roundl-tests (Files): Likewise.
30793         * modules/select-tests (Files): Likewise.
30794         * modules/setenv-tests (Files): Likewise.
30795         * modules/sigaction-tests (Files): Likewise.
30796         * modules/sleep-tests (Files): Likewise.
30797         * modules/snprintf-posix-tests (Files): Likewise.
30798         * modules/snprintf-tests (Files): Likewise.
30799         * modules/sprintf-posix-tests (Files): Likewise.
30800         * modules/stat-tests (Files): Likewise.
30801         * modules/strcasestr-tests (Files): Likewise.
30802         * modules/strchrnul-tests (Files): Likewise.
30803         * modules/strerror-tests (Files): Likewise.
30804         * modules/strsignal-tests (Files): Likewise.
30805         * modules/strstr-tests (Files): Likewise.
30806         * modules/strtod-tests (Files): Likewise.
30807         * modules/strverscmp-tests (Files): Likewise.
30808         * modules/symlink-tests (Files): Likewise.
30809         * modules/symlinkat-tests (Files): Likewise.
30810         * modules/times-tests (Files): Likewise.
30811         * modules/trunc-tests (Files): Likewise.
30812         * modules/truncf-tests (Files): Likewise.
30813         * modules/truncl-tests (Files): Likewise.
30814         * modules/tsearch-tests (Files): Likewise.
30815         * modules/uname-tests (Files): Likewise.
30816         * modules/unlink-tests (Files): Likewise.
30817         * modules/unsetenv-tests (Files): Likewise.
30818         * modules/usleep-tests (Files): Likewise.
30819         * modules/utimensat-tests (Files): Likewise.
30820         * modules/vasprintf-tests (Files): Likewise.
30821         * modules/vdprintf-posix-tests (Files): Likewise.
30822         * modules/vfprintf-posix-tests (Files): Likewise.
30823         * modules/vprintf-posix-tests (Files): Likewise.
30824         * modules/vsnprintf-posix-tests (Files): Likewise.
30825         * modules/vsnprintf-tests (Files): Likewise.
30826         * modules/vsprintf-posix-tests (Files): Likewise.
30827         * modules/wcrtomb-tests (Files): Likewise.
30828         * modules/wcsnrtombs-tests (Files): Likewise.
30829         * modules/wcsrtombs-tests (Files): Likewise.
30830         * modules/wcwidth-tests (Files): Likewise.
30831         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30832         * tests/test-isinf.c (isinf): Likewise.
30833         * tests/test-isnan.c (isnan): Likewise.
30834         * tests/test-signbit.c (signbit): Likewise.
30835         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30836         declaration, either as macro or with correct signature.
30837         (select): Ensure function under test is declared with correct
30838         signature in correct header.
30839         * tests/test-atexit.c (atexit): Likewise.
30840         * tests/test-btowc.c (btowc): Likewise.
30841         * tests/test-canonicalize-lgpl.c (realpath)
30842         (canonicalize_file_name): Likewise.
30843         * tests/test-ceilf1.c (ceilf): Likewise.
30844         * tests/test-ceill.c (ceill): Likewise.
30845         * tests/test-chown.c (chown): Likewise.
30846         * tests/test-dprintf-posix.c (dprintf): Likewise.
30847         * tests/test-dup2.c (dup2): Likewise.
30848         * tests/test-dup3.c (dup3): Likewise.
30849         * tests/test-duplocale.c (duplocale): Likewise.
30850         * tests/test-fchdir.c (fchdir): Likewise.
30851         * tests/test-fchownat.c (fchownat): Likewise.
30852         * tests/test-fcntl.c (fcntl): Likewise.
30853         * tests/test-fdopendir.c (fdopendir): Likewise.
30854         * tests/test-fflush.c (fflush): Likewise.
30855         * tests/test-flock.c (flock): Likewise.
30856         * tests/test-floorf1.c (floorf): Likewise.
30857         * tests/test-floorl.c (floorl): Likewise.
30858         * tests/test-fnmatch.c (fnmatch): Likewise.
30859         * tests/test-fopen.c (fopen): Likewise.
30860         * tests/test-fprintf-posix.c (fprintf): Likewise.
30861         * tests/test-freopen.c (freopen): Likewise.
30862         * tests/test-frexp.c (frexp): Likewise.
30863         * tests/test-frexpl.c (frexpl): Likewise.
30864         * tests/test-fseek.c (fseek): Likewise.
30865         * tests/test-fseeko.c (fseeko): Likewise.
30866         * tests/test-fstatat.c (fstatat): Likewise.
30867         * tests/test-fsync.c (fsync): Likewise.
30868         * tests/test-ftell.c (ftell): Likewise.
30869         * tests/test-ftello.c (ftello): Likewise.
30870         * tests/test-futimens.c (futimens): Likewise.
30871         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30872         (gai_strerror): Likewise.
30873         * tests/test-getcwd.c (getcwd): Likewise.
30874         * tests/test-getdelim.c (getdelim): Likewise.
30875         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30876         * tests/test-getgroups.c (getgroups): Likewise.
30877         * tests/test-gethostname.c (gethostname): Likewise.
30878         * tests/test-getline.c (getline): Likewise.
30879         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30880         Likewise.
30881         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30882         * tests/test-glob.c (glob, globfree): Likewise.
30883         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30884         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30885         * tests/test-inet_pton.c (inet_pton): Likewise.
30886         * tests/test-isblank.c (isblank): Likewise.
30887         * tests/test-lchown.c (lchown): Likewise.
30888         * tests/test-ldexpl.c (ldexpl): Likewise.
30889         * tests/test-link.c (link): Likewise.
30890         * tests/test-linkat.c (linkat): Likewise.
30891         * tests/test-lseek.c (lseek): Likewise.
30892         * tests/test-lstat.c (lstat): Likewise.
30893         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30894         * tests/test-mbsinit.c (mbsinit): Likewise.
30895         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30896         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30897         * tests/test-memchr.c (memchr): Likewise.
30898         * tests/test-memcmp.c (memcmp): Likewise.
30899         * tests/test-memmem.c (memmem): Likewise.
30900         * tests/test-memrchr.c (memrchr): Likewise.
30901         * tests/test-mkdir.c (mkdir): Likewise.
30902         * tests/test-mkdirat.c (mkdirat): Likewise.
30903         * tests/test-mkfifo.c (mkfifo): Likewise.
30904         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30905         * tests/test-mknod.c (mknod): Likewise.
30906         * tests/test-nanosleep.c (nanosleep): Likewise.
30907         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30908         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30909         Likewise.
30910         * tests/test-open.c (open): Likewise.
30911         * tests/test-openat.c (openat): Likewise.
30912         * tests/test-perror.c (perror): Likewise.
30913         * tests/test-pipe2.c (pipe2): Likewise.
30914         * tests/test-poll.c (poll): Likewise.
30915         * tests/test-popen.c (popen, pclose): Likewise.
30916         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30917         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30918         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30919         (posix_spawn_file_actions_destroy)
30920         (posix_spawn_file_actions_addclose)
30921         (posix_spawn_file_actions_addopen)
30922         (posix_spawn_file_actions_adddup2): Likewise.
30923         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30924         * tests/test-pread.c (pread): Likewise.
30925         * tests/test-printf-posix.c (printf): Likewise.
30926         * tests/test-pty.c (openpty, forkpty): Likewise.
30927         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30928         (random_r): Likewise.
30929         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30930         * tests/test-readlink.c (readlink): Likewise.
30931         * tests/test-remove.c (remove): Likewise.
30932         * tests/test-rename.c (rename): Likewise.
30933         * tests/test-renameat.c (renameat): Likewise.
30934         * tests/test-rmdir.c (rmdir): Likewise.
30935         * tests/test-round1.c (round): Likewise.
30936         * tests/test-roundf1.c (roundf): Likewise.
30937         * tests/test-roundl.c (roundl): Likewise.
30938         * tests/test-setenv.c (setenv): Likewise.
30939         * tests/test-sigaction.c (sigaction): Likewise.
30940         * tests/test-sleep.c (sleep): Likewise.
30941         * tests/test-snprintf.c (snprintf): Likewise.
30942         * tests/test-sprintf-posix.c (sprintf): Likewise.
30943         * tests/test-stat.c (stat): Likewise.
30944         * tests/test-stpncpy.c (stpncpy): Likewise.
30945         * tests/test-strcasestr.c (strcasestr): Likewise.
30946         * tests/test-strchrnul.c (strchrnul): Likewise.
30947         * tests/test-strerror.c (strerror): Likewise.
30948         * tests/test-strsignal.c (strsignal): Likewise.
30949         * tests/test-strstr.c (strstr): Likewise.
30950         * tests/test-strtod.c (strtod): Likewise.
30951         * tests/test-strverscmp.c (strverscmp): Likewise.
30952         * tests/test-symlink.c (symlink): Likewise.
30953         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30954         * tests/test-times.c (times): Likewise.
30955         * tests/test-trunc1.c (trunc): Likewise.
30956         * tests/test-truncf1.c (truncf): Likewise.
30957         * tests/test-truncl.c (truncl): Likewise.
30958         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30959         Likewise.
30960         * tests/test-uname.c (uname): Likewise.
30961         * tests/test-unlink.c (unlink): Likewise.
30962         * tests/test-unlinkat.c (unlinkat): Likewise.
30963         * tests/test-unsetenv.c (unsetenv): Likewise.
30964         * tests/test-usleep.c (usleep): Likewise.
30965         * tests/test-utimensat.c (utimensat): Likewise.
30966         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30967         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30968         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30969         * tests/test-vprintf-posix.c (vprintf): Likewise.
30970         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30971         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30972         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30973         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30974         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30975         * tests/test-wcwidth.c (wcwidth): Likewise.
30976
30977         build: pull in conditional headers during GNULIB_POSIXCHECK
30978         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30979         definitions from any conditionally-included headers.
30980         * lib/stdlib.in.h (includes): Likewise.
30981         * lib/unistd.in.h (includes): Likewise.
30982
30983 2009-12-24  Bruno Haible  <bruno@clisp.org>
30984
30985         * tests/test-argv-iter.c: Include header file being tested immediately
30986         after config.h.
30987         * tests/test-base64.c: Likewise.
30988         * tests/test-flock.c: Likewise.
30989         * tests/test-fsync.c: Likewise.
30990         * tests/test-getdate.c: Likewise.
30991         * tests/test-getndelim2.c: Likewise.
30992         * tests/test-isfinite.c: Likewise.
30993         * tests/test-isinf.c: Likewise.
30994         * tests/test-strerror.c: Likewise.
30995         * tests/test-strsignal.c: Likewise.
30996
30997 2009-12-23  Eric Blake  <ebb9@byu.net>
30998
30999         unistd: work around cygwin bug
31000         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31001         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31002         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31003
31004 2009-12-23  Bruno Haible  <bruno@clisp.org>
31005
31006         localename: More tests.
31007         * tests/test-localename.c (SIZEOF): New macro.
31008         (categories): New variable.
31009         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31010         test_locale_name_default): Add test w.r.t. thread locale.
31011         (test_locale_name_thread): New function.
31012         (main): Invoke it.
31013
31014         localename: Make aware of thread locale.
31015         * lib/localename.h (gl_locale_name_thread): New declaration.
31016         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31017         behaviour with respect to thread locale.
31018         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31019         <langinfo.h>, glthread/lock.h.
31020         (SIZE_BITS): New macro.
31021         (string_hash): New function.
31022         (struct hash_node): New type.
31023         (HASH_TABLE_SIZE): New macro.
31024         (struniq_hash_table, struniq_lock): New variables.
31025         (struniq): New function.
31026         (gl_locale_name_thread): New function.
31027         (gl_locale_name): Invoke it.
31028         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31029         * modules/localename (Depends-on): Add lock.
31030         Reported by Mike Gran <spk121@yahoo.com>.
31031
31032 2009-12-23  Eric Blake  <ebb9@byu.net>
31033
31034         va-args: new module
31035         * modules/va-args: New file.
31036         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31037         * MODULES.html.sh (Core language properties): Mention it.
31038
31039         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31040         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31041         named alias for __attribute__((__unused__)).
31042         * lib/chown.c: Update client.
31043         * lib/fchmodat.c: Likewise.
31044         * lib/fts.c: Likewise.
31045         * lib/getdate.y: Likewise.
31046         * lib/getgroups.c: Likewise.
31047         * lib/getopt.c: Likewise.
31048         * lib/getugroups.c: Likewise.
31049         * lib/mkdir.c: Likewise.
31050         * lib/mkfifo.c: Likewise.
31051         * lib/mkfifoat.c: Likewise.
31052         * lib/mknod.c: Likewise.
31053         * lib/mknodat.c: Likewise.
31054         * lib/readlink.c: Likewise.
31055         * lib/se-context.in.h: Likewise.
31056         * lib/se-selinux.in.h: Likewise.
31057         * lib/sockets.c: Likewise.
31058         * lib/symlink.c: Likewise.
31059         * lib/symlinkat.c: Likewise.
31060         * lib/unicodeio.c: Likewise.
31061         * lib/unistr.h: Likewise.
31062         * tests/test-areadlink.c: Likewise.
31063         * tests/test-areadlinkat.c: Likewise.
31064         * tests/test-filenamecat.c: Likewise.
31065         * tests/test-fseeko.c: Likewise.
31066         * tests/test-ftello.c: Likewise.
31067         * tests/test-getdate.c: Likewise.
31068         * tests/test-getgroups.c: Likewise.
31069         * tests/test-gethostname.c: Likewise.
31070         * tests/test-quotearg.c: Likewise.
31071         * tests/test-version-etc.c: Likewise.
31072         * tests/test-xalloc-die.c: Likewise.
31073         * tests/test-xfprintf-posix.c: Likewise.
31074         * tests/test-xprintf-posix.c: Likewise.
31075         * tests/test-xvasprintf.c: Likewise.
31076
31077         tests: avoid compiler warnings
31078         * tests/test-fcntl.c (main): Delete unused parameters.
31079         * tests/test-freopen-safer.c (main): Likewise.
31080         * tests/test-xalloc-die.c (main): Mark unused parameters.
31081         * tests/test-fseeko.c (main): Likewise.
31082         * tests/test-ftello.c (main): Likewise.
31083         * tests/test-nanosleep.c (main): Avoid declaration warning.
31084         * tests/test-sleep.c (main): Likewise.
31085         * tests/test-unsetenv.c (main): Silence warning about string
31086         literal.
31087         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31088
31089 2009-12-23  Bruno Haible  <bruno@clisp.org>
31090
31091         * tests/test-localename.c (test_locale_name): New function, extracted
31092         from main. Also test mixed situations.
31093         (test_locale_name_posix, test_locale_name_environ,
31094         test_locale_name_default): New functions.
31095         (main): Invoke them all.
31096         * modules/localename-tests (configure.ac): Test for newlocale.
31097
31098 2009-12-23  Bruno Haible  <bruno@clisp.org>
31099
31100         unistd: Ensure getcwd gets declared before being overridden.
31101         * lib/unistd.in.h: Conditionally include <io.h>.
31102
31103 2009-12-22  Bruno Haible  <bruno@clisp.org>
31104
31105         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31106         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31107         (gl_WCHAR_H): Invoke it.
31108         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31109         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31110         Reported by Karl Berry <karl@freefriends.org>.
31111
31112 2009-12-22  Eric Blake  <ebb9@byu.net>
31113
31114         math, unistd: avoid redundant includes
31115         * lib/math.in.h (isnan): No need to re-include <math.h>.
31116         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31117
31118         getsubopt: work around cygwin bug
31119         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31120         avoid conflicting with system getsubopt.
31121         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31122         bug.
31123
31124         getopt: synchronize from glibc
31125         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31126         parameter order.  Adjust all callers.
31127         (_getopt_internal_r, main): Adjust quoting in error messages.
31128         Drop considerations for outdated POSIX 1003.2 error message.
31129         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31130         callers.
31131         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31132
31133         test-getopt: test stderr behavior
31134         * modules/getopt-posix-tests (Depends-on): Add dup2.
31135         * tests/test-getopt.c (ASSERT): Avoid stderr.
31136         (main): Move stderr to a temporary file.
31137         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31138         Instead, add parameter to inform caller if output occurred.
31139         (test_getopt): Adjust all existing tests to expect silence, and
31140         add new tests of leading ":".
31141         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31142         glibc shortcomings with leading "-:" or "+:" in optstring.
31143         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31144         Likewise.
31145         * doc/posix-functions/getopt.texi (getopt): Likewise.
31146
31147         test-getopt: enhance test
31148         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31149         supports optind=0.
31150         * tests/test-getopt.c (OPTIND_MIN): Move...
31151         * tests/test-getopt.h (OPTIND_MIN): ...here.
31152         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31153         Require that optind=0 works, since modern BSD supports it in
31154         addition to optreset, and since coreutils expects it.
31155         (test_getopt_long_only): New test.
31156         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31157         glibc shortcomings with 'W;', and enforcement of optind=0.
31158         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31159         Likewise.
31160
31161 2009-12-21  Bruno Haible  <bruno@clisp.org>
31162
31163         localename: Improvements for MacOS X and Cygwin.
31164         * lib/localename.h (gl_locale_name_environ): New declaration.
31165         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31166         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31167         (gl_locale_name_posix): Invoke it.
31168         (gl_locale_name_default): Add comments. Use Windows native API also on
31169         Cygwin.
31170
31171 2009-12-21  Bruno Haible  <bruno@clisp.org>
31172
31173         Update list of Win32 locale ids.
31174         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31175         (LANG_SAMI): Renamed from LANG_SAAMI.
31176         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31177         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31178         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31179         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31180         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31181         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31182         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31183         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31184         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31185         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31186         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31187         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31188         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31189         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31190         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31191         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31192         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31193         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31194         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31195         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31196         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31197         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31198         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31199         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31200         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31201         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31202         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31203         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31204         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31205         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31206         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31207         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31208         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31209         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31210         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31211         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31212         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31213         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31214         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31215         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31216         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31217         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31218         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31219         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31220         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31221         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31222         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31223         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31224         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31225         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31226         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31227         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31228         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31229         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31230         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31231         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31232         Add more languages and countries for Sami, Sorbian. Add more countries
31233         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31234         for Pashto. Change country for Syriac, Tswana.
31235
31236 2009-12-21  Eric Blake  <ebb9@byu.net>
31237
31238         test-utimens: avoid spurious failure
31239         * tests/test-chown.h (nap): Factor...
31240         * tests/nap.h: ...into new file.
31241         * tests/test-lchown.h (nap): Avoid duplication.
31242         * tests/test-utimens-common.h (nap): Use shared implementation,
31243         necessary on file systems with 1-second resolution.
31244         * modules/chown-tests (Files): Include new file.
31245         * modules/fdutimensat-tests (Files): Likewise.
31246         * modules/futimens-tests (Files): Likewise.
31247         * modules/lchown-tests (Files): Likewise.
31248         * modules/openat-tests (Files): Likewise.
31249         * modules/utimens-tests (Files): Likewise.
31250         * modules/utimensat-tests (Files): Likewise.
31251
31252 2009-12-19  Eric Blake  <ebb9@byu.net>
31253
31254         futimens, utimensat: work around Linux bug
31255         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31256         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31257         * lib/utimensat.c (rpl_utimensat): Work around it.
31258         * lib/futimens.c (rpl_futimens): Adjust comment.
31259
31260         utimens: work around Linux ctime bug
31261         * lib/utimens.c (detect_ctime_bug): New helper function.
31262         (update_timespec): Differentiate between workaround needed for
31263         this bug vs. what is needed for systems that lack utimensat.
31264         (fdutimens, lutimens): Work around bug.
31265
31266         utimens: check for ctime update
31267         * tests/test-utimens-common.h (check_ctime): Define.
31268         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31269         * tests/test-futimens.h (test_futimens): Likewise.
31270         * tests/test-lutimens.h (test_lutimens): Likewise.
31271         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31272         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31273
31274 2009-12-19  Bruno Haible  <bruno@clisp.org>
31275
31276         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31277         * tests/test-dprintf-posix2.sh: New file.
31278         * tests/test-dprintf-posix2.c: New file.
31279         * modules/dprintf-posix-tests (Files): Add them.
31280         (configure.ac): Check for getrlimit and setrlimit.
31281         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31282
31283 2009-12-19  Bruno Haible  <bruno@clisp.org>
31284
31285         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31286         * tests/test-fprintf-posix3.sh: New file.
31287         * tests/test-fprintf-posix3.c: New file.
31288         * modules/fprintf-posix-tests (Files): Add them.
31289         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31290
31291 2009-12-19  Eric Blake  <ebb9@byu.net>
31292
31293         dirfd: fix prototype
31294         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31295         * lib/dirfd.c (dirfd): Likewise.
31296
31297         canonicalize: reduce memory usage
31298         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31299         allocation to size.
31300         Reported by Solar Designer <solar@openwall.com>.
31301
31302 2009-12-19  Bruno Haible  <bruno@clisp.org>
31303
31304         New module attribute 'Applicability'.
31305         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31306         * gnulib-tool: New option --extract-applicability.
31307         (func_usage): Document it.
31308         (sed_extract_prog): Recognize it.
31309         (func_get_applicability): New function.
31310         (func_import): Generalize handling of 'link-warning' module.
31311         * modules/link-warning (Applicability): New section.
31312         * modules/arg-nonnull (Applicability): New section.
31313         Repoted by Simon Josefsson <simon@josefsson.org>.
31314
31315 2009-12-19  Bruno Haible  <bruno@clisp.org>
31316
31317         fflush: tweak
31318         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31319         * lib/fseeko.c (rpl_fseeko): Likewise.
31320
31321 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31322
31323         * lib/gl_list.h: Fix typo in comment.
31324
31325 2009-12-16  Eric Blake  <ebb9@byu.net>
31326
31327         fcntl: use to simplify other modules
31328         * modules/cloexec (Depends-on): Add fcntl.
31329         * modules/fchdir (Depends-on): Likewise.
31330         * modules/fd-safer-flag (Depends-on): Likewise.
31331         * modules/unistd-safer (Depends-on): Likewise.
31332         * modules/dup3 (configure.ac): Set module indicator.
31333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31334         missing.
31335         * lib/fchdir.c (_gl_register_dup): Fix comment.
31336         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31337         * lib/dup-safer.c (dup_safer): Likewise.
31338         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31339         * lib/dup3.c (dup3): Likewise.
31340         * tests/test-fchdir.c (main): Enhance test.
31341         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31342
31343         fcntl: port portions of fcntl to mingw
31344         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31345         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31346         replacement for mingw.
31347         * modules/fcntl (Description): Update.
31348         (Depends-on): Add dup2.
31349         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31350         * modules/fcntl-h (Makefile.am): Substitute it.
31351         * lib/fcntl.in.h (fcntl): Update declaration.
31352         (F_DUPFD, F_GETFD): New macros, when needed.
31353         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31354         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31355         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31356         we now guarantee.
31357
31358         fcntl: work around cygwin bug in F_DUPFD
31359         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31360         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31361         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31362         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31363         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31364
31365         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31366         * modules/fcntl (Files): List new files.
31367         (configure.ac): Run a test.
31368         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31369         * lib/fcntl.c (rpl_fcntl): Likewise.
31370         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31371         (gl_FCNTL_H): Always replace fcntl.h.
31372         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31373         * lib/fcntl.in.h (fcntl): Declare replacement.
31374         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31375         needed, plus a witness.
31376         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31377         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31378         * tests/test-fcntl.c: New file.
31379         * modules/fcntl-tests: Likewise.
31380
31381         binary-io: avoid potential compilation warning
31382         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31383         directives.
31384
31385         fflush: avoid compilation error on NetBSD
31386         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31387         between off_t and fpos_t, since the latter is sometimes a struct.
31388         * lib/fseeko.c (rpl_fseeko): Likewise.
31389         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31390
31391 2009-12-15  Eric Blake  <ebb9@byu.net>
31392
31393         fcntl-h, stdio, sys_ioctl: fix declarations
31394         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31395         function must not take arguments.
31396         * lib/sys_ioctl.in.h (ioctl): Likewise.
31397         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31398         (open): Add a link warning.
31399
31400 2009-12-15  Jim Meyering  <meyering@redhat.com>
31401
31402         areadlink, areadlink-with-size: relax license to LGPLv2+
31403         * modules/areadlink (License): Relax to LGPLv2+.
31404         * modules/areadlink-with-size (License): Likewise.
31405
31406 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31407             Bruno Haible  <bruno@clisp.org>
31408
31409         *printf: Fix memory leak.
31410         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31411         * lib/vfprintf.c (vfprintf): Likewise.
31412         * lib/dprintf.c (dprintf): Likewise.
31413         * lib/vdprintf.c (vdprintf): Likewise.
31414
31415 2009-12-14  Eric Blake  <ebb9@byu.net>
31416
31417         accept4: adjust module dependencies
31418         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31419
31420         utimens: one more try at avoiding compiler warning
31421         * lib/utimens.c (lutimens): Lower scope of result.
31422
31423 2009-12-13  Bruno Haible  <bruno@clisp.org>
31424
31425         Move the malloc checking from module 'list' to new module 'xlist'.
31426         * modules/xlist: New file.
31427         * lib/gl_xlist.h: New file.
31428         * lib/gl_xlist.c: New file.
31429         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31430         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31431         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31432         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31433         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31434         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31435         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31436         gl_sortedlist_nx_add): New declarations.
31437         (struct gl_list_implementation): Rename and change methods accordingly.
31438         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31439         (gl_list_nx_create): Renamed from gl_list_create.
31440         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31441         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31442         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31443         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31444         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31445         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31446         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31447         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31448         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31449         gl_list_create_empty.
31450         (gl_list_nx_create): Renamed from gl_list_create.
31451         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31452         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31453         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31454         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31455         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31456         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31457         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31458         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31459         * lib/gl_array_list.c: Don't include xalloc.h.
31460         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31461         NULL upon out-of-memory.
31462         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31463         out-of-memory.
31464         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31465         Change return type to 'int'.
31466         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31467         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31468         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31469         upon out-of-memory.
31470         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31471         upon out-of-memory.
31472         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31473         upon out-of-memory.
31474         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31475         upon out-of-memory.
31476         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31477         out-of-memory.
31478         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31479         Update.
31480         (gl_array_list_implementation): Update.
31481         * lib/gl_carray_list.c: Don't include xalloc.h.
31482         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31483         Return NULL upon out-of-memory.
31484         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31485         out-of-memory.
31486         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31487         Change return type to 'int'.
31488         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31489         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31490         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31491         upon out-of-memory.
31492         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31493         upon out-of-memory.
31494         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31495         out-of-memory.
31496         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31497         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31498         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31499         Update.
31500         (gl_carray_list_implementation): Update.
31501         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31502         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31503         gl_linked_create_empty. Return NULL upon out-of-memory.
31504         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31505         out-of-memory.
31506         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31507         Change return type to 'int'. Return -1 upon out-of-memory.
31508         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31509         out-of-memory.
31510         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31511         upon out-of-memory.
31512         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31513         upon out-of-memory.
31514         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31515         NULL upon out-of-memory.
31516         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31517         upon out-of-memory.
31518         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31519         out-of-memory.
31520         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31521         Update.
31522         * lib/gl_linked_list.c: Don't include xalloc.h.
31523         (gl_linked_list_implementation): Update.
31524         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31525         (add_to_bucket): Change return type to 'int'.
31526         (gl_linkedhash_list_implementation): Update.
31527         * lib/gl_anytree_list1.h (free_subtree): New function.
31528         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31529         gl_tree_create_empty. Return NULL upon out-of-memory.
31530         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31531         Change return type to 'int'. Return -1 upon out-of-memory.
31532         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31533         out-of-memory.
31534         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31535         (gl_tree_remove_node): New function, moved here from
31536         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31537         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31538         Update.
31539         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31540         malloc, not xmalloc. Return NULL upon out-of-memory.
31541         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31542         out-of-memory.
31543         (gl_tree_remove_node_from_tree): New function, extracted from
31544         gl_tree_remove_node.
31545         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31546         upon out-of-memory.
31547         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31548         out-of-memory.
31549         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31550         upon out-of-memory.
31551         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31552         upon out-of-memory.
31553         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31554         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31555         not xmalloc. Return NULL upon out-of-memory.
31556         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31557         out-of-memory.
31558         (gl_tree_remove_node_from_tree): New function, extracted from
31559         gl_tree_remove_node.
31560         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31561         upon out-of-memory.
31562         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31563         out-of-memory.
31564         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31565         upon out-of-memory.
31566         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31567         upon out-of-memory.
31568         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31569         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31570         gl_anytree_list1.h before gl_anyavltree_list2.h.
31571         (gl_avltree_list_implementation): Update.
31572         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31573         gl_anytree_list1.h before gl_anyavltree_list2.h.
31574         (gl_rbtree_list_implementation): Update.
31575         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31576         Change return type to 'int'. Return -1 upon out-of-memory. Use
31577         __builtin_expect.
31578         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31579         (gl_avltreehash_list_implementation): Update.
31580         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31581         (gl_rbtreehash_list_implementation): Update.
31582         * modules/array-list (Depends-on): Remove xalloc.
31583         * modules/carray-list (Depends-on): Likewise.
31584         * modules/linked-list (Depends-on): Likewise.
31585         * modules/linkedhash-list (Depends-on): Likewise.
31586         * modules/avltree-list (Depends-on): Likewise.
31587         * modules/rbtree-list (Depends-on): Likewise.
31588         * modules/avltreehash-list (Depends-on): Likewise.
31589         * modules/rbtreehash-list (Depends-on): Likewise.
31590
31591         * modules/xsublist: New file.
31592         * lib/gl_xsublist.h: New file.
31593         * lib/gl_xsublist.c: New file.
31594         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31595         (gl_sublist_nx_create): New declaration.
31596         * lib/gl_sublist.c: Don't include xalloc.h.
31597         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31598         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31599         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31600         Change return type to 'int'. Return -1 upon out-of-memory.
31601         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31602         upon out-of-memory.
31603         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31604         NULL upon out-of-memory.
31605         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31606         upon out-of-memory.
31607         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31608         NULL upon out-of-memory.
31609         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31610         NULL upon out-of-memory.
31611         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31612         upon out-of-memory.
31613         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31614         (gl_sublist_list_implementation): Update.
31615         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31616         upon out-of-memory.
31617         * modules/sublist (Depends-on): Remove xalloc.
31618
31619         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31620         * tests/test-carray_list.c: Likewise.
31621         * tests/test-linked_list.c: Likewise.
31622         * tests/test-linkedhash_list.c: Likewise.
31623         * tests/test-avltree_list.c: Likewise.
31624         * tests/test-rbtree_list.c: Likewise.
31625         * tests/test-avltreehash_list.c: Likewise.
31626         * tests/test-rbtreehash_list.c: Likewise.
31627         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31628         * modules/carray-list-tests (Makefile.am): Likewise.
31629         * modules/linked-list-tests (Makefile.am): Likewise.
31630         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31631         * modules/avltree-list-tests (Makefile.am): Likewise.
31632         * modules/rbtree-list-tests (Makefile.am): Likewise.
31633         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31634         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31635
31636         * NEWS: Mention the changes.
31637
31638         * lib/clean-temp.c: Include gl_xlist.h.
31639         * modules/clean-temp (Depends-on): Add xlist.
31640
31641         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31642         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31643
31644         * tests/test-array_oset.c: Include gl_xlist.h.
31645         * modules/array-oset-tests (Depends-on): Add xlist.
31646
31647         Reported by José E. Marchesi <jemarch@gnu.org>.
31648
31649 2009-12-13  Bruno Haible  <bruno@clisp.org>
31650
31651         Move the malloc checking from module 'oset' to new module 'xoset'.
31652         * modules/xoset: New file.
31653         * lib/gl_xoset.h: New file.
31654         * lib/gl_xoset.c: New file.
31655         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31656         declarations.
31657         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31658         (struct gl_oset_implementation): Rename and change methods accordingly.
31659         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31660         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31661         'int'. Mark as __warn_unused_result__.
31662         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31663         gl_oset_create_empty.
31664         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31665         'int'.
31666         * lib/gl_array_oset.c: Don't include xalloc.h.
31667         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31668         malloc, not xmalloc.
31669         (grow): Change return type to 'int'. Don't call xalloc_die.
31670         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31671         to 'int'.
31672         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31673         'int'.
31674         (gl_array_oset_implementation): Update.
31675         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31676         gl_tree_create_empty.
31677         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31678         'int'.
31679         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31680         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31681         xmalloc.
31682         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31683         not xmalloc.
31684         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31685         xmalloc.
31686         (gl_avltree_oset_implementation): Update.
31687         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31688         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31689         xmalloc.
31690         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31691         not xmalloc.
31692         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31693         xmalloc.
31694         (gl_rbtree_oset_implementation): Update.
31695         * modules/array-oset (Depends-on): Remove xalloc.
31696         * modules/avltree-oset (Depends-on): Likewise.
31697         * modules/rbtree-oset (Depends-on): Likewise.
31698         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31699         * tests/test-avltree_oset.c: Likewise.
31700         * tests/test-rbtree_oset.c: Likewise.
31701         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31702         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31703         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31704         * NEWS: Mention the change.
31705
31706 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31707
31708         maint.mk: allow a project to override release-prep commands
31709         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31710         commands into a new rule.
31711         (release-prep): New rule.
31712         (release-prep-hook): New overridable variable.
31713
31714 2009-12-13  Bruno Haible  <bruno@clisp.org>
31715
31716         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31717
31718 2009-12-13  Jim Meyering  <meyering@redhat.com>
31719
31720         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31721         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31722
31723 2009-12-12  Bruno Haible  <bruno@clisp.org>
31724
31725         duplocale: Tweak.
31726         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31727
31728 2009-12-12  Karl Berry  <karl@gnu.org>
31729
31730         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31731
31732 2009-12-12  Bruno Haible  <bruno@clisp.org>
31733
31734         * m4/po.m4: Undo incorrect untabification.
31735
31736 2009-12-12  Bruno Haible  <bruno@clisp.org>
31737
31738         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31739         * modules/c-strtod (Depends-on): Add locale.
31740         * modules/c-strtold (Depends-on): Likewise.
31741
31742 2009-12-12  Bruno Haible  <bruno@clisp.org>
31743
31744         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31745
31746 2009-12-11  Eric Blake  <ebb9@byu.net>
31747
31748         setenv: relax requirement in light of POSIX ruling
31749         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31750         not NULL.
31751         * tests/test-setenv.c (main): Relax test.
31752         * tests/test-unsetenv.c (main): Likewise.
31753         * doc/posix-functions/setenv.texi (setenv): Document this.
31754         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31755
31756 2009-12-11  Bruno Haible  <bruno@clisp.org>
31757
31758         New module 'fd-safer-flag'.
31759         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31760         * lib/dup-safer.c (dup_safer_flag): Remove function.
31761         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31762         * lib/fd-safer.c (fd_safer_flag): Remove function.
31763         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31764         * modules/cloexec (configure.ac): Drop indicator macro.
31765         * modules/fd-safer-flag: New file.
31766         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31767         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31768         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31769
31770 2009-12-11  Bruno Haible  <bruno@clisp.org>
31771
31772         Tests for module 'nl_langinfo'.
31773         * modules/nl_langinfo-tests: New file.
31774         * tests/test-nl_langinfo.sh: New file.
31775         * tests/test-nl_langinfo.c: New file.
31776
31777         New module 'nl_langinfo'.
31778         * lib/nl_langinfo.c: New file.
31779         * m4/nl_langinfo.m4: New file.
31780         * modules/nl_langinfo: New file.
31781         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31782
31783 2009-12-11  Bruno Haible  <bruno@clisp.org>
31784
31785         Tests for module 'langinfo'.
31786         * modules/langinfo-tests: New file.
31787         * tests/test-langinfo.c: New file.
31788
31789         New module 'langinfo'.
31790         * lib/langinfo.in.h: New file.
31791         * m4/langinfo_h.m4: New file.
31792         * modules/langinfo: New file.
31793         * doc/posix-headers/langinfo.texi: Mention the new module.
31794
31795 2009-12-11  Bruno Haible  <bruno@clisp.org>
31796
31797         * lib/config.charset: Untabify.
31798
31799 2009-12-11  Bruno Haible  <bruno@clisp.org>
31800
31801         * modules/unistd-safer (configure.ac): Drop indicator macro.
31802
31803 2009-12-11  Bruno Haible  <bruno@clisp.org>
31804
31805         Move pipe2-safer code to its own file.
31806         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31807         * lib/pipe-safer.c (pipe2_safer): Remove function.
31808         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31809         (Makefile.am): Add it to lib_SOURCES.
31810
31811 2009-12-10  Bruno Haible  <bruno@clisp.org>
31812
31813         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31814
31815 2009-12-10  Bruno Haible  <bruno@clisp.org>
31816
31817         Declare which arguments expect non-NULL values, for GCC and clang.
31818         * build-aux/arg-nonnull.h: New file.
31819         * modules/arg-nonnull: New file.
31820         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31821         (inet_ntop, inet_pton): Use it.
31822         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31823         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31824         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31825         (open, openat): Use it.
31826         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31827         (fnmatch): Use it.
31828         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31829         (getopt, getopt_long, getopt_long_only): Use it.
31830         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31831         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31832         Use it.
31833         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31834         (iconv_open): Use it.
31835         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31836         (strtoimax, strtoumax): Use it.
31837         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31838         (duplocale): Use it.
31839         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31840         (frexp, frexpl): Use it.
31841         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31842         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31843         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31844         (tsearch, tfind, tdelete, twalk): Use it.
31845         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31846         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31847         sigpending): Use it.
31848         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31849         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31850         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31851         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31852         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31853         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31854         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31855         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31856         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31857         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31858         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31859         Use it.
31860         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31861         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31862         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31863         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31864         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31865         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31866         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31867         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31868         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31869         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31870         strtoull, unsetenv): Use it.
31871         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31872         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31873         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31874         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31875         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31876         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31877         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31878         (strcasecmp, strncasecmp): Use it.
31879         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31880         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31881         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31882         rpl_setsockopt): Use it.
31883         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31884         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31885         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31886         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31887         (gettimeofday): Use it.
31888         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31889         (times): Use it.
31890         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31891         (uname): Use it.
31892         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31893         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31894         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31895         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31896         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31897         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31898         unlinkat, write): Use it.
31899         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31900         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31901         * lib/argv-iter.h: Include arg-nonnull.h.
31902         (_ATTRIBUTE_NONNULL_): Remove macro.
31903         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31904         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31905         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31906         optimization.
31907         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31908         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31909         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31910         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31911         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31912         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31913         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31914         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31915         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31916         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31917         * modules/dirent (Depends-on): Add arg-nonnull.
31918         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31919         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31920         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31921         * modules/fnmatch (Depends-on): Add arg-nonnull.
31922         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31923         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31924         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31925         * modules/glob (Depends-on): Add arg-nonnull.
31926         (Makefile.am): Insert arg-nonnull.h into glob.h.
31927         * modules/iconv_open (Depends-on): Add arg-nonnull.
31928         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31929         * modules/inttypes (Depends-on): Add arg-nonnull.
31930         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31931         * modules/locale (Depends-on): Add arg-nonnull.
31932         (Makefile.am): Insert arg-nonnull.h into locale.h.
31933         * modules/math (Depends-on): Add arg-nonnull.
31934         (Makefile.am): Insert arg-nonnull.h into math.h.
31935         * modules/netdb (Depends-on): Add arg-nonnull.
31936         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31937         * modules/search (Depends-on): Add arg-nonnull.
31938         (Makefile.am): Insert arg-nonnull.h into search.h.
31939         * modules/signal (Depends-on): Add arg-nonnull.
31940         (Makefile.am): Insert arg-nonnull.h into signal.h.
31941         * modules/spawn (Depends-on): Add arg-nonnull.
31942         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31943         * modules/stdio (Depends-on): Add arg-nonnull.
31944         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31945         * modules/stdlib (Depends-on): Add arg-nonnull.
31946         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31947         * modules/string (Depends-on): Add arg-nonnull.
31948         (Makefile.am): Insert arg-nonnull.h into string.h.
31949         * modules/strings (Depends-on): Add arg-nonnull.
31950         (Makefile.am): Insert arg-nonnull.h into strings.h.
31951         * modules/sys_socket (Depends-on): Add arg-nonnull.
31952         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31953         * modules/sys_stat (Depends-on): Add arg-nonnull.
31954         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31955         * modules/sys_time (Depends-on): Add arg-nonnull.
31956         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31957         * modules/sys_times (Depends-on): Add arg-nonnull.
31958         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31959         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31960         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31961         * modules/time (Depends-on): Add arg-nonnull.
31962         (Makefile.am): Insert arg-nonnull.h into time.h.
31963         * modules/unistd (Depends-on): Add arg-nonnull.
31964         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31965         * modules/wchar (Depends-on): Add arg-nonnull.
31966         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31967         * modules/argv-iter (Depends-on): Add arg-nonnull.
31968         * tests/test-canonicalize.c (null_ptr): New function.
31969         (main): Use it.
31970         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31971         (main): Use it.
31972         * tests/test-memmem.c (null_ptr): New function.
31973         (main): Use it.
31974         Reported by Jim Meyering.
31975
31976 2009-12-10  Bruno Haible  <bruno@clisp.org>
31977
31978         Use spaces for indentation, not tabs.
31979         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31980         * m4/*.m4: Untabify.
31981         * build-aux/*.h: Untabify.
31982         * tests/**/*.[hc]: Untabify.
31983         * README: New section "Indent with spaces, not TABs", based on
31984         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31985         * NEWS: Mention the change.
31986
31987 2009-12-10  Bruno Haible  <bruno@clisp.org>
31988
31989         pty test: Fix link error.
31990         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31991         test_pty_LDADD.
31992
31993 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31994
31995         * modules/pty: New file.
31996         * modules/pty-tests: New file.
31997         * m4/pty.m4: New file.
31998         * tests/test-pty.c: New file.
31999         * doc/glibc-headers/pty.texi: Modified.
32000         * doc/glibc-functions/forkpty.texi: Modified.
32001         * doc/glibc-functions/openpty.texi: Modified.
32002
32003 2009-12-10  Bruno Haible  <bruno@clisp.org>
32004
32005         Avoid syntax error in C++ mode.
32006         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32007
32008 2009-12-10  Bruno Haible  <bruno@clisp.org>
32009
32010         Use sed with option -e.
32011         * gnulib-tool (func_version, func_emit_copyright_notice,
32012         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32013         option -e to sed.
32014         * modules/link-warning (Makefile.am): Likewise.
32015
32016 2009-12-10  Jim Meyering  <meyering@redhat.com>
32017
32018         mgetgroups: do not write bytes beyond end of malloc'd buffer
32019         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32020         username, we call getgroups with a one-element-shorter buffer,
32021         but still told it the length was original, max_n_groups.
32022
32023 2009-12-09  Eric Blake  <ebb9@byu.net>
32024
32025         cloexec: relax license
32026         * modules/cloexec (Maintainer): Add myself.
32027         (License): Use LGPL, not GPL.
32028
32029         link-warning: optimize generation
32030         * modules/link-warning (Makefile.am): Reduce process usage.
32031
32032 2009-12-09  Bruno Haible  <bruno@clisp.org>
32033
32034         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32035         workaround was added on 2009-11-17.
32036
32037 2009-12-09  Jim Meyering  <meyering@redhat.com>
32038             Bruno Haible  <bruno@clisp.org>
32039
32040         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32041         * modules/link-warning (Makefile.am): Make the comment-removing sed
32042         command more robust in the face of bootstrap-prepended comment lines.
32043
32044 2009-12-09  Bruno Haible  <bruno@clisp.org>
32045
32046         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32047         most one group.
32048
32049 2009-12-09  Simon Josefsson <simon@josefsson.org>
32050             Bruno Haible  <bruno@clisp.org>
32051
32052         * build-aux/link-warning.h: Add copyright notice.
32053         * modules/link-warning (Makefile.am): Generate link-warning.h from
32054         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32055         * NEWS: Mention change in link-warning module.
32056         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32057         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32058         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32059         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32060         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32061         * modules/math (Makefile.am): Add dependency to math.h.
32062         * modules/search (Makefile.am): Add dependency to search.h.
32063         * modules/signal (Makefile.am): Add dependency to signal.h.
32064         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32065         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32066         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32067         * modules/string (Makefile.am): Add dependency to string.h.
32068         * modules/strings (Makefile.am): Add dependency to strings.h.
32069         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32070         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32071         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32072         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32073         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32074         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32075         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32076         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32077         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32078
32079 2009-12-09  Bruno Haible  <bruno@clisp.org>
32080
32081         fchdir: Optimize away rpl_fstat when possible.
32082         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32083         REPLACE_OPEN_DIRECTORY.
32084         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32085
32086 2009-12-09  Bruno Haible  <bruno@clisp.org>
32087
32088         * lib/fchdir.c: Update comment.
32089
32090 2009-12-09  Bruno Haible  <bruno@clisp.org>
32091
32092         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32093
32094 2009-12-08  Eric Blake  <ebb9@byu.net>
32095
32096         fchdir: avoid memory leak on re-registration.
32097         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32098
32099 2009-12-08  Jim Meyering  <meyering@redhat.com>
32100
32101         init.sh: avoid Solaris 10 /bin/sh portability problem
32102         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32103         sourced script:
32104           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32105           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32106           bar
32107         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32108         and two tests used that idiom.
32109         * tests/init.sh: Update suggested usage comments.
32110         (path_prepend_): New function, to be used in place
32111         of the --src-path=DIR option.
32112         (setup_): Move PATH-prepending code into path_prepend_.
32113         * tests/test-pread.sh: Adapt to new usage.
32114         * tests/test-xalloc-die.sh: Likewise.
32115
32116 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32117
32118         * doc/gnulib.texi (Glibc pty.h): Add.
32119         * doc/glibc-functions/forkpty.texi: Add.
32120         * doc/glibc-functions/openpty.texi: Add.
32121         Suggested by Bruno Haible.
32122
32123 2009-12-08  Eric Blake  <ebb9@byu.net>
32124
32125         fchdir: fix logic bugs
32126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32127         * tests/test-fchdir.c (main): Enhance test.
32128         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32129         is in use.
32130
32131         dup2: fix logic bugs
32132         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32133         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32134         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32135         exists.
32136         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32137
32138 2009-12-07  Eric Blake  <ebb9@byu.net>
32139
32140         unlink: fix m4 detection
32141         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32142
32143         unistd-safer: add unit test
32144         * modules/unistd-safer-tests: New file.
32145         * tests/test-dup-safer.c: Likewise.
32146         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32147         * tests/test-dup2.c (setmode): Likewise.
32148         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32149
32150         cloexec: preserve text vs. binary across dup_cloexec
32151         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32152         mode.
32153         * modules/dup2-tests (Depends-on): Add binary-io.
32154         * modules/cloexec-tests (Depends-on): Likewise.
32155         * tests/test-dup2.c (setmode, is_mode): New helpers.
32156         (main): Add tests that translation mode is preserved.
32157         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32158         Reported by Bruno Haible.
32159
32160         mgetgroups: reduce duplicate listings
32161         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32162         resulting array.
32163         * tests/test-chown.h (test_chown): Simplify client.
32164         * tests/test-lchown.h (test_lchown): Likewise.
32165
32166 2009-12-06  Bruno Haible  <bruno@clisp.org>
32167
32168         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32169         value.
32170
32171 2009-12-06  Bruno Haible  <bruno@clisp.org>
32172
32173         * lib/progname.c: Include stdio.h, stdlib.h.
32174         (set_program_name): Reject a NULL argument.
32175
32176 2009-12-05  Eric Blake  <ebb9@byu.net>
32177
32178         pipe2-safer: new module
32179         * modules/pipe2-safer: New file.
32180         * lib/unistd-safer.h (pipe2_safer): New prototype.
32181         * lib/unistd--.h (pipe2): New wrapper.
32182         * lib/pipe-safer.c (pipe2_safer): New function.
32183         * modules/pipe (Depends-on): Add pipe2-safer.
32184         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32185
32186         stdlib-safer: preserve cloexec flag for mkostemp[s]
32187         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32188         fd_safer_flag.
32189
32190         unistd-safer: allow preservation of cloexec status via flag
32191         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32192         prototypes.
32193         * lib/dup-safer.c (dup_safer_flag): New function.
32194         * lib/fd-safer.c (fd_safer_flag): Likewise.
32195         * modules/cloexec (configure.ac): Set witness.
32196
32197         test-dup2: enhance test
32198         * modules/dup2-tests (Depends-on): Add cloexec.
32199         * tests/test-dup2.c (main): Enhance test.
32200
32201         cloexec: add dup_cloexec
32202         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32203         header and comments.
32204         * lib/cloexec.c (set_cloexec_flag): Add comments.
32205         (dup_cloexec): New function, with mingw implementation borrowed
32206         from...
32207         * lib/w32spawn.h (dup_noinherit): ...here.
32208         * modules/execute (Depends-on): Add cloexec.
32209         * modules/pipe (Depends-on): Likewise.
32210         * modules/cloexec (Depends-on): Add dup2.
32211         * modules/cloexec-tests (Files): New file.
32212         * tests/test-cloexec.c: Likewise.
32213
32214         test-xalloc-die: fix test for mingw
32215         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32216         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32217         directory and .exe suffix off argv[0] output.
32218
32219         test-fseeko: fix test for mingw
32220         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32221         than undefining fseek, so test will pass on mingw.
32222
32223 2009-12-05  Bruno Haible  <bruno@clisp.org>
32224
32225         * lib/progname.h (set_program_name): Clarify specification.
32226         * lib/progname.c (set_program_name): Likewise.
32227         Reported by Jim Meyering.
32228
32229 2009-12-05  Jim Meyering  <meyering@redhat.com>
32230
32231         maint.mk: backslash-escape parens in default regexp
32232         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32233         backslash-escape the literal parentheses.
32234
32235         maint.mk: news-date-check: use grep -E
32236         * top/maint.mk (today): Define a Make variable, not a...
32237         (news-date-check): ...shell variable.
32238         (news-date-regexp): Use the Make variable.
32239         Use grep's -E option.  Change the failing diagnostic to mention
32240         the variable, $(news-date-regexp).
32241
32242 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32243
32244         maintainer-makefile: allow customization of NEWS entry format
32245         * top/maint.mk (news-date-regexp): New overridable variable.
32246         (news-date-check): Use it.
32247
32248 2009-12-04  Eric Blake  <ebb9@byu.net>
32249
32250         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32251         * lib/mgetgroups.h (xgetgroups): New prototype.
32252         * lib/mgetgroups.c (xgetgroups): New wrapper.
32253         (mgetgroups): Handle ENOSYS.
32254         * modules/mgetgroups (Depends-on): Add realloc.
32255         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32256
32257         mgetgroups: avoid argument promotion issues with -1
32258         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32259         for invalid gid_t.
32260         * tests/test-chown.h (getegid, test_chown): Likewise.
32261         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32262
32263 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32264
32265         exclude: Fix header file problems.
32266         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32267
32268 2009-12-01  Jim Meyering  <meyering@redhat.com>
32269
32270         fts: fts_open: do not let an empty string cause immediate failure
32271         This is required in support of GNU rm, for which the command
32272         "rm A '' B" must process and remove both A and B, in spite of
32273         the empty string argument.
32274         * lib/fts.c (fts_open): Do not let the presence of an empty string
32275         cause fts_open to fail immediately.  Most fts-using tools must be
32276         able to process all arguments, in order, and can be expected to
32277         diagnose such arguments themselves.
32278
32279 2009-11-30  Eric Blake  <ebb9@byu.net>
32280
32281         utimens: fix compilation error
32282         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32283         Declare variable at right scope.
32284
32285 2009-11-29  Jim Meyering  <meyering@redhat.com>
32286
32287         bootstrap: handle perl-5.11's changed --version output
32288         * build-aux/bootstrap (get_version): Handle perl separately,
32289         since perl-5.11's --version output is different.
32290
32291 2009-11-28  Jim Meyering  <meyering@redhat.com>
32292
32293         userspec: depend on the inttostr module, too
32294         * modules/userspec (Depends-on): Add inttostr.
32295
32296         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32297         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32298         number of MAXUID when it evaluates to (uid_t) -1.
32299         Likewise for group ID.  Reported by Matt McCutchen in
32300         <http://savannah.gnu.org/bugs/?28113>
32301
32302         userspec: reformat to use spaces, not TABs
32303         * lib/userspec.c: Expand TABs to spaces.
32304         Add Emacs' "indent-tabs-mode: nil" hint.
32305
32306 2009-11-27  Eric Blake  <ebb9@byu.net>
32307
32308         getopt-gnu: flush out another BSD bug
32309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32310         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32311         flush out BSD bug.
32312         * tests/test-getopt.h (test_getopt): End lists with NULL.
32313         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32314         (test_getopt_long_posix): Enhance test.
32315         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32316         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32317         getopt-gnu.
32318         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32319         Likewise.
32320
32321 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32322
32323         * modules/idpriv-droptemp-tests (Notice): Fix text.
32324
32325 2009-11-27  Jim Meyering  <meyering@redhat.com>
32326
32327         test-xalloc-die: avoid spurious failure due to libtool argv difference
32328         In a libtool-enabled project, this test would fail due to a difference
32329         in the emitted program name, e.g.,
32330         -test-xalloc-die: memory exhausted
32331         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32332         Use program to avoid that.
32333         * modules/xalloc-die-tests (Depends-on): Add progname.
32334         * tests/test-xalloc-die.c: Include progname.h".
32335         (program_name): Remove decl.
32336         (main): Call set_program_name.
32337         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32338
32339 2009-11-26  Richard Jones  <rjones@redhat.com>
32340
32341         w32sock: leave win32 error in place.
32342         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32343
32344 2009-11-26  Eric Blake  <ebb9@byu.net>
32345
32346         init.sh: suggest to use skip_ and fail_ functions in comments
32347         * tests/init.sh: Add a sentence.
32348
32349 2009-11-25  Bruno Haible  <bruno@clisp.org>
32350
32351         init.sh: add documentation in comments
32352         * tests/init.sh: Add some developer and user documentation.
32353
32354 2009-11-26  Jim Meyering  <meyering@redhat.com>
32355
32356         init.sh: accommodate even those who specify bogus srcdir manually
32357         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32358         configure-time tests to be sanitized, so that there is no need to
32359         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32360         (with no double quotes) suffices.  However, since tests may be
32361         invoked manually, and since you may explicitly set srcdir to the
32362         name of a directory containing spaces, do quote its uses here.
32363         * tests/test-pread.sh: Likewise.
32364         Suggested by Bruno Haible.
32365
32366         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32367         * tests/test-pread.sh: Write no data into the pipe, because
32368         test-pread actually reads none.  This avoids a diagnostic,
32369         "bash: echo: write error: Broken pipe", that arises in the unusual
32370         event something is ignoring SIGPIPE, and might be interpreted
32371         as some sort of failure.  Reported by Bruno Haible.
32372
32373 2009-11-25  Jim Meyering  <meyering@redhat.com>
32374
32375         test-pread: cover failure with ESPIPE and EINVAL
32376         * tests/test-pread.c (main): Test for failure, too.
32377         * tests/test-pread.sh: Invoke with stdin on a pipe.
32378         Suggested by Eric Blake.
32379
32380         pread: improvement and fix
32381         * modules/pread (Depends-on): Depend on lseek, for portability to
32382         e.g., mingw.  Suggested by Eric Blake.
32383         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32384
32385         unistd.in.h: correct declaration of pread
32386         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32387         Reported by Richard W.M. Jones.
32388
32389         test-pread.sh: distribute the test script
32390         * modules/pread-tests (Files): Include test-pread.sh.
32391
32392         test-pread.sh: clean up
32393         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32394         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32395         That is unnecessary, since it's always ".".
32396         Suggestion from Eric Blake.
32397
32398         test-pread.sh: make executable
32399         * tests/test-pread.sh: Set executable bit.
32400         Reported by Eric Blake.
32401
32402         correct typo in test-pread.sh
32403         * tests/test-pread.sh: Add #! line.
32404
32405         test pread
32406         * tests/test-pread.c: New file.
32407         * tests/test-pread.sh: Likewise.
32408         * modules/pread-tests: Likewise.
32409
32410         pread: new module
32411         * modules/pread: New file.
32412         * lib/unistd.in.h (pread): Define/declare.
32413         * lib/pread.c (pread): New file.
32414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32415         * modules/unistd (Makefile.am): Substitute witnesses.
32416         * doc/posix-functions/pread.texi (pread): Update.
32417         * MODULES.html.sh: Add pread.
32418
32419 2009-11-25  Jim Meyering  <meyering@redhat.com>
32420
32421         tests/init.sh: new file to be used via most *.sh tests
32422         * tests/init.sh: New file.
32423
32424 2009-11-25  Eric Blake  <ebb9@byu.net>
32425
32426         utimens: work around older Linux failure with symlinks
32427         * lib/utimens.c (lutimensat_works_really): New variable.
32428         (fdutimens, lutimens): Use it to manage kernels that support
32429         nanosecond times on files, but not on symlinks.
32430         Reported by OndÅ™ej Vašík.
32431
32432         utimes: fix configure grammar
32433         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32434
32435 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32436
32437         regex: Fix fastmap for multibyte character ranges.
32438         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32439         characters when a multibyte character range is included.
32440
32441 2009-11-22  Andy Wingo  <wingo@pobox.com>
32442
32443         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32444         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32445
32446 2009-11-24  Bruno Haible  <bruno@clisp.org>
32447
32448         doc: Most *_l functions exist in MacOS X 10.5.
32449         * doc/posix-functions/duplocale.texi: Update platforms list.
32450         * doc/posix-functions/freelocale.texi: Likewise.
32451         * doc/posix-functions/newlocale.texi: Likewise.
32452         * doc/posix-functions/uselocale.texi: Likewise.
32453         * doc/posix-functions/isalnum_l.texi: Likewise.
32454         * doc/posix-functions/isalpha_l.texi: Likewise.
32455         * doc/posix-functions/isblank_l.texi: Likewise.
32456         * doc/posix-functions/iscntrl_l.texi: Likewise.
32457         * doc/posix-functions/isdigit_l.texi: Likewise.
32458         * doc/posix-functions/isgraph_l.texi: Likewise.
32459         * doc/posix-functions/islower_l.texi: Likewise.
32460         * doc/posix-functions/isprint_l.texi: Likewise.
32461         * doc/posix-functions/ispunct_l.texi: Likewise.
32462         * doc/posix-functions/isspace_l.texi: Likewise.
32463         * doc/posix-functions/isupper_l.texi: Likewise.
32464         * doc/posix-functions/iswalnum_l.texi: Likewise.
32465         * doc/posix-functions/iswalpha_l.texi: Likewise.
32466         * doc/posix-functions/iswblank_l.texi: Likewise.
32467         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32468         * doc/posix-functions/iswctype_l.texi: Likewise.
32469         * doc/posix-functions/iswdigit_l.texi: Likewise.
32470         * doc/posix-functions/iswgraph_l.texi: Likewise.
32471         * doc/posix-functions/iswlower_l.texi: Likewise.
32472         * doc/posix-functions/iswprint_l.texi: Likewise.
32473         * doc/posix-functions/iswpunct_l.texi: Likewise.
32474         * doc/posix-functions/iswspace_l.texi: Likewise.
32475         * doc/posix-functions/iswupper_l.texi: Likewise.
32476         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32477         * doc/posix-functions/isxdigit_l.texi: Likewise.
32478         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32479         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32480         * doc/posix-functions/strcoll_l.texi: Likewise.
32481         * doc/posix-functions/strfmon_l.texi: Likewise.
32482         * doc/posix-functions/strftime_l.texi: Likewise.
32483         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32484         * doc/posix-functions/strxfrm_l.texi: Likewise.
32485         * doc/posix-functions/tolower_l.texi: Likewise.
32486         * doc/posix-functions/toupper_l.texi: Likewise.
32487         * doc/posix-functions/towctrans_l.texi: Likewise.
32488         * doc/posix-functions/towlower_l.texi: Likewise.
32489         * doc/posix-functions/towupper_l.texi: Likewise.
32490         * doc/posix-functions/wcscoll_l.texi: Likewise.
32491         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32492         * doc/posix-functions/wctrans_l.texi: Likewise.
32493         * doc/posix-functions/wctype_l.texi: Likewise.
32494         * doc/glibc-functions/strptime_l.texi: Likewise.
32495         * doc/glibc-functions/strtod_l.texi: Likewise.
32496         * doc/glibc-functions/strtof_l.texi: Likewise.
32497         * doc/glibc-functions/strtol_l.texi: Likewise.
32498         * doc/glibc-functions/strtold_l.texi: Likewise.
32499         * doc/glibc-functions/strtoll_l.texi: Likewise.
32500         * doc/glibc-functions/strtoul_l.texi: Likewise.
32501         * doc/glibc-functions/strtoull_l.texi: Likewise.
32502         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32503         * doc/glibc-functions/wcstod_l.texi: Likewise.
32504         * doc/glibc-functions/wcstof_l.texi: Likewise.
32505         * doc/glibc-functions/wcstol_l.texi: Likewise.
32506         * doc/glibc-functions/wcstold_l.texi: Likewise.
32507         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32508         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32509         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32510
32511 2009-11-24  Bruno Haible  <bruno@clisp.org>
32512
32513         duplocale: Fix logic bug.
32514         * lib/duplocale.c: Don't include <langinfo.h>.
32515         (_NL_LOCALE_NAME): Remove macro.
32516         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32517         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32518
32519 2009-11-23  Jim Meyering  <meyering@redhat.com>
32520
32521         test-update-copyright: don't hard-code /usr/bin/perl
32522         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32523         perl to print the current year.  Gilles Espinasse reported that
32524         the replaced use of perl was hard-coded as /usr/bin/perl.
32525
32526 2009-11-23  Bruno Haible  <bruno@clisp.org>
32527
32528         duplocale: Add support for glibc 2.3.x.
32529         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32530
32531 2009-11-22  Bruno Haible  <bruno@clisp.org>
32532
32533         vasnprintf: Tiny optimization.
32534         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32535         MacOS X.
32536
32537 2009-11-22  Bruno Haible  <bruno@clisp.org>
32538
32539         Tests for module 'duplocale'.
32540         * modules/duplocale-tests: New file.
32541         * tests/test-duplocale.c: New file.
32542
32543         New module 'duplocale'.
32544         * m4/duplocale.m4: New file.
32545         * lib/locale.in.h (duplocale): New declaration.
32546         * lib/duplocale.c: New file.
32547         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32548         gl_LOCALE_H_DEFAULTS): New macros.
32549         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32550         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32551         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32552         REPLACE_DUPLOCALE.
32553         * modules/duplocale: New file.
32554         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32555
32556 2009-11-22  Bruno Haible  <bruno@clisp.org>
32557
32558         * modules/locale-tests (configure.ac): Test for newlocale function.
32559         * tests/test-locale.c: When the system has extended locale functions,
32560         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32561
32562         locale: Make locale_t available when possible.
32563         * lib/locale.in.h: Include <xlocale.h> when it exists.
32564         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32565         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32566         * modules/locale (Depends-on): Add extensions.
32567         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32568         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32569
32570 2009-11-22  Bruno Haible  <bruno@clisp.org>
32571
32572         Add comments.
32573         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32574         invocation.
32575         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32576         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32577         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32578
32579 2009-11-22  Bruno Haible  <bruno@clisp.org>
32580
32581         error: account for the possibility of freopen (stdout).
32582         * lib/error.c: Include <unistd.h>.
32583         (flush_stdout): New function, extracted from error and error_at_line.
32584         Determine stdout's fd dynamically.
32585         (error, error_at_line): Invoke flush_stdout.
32586         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32587         * modules/error (Depends-on): Add unistd.
32588
32589 2009-11-22  Bruno Haible  <bruno@clisp.org>
32590
32591         diffseq: Add comment.
32592         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32593
32594 2009-11-22  Jim Meyering  <meyering@redhat.com>
32595
32596         c-stack: avoid defining an unused static function
32597         * lib/c-stack.c (find_stack_direction): Do not define this function
32598         when it will not be used.
32599
32600         diffseq: avoid spurious gcc warnings
32601         * lib/diffseq.h (IF_LINT2): Define.
32602         (compareseq): Use it to initialize two members of "part".
32603         This avoids two used-uninitialized warnings.
32604
32605 2009-11-21  Jim Meyering  <meyering@redhat.com>
32606
32607         c-stack: avoid "ignoring return value of `write'" warning
32608         * lib/c-stack.c: Include "ignore-value.h".
32609         (die): Explicitly ignore each write return value.
32610         * modules/c-stack (Depends-on): Add ignore-value.
32611
32612 2009-11-21  Bruno Haible  <bruno@clisp.org>
32613
32614         diffseq: reduce scope of variable 'best'.
32615         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32616         variable, earlier used for two different purposes.
32617
32618 2009-11-21  Jim Meyering  <meyering@redhat.com>
32619
32620         diffseq: remove useless assignment to "best"
32621         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32622         assignment.  At that point "best" is already guaranteed to be zero.
32623
32624 2009-11-20  Eric Blake  <ebb9@byu.net>
32625
32626         build: mention ftp redirector in release announcements
32627         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32628         values that used to come from cfg.mk; mention FTP redirect URL.
32629         * build-aux/announce-gen: Mention the mirror list.
32630         Suggested by Karl Berry.
32631
32632         nanosleep: improve port to mingw
32633         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32635         LIB_NANOSLEEP, but only when needed.
32636         * modules/select (Link): Document LIBSOCKET.
32637         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32638         enough.
32639
32640         nanosleep: work around cygwin bug
32641         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32642         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32643         bug.
32644         (getnow): Delete, not needed.
32645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32646         LIB_CLOCK_GETTIME.
32647         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32648         clock-time, gettime.
32649         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32650         bug.
32651         * modules/nanosleep-tests: New test.
32652         * tests/test-nanosleep.c: New file.
32653
32654         sleep: work around cygwin bug
32655         * lib/sleep.c (rpl_sleep): Work around the bug.
32656         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32657         (gl_PREREQ_SLEEP): Delete unused macro.
32658         * modules/sleep (Depends-on): Add verify.
32659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32660         * modules/unistd (Makefile.am): Substitute witness.
32661         * lib/unistd.in.h (sleep): Update prototype.
32662         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32663         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32664         * modules/sleep-tests (Depends-on): Check for alarm.
32665
32666 2009-11-20  Jim Meyering  <meyering@redhat.com>
32667
32668         maint.mk: improve sc_prohibit_magic_number_exit
32669         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32670         so it does not match uses like System.exit(1).
32671         Add comments showing how to correct all offenders.
32672
32673 2009-11-19  Eric Blake  <ebb9@byu.net>
32674
32675         xalloc-die-tests: add missing library
32676         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32677
32678         test-xvasprintf: silence compiler warnings
32679         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32680         empty string from gcc.
32681
32682 2009-11-19  Jim Meyering  <meyering@redhat.com>
32683
32684         xfreopen: new module, from coreutils
32685         * modules/xfreopen: New module.
32686         * lib/xfreopen.c: New file.
32687         * lib/xfreopen.h: New file.
32688         * MODULES.html.sh (File stream based Input/Output"): Add it.
32689
32690 2009-11-19  Eric Blake  <ebb9@byu.net>
32691
32692         manywarnings: depend on warnings
32693         * modules/manywarnings (Depends-on): Add warnings.
32694
32695         build: avoid compiler warnings
32696         * lib/select.c (rpl_select): Delete unused variable.
32697         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32698
32699 2009-11-18  Eric Blake  <ebb9@byu.net>
32700
32701         tests: avoid false negative with --with-packager
32702         * tests/test-version-etc.sh: Discard packager information.
32703         * tests/test-argp-version-etc-1.sh: Likewise.
32704         Reported by Mike Frysinger.
32705
32706         utimens: fix regression on Solaris
32707         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32708         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32709         can only change fd timestamps via futimesat.  Instead, use an
32710         additional witness macro to avoid BSD bug.
32711         Reported by Jim Meyering.
32712
32713 2009-11-17  Eric Blake  <ebb9@byu.net>
32714
32715         usleep: use it to simplify tests
32716         * modules/stat-time-tests (Depends-on): Add usleep.
32717         (configure.ac): Drop usleep check.
32718         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32719         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32720         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32721         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32722         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32723         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32724         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32725         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32726         Likewise.
32727         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32728         * tests/test-lchown.h (nap): Likewise.
32729         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32730         * tests/test-stat-time.c (nap): Likewise.
32731         * tests/test-utimens-common.h (nap): Update comments.
32732
32733         usleep: new module
32734         * modules/usleep: New file.
32735         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32736         * lib/usleep.c (usleep): Likewise.
32737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32738         * modules/unistd (Makefile.am): Substitute witnesses.
32739         * lib/unistd.in.h (usleep): Add declaration.
32740         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32741         * MODULES.html.sh (Date and time): Likewise.
32742         * modules/usleep-tests (Depends-on): New test.
32743         * tests/test-usleep.c: New file.
32744
32745         chown: work around OpenBSD bug
32746         * lib/chown.c (rpl_chown): Work around the bug.
32747         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32748         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32749         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32750         * modules/chown (Depends-on): Add stdbool.
32751         * modules/lchown (Depends-on): Likewise.
32752         * doc/posix-functions/chown.texi (chown): Document the bug.
32753         * doc/posix-functions/lchown.texi (lchown): Likewise.
32754         * tests/test-lchown.h (test_chown): Relax test.
32755
32756         mkstemp: avoid conflict with C++ keyword template
32757         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32758         * lib/mkostemp.c (mkostemp): Likewise.
32759         * lib/mkostemps.c (mkostemps): Likewise.
32760         * lib/mkstemp.c (mkstemp): Likewise.
32761         * lib/mkstemps.c (mkstemps): Likewise.
32762
32763         xalloc-die-tests: optimize
32764         * tests/test-xalloc-die.sh: Reduce number of processes.
32765
32766 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32767
32768         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32769         patch from ludo@gnu.org (Ludovic Courtès).
32770
32771 2009-11-17  Jim Meyering  <meyering@redhat.com>
32772
32773         version-etc: use proper license string
32774         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32775         * modules/version-etc-fsf: Likewise.
32776
32777 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32778
32779         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32780         printed to stdout.  Deal with EOL differences.
32781
32782 2009-11-17  Eric Blake  <ebb9@byu.net>
32783
32784         unsetenv: work around Solaris bug
32785         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32786         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32787         Reported by Jim Meyering.
32788
32789         vasnprintf: avoid compiler warnings
32790         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32791         variables.
32792         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32793
32794 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32795
32796         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32797         settings since xalloc-die is no longer the self test,
32798         xalloc-die.sh is.
32799
32800 2009-11-17  Jim Meyering  <meyering@redhat.com>
32801
32802         test-xalloc-die.sh: make the code agree with the commit log
32803         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32804         at the end, just in case you happen to have a test-xalloc-die
32805         program in some other PATH directory.
32806
32807         test-xalloc-die.sh: fix a portability bug
32808         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32809         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32810         Otherwise, argv[0] (as often seen in diagnostics) would be too
32811         system-dependent, sometimes with, and sometimes without the leading "./".
32812
32813         version-etc-fsf: relax license to LGPLv3+
32814         * modules/version-etc-fsf (License): Relax license.
32815
32816 2009-11-16  Eric Blake  <ebb9@byu.net>
32817
32818         xalloc-die-tests: avoid printing null pointer
32819         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32820         shell script.
32821         * tests/test-xalloc-die.c (program_name): Declare.
32822         * tests/test-xalloc-die.sh (tmpfiles): New file.
32823
32824         setenv, unsetenv: work around various bugs
32825         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32826         (setenv) [HAVE_SETENV]: Work around bugs.
32827         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32828         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32829         for bugs.
32830         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32831         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32833         * modules/stdlib (Makefile.am): Update substitutions.
32834         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32835         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32836         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32837         * modules/setenv-tests: New test.
32838         * modules/unsetenv-tests: Likewise.
32839         * tests/test-setenv.c: New file.
32840         * tests/test-unsetenv.c: Likewise.
32841
32842 2009-11-16  Jim Meyering  <meyering@redhat.com>
32843
32844         version-etc: relax license to LGPLv3+
32845         * modules/version-etc (License): Relax license.
32846
32847         better AC_REQUIRE expanded-before-required-warning avoidance
32848         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32849         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32850         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32851         which is no longer needed.
32852
32853 2009-11-16  Eric Blake  <ebb9@byu.net>
32854
32855         test-freading: clean up temporary file
32856         * tests/test-freading.c (main): Remove file on success, and use
32857         ASSERT more liberally.
32858         Reported by Jim Meyering.
32859
32860 2009-11-16  Jim Meyering  <meyering@redhat.com>
32861
32862         avoid new AC_REQUIRE expanded-before-required warnings
32863         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32864         merely using it.
32865         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32866         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32867
32868 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32869
32870         * tests/test-xalloc-die.c: New file.
32871         * modules/xalloc-die-tests: New file.
32872         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32873         XFAIL_TESTS so it can be appended by modules.
32874
32875 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32876
32877         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32878         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32879
32880 2009-11-14  Eric Blake  <ebb9@byu.net>
32881
32882         fnmatch: avoid compiler warning
32883         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32884         to silence compiler warning about mismatch signedness in ?:.
32885         Reported by Robert Millan.
32886
32887         intprops: add double-inclusion guard
32888         * lib/intprops.h: Allow idempotent includes.
32889         Suggested by Bruce Korb.
32890
32891         openat: detect Solaris fchownat bug
32892         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32893         penalizing glibc chownat when only lchownat is broken.
32894         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32895         trailing slash bugs.
32896         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32897         * modules/openat-tests (Files): Include more files.
32898         (Depends-on): Add mgetgroups, sleep, stat-time.
32899         (configure.ac): Add additional checks.
32900         (Makefile.am): Build new test.
32901         * tests/test-fchownat.c: New file.
32902
32903         lchown: detect Solaris and FreeBSD bug
32904         * lib/lchown.c (rpl_lchown): Work around bug.
32905         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32907         * modules/unistd (Makefile.am): Populate it.
32908         * lib/unistd.in.h (lchown): Update declaration.
32909         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32910         * modules/lchown-tests: New file.
32911         * tests/test-lchown.h (test_lchown): Likewise.
32912         * tests/test-lchown.c (main): Likewise.
32913
32914         chown: detect Solaris and FreeBSD bug
32915         * lib/chown.c (rpl_chown): Work around bug.
32916         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32917         (gl_PREREQ_CHOWN): Delete.
32918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32919         * modules/unistd (Makefile.am): Populate it.
32920         * lib/unistd.in.h (chown): Update declaration.
32921         * lib/lchown.c (chown): Update client.
32922         * modules/lchown (Depends-on): Add lstat.
32923         * doc/posix-functions/chown.texi (chown): Document the bug.
32924         * doc/posix-functions/getgroups.texi (getgroups): Document
32925         getgroups pitfall.
32926         * modules/chown-tests: New file.
32927         * tests/test-chown.h (test_chown): Likewise.
32928         * tests/test-chown.c (main): Likewise.
32929
32930 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32931
32932         gnulib-tool: correctly detect absence of m4 directories
32933         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32934
32935 2009-11-14  Jim Meyering  <meyering@redhat.com>
32936
32937         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32938         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32939
32940 2009-11-14  John W. Eaton  <jwe@gnu.org>
32941
32942         strftime.h: wrap funtion declaration in extern "C" block
32943         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32944
32945 2009-11-13  Eric Blake  <ebb9@byu.net>
32946
32947         getgroups: avoid compiler warning
32948         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32949
32950         getgroups: work around FreeBSD bug
32951         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32952         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32953         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32954         * tests/test-getgroups.c (main): Fix buffer overrun.
32955
32956         getgroups: avoid compilation failure
32957         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32958         * modules/getgroups (Depends-on): Add stdint.
32959
32960 2009-11-13  Jim Meyering  <meyering@redhat.com>
32961
32962         test-getgroups: avoid compilation failure
32963         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32964
32965 2009-11-13  Eric Blake  <ebb9@byu.net>
32966
32967         mgetgroups: new module, taken from coreutils
32968         * modules/mgetgroups: New file.
32969         * lib/mgetgroups.h: Likewise.
32970         * lib/mgetgroups.c (mgetgroups): Likewise.
32971         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32972         * MODULES.html.sh (Users and groups): Mention it.
32973
32974         getgroups: don't expose GETGROUPS_T to user
32975         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32976         an element at a time if GETGROUPS_T is wrong size.
32977         * lib/getugroups.h (getugroups): Change signature.
32978         * lib/unistd.in.h (getgroups): Likewise.
32979         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32980         signature needs fixing.
32981         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32982         AC_TYPE_GETGROUPS.
32983         * modules/group-member (Depends-on): Add getgroups.
32984         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32985         (group_member): Rely on getgroups replacement.
32986         * lib/getugroups.c (getugroups): Use gid_t.
32987         * tests/test-getgroups.c (main): Likewise.
32988         * NEWS: Mention the signature change.
32989         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32990         problem with signature.
32991         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32992         GETGROUPS_T is still useful for setgroups.
32993
32994         getgroups, getugroups: provide stubs for mingw
32995         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32996         * lib/getugroups.c (getugroups): Likewise.
32997         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32998         function.  Modernize replacement scheme.
32999         (gl_PREREQ_GETGROUPS): Delete.
33000         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33001         * modules/getgroups (configure.ac): Declare witness.
33002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33003         * modules/unistd (Depends-on): Substitute witness.
33004         * lib/unistd.in.h (getgroups): Declare replacement.
33005
33006         getgroups: avoid calling exit
33007         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33008         drop xalloc.
33009         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33010         dependencies.
33011         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33012         exiting, in the rare case of malloc failure.
33013
33014         getgroups: fix logic error
33015         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33016         has more than 20 groups.
33017         * modules/getgroups-tests: New test.
33018         * tests/test-getgroups.c: New file.
33019
33020 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33021
33022         * tests/test-base64.c: Improve.
33023
33024 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33025
33026         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33027         Blake <ebb9@byu.net>.
33028
33029 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33030
33031         * tests/test-xvasprintf.c: Add %s%s related checks.
33032
33033 2009-11-12  Eric Blake  <ebb9@byu.net>
33034
33035         version-etc: match standards.texi style
33036         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33037         and use <> only for URLs.
33038
33039 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33040
33041         fts: do not fail on a submount during traversal
33042         * lib/fts.c (fts_build): Read the stat info again after opening
33043         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33044         Original report at http://bugzilla.redhat.com/501848.
33045
33046 2009-11-12  Jim Meyering  <meyering@redhat.com>
33047
33048         bootstrap: sync from coreutils
33049         * build-aux/bootstrap (bootstrap_epilogue): New function.
33050         Use git_modules_config in one more place.  This make bootstrap's
33051         --gnulib-srcdir option more useful for testing.
33052
33053         bootstrap: generalize autoheader check
33054         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33055         AC_CONFIG_HEADERS.
33056
33057 2009-11-11  Eric Blake  <ebb9@byu.net>
33058
33059         mkfifoat: use new modules for Solaris and BSD bugs
33060         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33061         * lib/mkfifoat.c (mknodat): Split...
33062         * lib/mknodat.c (mknodat): ...into new file.
33063         * modules/mkfifoat (Files): Ship new file.
33064         (Depends-on): Add mkfifo, mknod.
33065         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33066         (Depends-on): Add symlink.
33067         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33068         redundant with test_mkfifo.h.
33069         (do_mkfifoat, do_mknodat): New helpers.
33070
33071         mknod: new module
33072         * modules/mknod: New file.
33073         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33074         * lib/mknod.c (mknod): Likewise.
33075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33076         defaults.
33077         * modules/sys_stat (Makefile.am): Substitute them.
33078         * lib/sys_stat.in.h (mknod): Declare replacement.
33079         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33080         Document it.
33081         * doc/posix-functions/mknod.texi (mknod): Likewise.
33082         * modules/mknod-tests: New test.
33083         * tests/test-mknod.c: Likewise.
33084
33085         mkfifo: new module
33086         * modules/mkfifo: New file.
33087         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33088         * lib/mkfifo.c (mkfifo): Likewise.
33089         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33090         defaults.
33091         * modules/sys_stat (Makefile.am): Substitute them.
33092         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33093         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33094         Document it.
33095         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33096         * modules/mkfifo-tests: New test.
33097         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33098         from test-mkfifoat.c.
33099         * tests/test-mkfifo.c: New file.
33100
33101         readlink: detect FreeBSD bug
33102         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33103         slash on symlink.
33104         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33105         * tests/test-readlink.h (test_readlink): Enhance test.
33106
33107         symlink: detect FreeBSD bug
33108         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33109         slash on symlink.
33110         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33111         * tests/test-symlink.h (test_symlink): Enhance test.
33112
33113 2009-11-10  Eric Blake  <ebb9@byu.net>
33114
33115         link: detect FreeBSD bug
33116         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33117         symlink.
33118         * doc/posix-functions/link.texi (link): Document the bug.
33119         * tests/test-link.h (test_link): Enhance test.
33120         * tests/test-linkat.c (main): Update caller.
33121
33122         unlink, remove: detect FreeBSD bug
33123         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33124         slash on symlink.
33125         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33126         * doc/posix-functions/remove.texi (remove): Likewise.
33127         * tests/test-unlink.h (test_unlink): Enhance test.
33128         * tests/test-remove.c (main): Likewise.
33129
33130 2009-11-09  Eric Blake  <ebb9@byu.net>
33131
33132         rename: detect FreeBSD bug
33133         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33134         slash on symlink.
33135         * modules/renameat-tests (Depends-on): Add filenamecat.
33136         * tests/test-rename.h (test_rename): Allow one more errno.
33137         * tests/test-renameat.c (main): Likewise.
33138         * doc/posix-functions/rename.texi (rename): Document the bug.
33139
33140         open: detect FreeBSD bug
33141         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33142         symlink.
33143         * doc/posix-functions/open.texi (open): Document the bug.
33144         * doc/posix-functions/utimes.texi (utimes): Likewise.
33145         * tests/test-open.h (test_open): Add parameters, and test symlink
33146         handling.
33147         * tests/test-open.c (main): Adjust caller.
33148         * tests/test-fcntl-safer.c (main): Likewise.
33149         * modules/open-tests (Depends-on): Add stdbool, symlink.
33150         * modules/fcntl-safer-tests (Depends-on): Likewise.
33151         * tests/test-openat.c (main): Add test-open tests.
33152
33153         stat: detect FreeBSD bug
33154         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33155         symlink.
33156         * doc/posix-functions/stat.texi (stat): Document the bug.
33157         * tests/test-stat.h (test_stat_func): Add argument.
33158         * tests/test-stat.c (main): Adjust caller.
33159         * tests/test-fstatat.c (main): Likewise.
33160         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33161         Reported by Jim Meyering.
33162
33163 2009-11-09  James Youngman  <jay@gnu.org>
33164
33165         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33166         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33167
33168 2009-11-08  Jim Meyering  <meyering@redhat.com>
33169
33170         utimens: remove invalid futimesat call
33171         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33172         It used the file descriptor of the target file as the DIR_FD
33173         parameter and NULL as the file name.  That caused failure with
33174         errno == EFAULT on FreeBSD-8.0-rc2
33175
33176 2009-11-07  Eric Blake  <ebb9@byu.net>
33177
33178         fflush, freadseek: use fseeko, not fseek
33179         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33180         (clear_ungetc_buffer): Avoid potential problems on large files.
33181         * lib/freadseek.c (freadseek): Likewise.
33182         * modules/freadseek (Depends-on): Add fseeko.
33183         * modules/fseek (configure.ac): Set a witness.
33184         * tests/test-fflush.c (main): Use fseeko.
33185         * tests/test-fpurge.c (fseek): Disable link warning.
33186         * tests/test-freadable.c (fseek): Likewise.
33187         * tests/test-freading.c (fseek): Likewise.
33188         * tests/test-fseeko.c (fseek): Likewise.
33189         * tests/test-ftell.c (fseek): Likewise.
33190         * tests/test-ftello.c (fseek): Likewise.
33191         * tests/test-fwritable.c (fseek): Likewise.
33192         * tests/test-fwriting.c (fseek): Likewise.
33193
33194 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33195
33196         * modules/memchr (Depends-on): Drop getpagesize dependency.
33197
33198 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33199
33200         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33201         Reported by Ludovic Courtès.
33202         * build-aux/pmccabe2html: Improve example usage.
33203         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33204
33205 2009-11-06  Jim Meyering  <meyering@redhat.com>
33206
33207         do-release-commit-and-tag: New module.
33208         Automate the release-commit and tag process.
33209         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33210         * modules/do-release-commit-and-tag: New file.
33211         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33212
33213 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33214
33215         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33216         because test-select.c uses inet_pton.
33217
33218 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33219
33220         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33221         GETADDRINFO_LIB.  Bump serial number.
33222         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33223         Suggested by Eric Blake <ebb9@byu.net>.
33224
33225 2009-11-05  Eric Blake  <ebb9@byu.net>
33226
33227         strtod: detect darwin bug
33228         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33229         Reported by Leo Davis.
33230
33231         freopen-safer: new module
33232         * modules/freopen-safer: New module.
33233         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33234         * lib/freopen-safer.c (freopen_safer): New file.
33235         * lib/stdio-safer.h (freopen_safer): New declaration.
33236         * lib/stdio--.h (freopen): New override.
33237         * MODULES.html.sh (File stream based Input/Output): Mention it.
33238         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33239         freopen-safer module.
33240         * doc/posix-functions/stderr.texi (stderr): Likewise.
33241         * doc/posix-functions/stdin.texi (stdin): Likewise.
33242         * doc/posix-functions/stdout.texi (stdout): Likewise.
33243         * modules/freopen-safer-tests: New test.
33244         * tests/test-reopen-safer.c: New file.
33245
33246 2009-11-05  Jim Meyering  <meyering@redhat.com>
33247
33248         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33249         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33250
33251 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33252
33253         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33254
33255 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33256
33257         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33258
33259 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33260
33261         Fix link error.
33262         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33263         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33264
33265 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33266
33267         * tests/test-func.c: Also test value of __func__.
33268
33269 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33270
33271         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33272         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33273
33274 2009-11-05  Bruno Haible  <bruno@clisp.org>
33275
33276         Fix link error.
33277         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33278         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33279         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33280
33281 2009-11-05  Bruno Haible  <bruno@clisp.org>
33282
33283         Tests for module 'inet_pton'.
33284         * modules/inet_pton-tests: New file.
33285         * tests/test-inet_pton.c: New file.
33286
33287 2009-11-05  Bruno Haible  <bruno@clisp.org>
33288
33289         Tests for module 'inet_ntop'.
33290         * modules/inet_ntop-tests: New file.
33291         * tests/test-inet_ntop.c: New file.
33292
33293 2009-11-04  Eric Blake  <ebb9@byu.net>
33294
33295         stdlib-safer: wrap all mkstemp variants
33296         * modules/mkostemp (configure.ac): Set witness.
33297         * modules/mkostemps (configure.ac): Likewise.
33298         * modules/mkstemps (configure.ac): Likewise.
33299         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33300         (mkstemps_safer): Wrap more functions.
33301         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33302         wrapping.
33303         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33304         (mkstemps_safer): Implement the wrappers.
33305
33306         mkstemps, mkostemps: new modules
33307         * modules/mkostemps: New module.
33308         * modules/mkstemps: Likewise.
33309         * lib/mkostemps.c (mkostemps): New file.
33310         * lib/mkstemps.c (mkstemps): Likewise.
33311         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33312         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33314         * modules/stdlib (Makefile.am): Substitute them.
33315         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33316         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33317         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33318         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33319         * MODULES.html.sh (File system functions): Mention them.
33320
33321         tempname: resync from glibc
33322         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33323         same values for __GT_FILE as glibc.  Abort even when assertions
33324         are disabled.
33325         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33326         match its value otherwise.  Allow idempotent inclusion.
33327         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33328         * lib/mkostemp.c (mkostemp): Likewise.
33329         * lib/mkstemp.c (mkstemp): Likewise.
33330         * lib/tmpfile.c (tmpfile): Likewise.
33331         * NEWS: Document this.
33332
33333         utimens: fix use of futimens on older Linux
33334         * lib/utimens.c (fdutimens): Use updated, rather than original,
33335         timespec to avoid bug in older Linux kernel.
33336         Reported by Simon Josefsson.
33337
33338 2009-11-04  Bruno Haible  <bruno@clisp.org>
33339
33340         Make num_processors more flexible and consistent.
33341         * lib/nproc.h (enum nproc_query): New type.
33342         (num_processors): Add a 'query' argument.
33343         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33344         (num_processors): Add a 'query' argument. Test the value of the
33345         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33346         mingw, count the number of CPUs available for the current process.
33347         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33348         Check for sched_getaffinity and sched_getaffinity_np.
33349         * modules/nproc (Depends-on): Add c-ctype, extensions.
33350         * NEWS: Mention the change.
33351
33352 2009-11-03  Bruno Haible  <bruno@clisp.org>
33353
33354         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33355
33356 2009-11-03  Jim Meyering  <meyering@redhat.com>
33357
33358         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33359         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33360         if it is defined.
33361
33362 2009-11-02  Eric Blake  <ebb9@byu.net>
33363
33364         mktime, timegm: share common declaration
33365         * lib/mktime-internal.h: New file.
33366         * lib/mktime.c: Use it rather than open-coding a declaration.
33367         * lib/timegm.c: Likewise.
33368         * modules/mktime (Files): Ship it.
33369         * modules/timegm (Files): Likewise.
33370         Suggested by Bruno Haible.
33371
33372         test-update-copyright: update test to match script changes
33373         * tests/test-update-copyright.sh: Avoid hard-coding perl
33374         location.  Don't update *.bak created by earlier runs.
33375
33376 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33377             Simon Josefsson  <simon@josefsson.org>
33378             Bruno Haible  <bruno@clisp.org>
33379
33380         Fix link error on Solaris 8.
33381         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33382         also in libnsl. Define also INET_PTON_LIB.
33383         * modules/inet_pton (Link): New section.
33384
33385 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33386             Bruno Haible  <bruno@clisp.org>
33387
33388         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33389         * modules/inet_ntop (Link): New section.
33390         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33391
33392 2009-11-02  Eric Blake  <ebb9@byu.net>
33393
33394         maint: avoid compiler warnings in m4 macros
33395         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33396         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33397
33398 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33399
33400         * m4/pmccabe2html.m4: Remove file.
33401         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33402         function.  Change maintainer.
33403         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33404         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33405         Courtès).
33406
33407 2009-10-31  Eric Blake  <ebb9@byu.net>
33408
33409         fseeko: fix m4 regression
33410         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33411         regression from 2009-10-27.
33412         Reported by Ralf Wildenhues.
33413
33414 2009-10-31  Jim Meyering  <meyering@redhat.com>
33415
33416         inttostr: aesthetics and improved (compile-time) safety
33417         Define inttype_is_signed rather than inttype_is_unsigned,
33418         since the sole use is via "#if inttype_is_signed".
33419         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33420         inttype_is_unsigned.
33421         * lib/offtostr.c (inttype_is_signed): Likewise.
33422         * lib/uinttostr.c (inttype_is_signed): Likewise.
33423         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33424         * lib/inttostr.c (inttostr): Use verify to cross-check the
33425         inttype_is_signed value and the signedness of the actual type.
33426         * modules/inttostr (Depends-on): Add verify.
33427
33428 2009-10-30  Eric Blake  <ebb9@byu.net>
33429
33430         build: avoid compiler warnings
33431         * lib/fchmodat.c (lchmod): Mark unused variables.
33432         * lib/getopt.c (_getopt_initialize): Likewise.
33433         * lib/mktime.c (__mktime_internal): Provide prototype.
33434         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33435         older gcc that do not understand #pragma GCC diagnostic.
33436         * lib/uinttostr.c (inttype_is_unsigned): Define.
33437         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33438
33439 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33440
33441         stat: fix compilation on AIX
33442         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33443         only see struct stat64.
33444
33445 2009-10-30  Eric Blake  <ebb9@byu.net>
33446
33447         exclude: make more robust
33448         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33449         rather than masking a coding bug.
33450         Suggested by Bruno Haible.
33451
33452 2009-10-30  Jim Meyering  <meyering@redhat.com>
33453
33454         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33455         Rather than putting #!/usr/bin/perl on the first line,
33456         start with a variant of what's recommended by "man perlrun" that
33457         invokes the first "perl" program from your shell's search path.
33458         * build-aux/gitlog-to-changelog: Replace #!... as above.
33459         Add a "Local Variables" perl mode setting.
33460         Prompted by a patch from Ludovic Courtès.
33461         Improved by Eric Blake.
33462         * build-aux/useless-if-before-free: Likewise.
33463         * build-aux/announce-gen: Likewise.
33464         * build-aux/update-copyright: Likewise.
33465
33466 2009-10-29  Eric Blake  <ebb9@byu.net>
33467
33468         filenamecat-lgpl: adjust clients
33469         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33470         filenamecat.
33471         * modules/renameat (Depends-on): Likewise.
33472
33473         filenamecat: split into filenamecat-lgpl
33474         * modules/filenamecat-lgpl: New module.
33475         * modules/filenamecat (Files): Move library-safe files into
33476         filenamecat-lgpl.
33477         (Depends-on): Add filenamecat-lgpl.
33478         (configure.ac): Declare witness.
33479         * lib/filenamecat.h (file_name_concat): Only declare when using
33480         GPL module.
33481         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33482         Move...
33483         * lib/filenamecat-lgpl.c: ...into new file.
33484         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33485         (gl_FILE_NAME_CONCAT): Use it.
33486         * MODULES.html.sh (File system functions): Mention new module.
33487
33488         argp: avoid memory leak
33489         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33490         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33491         base_name, since the latter malloc()s and can call exit().
33492         Leak introduced 2006-07-03.
33493
33494         dirname-lgpl: adjust clients that don't need full dirname
33495         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33496         * modules/filenamecat (Depends-on): Likewise.
33497         * modules/linkat (Depends-on): Likewise.
33498         * modules/mkancesdirs (Depends-on): Likewise.
33499         * modules/mkdir (Depends-on): Likewise.
33500         * modules/openat (Depends-on): Likewise.
33501         * modules/savewd (Depends-on): Likewise.
33502         * modules/rename (Depends-on): Likewise.
33503         (License): Relax license.
33504         * modules/mkdir-tests (Depends-on): Drop progname.
33505         (Makefile.am): Delete unneeded LDADD.
33506         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33507
33508         dirname: split into dirname-lgpl
33509         * modules/dirname-lgpl: New module.
33510         * modules/dirname (Files): Move library-safe files into
33511         dirname-lgpl.
33512         (Depends-on): Add dirname-lgpl.
33513         (configure.ac): Declare witness.
33514         * modules/double-slash-root (License): Relax license.
33515         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33516         module.
33517         * lib/dirname.c (dir_len, mdir_name): Move...
33518         * lib/dirname-lgpl.c: ...into new file.
33519         * lib/basename.c (last_component, base_len): Move...
33520         * lib/basename-lgpl.c: ...into new file.
33521         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33522         (gl_DIRNAME): Use it.
33523         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33524         Mention new module.
33525         * modules/dirname-tests (Depends-on): Add progname.
33526         * tests/test-dirname.c (program_name): Delete.
33527
33528         mkdir: make safe for libraries
33529         * modules/mkdir (Depends-on): Drop xalloc.
33530         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33531         exit.
33532
33533         tests: avoid some compiler warnings
33534         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33535         literals.
33536         * tests/test-memchr.c (main): Avoid type mismatch.
33537         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33538         * tests/test-base64.c (main): Likewise.
33539         * tests/test-getdelim.c (main): Likewise.
33540         * tests/test-gethostname.c (main): Likewise.
33541         * tests/test-getline.c (main): Likewise.
33542         * tests/test-netinet_in.c (main): Likewise.
33543         * tests/test-select.c (open_server_socket, main): Likewise.
33544         * tests/test-select-stdin.c (main): Likewise.
33545         * tests/test-sockets.c (main): Likewise.
33546         * tests/test-strsignal.c (main): Likewise.
33547         * tests/test-sys_select.c (main): Likewise.
33548         * tests/test-sys_socket.c (main): Likewise.
33549         * tests/test-u64.c (main): Likewise.
33550         * tests/test-xfprintf-posix.c (main): Likewise.
33551         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33552
33553         sockets: avoid compiler warning
33554         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33555
33556         maint: detect usage(1) and other suspicious exits
33557         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33558
33559 2009-10-29  Jim Meyering  <meyering@redhat.com>
33560
33561         timespec: long-to-int truncation could make timespec_cmp malfunction
33562         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33563         a multiple of 2^32 nanoseconds as no difference.
33564
33565 2009-10-28  Jim Meyering  <meyering@redhat.com>
33566
33567         fprintftime: wrap macro code argument in "do {...} while(0)"
33568         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33569         cpy macro must be a statement that can be followed by a semicolon.
33570         Now that the else clause contains a comment and is hence longer
33571         than one line, I require curly braces.  That in turn requires
33572         that we wrap this code block in the standard do...while(0).
33573
33574         fprintftime: remove stray semicolon from previous change
33575         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33576
33577         fprintftime: avoid a warning about ignored fwrite return value
33578         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33579         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33580         that is unsafe.
33581         * modules/fprintftime (Depends-on): Add ignore-value.
33582
33583         exclude: avoid an unwarranted warning
33584         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33585
33586 2009-10-27  Eric Blake  <ebb9@byu.net>
33587
33588         fseek: avoid compilation failure when fflush is replaced
33589         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33590         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33591         module is in use.
33592         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33593         module is not in use; since REPLACE_FSEEK worked otherwise.
33594         (GNULIB_FTELLO): Likewise for ftell.
33595         Reported by Ian Beckwith and others.
33596
33597 2009-10-27  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33600         Reported by Jim Meyering.
33601
33602 2009-10-27  Jim Meyering  <jim@meyering.net>
33603             Bruno Haible  <bruno@clisp.org>
33604
33605         Avoid warning despite dropping the return value of fwrite.
33606         * lib/unicodeio.c: Include ignore-value.h.
33607         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33608         * modules/unicodeio (Depends-on): Add ignore-value.
33609
33610 2009-10-26  Eric Blake  <ebb9@byu.net>
33611
33612         areadlinkat: fix fallback path
33613         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33614         pointer and zero.
33615
33616 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33617
33618         Use a better IO block size for modern systems
33619         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33620         * lib/md2.c: Likewise.
33621         * lib/md4.c: Likewise.
33622         * lib/md5.c: Likewise.
33623         * lib/sha1.c: Likewise.
33624         * lib/sha256.c: Likewise.
33625         * lib/sha512.c: Likewise.
33626
33627 2009-10-22  Eric Blake  <ebb9@byu.net>
33628
33629         tests: avoid several compiler warnings
33630         * tests/test-getcwd.c (main): Avoid buffer underflow.
33631         * tests/test-getdate.c (main): String literals are not safe with
33632         putenv, so use setenv.  Declare unused argument.
33633         * modules/getdate-tests (Depends-on): Add setenv.
33634         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33635         problems with string literals in char *.
33636         * tests/test-hash.c (main): Avoid shadowing declaration.
33637         (insert_new): Treat string literals as char const *.
33638         * tests/test-getopt.h (test_getopt): Likewise.
33639         (getopt_loop): Alter types to minimize casting elsewhere.
33640         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33641         (test_getopt_long_posix): Likewise.
33642         (do_getopt_long): Add wrapper to minimize casting.
33643         * tests/test-atexit.c (clear_temp_file): Use void.
33644         * tests/test-areadlink-with-size.c (main): Declare unused
33645         arguments.
33646         * tests/test-areadlink.c (main): Likewise.
33647         * tests/test-areadlinkat-with-size.c (main): Likewise.
33648         * tests/test-areadlinkat.c (main): Likewise.
33649         * tests/test-canonicalize-lgpl.c (main): Likewise.
33650         * tests/test-canonicalize.c (main): Likewise.
33651         * tests/test-dirent-safer.c (main): Likewise.
33652         * tests/test-dirname.c (main): Likewise.
33653         * tests/test-dup2.c (main): Likewise.
33654         * tests/test-fchdir.c (main): Likewise.
33655         * tests/test-fcntl-h.c (main): Likewise.
33656         * tests/test-fcntl-safer.c (main): Likewise.
33657         * tests/test-fdopendir.c (main): Likewise.
33658         * tests/test-fdutimensat.c (main): Likewise.
33659         * tests/test-fflush.c (main): Likewise.
33660         * tests/test-filenamecat.c (main): Likewise.
33661         * tests/test-filevercmp.c (main): Likewise.
33662         * tests/test-fopen-safer.c (main): Likewise.
33663         * tests/test-fopen.c (main): Likewise.
33664         * tests/test-fpending.c (main): Likewise.
33665         * tests/test-fpurge.c (main): Likewise.
33666         * tests/test-freading.c (main): Likewise.
33667         * tests/test-fstatat.c (main): Likewise.
33668         * tests/test-fsync.c (main): Likewise.
33669         * tests/test-futimens.c (main): Likewise.
33670         * tests/test-getndelim2.c (main): Likewise.
33671         * tests/test-gettimeofday.c (main): Likewise.
33672         * tests/test-getopt.c (main): Likewise.
33673         * tests/test-i-ring.c (main): Likewise.
33674         * tests/test-inttypes.c (main): Likewise.
33675         * tests/test-link.c (main): Likewise.
33676         * tests/test-lstat.c (main): Likewise.
33677         * tests/test-math.c (main): Likewise.
33678         * tests/test-md5.c (main): Likewise.
33679         * tests/test-memchr2.c (main): Likewise.
33680         * tests/test-memrchr.c (main): Likewise.
33681         * tests/test-mkdir.c (main): Likewise.
33682         * tests/test-mkdirat.c (main): Likewise.
33683         * tests/test-mkfifoat.c (main): Likewise.
33684         * tests/test-open.c (main): Likewise.
33685         * tests/test-openat-safer.c (main): Likewise.
33686         * tests/test-openat.c (main): Likewise.
33687         * tests/test-quotearg.c (main): Likewise.
33688         * tests/test-rawmemchr.c (main): Likewise.
33689         * tests/test-readlink.c (main): Likewise.
33690         * tests/test-remove.c (main): Likewise.
33691         * tests/test-rename.c (main): Likewise.
33692         * tests/test-renameat.c (main): Likewise.
33693         * tests/test-rmdir.c (main): Likewise.
33694         * tests/test-sha1.c (main): Likewise.
33695         * tests/test-signal.c (main): Likewise.
33696         * tests/test-sigaction.c (main): Likewise.
33697         * tests/test-stat.c (main): Likewise.
33698         * tests/test-stat-time.c (main): Likewise.
33699         * tests/test-stddef.c (main): Likewise.
33700         * tests/test-stdint.c (main): Likewise.
33701         * tests/test-stdio.c (main): Likewise.
33702         * tests/test-stdlib.c (main): Likewise.
33703         * tests/test-strchrnul.c (main): Likewise.
33704         * tests/test-strerror.c (main): Likewise.
33705         * tests/test-string.c (main): Likewise.
33706         * tests/test-strtod.c (main): Likewise.
33707         * tests/test-strverscmp.c (main): Likewise.
33708         * tests/test-symlink.c (main): Likewise.
33709         * tests/test-symlinkat.c (main): Likewise.
33710         * tests/test-sys_stat.c (main): Likewise.
33711         * tests/test-sys_time.c (main): Likewise.
33712         * tests/test-time.c (main): Likewise.
33713         * tests/test-unistd.c (main): Likewise.
33714         * tests/test-unlink.c (main): Likewise.
33715         * tests/test-unlinkat.c (main): Likewise.
33716         * tests/test-utimens.c (main): Likewise.
33717         * tests/test-utimensat.c (main): Likewise.
33718         * tests/test-version-etc.c (main): Likewise.
33719         * tests/test-wchar.c (main): Likewise.
33720         * tests/test-wctype.c (main): Likewise.
33721         * tests/test-xprintf-posix.c (main): Likewise.
33722         * tests/test-posixtm.c (main): Likewise.
33723         (STREQ): Delete unused macro.
33724         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33725         shadowed variables.
33726         * tests/test-memchr.c (main): Likewise.
33727
33728 2009-10-21  Eric Blake  <ebb9@byu.net>
33729
33730         areadlinkat: avoid failure on older glibc
33731         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33732         rather than mis-comparing 0 against FUNC_RESULT of char*.
33733
33734 2009-10-21  Bruno Haible  <bruno@clisp.org>
33735
33736         * modules/stpncpy (License): Relicense under LGPLv2+.
33737         Reported by David Lutterkort <lutter@redhat.com>.
33738
33739 2009-10-20  Eric Blake  <ebb9@byu.net>
33740
33741         utimensat: work around Solaris 9 bug
33742         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33743         has trailing slash bugs.
33744         * tests/test-lutimens.h (test_lutimens): Enhance test.
33745         * tests/test-utimens.h (test_utimens): Likewise.
33746         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33747         * doc/posix-functions/utimes.texi (utimes): Likewise.
33748         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33749         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33750         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33751         * doc/posix-functions/futimens.texi (futimens): Likewise.
33752
33753         fdutimensat: new module
33754         * modules/fdutimensat: New file.
33755         * lib/fdutimensat.c (fdutimensat): Likewise.
33756         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33757         * MODULES.html.sh (File system functions): Mention module.
33758         * modules/fdutimensat-tests: New test.
33759         * tests/test-fdutimensat.c: Likewise.
33760
33761         doc: regenerate INSTALL
33762         * doc/INSTALL: Reflect recent autoconf update.
33763         * doc/INSTALL.ISO: Likewise.
33764         * doc/INSTALL.UTF-8: Likewise.
33765
33766 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33767
33768         acl: warn if ACL support is not detected
33769         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33770
33771 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33772
33773         * lib/nproc.h: Add extern "C" block for C++.
33774
33775 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33776             Bruno Haible  <bruno@clisp.org>
33777
33778         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33779         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33780         * doc/posix-functions/isalpha.texi: Likewise.
33781         * doc/posix-functions/isblank.texi: Likewise.
33782         * doc/posix-functions/iscntrl.texi: Likewise.
33783         * doc/posix-functions/isdigit.texi: Likewise.
33784         * doc/posix-functions/isgraph.texi: Likewise.
33785         * doc/posix-functions/islower.texi: Likewise.
33786         * doc/posix-functions/isprint.texi: Likewise.
33787         * doc/posix-functions/ispunct.texi: Likewise.
33788         * doc/posix-functions/isspace.texi: Likewise.
33789         * doc/posix-functions/isupper.texi: Likewise.
33790         * doc/posix-functions/isxdigit.texi: Likewise.
33791
33792 2009-10-18  Bruno Haible  <bruno@clisp.org>
33793
33794         Tests for module 'isblank'.
33795         * modules/isblank-tests: New file.
33796         * tests/test-isblank.c: New file.
33797
33798         New module 'isblank'.
33799         * lib/isblank.c: New file.
33800         * m4/isblank.m4: New file.
33801         * modules/isblank: New file.
33802         * doc/posix-functions/isblank.texi: Mention the new module.
33803
33804 2009-10-18  Bruno Haible  <bruno@clisp.org>
33805
33806         New module 'ctype'.
33807         * lib/ctype.in.h: New file.
33808         * m4/ctype.m4: New file.
33809         * modules/ctype: New file.
33810         * doc/posix-headers/ctype.texi: Mention the new module.
33811
33812 2009-10-18  Jim Meyering  <meyering@redhat.com>
33813
33814         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33815         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33816         right after its initialization, rather than farther down.
33817         Keeping these in close proximity makes it easier to ensure
33818         that each such variable is initialized.  E.g.,
33819
33820             LIB_CLOCK_GETTIME=
33821             AC_SUBST([LIB_CLOCK_GETTIME])
33822
33823         This change also increments these serial numbers.
33824         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33825         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33827
33828 2009-10-18  Bruno Haible  <bruno@clisp.org>
33829
33830         Don't let environment variables perturb build.
33831         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33832         (gl_PREREQ_GETHRXTIME): ... not here.
33833
33834 2009-10-18  Bruno Haible  <bruno@clisp.org>
33835
33836         Avoid symlink attack in localcharset module.
33837         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33838         (O_NOFOLLOW): Define fallback.
33839         (get_charset_aliases): Don't open the file if it is a symbolic link.
33840         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33841         gl_FCNTL_H.
33842         (gl_FCNTL_H): Require it.
33843         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33844         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33845         Reported by Fergal Glynn <fglynn@veracode.com>.
33846
33847 2009-10-18  Bruno Haible  <bruno@clisp.org>
33848
33849         Implement nproc for mingw.
33850         * lib/nproc.c: Include <windows.h>
33851         (num_processors): On native Windows platforms, try GetSystemInfo.
33852
33853 2009-10-18  Bruno Haible  <bruno@clisp.org>
33854
33855         Implement nproc for IRIX.
33856         * lib/nproc.c: Include <sys/sysmp.h>.
33857         (num_processors): On IRIX systems, try sysmp.
33858         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33859
33860 2009-10-18  Bruno Haible  <bruno@clisp.org>
33861
33862         Implement nproc for HP-UX.
33863         * lib/nproc.c: Include <sys/pstat.h>
33864         (num_processors): On HP-UX systems, try pstat_getdynamic.
33865         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33866         pstat_getdynamic.
33867
33868 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33869             Bruno Haible  <bruno@clisp.org>
33870
33871         Implement nproc for NetBSD, OpenBSD.
33872         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33873         (ARRAY_SIZE): New macro.
33874         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33875         * m4/nproc.m4: New file.
33876         * modules/nproc (Files): Add m4/nproc.m4.
33877         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33878         (Makefile.am): Instead, augment lib_SOURCES.
33879
33880 2009-10-18  Bruno Haible  <bruno@clisp.org>
33881
33882         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33883         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33884         sys/param.h.
33885
33886 2009-10-16  Eric Blake  <ebb9@byu.net>
33887
33888         utimensat: new module
33889         * modules/utimensat: New file.
33890         * lib/utimensat.c (utimensat): Likewise.
33891         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33892         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33893         so we can work around Linux bugs.
33894         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33895         * modules/sys_stat (Makefile.am): Substitute them.
33896         * lib/sys_stat.in.h (utimensat): Declare it.
33897         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33898         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33899         * modules/utimensat-tests: New test.
33900         * tests/test-utimensat.c: Likewise.
33901
33902         utimens: let lutimens work on non-symlinks
33903         * lib/utimens.c (lutimens): Fall back to utimens rather than
33904         failing with ENOSYS, when file is not a symlink.
33905         (utimens): Reduce redirection.
33906         * tests/test-lutimens.h (test_lutimens): Update test to cover
33907         non-symlinks.
33908         * tests/test-utimens.h (test_utimens): Update test to cover
33909         symlinks.
33910         * tests/test-utimens.c (main): Update caller.
33911
33912         utimens: cache whether utimensat syscall works
33913         * lib/utimens.c (utimensat_works_really): New cache variable.
33914         (fdutimens, lutimens): Use it to avoid failing syscall.
33915
33916         test-stat-time, test-utimens: improve portability
33917         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33918         ext4 on alpha, and for cygwin.
33919         * tests/test-utimens-common.h: New file.
33920         (nap): Factor delays into single function.
33921         * tests/test-lutimens.h (test_lutimens): Use new header.
33922         * tests/test-futimens.h (test_futimens): Likewise.
33923         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33924         timestamps to occur from same machine, as was done previously for
33925         test_utimens.
33926         * modules/utimens-tests (Files): Ship new file.
33927         * modules/futimens-tests (Files): Likewise.
33928         Reported in part by Jim Meyering.
33929
33930         sys_stat: sort replacement declarations
33931         * lib/sys_stat.in.h: Sort declarations.
33932         * lib/futimens.c (futimens): Fix typo.
33933
33934 2009-10-15  Jim Meyering  <meyering@redhat.com>
33935
33936         don't let environment settings perturb build
33937         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33938         could cause a configure-time and/or build-time malfunction.
33939         Typically, a configure-time function-in-library test is performed
33940         via code like this:
33941
33942           LIB_VAR=
33943           AC_SUBST([LIB_VAR])
33944           prefix_saved_LIBS=$LIBS
33945             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33946                        [test "$ac_cv_search_FUNC" = "none required" ||
33947                         LIB_VAR=$ac_cv_search_FUNC])
33948           LIBS=$prefix_saved_LIBS
33949
33950         However, in each of the files affected by this change, the LIB_VAR=
33951         initialization was omitted.  Thus, when set in the environment, its
33952         value would propagate into generated Makefiles when FUNC is not found
33953         in LIB_NAME.
33954         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33955         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33957
33958 2009-10-14  Eric Blake  <ebb9@byu.net>
33959
33960         fchdir: avoid infinite recursion in mingw
33961         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33962         recursing.
33963
33964         test-stat-time: port to mingw
33965         * tests/test-stat-time.c (force_unlink): Return a value.
33966         (test_ctime) [W32]: Fix compilation error.
33967         (nap): Don't call usleep with too large an argument.  Use
33968         force_unlink.
33969         * doc/pastposix-functions/usleep.texi (usleep): Document the
33970         portability issue.
33971
33972 2009-10-13  Jim Meyering  <meyering@redhat.com>
33973
33974         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33975         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33976         * modules/pipe-filter-ii: Likewise.
33977         * modules/sys_socket-tests: Likewise.
33978         * modules/tsearch-tests: Likewise.
33979         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33980         (check): Depend on it.
33981
33982 2009-10-12  Eric Blake  <ebb9@byu.net>
33983
33984         utimens-tests: port to NFS file systems
33985         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33986         comparisons to avoid spurious failures from timestamp drift
33987         between NFS machines.
33988
33989 2009-10-12  Eric Blake  <ebb9@byu.net>
33990
33991         stat-time-tests: minor cleanups
33992         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33993         * tests/test-stat-time.c (nap): Separate assignment from call.
33994         Suggested by Paolo Bonzini and Bruno Haible.
33995
33996         sys_stat: guarantee struct timespec
33997         * lib/sys_stat.in.h (includes): Always include <time.h>
33998         * modules/sys_stat (Depends-on): Add time.
33999         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34000         mode_t permission values.
34001         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34002         get at subsecond timestamps.
34003
34004 2009-10-10  Eric Blake  <ebb9@byu.net>
34005
34006         futimens: new module
34007         * modules/futimens: New file.
34008         * lib/futimens.c (futimens): Likewise.
34009         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34010         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34011         we can work around Linux bugs.
34012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34013         * modules/sys_stat (Makefile.am): Substitute them.
34014         * lib/sys_stat.in.h (futimens): Declare it.
34015         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34016         * doc/posix-functions/futimens.texi (futimens): Likewise.
34017         * modules/futimens-tests: New test.
34018         * tests/test-futimens.c: Likewise.
34019
34020         utimens: introduce fdutimens
34021         * lib/utimens.h (fdutimens): New prototype.
34022         * lib/utimens.c (gl_futimens): Move guts...
34023         (fdutimens): ...to new interface.
34024         * tests/test-utimens.c (do_fdutimens): Use it.
34025
34026         utimens: add UTIME_NOW and UTIME_OMIT support
34027         * lib/utimens.c (validate_timespec, update_timespec): New helper
34028         functions.
34029         (gl_futimens, lutimens): Use them.
34030         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34031         stdbool, sys_stat.
34032         (Link): Mention resulting library dependency.
34033         * modules/utimecmp (Link): Likewise.
34034         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34035         (Makefile.am): Pick up library dependency.
34036         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34037         definition.
34038         * tests/test-sys_stat.c: Test the definitions.
34039         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34040         * NEWS: Document library dependency.
34041
34042         utimecmp: support symlink timestamps
34043         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34044         hashing when possible.  Use pathconf when available.
34045         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34046         * modules/utimecmp (Depends-on): Add lstat.
34047
34048         utimens: add lutimens interface
34049         * lib/utimens.c (lutimens): New function.
34050         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34051         * lib/utimens.h (lutimens): Declare new interface.
34052         * tests/test-utimens.c (main): Enhance test.
34053         * tests/test-lutimens.h (test_lutimens): New file.
34054         * modules/utimens-tests (Files): Distribute it.
34055         (Depends-on): Add symlink.
34056         (configure.ac): Check for usleep.
34057
34058         utimens: validate futimens usage
34059         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34060         fewer syscalls on failure later on.  Avoid compiler warning on
34061         mingw.
34062         * modules/utimens (Depends-on): Add dup2.
34063
34064         utimens: add test
34065         * modules/utimens-tests: New test.
34066         * tests/test-utimens.h: New file.
34067         * tests/test-futimens.h: Likewise.
34068         * tests/test-utimens.c: Likewise.
34069
34070         doc: mention timestamp portability issues
34071         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34072         instead.
34073         * doc/posix-functions/utime.texi (utime): Likewise.
34074         * doc/posix-functions/utimes.texi (utimes): Likewise.
34075         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34076         instead.
34077         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34078         module.
34079         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34080         Mention weakness with symlink timestamps.
34081         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34082         to utimensat/futimens instead.
34083         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34084
34085         test-dup2: enhance test
34086         * tests/test-dup2.c (main): Also check AT_FDCWD.
34087
34088         test-stat-time: avoid more spurious failures
34089         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34090         xfs; and avoid race if the two timestamps cross quantization edge.
34091
34092         relocatable: prefer 'file system' over 'filesystem'
34093         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34094         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34095         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34096         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34097         * lib/relocatable.c (compute_curr_prefix): Likewise.
34098
34099 2009-10-10  Jim Meyering  <meyering@redhat.com>
34100
34101         stat-time-tests: check for the usleep function
34102         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34103
34104 2009-10-10  Bruno Haible  <bruno@clisp.org>
34105
34106         * modules/xnanosleep: Put the Link section after the Include section.
34107
34108 2009-10-09  Eric Blake  <ebb9@byu.net>
34109
34110         dup2: work around FreeBSD 6.1 bug
34111         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34112         * doc/posix-functions/dup2.texi (dup2): Document it.
34113         Reported by Nelson H. F. Beebe and Jim Meyering.
34114
34115         test-stat-time: port to buggy NFS clients
34116         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34117         (test_ctime): Also skip test if mtime and ctime are skewed.
34118
34119         maint: prefer 'file system' over 'filesystem'
34120         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34121         * doc/posix-functions/lstat.texi (lstat): Likewise.
34122         * lib/file-has-acl.c (file_has_acl): Likewise.
34123         * lib/fwriteerror.c [TEST]: Likewise.
34124         * tests/test-areadlink.h (test_areadlink): Likewise.
34125         * tests/test-areadlinkat-with-size.c (main): Likewise.
34126         * tests/test-areadlinkat.c (main): Likewise.
34127         * tests/test-canonicalize-lgpl.c (main): Likewise.
34128         * tests/test-canonicalize.c (main): Likewise.
34129         * tests/test-fstatat.c (main): Likewise.
34130         * tests/test-linkat.c (main): Likewise.
34131         * tests/test-lstat.h (test_lstat_func): Likewise.
34132         * tests/test-mkdir.h (test_mkdir): Likewise.
34133         * tests/test-readlink.h (test_readlink): Likewise.
34134         * tests/test-remove.c (main): Likewise.
34135         * tests/test-rename.h (test_rename): Likewise.
34136         * tests/test-renameat.c (main): Likewise.
34137         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34138         * tests/test-symlink.h (test_symlink): Likewise.
34139         * tests/test-symlinkat.c (main): Likewise.
34140         * tests/test-unlink.h (test_unlink_func): Likewise.
34141         * tests/test-unlinkat.c (main): Likewise.
34142
34143         maint: make realtime library usage explicit
34144         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34145         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34146         * modules/settime (Link): Likewise.
34147         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34148
34149         test-stat-time: speed up execution
34150         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34151         warning on mingw.
34152         (nap): New helper function.
34153         (prepare_test): Use it to reduce sleep time.
34154         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34155         execution.
34156         * modules/stat-time-tests (configure.ac): Check for usleep.
34157
34158 2009-10-09  Jim Meyering  <meyering@redhat.com>
34159
34160         selinux-h: always use getfilecon wrappers
34161         * lib/getfilecon.c: New file.
34162         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34163         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34164         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34165         (fgetfilecon): Provide a stub.
34166         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34167         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34168         file unconditionally.
34169         When <selinux/selinux.h> is found, arrange to use wrappers.
34170         * modules/selinux-h (Files): Add getfilecon.c.
34171         (Makefile.am): Substitute include-next-related bits
34172         into the now-always-generated selinux/selinux.h file.
34173         * doc/glibc-functions/lgetfilecon.texi: New file.
34174         * doc/glibc-functions/fgetfilecon.texi: New file.
34175         * doc/glibc-functions/getfilecon.texi: New file.
34176         * doc/glibc-functions/getfilecon-desc.texi: New file.
34177         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34178         which to pull in the new files.
34179         * MODULES.html.sh (Misc): Add selinux-h.
34180
34181 2009-10-08  Jim Meyering  <meyering@redhat.com>
34182
34183         unistd: fix comment typo
34184         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34185
34186 2009-10-08  Eric Blake  <ebb9@byu.net>
34187
34188         areadlink: use SIZE_MAX consistently
34189         * modules/areadlink (Depends-on): Add stdint.
34190         * modules/areadlink-with-size (Depends-on): Likewise.
34191         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34192         gives NULL; drop sys/types, since unistd gives size_t; and add
34193         stdint for SIZE_MAX.
34194         (SIZE_MAX): Rely on headers.
34195         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34196         and add stdint.
34197         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34198         (SIZE_MAX): Likewise.
34199         (INITIAL_BUF_SIZE): Turn into enum.
34200         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34201
34202 2009-10-08  Jim Meyering  <meyering@redhat.com>
34203
34204         areadlinkat: avoid compilation failure
34205         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34206         Fix typo in comment.
34207
34208 2009-10-07  Eric Blake  <ebb9@byu.net>
34209
34210         areadlinkat-with-size: new module
34211         * modules/areadlinkat-with-size: New module.
34212         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34213         * lib/areadlink.h (areadlinkat): Declare it.
34214         * MODULES.html.sh (File system functions): Mention it.
34215         * modules/areadlinkat-with-size-tests: New test.
34216         * tests/test-areadlinkat-with-size.c: New file.
34217
34218         xreadlinkat: new module
34219         * modules/xreadlinkat: New module.
34220         * lib/xreadlinkat.c (xreadlinkat): New file.
34221         * lib/xreadlink.h (xreadlinkat): Declare it.
34222         * MODULES.html.sh (File system functions): Mention it.
34223
34224         areadlinkat: new module
34225         * lib/at-func.c (FUNC_FAIL): New define.
34226         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34227         * modules/areadlinkat: New module.
34228         * lib/linkat.c (areadlinkat): Move...
34229         * lib/areadlinkat.c (areadlinkat): ...to new file.
34230         * lib/areadlink.h (areadlinkat): Declare it.
34231         * modules/linkat (Depends-on): Add areadlinkat.
34232         * MODULES.html.sh (File system functions): Mention it.
34233         * modules/areadlinkat-tests: New test.
34234         * tests/test-areadlinkat.c: New file.
34235
34236         areadlink, areadlink-with-size: add tests
34237         * modules/areadlink-tests: New test.
34238         * modules/areadlink-with-size-tests: Likewise.
34239         * tests/test-areadlink.h: New file.
34240         * tests/test-areadlink.c: Likewise.
34241         * tests/test-areadlink-with-size.c: Likewise.
34242
34243         maint: minor cleanups
34244         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34245         _UNUSED_PARAMETER_ instead.
34246         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34247         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34248         * modules/linkat-tests (Files): Distribute test-link.h.
34249
34250         openat, utimens: whitespace cleanup
34251         * lib/openat.c: Prefer space throughout, rather than mix of 8
34252         spaces vs. tabs.
34253         * lib/at-func.c: Likewise.
34254         * lib/utimens.c: Likewise.
34255
34256         openat: avoid using wrong fd
34257         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34258         working directory chooses same fd.
34259         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34260
34261         mkdir, mkdirat: fix cygwin 1.5.x bug
34262         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34263         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34264         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34265         bug.
34266         (gl_PREREQ_MKDIR): Delete unused macro.
34267         * modules/mkdir (Files): Track file rename.
34268         (configure.ac): Update macro name.
34269         * modules/openat (Depends-on): Add mkdir.
34270         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34271
34272         mkdir, mkdirat: add tests
34273         * modules/mkdir-tests: New test.
34274         * tests/test-mkdir.h: New file.
34275         * tests/test-mkdir.c: Likewise.
34276         * tests/test-mkdirat.c: Likewise.
34277         * modules/openat-tests (Files): Add new files.
34278         (Makefile.am): Run new test.
34279
34280 2009-10-06  Eric Blake  <ebb9@byu.net>
34281
34282         doc: tweak *at function documentation
34283         * doc/posix-functions/faccessat.texi (faccessat): Mention
34284         known issue with replacement.
34285         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34286         * doc/posix-functions/linkat.texi (linkat): Likewise.
34287         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34288         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34289         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34290         * doc/posix-functions/renameat.texi (renameat): Likewise.
34291         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34292
34293         openat: fix GNU/Hurd bug in unlinkat
34294         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34295         broken.
34296         * doc/posix-functions/unlink.texi (unlink): Document this.
34297         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34298
34299         fdopendir: fix GNU/Hurd bug
34300         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34301         allowing non-directory fds.
34302         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34303         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34304         * modules/dirent (Makefile.am): Substitute it.
34305         * lib/dirent.in.h (fdopendir): Declare replacement.
34306         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34307         * tests/test-fdopendir.c (main): Test something other than
34308         /dev/null, since on Hurd that behaves like a directory.
34309
34310         test-symlink: port to GNU/Hurd
34311         * tests/test-symlink.h (test_symlink): Relax expected errno.
34312
34313         doc: tweak more cygwin information
34314         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34315         now compatible with glibc.
34316         * doc/posix-functions/getopt.texi (getopt): Likewise.
34317
34318         getopt-gnu: add another test
34319         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34320         guarantee behavior relied on by m4.
34321         * tests/test-getopt.c (main): Use it.
34322         * modules/getopt-posix-tests (Depends-on): Add setenv.
34323         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34324
34325         getopt: fix compilation on darwin
34326         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34327         include.
34328         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34329         Reported by Ludovic Courtès.
34330
34331 2009-10-06  Bruno Haible  <bruno@clisp.org>
34332
34333         * modules/size_max (Description): Discourage its use.
34334         Reported by Simon Josefsson.
34335
34336 2009-10-06  Jim Meyering  <meyering@redhat.com>
34337
34338         linkat: avoid compilation failure
34339         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34340
34341 2009-10-05  Eric Blake  <ebb9@byu.net>
34342
34343         linkat: support Linux 2.6.17
34344         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34345         linkat on Linux, but allow cache variable override.
34346         * lib/linkat.c (rpl_linkat): Define override.
34347         * modules/linkat (Depends-on): Add symlinkat.
34348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34349         * modules/unistd (Makefile.am): Substitute it.
34350         * lib/unistd.in.h (linkat): Declare replacement.
34351         Reported by Pádraig Brady.
34352
34353         quotearg: port test to systems with C.UTF-8 locale
34354         * tests/test-quotearg.c (struct result_strings): Add another
34355         member, differentiating between C.ASCII and C.UTF-8 handling.
34356         (compare_strings): Add parameter.
34357         (main): Adjust all callers.
34358
34359         getopt: avoid clash with FreeBSD _getopt_internal
34360         * lib/getopt.in.h (_getopt_internal): Override the name.
34361         * lib/getopt_int.h (includes): Pick up any overrides.
34362         Reported by Reuben Thomas.
34363
34364         hash: allow C89 compilation
34365         * lib/hash.c (check_tuning): Move declaration before statement.
34366         Reported by Reuben Thomas.
34367
34368 2009-10-05  Karl Berry  <karl@gnu.org>
34369
34370         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34371
34372 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34373             Bruno Haible  <bruno@clisp.org>
34374
34375         * lib/uname.c (uname): Use a table-driven algorithm to compute
34376         Windows NT versions.
34377
34378 2009-10-04  Bruno Haible  <bruno@clisp.org>
34379
34380         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34381         program_invocation_short_name.
34382         * modules/progname (configure.ac): Test for presence of
34383         program_invocation_short_name.
34384         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34385
34386 2009-10-04  Bruno Haible  <bruno@clisp.org>
34387
34388         * lib/progname.c (set_program_name): Fix comment.
34389         Reported by Jim Meyering.
34390
34391 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34392             Bruno Haible  <bruno@clisp.org>
34393
34394         * lib/uname.c: Include <string.h>.
34395         (uname): Do only one call to GetVersionEx in the common case.
34396
34397 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34398             Bruno Haible  <bruno@clisp.org>
34399
34400         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34401         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34402         (uname): Add support for Windows CE and various non-x86 CPU types.
34403
34404 2009-10-03  Bruno Haible  <bruno@clisp.org>
34405
34406         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34407         invocation to tests/configure.ac.
34408         Reported by Ian Beckwith <ianb@erislabs.net>.
34409
34410 2009-10-02  Eric Blake  <ebb9@byu.net>
34411
34412         fchdir: avoid compiler warning
34413         * lib/fchdir.c (canonicalize_file_name)
34414         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34415
34416         test-open: support mingw errno values
34417         * tests/test-open.h (test_open): Relax test.
34418         * tests/test-fopen.h (test_fopen): Likewise.
34419         * tests/test-openat-safer.c (main): Likewise.
34420
34421         open: fix opening directory on mingw
34422         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34423
34424         test-open: on GNU/Hurd, /dev/null is a directory
34425         * tests/test-fopen.h (main): Rename...
34426         (test_fopen): ...to this.  Use a guaranteed non-directory when
34427         confirming open behavior on trailing slash.
34428         * tests/test-openat-safer.c (main): Likewise.
34429         * tests/test-open.h (main): Likewise....
34430         (test_open): ...to this.
34431         * tests/test-fopen.c (main): Adjust caller.
34432         * tests/test-fopen-safer.c (main): Likewise.
34433         * tests/test-open.c (main): Likewise.
34434         * tests/test-fcntl-safer.c (main): Likewise.
34435         Reported by Samuel Thibault.
34436
34437         rename, fchdir: don't ignore chdir failure
34438         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34439         * lib/rename.c (rpl_rename) [W32]: Likewise.
34440         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34441         an empty destination directory if source cannot be renamed,
34442         although there is still possibility for failure.
34443         * doc/posix-functions/rename.texi (rename): Document the race.
34444         Reported by Jim Meyering.
34445
34446         maint: cleanup whitespace in recent commits
34447         * lib/rename.c (rpl_rename): Remove tabs.
34448         * tests/test-link.h (test_link): Likewise.
34449         * lib/fchdir.c (get_name): Likewise.
34450         Reported by Jim Meyering.
34451
34452 2009-10-02  Ben Pfaff  <blp@gnu.org>
34453
34454         relocatable-prog-wrapper: Add missing dependency on
34455         double-slash-root.
34456         * modules/relocatable-prog-wrapper: Add dependency.
34457         Reported by Ian Beckwith <ianb@erislabs.net>.
34458
34459 2009-10-02  Eric Blake  <ebb9@byu.net>
34460
34461         renameat: fix Solaris bugs
34462         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34463         needed fixing.
34464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34465         * modules/stdio (Makefile.am): Substitute it.
34466         * lib/stdio.in.h (renameat): Declare replacement.
34467         * lib/renameat.c (rpl_renameat): Implement fix.
34468
34469         renameat: new module
34470         * modules/renameat: New file.
34471         * lib/renameat.c (renameat): Likewise.
34472         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34474         * modules/stdio (Makefile.am): Substitute them.
34475         * lib/stdio.in.h (renameat): Declare it.
34476         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34477         * doc/posix-functions/renameat.texi (renameat): Likewise.
34478         * modules/renameat-tests: New test.
34479         * tests/test-renameat.c: Likewise.
34480
34481         rename: fix mingw bugs
34482         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34483         directory overwrite bugs.
34484
34485         rename: fix another cygwin 1.5 bug
34486         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34487         checks.
34488         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34489         unnecessary cygwin workarounds.  Also work around bug with moving
34490         full directory onto an empty one.
34491         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34492
34493         rename-dest-slash: merge into rename module
34494         * modules/rename-dest-slash (Status): Mark obsolete.
34495         (Depends-on): Add rename.
34496         (Files): Let rename do it all.
34497         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34498         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34499         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34500         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34501         * lib/rename.c (rpl_rename): Update comments.
34502
34503         rename: fix cygwin 1.5.x bugs
34504         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34505         * lib/rename.c (rpl_rename): Work around them.
34506         * modules/rename (Depends-on): Add same-inode.
34507
34508         rename: fix Solaris 10 bug
34509         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34510         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34511         was the only bug.
34512
34513         rename: fix Solaris 9 bug
34514         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34515         on non-directory.  Avoid calling exit.
34516         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34517         strdup.
34518         * modules/rename-tests (Depends-on): Drop lstat.
34519         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34520         (gl_PREREQ_RENAME): Delete unused macro.
34521
34522         rename-dest-slash: fix NetBSD bug
34523         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34524         links.
34525         * modules/rename-dest-slash (Depends-on): Add same-inode.
34526
34527         rename-tests: new test, exposes several platform bugs
34528         * modules/rename-tests: New file.
34529         * tests/test-rename.h: Likewise.
34530         * tests/test-rename.c: Likewise.
34531         * doc/posix-functions/rename.texi (rename): Improve documentation,
34532         including bugs that will eventually be fixed in gnulib.
34533
34534 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34535
34536         * lib/uname.c: Include <stdlib.h>
34537         (uname): Assume version info is available.
34538
34539 2009-10-02  Jim Meyering  <meyering@redhat.com>
34540
34541         gnu-web-doc-update: correct --help output
34542         * build-aux/gnu-web-doc-update: Make --help output relevant.
34543
34544         gnu-web-doc-update: add standard options
34545         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34546
34547         gnu-web-doc-update: New module.
34548         Use this script to automatically update the on-line web documentation
34549         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34550         * modules/gnu-web-doc-update: New file, from coreutils.
34551         * build-aux/gnu-web-doc-update: New script.
34552
34553 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34554
34555         link: LoadLibrary is not needed.
34556         * lib/link.c: Use GetModuleHandle.
34557
34558 2009-10-01  Eric Blake  <ebb9@byu.net>
34559
34560         getopt: bump serial number
34561         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34562         change.
34563
34564         tests: tighten link, rmdir, and remove tests
34565         * tests/test-link.h (includes): No need to use <config.h> here.
34566         Clean up if directory hard link was created, otherwise test for
34567         trailing '.'.
34568         * tests/test-linkat.c (main): Simplify.
34569         * tests/test-remove.c (main): Enhance test for trailing '.'.
34570         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34571
34572 2009-10-01  Jim Meyering  <meyering@redhat.com>
34573
34574         maint.mk: requiring "make major" was annoying, for a "minor" release.
34575         What is intended is "stable", to contrast with alpha and beta,
34576         so require "make stable", not "make major".
34577         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34578         (get_tool_versions): Likewise.
34579         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34580
34581 2009-09-30  Ben Pfaff  <blp@gnu.org>
34582
34583         Fix broken build of replacement for Windows tmpfile().
34584         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34585         flags argument added along with the 'mkostemp' module.
34586
34587 2009-09-28  Bruno Haible  <bruno@clisp.org>
34588
34589         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34590         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34591         to 'remove_elt'.
34592         (gl_list_remove): Update.
34593         * lib/gl_list.c (gl_list_remove): Update.
34594         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34595         to 'remove_elt'.
34596         (gl_oset_remove): Update.
34597         * lib/gl_list.c (gl_oset_remove): Update.
34598         Reported by Eric Blake.
34599
34600 2009-09-28  Eric Blake  <ebb9@byu.net>
34601
34602         doc: mention yet more cygwin 1.7 status
34603         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34604         cygwin.
34605         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34606         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34607
34608         argp: fix test failure
34609         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34610         that are not upper-case.  Pass correct range to tolower.
34611
34612 2009-09-27  Jim Meyering  <meyering@redhat.com>
34613
34614         test-yesno: work around sparc-dash here-document infelicity
34615         Without this change, the literal \177 byte in a here document
34616         would make dash 0.5.5.1-3 access uninitialized memory.
34617         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34618         Instead, use a marker, "@", and filter through tr to create the desired
34619         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34620
34621 2009-09-27  Bruno Haible  <bruno@clisp.org>
34622
34623         Disable untested support for new flavours of ACLs on AIX.
34624         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34625         progress.
34626         * lib/set-mode-acl.c (qset_acl): Likewise.
34627
34628 2008-12-07  Bruno Haible  <bruno@clisp.org>
34629
34630         Add support for new flavours of ACLs on AIX. (Untested.)
34631         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34632         (file_has_acl): Add support for newer AIX.
34633         * lib/set-mode-acl.c (qset_acl): Likewise.
34634         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34635         Rainer Tammer <tammer@tammer.net>.
34636
34637 2009-09-26  Eric Blake  <ebb9@byu.net>
34638
34639         argp: fix compilation of getopt
34640         * lib/getopt.in.h (includes): Use different guard than glibc.
34641         Reported by Sergey Poznyakoff.
34642
34643         doc: mention more cygwin 1.7 status
34644         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34645         bug.
34646         * doc/posix-functions/execl.texi (execl): Likewise.
34647         * doc/posix-functions/execle.texi (execle): Likewise.
34648         * doc/posix-functions/execlp.texi (execlp): Likewise.
34649         * doc/posix-functions/execv.texi (execv): Likewise.
34650         * doc/posix-functions/execve.texi (execve): Likewise.
34651         * doc/posix-functions/execvp.texi (execvp): Likewise.
34652         * doc/glibc-functions/canonicalize_file_name.texi
34653         (canonicalize_file_name): Cygwin 1.7 now provides this.
34654         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34655         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34656         on AT_SYMLINK_NOFOLLOW.
34657
34658 2009-09-24  Eric Blake  <ebb9@byu.net>
34659
34660         test-linkat: make test more robust
34661         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34662
34663         getopt: fix inclusion guards for cygwin
34664         * modules/getopt-posix (Depends-on): Add include-next.
34665         (Makefile.am): Substitute more items in replacement header.
34666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34667         <getopt.h>.
34668         * lib/getopt.in.h (includes): Use split inclusion guard, and
34669         prefer <getopt.h> over include <unistd.h> when one is present.
34670         (option): Also override name of 'struct option'.
34671
34672         same-inode: revert prior change; it is not yet ready
34673         * NEWS: Undo mention of this change.
34674         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34675         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34676         * lib/cycle-check.c (cycle_check): Likewise.
34677         * lib/same.c (same_name): Likewise.
34678         * lib/at-func2.c (at_func2): Likewise.
34679
34680 2009-09-23  Eric Blake  <ebb9@byu.net>
34681
34682         linkat: new module
34683         * modules/linkat: New file.
34684         * lib/at-func2.c (at_func2): Likewise.
34685         * lib/linkat.c (linkat): Likewise.
34686         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34687         * lib/openat-priv.h (at_func2): Add declaration.
34688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34689         * modules/unistd (Makefile.am): Substitute them.
34690         * lib/unistd.in.h (linkat): Declare it.
34691         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34692         * doc/posix-functions/linkat.texi (linkat): Likewise.
34693         * doc/posix-functions/link.texi (link): Tweak wording.
34694         * tests/test-link.c (main): Move guts...
34695         * tests/test-link.h (test_link): ...into new file.
34696         * modules/linkat-tests: New test.
34697         * tests/test-linkat.c: Likewise.
34698         * modules/link-tests (Files): Ship new file.
34699         (Depends-on): Add stdbool.
34700
34701         dirname: add library-safe mdir_name
34702         * lib/dirname.h (mdir_name): New prototype.
34703         * lib/dirname.c (dir_name): Move guts...
34704         (mdir_name): ...to new function that avoids xalloc_die.
34705
34706         fchdir: another mingw fix
34707         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34708         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34709         on mingw (where it has not yet been ported), and make it optional
34710         elsewhere.
34711         (_gl_register_fd): Use it.
34712
34713         same-inode: make SAME_INODE tri-state, to port to mingw
34714         * NEWS: Mention this change.
34715         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34716         st_ino always being 0.
34717         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34718         * lib/cycle-check.c (cycle_check): Likewise.
34719         * lib/same.c (same_name): Likewise.
34720
34721         lstat: avoid mingw compilation error
34722         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34723         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34724         lstat ourselves.
34725         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34726         was adequate.
34727         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34728         the checks for lstat.
34729         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34730
34731         link: fix test failure on Solaris 9
34732         * lib/link.c (rpl_link): Don't assume link will catch bogus
34733         trailing slash on source.
34734
34735         test-symlinkat: enhance test
34736         * tests/test-readlink.c (main): Move guts...
34737         * tests/test-readlink.h (test_readlink): ...into new file.
34738         * tests/test-symlink.c (main): Move guts...
34739         * tests/test-symlink.h (test_symlink): ...into new file.
34740         * tests/test-symlinkat.c (main): Use new files for further
34741         coverage.
34742         (do_symlink, do_readlink): New helper functions.
34743         * modules/symlink-tests (Files): Ship new file.
34744         (Depends-on): Add stdbool.
34745         * modules/readlink-tests (Files): Ship new file.
34746         (Depends-on): Add stdbool.
34747         * modules/symlinkat-tests (Files): Use new files.
34748
34749 2009-09-23  Eric Blake  <ebb9@byu.net>
34750
34751         readlink: document portability issue with symlink length
34752         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34753         systems have bogus st_size on symlinks, and mention the
34754         areadlink-with-size module.
34755         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34756         * doc/posix-functions/readlink.texi (readlink): Mention the
34757         areadlink module, and ERANGE failure.
34758         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34759         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34760
34761         readlink: fix Solaris 9 bug with trailing slash
34762         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34763         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34764         * doc/posix-functions/readlink.texi (readlink): Document this.
34765         * modules/readlink-tests: New test.
34766         * tests/test-readlink.c: Likewise.
34767
34768         readlink: fix cygwin 1.5.x bug with return type
34769         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34770         * lib/unistd.in.h (readlink): Use ssize_t.
34771         * lib/readlink.c (readlink): Likewise.
34772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34773         * modules/unistd (Makefile.am): Substitute it.
34774         * lib/unistd.in.h (readlink): Declare replacement.
34775         * doc/posix-functions/readlink.texi (readlink): Document this.
34776
34777         symlink: use throughout gnulib
34778         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34779         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34780         symlink is not used.
34781         * modules/symlinkat (Depends-on): Add symlink.
34782         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34783         * modules/canonicalize-tests (Depends-on): Likewise.
34784         * modules/lstat-tests (Depends-on): Likewise.
34785         * modules/openat-tests (Depends-on): Likewise.
34786         * modules/remove-tests (Depends-on): Likewise.
34787         * modules/rmdir-tests (Depends-on): Likewise.
34788         * modules/unlink-tests (Depends-on): Likewise.
34789         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34790         * tests/test-canonicalize.c (symlink): Likewise.
34791         * tests/test-fstatat.c (symlink): Likewise.
34792         * tests/test-lstat.c (symlink): Likewise.
34793         * tests/test-remove.c (symlink): Likewise.
34794         * tests/test-rmdir.c (symlink): Likewise.
34795         * tests/test-unlink.c (symlink): Likewise.
34796         * tests/test-unlinkat.c (symlink): Likewise.
34797
34798         symlink: new module, for Solaris 9 bug
34799         * modules/symlink: New file.
34800         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34801         * lib/symlink.c: Likewise.
34802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34803         * modules/unistd (Makefile.am): Substitute them.
34804         * lib/unistd.in.h (symlink): Declare replacement.
34805         * MODULES.html.sh (File system functions): Mention it.
34806         * doc/posix-functions/symlink.texi (symlink): Likewise.
34807         * modules/symlink-tests: New test.
34808         * tests/test-symlink.c: Likewise.
34809
34810 2009-09-23  Bruno Haible  <bruno@clisp.org>
34811
34812         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34813         when needed.
34814         Test case: gnulib-tool --import --with-tests atexit inttypes.
34815         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34816
34817 2009-09-23  Bruno Haible  <bruno@clisp.org>
34818
34819         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34820         subcommand, not in a subshell.
34821
34822 2009-09-22  Eric Blake  <ebb9@byu.net>
34823
34824         unistd: sort replacement declarations
34825         * lib/unistd.in.h: Sort declarations.
34826
34827         open, openat: minor optimization
34828         * lib/open.c (open): If open succeeded, len is non-zero.
34829         * lib/openat.c (rpl_openat): Likewise.
34830
34831         link-follow: ensure correct result
34832         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34833         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34834         distinguish between possible failures.
34835
34836 2009-09-21  Eric Blake  <ebb9@byu.net>
34837
34838         fts: avoid compiler warning
34839         * lib/fts.c (dirent_inode_sort_may_be_useful)
34840         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34841
34842 2009-09-19  Bruno Haible  <bruno@clisp.org>
34843
34844         * lib/progreloc.c (canonicalize_file_name): New declaration.
34845
34846 2009-09-19  Eric Blake  <ebb9@byu.net>
34847
34848         link: fix quoting
34849         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34850
34851         openat: fix openat bugs on Solaris 9
34852         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34853         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34854         * modules/openat (Depends-on): Add open.
34855         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34856         * modules/fcntl-h (Makefile.am): Substitute it.
34857         * lib/fcntl.in.h (openat): Declare replacement.
34858         * doc/posix-functions/openat.texi (openat): Document this.
34859
34860         openat: move fstatat and unlinkat into correct files
34861         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34862         compiled.
34863         * lib/openat.c (fstatat, unlinkat): Move...
34864         * lib/fstatat.c (fstatat): ...into correct files.
34865         * lib/unlinkat.c (unlinkat): Likewise.
34866
34867         openat: fix unlinkat bugs on Solaris 9
34868         * lib/unlinkat.c (unlinkat): New file.
34869         * modules/openat (Depends-on): Add unlink.
34870         (Files): Distribute it.
34871         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34872         trailing slash behavior is broken.
34873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34874         * modules/unistd (Makefile.am): Substitute it.
34875         * lib/unistd.in.h (unlinkat): Declare replacement.
34876         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34877
34878         openat: fix fstatat bugs on Solaris 9
34879         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34880         stat.
34881         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34882
34883         test-unlinkat: enhance test, to expose Solaris 9 bug
34884         * tests/test-unlink.c (main): Factor guts...
34885         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34886         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34887         * tests/test-rmdir.c (main): Adjust caller.
34888         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34889         (unlinker): New helper function.
34890         (rmdirat): Enhance check.
34891         * modules/rmdir-tests (Depends-on): Add stdbool.
34892         * modules/unlink-tests (Depends-on): Likewise.
34893         (Files): Add test-unlink.h.
34894         * modules/openat-tests (Files): Likewise.
34895         (Depends-on): Add unlinkdir.
34896
34897         test-fstatat: new test, to expose Solaris 9 bugs
34898         * tests/test-stat.c (main): Factor guts...
34899         * tests/test-stat.h (test_stat_func): ...into new file.
34900         * tests/test-lstat.c (main): Factor guts...
34901         * tests/test-lstat.h (test_lstat_func): ...into new file.
34902         * tests/test-fstatat.c: New file.
34903         * modules/stat-tests (Files): Add test-stat.h.
34904         * modules/lstat-tests (Files): Add test-lstat.h.
34905         (Depends-on): Add stdbool.
34906         * modules/openat-tests (Depends-on): Add pathmax.
34907         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34908         (Makefile.am): Run new test.
34909
34910         remove: new module, for mingw and Solaris 9 bugs
34911         * modules/remove: New file.
34912         * lib/remove.c: Likewise.
34913         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34915         * modules/stdio (Makefile.am): Use them.
34916         * lib/stdio.in.h (remove): Declare replacement.
34917         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34918         * doc/posix-functions/remove.texi (remove): Likewise.
34919         * modules/remove-tests: New test.
34920         * tests/test-remove.c: Likewise.
34921
34922         unlink: new module, for Solaris 9 bug
34923         * modules/unlink: New file.
34924         * lib/unlink.c: Likewise.
34925         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34927         * modules/unistd (Makefile.am): Use them.
34928         * lib/unistd.in.h (stat): Declare replacement.
34929         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34930         * doc/posix-functions/unlink.texi (unlink): Likewise.
34931         * modules/unlink-tests: New test.
34932         * tests/test-unlink.c: Likewise.
34933
34934         lstat: fix Solaris 9 bug
34935         * lib/lstat.c (lstat): Also check for trailing slash on
34936         non-symlink, non-directories.  Use stat module to simplify logic.
34937         * doc/posix-functions/lstat.texi (lstat): Document it.
34938         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34939         (configure.ac): Check for symlink.
34940         * tests/test-lstat.c (main): Add more tests.
34941
34942         stat: add as dependency to other modules
34943         * modules/chown (Depends-on): Add stat.
34944         * modules/euidaccess (Depends-on): Likewise.
34945         * modules/fchdir (Depends-on): Likewise.
34946         * modules/isdir (Depends-on): Likewise.
34947         * modules/link (Depends-on): Likewise.
34948         * modules/lstat (Depends-on): Likewise.
34949         * modules/mkdir-p (Depends-on): Likewise.
34950         * modules/modechange (Depends-on): Likewise.
34951         * modules/open (Depends-on): Likewise.
34952         * modules/readlink (Depends-on): Likewise.
34953         * modules/same (Depends-on): Likewise.
34954
34955         stat: fix Solaris 9 bug
34956         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34957         slash.
34958         * lib/stat.c (rpl_stat): Work around it.
34959         * doc/posix-functions/stat.texi (stat): Update documentation.
34960
34961         stat: new module, for mingw bug
34962         * modules/stat: New file.
34963         * lib/stat.c: Likewise.
34964         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34965         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34966         * modules/sys_stat (Makefile.am): Use them.
34967         * lib/sys_stat.in.h (stat): Declare replacement.
34968         * lib/openat.c (fstatat): Deal with lstat and stat being function
34969         macros.
34970         * modules/openat (Depends-on): Add inline.
34971         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34972         * doc/posix-functions/stat.texi (stat): Likewise.
34973         * modules/stat-tests: New test.
34974         * tests/test-stat.c: Likewise.
34975
34976 2009-09-19  Jim Meyering  <meyering@redhat.com>
34977
34978         syntax-check: detect unnecessary inclusion of canonicalize.h
34979         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34980
34981 2009-09-19  Eric Blake  <ebb9@byu.net>
34982
34983         canonicalize-lgpl: adjust clients to use correct header
34984         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34985         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34986         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34987         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34988         * lib/progreloc.c (includes): Likewise.
34989
34990 2009-09-19  Jim Meyering  <meyering@redhat.com>
34991
34992         test-posixtm.c: correct a comment
34993         * tests/test-posixtm.c: Correct first-line comment.
34994         Spotted by Eric Blake.
34995
34996 2009-09-16  Jim Meyering  <meyering@redhat.com>
34997
34998         posixtm-tests: make T const-correct; add a test case
34999         * tests/test-posixtm.c (T): Declare const.
35000         Add a test for -(2^31+1).
35001         Remove useless can-succeed-only-in-2002 test.
35002
35003         posixtm-tests: adjust the sole failing test
35004         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35005         expected output matches what mktime now produces.  Cross-checked via
35006         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35007
35008         posixtm: move #ifdef'd tests into a new module
35009         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35010         * tests/test-posixtm.c: ... this new file.
35011         * modules/posixtm-tests: New module.
35012
35013 2009-09-19  Eric Blake  <ebb9@byu.net>
35014
35015         openat: simplify use of at-func.c
35016         * lib/at-func.c (includes): Include prerequisites here, to
35017         simplify requirements on client files.
35018         * lib/openat-priv.h: Add double-inclusion guard.
35019         * lib/faccessat.c (includes): Simplify.
35020         * lib/fchmodat.c (includes): Likewise.
35021         * lib/fchownat.c (includes): Likewise.
35022         * lib/mkdirat.c (includes): Likewise.
35023         * lib/mkfifoat.c (includes): Likewise.
35024         * lib/symlinkat.c (includes): Likewise.
35025
35026         openat: allow return of fd 0
35027         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35028         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35029         unistd-safer.
35030         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35031         <fcntl.h>; this module does not leak fds.
35032         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35033         must be allowed to return 0, leaving openat_safer to add the
35034         safety.
35035         (openat_permissive): Avoid writing to just-opened fd 2 if
35036         restoring the current directory fails.
35037         * lib/openat-die.c (openat_restore_fail): Add comment.
35038         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35039         (save_cwd): Guarantee safe fd, but without use of open_safer.
35040         * tests/test-openat.c: New test.
35041         * modules/openat-tests (Files, Makefile.am): Distribute and build
35042         new file.
35043
35044         relocatable-prog-wrapper: fix build
35045         * modules/relocatable-prog-wrapper (Files): Update name of
35046         canonicalize m4 file, broken on 2009-09-17.
35047         Reported by emad hajjar <aleppos@hotmail.com>.
35048
35049 2009-09-19  Bruno Haible  <bruno@clisp.org>
35050
35051         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35052         * lib/safe-alloc.c: Likewise.
35053         Reported by Ian Beckwith <ianb@erislabs.net>.
35054
35055 2009-09-18  Bruno Haible  <bruno@clisp.org>
35056
35057         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35058         Reported by <erobles@sensacd.com.mx>.
35059
35060 2009-09-17  Eric Blake  <ebb9@byu.net>
35061
35062         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35063         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35064         slashes when checking if last component is missing.
35065         * tests/test-canonicalize.c (main): Test this.
35066
35067         canonicalize, canonicalize-lgpl: honor // if distinct from /
35068         * modules/canonicalize (Files): Add double-slash-root.m4.
35069         * modules/canonicalize-lgpl (Files): Likewise.
35070         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35071         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35072         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35073         fallback definition.
35074         (canonicalize_filename_mode): Use it to protect //.
35075         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35076         (__realpath): Likewise.
35077         * tests/test-canonicalize.c (main): Test this.
35078         * tests/test-canonicalize-lgpl.c (main): Likewise.
35079         * modules/canonicalize-tests (Depends-on): Add same-inode.
35080         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35081
35082         canonicalize-lgpl: fix glibc bug with trailing slash
35083         * m4/canonicalize-lgpl.m4: Move contents...
35084         * m4/canonicalize.m4: ...here.
35085         (gl_CANONICALIZE_LGPL): Factor realpath check...
35086         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35087         glibc 2.3.5 bug, fixed 2005-04-27.
35088         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35089         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35090         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35091         * modules/canonicalize-lgpl (Files): Manage file rename.
35092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35093         * modules/stdlib (Makefile.am): Substitute witness.
35094         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35095         is needed.
35096         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35097         replacement is required.
35098         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35099         * doc/glibc-functions/canonicalize_file_name.texi
35100         (canonicalize_file_name): Document this.
35101         * doc/posix-functions/realpath.texi (realpath): Likewise.
35102
35103         canonicalize-lgpl: reject non-directory with trailing slash
35104         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35105         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35106         catches failures in glibc 2.3.5.
35107         * tests/test-canonicalize.c (main): Likewise.
35108
35109         canonicalize-lgpl: use native realpath if it works
35110         * lib/canonicalize-lgpl.c (realpath): Guard with
35111         FUNC_REALPATH_WORKS.
35112         * lib/stdlib.in.h (realpath): Make declaration optional based on
35113         HAVE_REALPATH.
35114         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35115         native realpath works.
35116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35117         * modules/stdlib (Makefile.am): Substitute witness.
35118
35119         canonicalize, canonicalize-lgpl: use <stdlib.h>
35120         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35121         (Include): Mention <stdlib.h>.
35122         (configure.ac): Mention functions we provide.
35123         * modules/canonicalize (configure.ac): Likewise.
35124         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35125         realpath if canonicalize_file_name is missing.
35126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35127         * modules/stdlib (Makefile.am): Substitute witnesses.
35128         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35129         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35130         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35131         * NEWS: Document this.
35132         * doc/glibc-functions/canonicalize_file_name.texi
35133         (canonicalize_file_name): Likewise.
35134         * doc/posix-functions/realpath.texi (realpath): Likewise.
35135         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35136
35137         test-canonicalize: consolidate into single C program
35138         * tests/test-canonicalize.sh: Delete; move setup into...
35139         * tests/test-canonicalize.c (main): ...the program, making it
35140         easier to run in debugger.  Add some tests.
35141         * modules/canonicalize-tests (Files): Remove unused file.
35142         (Depends-on): Add progname.
35143         (configure.ac, Makefile.am): Simplify.
35144
35145         test-canonicalize-lgpl: consolidate into single C program
35146         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35147         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35148         easier to run in debugger.  Add some tests.
35149         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35150         (configure.ac, Makefile.am): Simplify.
35151
35152         canonicalize: avoid resolvepath
35153         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35154         unnecessary checks.
35155         * lib/canonicalize.c (includes): Simplify.
35156         (canonicalize_file_name): Drop resolvepath implementation.
35157         * modules/canonicalize (Depends-on): Drop filenamecat.
35158
35159         canonicalize: don't lose errno
35160         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35161         over calls to free.
35162
35163         canonicalize: simplify errno handling
35164         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35165         assignment.
35166
35167         canonicalize, canonicalize-lgpl: update module dependencies
35168         * modules/canonicalize (Depends-on): Add extensions, lstat,
35169         pathmax, stdlib.
35170         (Files): Drop pathmax.h.
35171         (configure.ac): Adjust macro name.
35172         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35173         lstat, stdlib, sys_stat.
35174         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35175         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35176         extensions.
35177         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35178         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35179         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35180         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35181         declaration, if available.
35182         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35183         we can rely on the readlink module.
35184         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35185         (includes): Use <unistd.h> unconditionally.
35186
35187 2009-09-17  Eric Blake  <ebb9@byu.net>
35188
35189         maint: make Include sections of modules consistent
35190         * modules/alloca: Use only header name; no need to list #include.
35191         * modules/alloca-opt: Likewise.
35192         * modules/arpa_inet: Likewise.
35193         * modules/canon-host: Likewise.
35194         * modules/configmake: Likewise.
35195         * modules/dirent: Likewise.
35196         * modules/eealloc: Likewise.
35197         * modules/environ: Likewise.
35198         * modules/fchdir: Likewise.
35199         * modules/fcntl: Likewise.
35200         * modules/fcntl-h: Likewise.
35201         * modules/gethrxtime: Likewise.
35202         * modules/gettime: Likewise.
35203         * modules/ignore-value: Likewise.
35204         * modules/inet_ntop: Likewise.
35205         * modules/inet_pton: Likewise.
35206         * modules/inttypes: Likewise.
35207         * modules/isnand-nolibm: Likewise.
35208         * modules/isnanf-nolibm: Likewise.
35209         * modules/mbchar: Likewise.
35210         * modules/mbfile: Likewise.
35211         * modules/mbiter: Likewise.
35212         * modules/mbuiter: Likewise.
35213         * modules/netdb: Likewise.
35214         * modules/netinet_in: Likewise.
35215         * modules/nproc: Likewise.
35216         * modules/pagealign_alloc: Likewise.
35217         * modules/poll: Likewise.
35218         * modules/printf-frexp: Likewise.
35219         * modules/pthread: Likewise.
35220         * modules/putenv: Likewise.
35221         * modules/random_r: Likewise.
35222         * modules/relocatable-prog: Likewise.
35223         * modules/search: Likewise.
35224         * modules/select: Likewise.
35225         * modules/selinux-h: Likewise.
35226         * modules/settime: Likewise.
35227         * modules/signal: Likewise.
35228         * modules/size_max: Likewise.
35229         * modules/socklen: Likewise.
35230         * modules/ssize_t: Likewise.
35231         * modules/stdarg: Likewise.
35232         * modules/stdbool: Likewise.
35233         * modules/stddef: Likewise.
35234         * modules/stdint: Likewise.
35235         * modules/stdio: Likewise.
35236         * modules/stdlib: Likewise.
35237         * modules/string: Likewise.
35238         * modules/strings: Likewise.
35239         * modules/sys_file: Likewise.
35240         * modules/sys_ioctl: Likewise.
35241         * modules/sys_select: Likewise.
35242         * modules/sys_socket: Likewise.
35243         * modules/sys_stat: Likewise.
35244         * modules/sys_time: Likewise.
35245         * modules/sys_times: Likewise.
35246         * modules/sys_utsname: Likewise.
35247         * modules/sys_wait: Likewise.
35248         * modules/sysexits: Likewise.
35249         * modules/time: Likewise.
35250         * modules/times: Likewise.
35251         * modules/tmpfile: Likewise.
35252         * modules/trim: Likewise.
35253         * modules/unistd: Likewise.
35254         * modules/wchar: Likewise.
35255         * modules/wctype: Likewise.
35256
35257 2009-09-17  Bruno Haible  <bruno@clisp.org>
35258
35259         Make getdate.y compile on QNX and NetBSD 5 / i386.
35260         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35261         TIME_T_FITS_IN_LONG_INT.
35262         * lib/getdate.y (long_time_t): New type.
35263         (relative_time): Change type of 'seconds' field to long_time_t.
35264         (get_date): Update types of local variables. Check against overflow
35265         during conversion from long_time_t to time_t.
35266         Reported by Matt Kraai <kraai@ftbfs.org>
35267         and Hasso Tepper <hasso@netbsd.org>.
35268
35269 2009-09-17  Bruno Haible  <bruno@clisp.org>
35270
35271         * modules/COPYING: Update copyright years.
35272         * modules/README: Likeiwse.
35273         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35274         Reported by Ian Beckwith <ianb@erislabs.net>.
35275
35276 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35277
35278         * users.txt: Update references for gnuit package.
35279
35280 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35281
35282         * m4/getdelim.m4: Fix typo in copyright line.
35283
35284 2009-09-17  Bruno Haible  <bruno@clisp.org>
35285
35286         * lib/atoll.c: Use the standard header with GPL copyright.
35287         * lib/argz.in.h: Likewise.
35288         * lib/glob.c: Likewise.
35289         * lib/glob-libc.h: Likewise.
35290         * lib/random_r.c: Likewise.
35291         * lib/siglist.h: Likewise.
35292         * lib/strsignal.c: Likewise.
35293         Reported by Ian Beckwith <ianb@erislabs.net>.
35294
35295 2009-09-17  Eric Blake  <ebb9@byu.net>
35296
35297         rmdir: ensure correct dependency order
35298         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35299
35300 2009-09-17  Bruno Haible  <bruno@clisp.org>
35301
35302         Disable assertion that fails on NetBSD 5 / i386.
35303         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35304         Reported by Sam Steingold <sds@gnu.org>
35305         and Hasso Tepper <hasso@netbsd.org>.
35306
35307 2009-09-16  Eric Blake  <ebb9@byu.net>
35308
35309         unlinkdir: port to mingw
35310         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35311         on which no one can unlink a directory.
35312
35313         stdlib: sort witness names
35314         * modules/stdlib (Makefile.am): Sort replacements.
35315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35316         * lib/stdlib.in.h: Likewise.
35317
35318         parse-duration-tests: avoid link failure
35319         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35320         LIBINTL.
35321         Reported by Tom G. Christensen.
35322
35323         openat-tests: ensure unlinkat behaves like rmdir
35324         * tests/test-rmdir.c (main): Factor guts...
35325         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35326         * modules/rmdir-tests (Files): Ship new file.
35327         * modules/openat-tests: New test.
35328         * tests/test-unlinkat.c: Likewise.
35329
35330         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35331         * modules/rmdir-errno (Status, Notice): Now obsolete.
35332
35333         rmdir: work around cygwin 1.5.x and mingw bugs
35334         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35335         * lib/rmdir.c (rmdir): Work around it.
35336         * modules/rmdir (Status, Notice): No longer obsolete.
35337         (Files): Add dos.m4.
35338         (Depends-on): Add unistd.
35339         (configure.ac): Set witnesses.
35340         (License): Relax to LGPLv2+.
35341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35342         * modules/unistd (Makefile.am): Substitute witnesses.
35343         * lib/unistd.in.h (rmdir): Declare replacement.
35344         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35345         * modules/rmdir-tests: New tests.
35346         * tests/test-rmdir.c: Likewise.
35347
35348 2009-09-15  Eric Blake  <ebb9@byu.net>
35349
35350         fchdir: improve use of replacement functions
35351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35353         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35354         REPLACE_CLOSEDIR.
35355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35356         * modules/sys_stat (Makefile.am): Substitute correct witness.
35357         * modules/dirent (Makefile.am): Likewise.
35358         * modules/unistd (Makefile.am): Likewise.
35359         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35360         * lib/unistd.in.h (dup): Likewise.
35361         * lib/sys_stat.in.h (fstat): Likewise.
35362
35363         maint: ignore gnulib-tool temp files
35364         * .gitignore: Ignore files created during gnulib-tool --test.
35365
35366 2009-09-13  Jim Meyering  <meyering@redhat.com>
35367
35368         posixtm: don't reject a time that specify "60" as the number of seconds
35369         * lib/posixtm.c (posixtime): The code to reject invalid dates
35370         would also reject a time specified with the .60 suffix.
35371         But POSIX allows that, in order to accommodate leap seconds.
35372         So don't reject it.
35373         (main): Adjust tests accordingly.
35374         * modules/posixtm (Depends-on): Add stpcpy.
35375
35376 2009-09-11  Jim Meyering  <meyering@redhat.com>
35377
35378         announce-gen: include [$release_type] in emitted Subject:
35379         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35380         e.g., [stable] in the emitted Subject: line.
35381
35382 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35383
35384         Remove obsolete macros from several modules.
35385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35386         obsolete Autoconf macros with their modern counterparts.
35387         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35388         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35390         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35391         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35392         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35394         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35395         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35396         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35397         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35399         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35400         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35401         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35402         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35403         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35404         * m4/time_r.m4 (gl_TIME_R): Likewise.
35405         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35406         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35407         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35408
35409         Fix copyright header in build-aux scripts.
35410         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35411         recommendation.
35412         * build-aux/ncftpput-ftp: Likewise.
35413         * build-aux/update-copyright: Likewise.
35414
35415 2009-09-09  Eric Blake  <ebb9@byu.net>
35416
35417         test-link: allow Linux choice of errno
35418         * tests/test-link.c (main): Relax test for alternate error.
35419
35420         strndup: fix improper m4 caching
35421         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35422         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35423         (gl_PREREQ_STRNDUP): Delete.
35424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35425         * modules/string (Makefile.am): Substitute it.
35426         * lib/string.in.h (strndup): Modernize prototype.
35427
35428         getcwd: port to mingw
35429         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35430         different from the POSIX assumptions made throughout the getcwd
35431         module; fortunately, the mingw getcwd does not need replacement.
35432         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35433         * modules/getcwd-tests: New test.
35434         * tests/test-getcwd.c: Likewise.
35435
35436         link: fix platform bugs
35437         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35438         * lib/link.c (link): Work around them.  Fix related mingw bug.
35439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35440         * modules/unistd (Makefile.am): Substitute it.
35441         * lib/unistd.in.h (link): Declare replacement.
35442         * doc/posix-functions/link.texi (link): Document this.
35443         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35444
35445         test-link: consolidate into single C program, test more cases
35446         * tests/test-link.sh: Delete.
35447         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35448         at least Cygwin and Solaris.
35449         * modules/link-tests (Files): Remove unused file.
35450         (Depends-on): Add errno, sys_stat.
35451         (Makefile.am): Simplify.
35452
35453 2009-09-08  Bruno Haible  <bruno@clisp.org>
35454
35455         Work around towlower, towupper bug on mingw.
35456         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35457         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35458         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35459         * doc/posix-functions/towupper.texi: Likewise.
35460         Reported by Eric Blake.
35461
35462 2009-09-08  Jim Meyering  <meyering@redhat.com>
35463
35464         build: don't try to run autoheader if we don't use it
35465         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35466         is not used in configure.ac.
35467
35468 2009-09-08  Eric Blake  <ebb9@byu.net>
35469
35470         euidaccess: fix compilation error
35471         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35472
35473         rawmemchr: relax license
35474         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35475         okay.
35476         Reported by Jim Meyering.
35477
35478         mkfifoat: new module
35479         * modules/mkfifoat: New file.
35480         * lib/mkfifoat.c: Likewise.
35481         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35482         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35483         * modules/sys_stat (Makefile.am): Use them.
35484         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35485         * MODULES.html.sh (File system functions): Mention module.
35486         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35487         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35488         * modules/mkfifoat-tests: New test.
35489         * tests/test-mkfifoat.c: Likewise.
35490
35491         strchrnul: relax license
35492         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35493         okay.
35494         Reported by Jim Meyering.
35495
35496 2009-09-08  Eric Blake  <ebb9@byu.net>
35497
35498         fstatat: fix compilation on Solaris
35499         * lib/fstatat.c (includes): Add fcntl.h.
35500         Reported by Pádraig Brady.
35501
35502 2009-09-07  Eric Blake  <ebb9@byu.net>
35503
35504         rename: modernize replacement
35505         * modules/rename (Depends-on): Add stdio.
35506         (configure.ac): Declare witness.
35507         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35508         stdio take care of replacement.
35509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35510         * modules/stdio (Makefile.am): Substitute them.
35511         * lib/stdio.in.h (rename): Declare replacement.
35512         * lib/rename.c (includes): Allow cross-compilation to non-windows
35513         machines.
35514         * doc/posix-functions/rename.texi (rename): Improve
35515         documentation.
35516
35517         stdio: sort witness names
35518         * modules/stdio (Makefile.am): Sort replacements.
35519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35520         * lib/stdio.in.h: Likewise.
35521
35522         getcwd: minor cleanups
35523         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35524         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35525
35526         openat: provide more convenience names
35527         * modules/faccessat (configure.ac): Add C witness.
35528         * lib/unistd.in.h (readlinkat): Fix typo.
35529         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35530         convenience wrappers.
35531         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35532         wrappers in syntax checks.
35533
35534 2009-09-06  Eric Blake  <ebb9@byu.net>
35535
35536         doc: fix comments in recent patches
35537         * lib/faccessat.c: Mention correct function.
35538         * lib/fchmodat.c: Likewise.
35539         * lib/fchownat.c: Likewise.
35540         * lib/symlinkat.c: Likewise.
35541         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35542         constants.
35543
35544         faccessat, symlinkat: continue cleanup of previous patch
35545         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35546         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35547         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35549         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35550         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35551         set.
35552
35553 2009-09-06  Bruno Haible  <bruno@clisp.org>
35554
35555         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35556         (fstatat): Declare if GNULIB_FSTATAT is set.
35557         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35558         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35559         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35560         * modules/fcntl-h (Files): Remove m4/openat.m4.
35561         * modules/sys_stat (Files): Remove m4/openat.m4.
35562         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35563         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35564         * modules/unistd (Files): Remove m4/openat.m4.
35565         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35566         GNULIB_OPENAT.
35567         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35568         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35569         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35570         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35571         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35572         gl_OPENAT_DEFAULTS.
35573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35574         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35575         Don't require gl_OPENAT_DEFAULTS.
35576         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35577         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35578         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35579         (gl_OPENAT_DEFAULTS): Remove macro.
35580
35581 2009-09-06  Bruno Haible  <bruno@clisp.org>
35582
35583         * modules/openat (configure.ac): Remove unneeded witness.
35584
35585 2009-09-06  Bruno Haible  <bruno@clisp.org>
35586
35587         Set errno to ENOSYS when a function is entirely unsupported.
35588         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35589         EOPNOTSUPP.
35590         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35591         * modules/chown (Depends-on): Remove errno.
35592
35593 2009-09-06  Bruno Haible  <bruno@clisp.org>
35594
35595         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35596
35597 2009-09-06  Bruno Haible  <bruno@clisp.org>
35598
35599         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35600
35601 2009-09-06  Ben Pfaff  <blp@gnu.org>
35602             Bruno Haible  <bruno@clisp.org>
35603
35604         Work around a glibc bug in strtok_r.
35605         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35606         Undefine if UNDEFINE_STRTOK_R is set.
35607         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35609         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35610         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35611         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35612         UNDEFINE_STRTOK_R.
35613         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35614
35615 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35616
35617         exclude: minor fix
35618         * lib/exclude.c: Include wctype.h
35619
35620 2009-09-06  Akim Demaille  <demaille@gostai.com>
35621
35622         bootstrap: improve error message
35623         * build-aux/bootstrap (find_tool): Upon failure, report the list
35624         of candidates.
35625         Honor the initial value of the envvar.
35626
35627 2009-09-05  Eric Blake  <ebb9@byu.net>
35628
35629         symlinkat: new module
35630         * modules/symlinkat: New file.
35631         * lib/symlinkat.c: Likewise.
35632         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35634         * modules/unistd (Makefile.am): Use them.
35635         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35636         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35637         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35638         * MODULES.html.sh (File system functions): Mention module.
35639         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35640         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35641         * modules/symlinkat-tests: New test.
35642         * tests/test-symlinkat.c: Likewise.
35643
35644         test-openat-safer: add more checks
35645         * tests/test-openat-safer.c (main): Check more code paths.
35646
35647 2009-09-05  Jim Meyering  <meyering@redhat.com>
35648
35649         syntax-check: detect unnecessary inclusion of openat.h
35650         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35651
35652 2009-09-05  Bruno Haible  <bruno@clisp.org>
35653
35654         Support towlower, towupper.
35655         * doc/posix-functions/towlower.texi: Mention module wctype.
35656         * doc/posix-functions/towupper.texi: Likewise.
35657         * lib/wctype.in.h (towlower, towupper): New functions.
35658         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35659         (ASSERT): New macro.
35660         (e): New variable.
35661         (main): Test also towlower, towupper. Test WEOF argument.
35662         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35663
35664 2009-09-05  Bruno Haible  <bruno@clisp.org>
35665
35666         Fix conversion behaviour when the input is invalid.
35667         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35668         mark occurring in first pass of indirect conversion.
35669         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35670         input.
35671         Found by clang's static analyzer.
35672
35673 2009-09-05  Bruno Haible  <bruno@clisp.org>
35674
35675         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35676         where direct conversion is possible.
35677
35678 2009-09-04  Eric Blake  <ebb9@byu.net>
35679
35680         openat: fail with ENOENT on empty name
35681         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35682         buffer.
35683
35684         link-follow: fix logic bug in prior patch
35685         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35686         reversed sense of yes and no in prior patch.  Avoid confusing
35687         compilation failure with desired semantics.
35688
35689         link-follow: accomodate mingw and cross-compilation
35690         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35691         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35692         cross-compilation results to -1, to make linkat easier to
35693         implement when cross-compiling.  Trivially support mingw.
35694         * modules/link-follow (configure.ac): Call new name.
35695         * NEWS: Mention this.
35696
35697 2009-09-03  Eric Blake  <ebb9@byu.net>
35698
35699         faccessat: compile replacement
35700         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35701         needed.
35702
35703         fts: fix compilation error
35704         * lib/fts.c (includes): Re-add "openat.h", for
35705         openat_needs_fchdir.
35706
35707         faccessat: new module
35708         * modules/faccessat: New file.
35709         * lib/faccessat.c: Likewise.
35710         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35712         * modules/unistd (Makefile.am): Use it.
35713         * lib/unistd.in.h (faccessat): Declare it.
35714         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35715         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35716         * MODULES.html.sh (File system functions): Mention it.
35717         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35718         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35719
35720         euidaccess: prefer POSIX over non-standard implementation
35721         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35722         * lib/euidaccess.c (euidaccess): Use it if available.
35723
35724         openat: make template easier to use
35725         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35726         AT_FUNC_F2 to be undefined.
35727         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35728         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35729         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35730         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35731         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35732         Likewise.
35733         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35734         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35735         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35736         Likewise.
35737
35738         openat: declare in POSIX headers
35739         * NEWS: Mention this.
35740         * modules/openat (configure.ac): Declare witnesses.
35741         (Depends-on): Add fcntl-h, sys_stat, unistd.
35742         (Include): Mention correct headers.
35743         * modules/fcntl-h (Depends-on): Add link-warning.
35744         (Files): Add openat.m4.
35745         (Makefile.am): Substitute witnesses.
35746         * modules/sys_stat (Files, Makefile.am): Likewise.
35747         * modules/unistd (Files, Makefile.am): Likewise.
35748         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35749         (gl_OPENAT_DEFAULTS): New macro.
35750         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35752         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35753         (SYS_STAT_H): Remove unused variable.
35754         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35755         * lib/fcntl--.h (includes): Remove unneeded header.
35756         * lib/openat-safer.c (includes): Likewise.
35757         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35758         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35759         appropriate headers.
35760         (__OPENAT_PREFIX): Delete.
35761         * lib/fcntl.in.h (openat): Provide declaration.
35762         (AT_FDCWD): Fix Solaris bug.
35763         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35764         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35765         * lib/fchmodat.c (includes):  Adjust to find declaration.
35766         * lib/fchownat.c (includes): Likewise.
35767         * lib/mkdirat.c (includes): Likewise.
35768         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35769         still visible.
35770
35771 2009-09-02  Eric Blake  <ebb9@byu.net>
35772
35773         errno: use consistently
35774         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35775         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35776         * lib/canonicalize.c (ELOOP): Likewise.
35777         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35778         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35779         * lib/lchown.c (EOPNOTSUPP): Likewise.
35780         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35781         * lib/savewd.c (ESTALE): Likewise.
35782         * lib/settime.c (ENOSYS): Likewise.
35783         * lib/utimens.c (ENOSYS): Likewise.
35784         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35785         * lib/chdir-safer.c (ELOOP): Likewise.
35786         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35787         * modules/c-stack (Depends-on): Add errno.
35788         * modules/canonicalize (Depends-on): Likewise.
35789         * modules/chdir-safer (Depends-on): Likewise.
35790         * modules/fdopendir (Depends-on): Likewise.
35791         * modules/inet_ntop (Depends-on): Likewise.
35792         * modules/inet_pton (Depends-on): Likewise.
35793         * modules/lchown (Depends-on): Likewise.
35794         * modules/openat (Depends-on): Likewise.
35795         * modules/savewd (Depends-on): Likewise.
35796         * modules/settime (Depends-on): Likewise.
35797         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35798
35799         fts: avoid leaking fds
35800         * modules/fts (Depends-on): Add cloexec.
35801         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35802         flag.
35803
35804         fts: make directory fds more robust
35805         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35806         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35807
35808         backupfile, chdir-long, fts, savedir: make safer
35809         * lib/backupfile.c (includes): Use "dirent--.h", since
35810         numbered_backup can write to stderr during readdir.
35811         * lib/savedir.c (includes): Likewise.
35812         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35813         emulation can write to stderr on failure.
35814         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35815         * lib/getcwd.c: Document why opendir_safer is unused.
35816         * lib/glob.c: Likewise.
35817         * lib/scandir.c: Likewise.
35818         * lib/openat-proc.c: Likewise, for open_safer.
35819         * modules/backupfile (Depends-on): Add dirent-safer.
35820         * modules/savedir (Depends-on): Likewise.
35821         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35822         * modules/chdir-long (Depends-on): Add openat-safer.
35823
35824         openat-safer: new module
35825         * modules/openat-safer: New file.
35826         * lib/openat-safer.c: Likewise.
35827         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35828         * lib/fcntl-safer.h (openat_safer): Declare.
35829         * lib/fcntl--.h (openat): Override.
35830         * MODULES.html.sh (File descriptor based I/O): Mention it.
35831         * lib/openat.h: Add double-inclusion guards.
35832         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35833         "fcntl--.h", so we can implement openat.
35834         * modules/openat-safer-tests: New test.
35835         * tests/test-openat-safer.c: New file.
35836
35837         dirent-safer: new module
35838         * modules/dirent-safer: New file.
35839         * lib/dirent--.h: Likewise.
35840         * lib/dirent-safer.h: Likewise.
35841         * lib/opendir-safer.c: Likewise.
35842         * m4/dirent-safer.m4: Likewise.
35843         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35844         * modules/dirent-safer-tests: New test.
35845         * tests/test-dirent-safer.c: New file.
35846         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35847
35848         fdopendir: optimize on mingw
35849         * lib/unistd.in.h (_gl_directory_name): New prototype.
35850         * lib/fchdir.c (_gl_directory_name): Implement it.
35851         (fchdir): Use it to simplify implementation.
35852         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35853         fchdir, when available, to avoid calling [f]chdir().
35854
35855         fdopendir: split into its own module
35856         * lib/openat.c (fdopendir): Move...
35857         * lib/fdopendir.c: ...into new file.
35858         * modules/fdopendir: New module.
35859         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35860         * modules/openat (Depends-on): Add fdopendir.
35861         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35862         fdopendir here.
35863         * modules/savedir (Depends-on): Only need fdopendir, not full
35864         openat.
35865         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35866         * lib/openat.h (fdopendir): Drop prototype.
35867         * lib/dirent.in.h (fdopendir): Provide prototype.
35868         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35869         * modules/dirent (Makefile.am): Substitute them.
35870         * MODULES.html.sh (File system functions): Mention it.
35871         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35872         * modules/fdopendir-tests: New file.
35873         * tests/test-fdopendir.c: Likewise.
35874
35875         fchdir: use more consistent macro convention
35876         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35877         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35878         REPLACE_FCHDIR, rather than relying on config.h macros.
35879         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35880         inside a single make-time REPLACE_FCHDIR block, rather than using
35881         the config.h FCHDIR_REPLACEMENT.
35882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35883         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35884         Manage fstat replacement.
35885         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35886         REPLACE_FCHDIR.
35887         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35888         (Makefile.am): Substitute REPLACE_FCHDIR.
35889         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35890         FCHDIR_REPLACEMENT.
35891         * lib/dup-safer.c (dup_safer): Likewise.
35892         * lib/dup2.c (rpl_dup2): Likewise.
35893         * lib/dup3.c (rpl_dup3): Likewise.
35894         * lib/open.c (rpl_open): Likewise.
35895
35896         fchdir: simplify error handling, and support dup3
35897         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35898         stdbool, malloc-posix, realloc-posix.
35899         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35900         (ensure_dirs_slot): Return false on allocation failure.
35901         (rpl_dup2): Delete.
35902         (_gl_register_dup): New function.
35903         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35904         (_gl_register_fd): Close fd on allocation failure.
35905         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35906         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35907         prototype.
35908         (rpl_dup2_fchdir): Delete prototype.
35909         * lib/open.c (open): Update caller.
35910         * lib/dup2.c (dup2): Track fchdir metadata.
35911         * lib/dup3.c (dup3): Likewise.
35912         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35914
35915 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35916
35917         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35918         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35919         don't pass arguments to AC_OUTPUT.
35920
35921 2009-09-02  Bruno Haible  <bruno@clisp.org>
35922
35923         * modules/mkdtemp (License): Relicense under LGPLv2+.
35924         Reported by Paolo Bonzini.
35925
35926 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35927
35928         Replace uses of obsolete autoconf macros in Jim's modules.
35929         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35930         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35931         can evoke a warning from autoconf when run with -Wobsolete
35932         enabled.  They were declared obsolete for good reasons (see
35933         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35934         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35935         should not continue using the deprecated macros.
35936         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35937         obsolete Autoconf macros with modern counterparts.
35938         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35939         * m4/dos.m4 (gl_AC_DOS): Likewise.
35940         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35941         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35942         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35943         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35944         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35945         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35946         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35947         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35948         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35949         Likewise.
35950         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35951         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35952         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35953         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35954         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35955         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35956
35957 2009-09-01  Eric Blake  <ebb9@byu.net>
35958
35959         fchdir: fix off-by-one bug in previous patch
35960         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35961         (_gl_unregister_fd): Delete useless if.
35962
35963 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35964
35965         maint.mk: sort the list of syntax-check rules
35966         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35967         easier to get a sense of progress when the rules are run sequentially
35968         and take a long time.
35969
35970 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35971
35972         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35973         * modules/netinet_in: Likewise.
35974         * modules/sys_file: Likewise.
35975         * modules/sys_ioctl: Likewise.
35976         * modules/sys_select: Likewise.
35977         * modules/sys_socket: Likewise.
35978         * modules/sys_stat: Likewise.
35979         * modules/sys_time: Likewise.
35980         * modules/sys_times: Likewise.
35981         * modules/sys_utsname: Likewise.
35982         * modules/sys_wait: Likewise.
35983
35984 2009-09-01  Jim Meyering  <meyering@redhat.com>
35985
35986         fts: help ensure that return values are not ignored
35987         * lib/fts_.h (__GNUC_PREREQ): Define.
35988         (__attribute_warn_unused_result__): Define.
35989         (fts_children, fts_close, fts_open, fts_read): Declare with
35990         __attribute_warn_unused_result__.
35991
35992         fts: fts_close now fails also when closing a dir file descriptor fails
35993         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35994         and propagate to caller, along with errno.
35995
35996         announce-gen: correct formatting in --help output
35997         * build-aux/announce-gen (usage): Move the one-line description in
35998         --help output "up", to where it belongs, just after Usage:.
35999
36000 2009-08-31  Eric Blake  <ebb9@byu.net>
36001
36002         fchdir: port to mingw
36003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36004         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36005         opened, then use a substitute.
36006         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36007         replacement.
36008         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36009         (_gl_register_fd): No need to check stat if open already filters
36010         all directories.
36011         (fchdir): Fix error condition to match POSIX.
36012         * modules/fchdir (Depends-on): Add sys_stat.
36013         * doc/posix-functions/open.texi (open): Document the limitation.
36014         * modules/fchdir-tests: New file.
36015         * tests/test-fchdir.c: Likewise.
36016
36017         canonicalize: allow cross-testing from cygwin to mingw
36018         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36019         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36020         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36021         Likewise.
36022         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36023         target does not support symlinks.
36024         * tests/test-canonicalize-lgpl.sh: Likewise.
36025
36026         chown: avoid compilation warning on mingw
36027         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36028         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36029         mingw.
36030         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36031         * modules/chown (Depends-on): Add errno.
36032
36033 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36034
36035         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36036         command.
36037
36038 2009-08-31  Jim Meyering  <meyering@redhat.com>
36039
36040         canonicalize: remove useless initialization
36041         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36042         initialization of local, "end".
36043
36044 2009-08-30  Bruno Haible  <bruno@clisp.org>
36045
36046         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36047         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36048         ENOSYS.
36049
36050 2009-08-30  Bruno Haible  <bruno@clisp.org>
36051
36052         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36053         /usr/xpg4/bin/tr when it exists.
36054         * tests/test-pipe-filter-gi1.sh: Likewise.
36055
36056 2009-08-30  Bruno Haible  <bruno@clisp.org>
36057
36058         Work around deficient /usr/bin/id program on Solaris.
36059         * tests/test-file-has-acl.sh (ID): New variable.
36060         * tests/test-set-mode-acl.sh (ID): Likewise.
36061         * tests/test-copy-acl.sh (ID): Likewise.
36062         * tests/test-copy-file.sh (ID): Likewise.
36063
36064 2009-08-30  Bruno Haible  <bruno@clisp.org>
36065
36066         New module 'xstriconveh'.
36067         * lib/xstriconveh.h: New file.
36068         * lib/xstriconveh.c: New file.
36069         * modules/xstriconveh: New file.
36070
36071 2009-08-30  Bruno Haible  <bruno@clisp.org>
36072
36073         Make it easier to use mem_cd_iconveh.
36074         * lib/striconveh.h (iconveh_t): New type.
36075         (iconveh_open, iconveh_close): New declarations.
36076         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36077         with a single 'const iconveh_t *' argument.
36078         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36079         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36080         with a single 'const iconveh_t *' argument.
36081         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36082         * tests/test-striconveh.c (main): Update.
36083         * NEWS: Mention the change.
36084
36085 2009-08-30  Bruno Haible  <bruno@clisp.org>
36086
36087         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36088         problem.
36089
36090 2009-08-30  Bruno Haible  <bruno@clisp.org>
36091
36092         Work around iconv_open problem on Solaris.
36093         * lib/iconv_open-solaris.gperf: New file.
36094         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36095         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36096         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36097         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36098         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36099         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36100
36101 2009-08-29  Jim Meyering  <meyering@redhat.com>
36102
36103         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36104         * top/maint.mk (cvs-check): Remove target; it was just an alias
36105         to the better-named vc-diff-check.
36106         (maintainer-distcheck): Remove rule.  It was used only from
36107         the (alpha/beta/major) target, and all of its commands but one
36108         were coreutils-specific.
36109         (vc-dist): Remove rule.
36110         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36111         Run vc-diff-check, not vc-dist.
36112         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36113
36114 2009-08-27  Bruno Haible  <bruno@clisp.org>
36115
36116         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36117         of 0.
36118
36119 2009-08-27  Bruno Haible  <bruno@clisp.org>
36120
36121         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36122         compilers.
36123         * doc/func.texi: Document the SunPRO C bug.
36124
36125 2009-08-27  Bruno Haible  <bruno@clisp.org>
36126
36127         Fix link error on Solaris.
36128         * tests/test-parse-duration.c (xstrdup): Remove function.
36129
36130 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36131
36132         ignore-value: handle pointer types, too
36133         * lib/ignore-value.h (__attribute__): Remove definition.
36134         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36135         of a more concise and more-often effective "(void) i" statement.
36136         (ignore_ptr): New function to suppress warnings from functions that
36137         return pointers, and to make it explicit that one function doesn't
36138         handle all cases.
36139
36140 2009-08-25  Bruno Haible  <bruno@clisp.org>
36141
36142         dup2: work around a Linux bug.
36143         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36144         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36145         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36146         Reported by Simon Josefsson.
36147
36148 2009-08-25  Jim Meyering  <meyering@redhat.com>
36149
36150         libguestfs uses gnulib
36151         * users.txt: Add libguestfs.
36152
36153 2009-08-24  Eric Blake  <ebb9@byu.net>
36154
36155         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36156         * lib/pipe2.c (includes): Add binary-io.h.
36157         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36158
36159 2009-08-24  Bruno Haible  <bruno@clisp.org>
36160
36161         Tolerate declared but missing accept4 syscall.
36162         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36163         available.
36164         * lib/sys_socket.in.h (accept4): If the function is already present,
36165         override it.
36166         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36167         * modules/accept4 (Makefile.am): Compile accept4.c always.
36168         Reported by Paolo Bonzini and Eric Blake.
36169
36170 2009-08-23  Bruno Haible  <bruno@clisp.org>
36171
36172         New module 'accept4'.
36173         * lib/sys_socket.in.h (accept4): New declaration.
36174         * lib/accept4.c: New file.
36175         * m4/accept4.m4: New file.
36176         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36177         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36178         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36179         HAVE_ACCEPT4.
36180         * modules/accept4: New file.
36181         * doc/glibc-functions/accept4.texi: Mention the new module.
36182
36183 2009-08-24  Jim Meyering  <meyering@redhat.com>
36184
36185         progname: also set global program_invocation_name, when possible
36186         Before this change, a libtool-enabled program that calls glibc's
36187         error function would report the program name as
36188         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36189         * modules/progname (configure.ac): Check for a declaration of
36190         program_invocation_name.
36191         * lib/progname.c:  Include <errno.h>.
36192         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36193         Set program_invocation_name.
36194
36195 2009-08-23  Bruno Haible  <bruno@clisp.org>
36196
36197         * lib/dup3.c: Include <string.h>.
36198
36199 2009-08-23  Bruno Haible  <bruno@clisp.org>
36200
36201         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36202         * lib/pipe2.c (pipe2): Likewise.
36203         Suggested by Eric Blake.
36204
36205 2009-08-23  Bruno Haible  <bruno@clisp.org>
36206
36207         Tolerate declared but missing dup3 syscall.
36208         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36209         * lib/unistd.in.h (dup3): If the function is already present,
36210         override it.
36211         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36212         * modules/dup3 (Makefile.am): Compile dup3.c always.
36213         Reported by Paolo Bonzini.
36214
36215 2009-08-23  Bruno Haible  <bruno@clisp.org>
36216
36217         Tolerate declared but missing pipe2 syscall.
36218         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36219         available.
36220         * lib/unistd.in.h (pipe2): If the function is already present,
36221         override it.
36222         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36223         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36224         Reported by Paolo Bonzini.
36225
36226 2009-08-23  Bruno Haible  <bruno@clisp.org>
36227
36228         * lib/pipe2.c (pipe2): Move #ifs inside function.
36229
36230 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36231
36232         quotearg: document limitations of quote_these_too
36233         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36234         those limitations are created.
36235         * lib/quotearg.h (set_char_quoting): Document that digits and
36236         letters that are special after backslash are not permitted.
36237         (quotearg_char): Cross-reference set_char_quoting documentation.
36238
36239 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36240
36241         quotearg: implement custom_quoting_style
36242         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36243         right_quote fields.
36244         (set_custom_quoting): New public function.
36245         (quotearg_buffer_restyled): Add left_quote and right_quote
36246         arguments, handle them very much like locale quoting, and update
36247         all uses.
36248         (quotearg_n_custom): New public function.
36249         (quotearg_n_custom_mem): New public function.
36250         (quotearg_custom): New public function.
36251         (quotearg_custom_mem): New public function.
36252         * lib/quotearg.h: Prototype and document new public functions.
36253         (enum quoting_style): For escape_quoting_style and
36254         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36255         ignored even though they're otherwise like c_quoting_style.
36256         Add custom_quoting_style member and document with comparison to
36257         clocale_quoting_style.
36258         * tests/test-quotearg.c (custom_quotes): New array.
36259         (custom_results): New array.
36260         (main): Extend to test custom quoting.
36261
36262 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36263
36264         quotearg: fix right quote escaping when it's in quote_these_too
36265         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36266         quote, be sure to prepend only one backslash.
36267         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36268         (main): Test it.
36269
36270 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36271
36272         quotearg-tests: test escaping of embedded locale quotes
36273         * tests/test-quotearg.c (struct result_strings): Add member for
36274         new input.
36275         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36276         (inputs): Add new input.
36277         (results_g): Add expected results.
36278         (flag_results): Likewise.
36279         (locale_results): Likewise.
36280         (compare_strings): Check those.
36281
36282 2009-08-23  Bruno Haible  <bruno@clisp.org>
36283
36284         Tests for module 'dup3'.
36285         * modules/dup3-tests: New file.
36286         * tests/test-dup3.c: New file.
36287
36288         New module 'dup3'.
36289         * lib/unistd.in.h (dup3): New declaration.
36290         * lib/dup3.c: New file.
36291         * m4/dup3.m4: New file.
36292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36293         HAVE_DUP3.
36294         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36295         * modules/dup3: New file.
36296         * doc/glibc-functions/dup3.texi: Mention the new module.
36297
36298 2009-08-23  Bruno Haible  <bruno@clisp.org>
36299
36300         Tweak the dup2 test.
36301         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36302         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36303         the test file is still empty. Fix argument order of lseek.
36304
36305 2009-08-23  Bruno Haible  <bruno@clisp.org>
36306
36307         Avoid test link errors when the modules getopt-gnu, gettext are used.
36308         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36310
36311 2009-08-23  Bruno Haible  <bruno@clisp.org>
36312
36313         Fix getdtablesize() on mingw.
36314         * lib/getdtablesize.c (getdtablesize): Implement differently.
36315         * lib/unistd.in.h (getdtablesize): Improve comment.
36316
36317 2009-08-23  Bruno Haible  <bruno@clisp.org>
36318
36319         New module 'mkostemp'.
36320         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36321         * lib/stdlib.in.h (mksotemp): New declaration.
36322         * lib/mkostemp.c: New file, from glibc with modifications.
36323         * lib/tempname.h (GT_FILE): Remove outdated comment.
36324         (gen_tempname): Add flags argument.
36325         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36326         (__GT_FILE): Map to 1.
36327         (small_open, large_open): Remove macros.
36328         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36329         * lib/mkstemp.c (mkstemp): Update.
36330         * lib/mkdtemp.c (mkdtemp): Likewise.
36331         * m4/mkostemp.m4: New file.
36332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36333         HAVE_MKOSTEMP.
36334         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36335         HAVE_MKOSTEMP.
36336         * modules/mkostemp: New file, based on modules/mkstemp.
36337         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36338         * NEWS: Mention the change.
36339
36340 2009-08-23  Bruno Haible  <bruno@clisp.org>
36341
36342         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36343         Reported by Eric Blake.
36344
36345 2009-08-23  Bruno Haible  <bruno@clisp.org>
36346
36347         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36348         Reported by Eric Blake.
36349
36350 2009-08-23  Bruno Haible  <bruno@clisp.org>
36351
36352         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36353         * modules/pipe2 (Depends-on): Likewise.
36354
36355 2009-08-23  Eric Blake  <ebb9@byu.net>
36356
36357         fcntl-h: add O_TTY_INIT support
36358         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36359         * tests/test-fcntl-h.c (o): Test it.
36360         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36361
36362         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36363         * modules/fcntl: Move <fcntl.h> header replacement...
36364         * modules/fcntl-h: ...to new name, so as not to collide with
36365         like-named function.
36366         * tests/test-fcntl.c: Rename...
36367         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36368         * modules/fcntl-tests: Rename...
36369         * modules/fcntl-h-tests: ...to this.  Update test file name.
36370         * modules/chdir-long (Depends-on): Update clients.
36371         * modules/chdir-safer (Depends-on): Likewise.
36372         * modules/fcntl-safer (Depends-on): Likewise.
36373         * modules/fts (Depends-on): Likewise.
36374         * modules/mkancesdirs (Depends-on): Likewise.
36375         * modules/mkdir-p (Depends-on): Likewise.
36376         * modules/open (Depends-on): Likewise.
36377         * modules/savewd (Depends-on): Likewise.
36378         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36379         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36380
36381 2009-08-22  Bruno Haible  <bruno@clisp.org>
36382
36383         * modules/binary-io (License): Relicense under LGPL.
36384         * modules/pipe2 (License): Likewise.
36385
36386 2009-08-22  Bruno Haible  <bruno@clisp.org>
36387
36388         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36389         return value.
36390         * lib/pipe-filter-gi.c (filter_init): Likewise.
36391         Reported by Eric Blake.
36392
36393 2009-08-22  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36396         * modules/pipe (Depends-on): Add pipe2.
36397
36398 2009-08-22  Bruno Haible  <bruno@clisp.org>
36399
36400         Tests for module 'pipe2'.
36401         * modules/pipe2-tests: New file.
36402         * tests/test-pipe2.c: New file.
36403
36404         New module 'pipe2'.
36405         * lib/unistd.in.h (pipe2): New declaration.
36406         * lib/pipe2.c: New file.
36407         * m4/pipe2.m4: New file.
36408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36409         HAVE_PIPE2.
36410         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36411         * modules/pipe2: New file.
36412         * doc/glibc-functions/pipe2.texi: Mention the new module.
36413
36414 2009-08-22  Bruno Haible  <bruno@clisp.org>
36415
36416         Reference some new glibc functions.
36417         * doc/glibc-functions/accept4.texi: New file.
36418         * doc/glibc-functions/dup3.texi: New file.
36419         * doc/glibc-functions/mkostemp.texi: New file.
36420         * doc/glibc-functions/pipe2.texi: New file.
36421         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36422         (Glibc sys/socket.h): Refer to accept4.
36423         (Glibc unistd.h): Refer to dup3, pipe2.
36424         Reported by Eric Blake.
36425
36426 2009-08-22  Jim Meyering  <meyering@redhat.com>
36427             Bruno Haible  <bruno@clisp.org>
36428
36429         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36430         This makes it so packages using automake-1.11's silent-rules option
36431         can print e.g., a single "GEN    configmake.h" line, rather than
36432         the 30+ statements that perform the job.  If you want to see the
36433         actual commands, you can still run "make V=1".
36434         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36435         so that make output is abbreviated when those variables are defined
36436         appropriately.
36437         * modules/argz: Likewise.
36438         * modules/arpa_inet: Likewise.
36439         * modules/byteswap: Likewise.
36440         * modules/configmake: Likewise.
36441         * modules/dirent: Likewise.
36442         * modules/errno: Likewise.
36443         * modules/fcntl: Likewise.
36444         * modules/float: Likewise.
36445         * modules/fnmatch: Likewise.
36446         * modules/getopt-posix: Likewise.
36447         * modules/glob: Likewise.
36448         * modules/iconv_open: Likewise.
36449         * modules/inttypes: Likewise.
36450         * modules/localcharset: Likewise.
36451         * modules/locale: Likewise.
36452         * modules/math: Likewise.
36453         * modules/netdb: Likewise.
36454         * modules/netinet_in: Likewise.
36455         * modules/poll: Likewise.
36456         * modules/posix_spawnp-tests: Likewise.
36457         * modules/sched: Likewise.
36458         * modules/search: Likewise.
36459         * modules/selinux-h: Likewise.
36460         * modules/signal: Likewise.
36461         * modules/spawn: Likewise.
36462         * modules/stdarg: Likewise.
36463         * modules/stdbool: Likewise.
36464         * modules/stddef: Likewise.
36465         * modules/stdint: Likewise.
36466         * modules/stdio: Likewise.
36467         * modules/stdlib: Likewise.
36468         * modules/string: Likewise.
36469         * modules/strings: Likewise.
36470         * modules/sys_file: Likewise.
36471         * modules/sys_ioctl: Likewise.
36472         * modules/sys_select: Likewise.
36473         * modules/sys_socket: Likewise.
36474         * modules/sys_stat: Likewise.
36475         * modules/sys_time: Likewise.
36476         * modules/sys_times: Likewise.
36477         * modules/sys_utsname: Likewise.
36478         * modules/sys_wait: Likewise.
36479         * modules/sysexits: Likewise.
36480         * modules/time: Likewise.
36481         * modules/unistd: Likewise.
36482         * modules/wchar: Likewise.
36483         * modules/wctype: Likewise.
36484
36485 2009-08-22  Jim Meyering  <meyering@redhat.com>
36486
36487         announce-gen: detect write failure
36488         * build-aux/announce-gen: Add Coda at end.
36489         Remove equivalent-but-more-verbose block at top.
36490
36491 2009-08-19  Akim Demaille  <demaille@gostai.com>
36492
36493         bootstrap: --help to stdout.
36494         * bootstrap (usage): Don't send --help to stderr.
36495         Use a here doc instead of a long string.
36496
36497 2009-08-21  Eric Blake  <ebb9@byu.net>
36498
36499         test-popen-safer: split from test-popen
36500         * tests/test-popen.c (main): Move...
36501         * tests/test-popen.h: ...into new file.
36502         * tests/test-popen-safer2.c: New file.
36503         * modules/popen-tests (Files): Add test-popen.h.
36504         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36505         Suggested by Bruno Haible.
36506
36507         test-fcntl-safer: split from test-open
36508         * tests/test-open.c (main): Move...
36509         * tests/test-open.h: ...into new file.
36510         * tests/test-fcntl-safer.c: New file.
36511         * modules/open-tests (Files): Add test-open.h.
36512         * modules/fcntl-safer-tests: New file.
36513         Suggested by Bruno Haible.
36514
36515         test-fopen-safer: split from test-fopen
36516         * tests/test-fopen.c (main): Move...
36517         * tests/test-fopen.h: ...into new file.
36518         * tests/test-fopen-safer.c: New file.
36519         * modules/fopen-tests (Files): Add test-fopen.h.
36520         * modules/fopen-safer-tests: New file.
36521         Suggested by Bruno Haible.
36522
36523 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36524
36525         popen-safer: test O_CLOEXEC at run-time.
36526         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36527
36528 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36529
36530         fcntl: move more flags to the header
36531         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36532         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36533         * lib/fcntl.in.h: Do both things here.
36534
36535 2009-08-21  Jim Meyering  <meyering@redhat.com>
36536
36537         consistently remove $@-t before redirecting to it
36538         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36539         * modules/alloca-opt: Likewise.
36540         * modules/byteswap: Likewise.
36541         * modules/fnmatch: Likewise.
36542         * modules/getopt-posix: Likewise.
36543         * modules/glob: Likewise.
36544         * modules/poll: Likewise.
36545         * modules/posix_spawnp-tests: Likewise.
36546         * modules/sys_socket: Likewise.
36547         * modules/sysexits: Likewise.
36548
36549 2009-08-21  Eric Blake  <ebb9@byu.net>
36550
36551         popen: simplify access to original popen
36552         * lib/popen.c (rpl_popen): No need to worry about popen being a
36553         macro.
36554         Reported by Bruno Haible.
36555
36556 2009-08-20  Eric Blake  <ebb9@byu.net>
36557
36558         build: avoid some compiler warnings
36559         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36560         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36561         type.
36562         (new_exclude_segment, excluded_file_pattern_p)
36563         (excluded_file_name_p): Reduce scope.
36564         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36565         old-style declaration.
36566
36567 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36568
36569         * tests/test-exclude1.sh: Handle Windows EOL.
36570         * tests/test-exclude2.sh: Likewise.
36571         * tests/test-exclude3.sh: Likewise.
36572         * tests/test-exclude4.sh: Likewise.
36573         * tests/test-exclude5.sh: Likewise.
36574         * tests/test-exclude6.sh: Likewise.
36575         * tests/test-exclude7.sh: Likewise.
36576
36577 2009-08-19  Akim Demaille  <demaille@gostai.com>
36578
36579         bootstrap: find sha1sum when named gsha1sum.
36580         * bootstrap (find_tool): New.
36581         ($SHA1SUM): New.
36582         Use it.
36583
36584 2009-08-20  Jim Meyering  <meyering@redhat.com>
36585
36586         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36587         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36588         expression that converts "." in a file name to "\." in the resulting
36589         regexp.  Start with a dummy statement, so that prior shell variable
36590         definitions are expanded portably.  Reported by Simon Josefsson.
36591
36592 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36593
36594         Fix polling for writeability of a screen buffer.
36595         * lib/poll.c: Distinguish input and screen buffers for the
36596         Win32 implementation.
36597         * lib/select.c: Likewise.
36598
36599 2009-08-19  Eric Blake  <ebb9@byu.net>
36600
36601         popen-safer: prevent popen from clobbering std descriptors
36602         * modules/popen-safer: New file.
36603         * lib/popen-safer.c: Likewise.
36604         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36605         * lib/stdio--.h (popen): Provide override.
36606         * lib/stdio-safer.h (popen_safer): Provide declaration.
36607         * tests/test-popen.c (includes): Partially test this.
36608         * modules/popen-safer-tests: New file, for more tests.
36609         * tests/test-popen-safer.c: Likewise.
36610         * MODULES.html.sh (file stream based Input/Output): Mention it.
36611
36612         tests: test some of the *-safer modules
36613         * modules/fopen-safer (Depends-on): Add fopen.
36614         * modules/fcntl-safer (Depends-on): Add fcntl.
36615         * modules/stdlib-safer (Depends-on): Add stdlib.
36616         (configure.ac): Set indicator.
36617         * modules/unistd-safer (configure.ac): Likewise.
36618         * modules/tmpfile-safer (configure.ac): Likewise.
36619         (Depends-on): Add tmpfile.
36620         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36621         active.
36622         * tests/test-fopen.c (includes): Test safer versions when they are
36623         in use.
36624         * tests/test-open.c (includes): Likewise.
36625
36626         popen: fix cygwin 1.5 bug when stdin closed
36627         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36628         * modules/popen: New file.
36629         * modules/popen-tests: Likewise.
36630         * tests/test-popen.c: Likewise.
36631         * m4/popen.m4: Likewise.
36632         * lib/popen.c: Likewise.
36633         * lib/stdio.in.h (popen): New declaration.
36634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36635         * modules/stdio (Makefile.am): Likewise.
36636         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36637
36638 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36639
36640         maint.mk: give full control over update-copyright exclusions
36641         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36642         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36643         (update-copyright): Don't force inclusion of top-level
36644         ChangeLog.  Don't force exclusion of all COPYING files, but make
36645         them the default exclusion instead.
36646
36647 2009-08-16  Bruno Haible  <bruno@clisp.org>
36648
36649         Fix test failures on Solaris 10.
36650         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36651         tests when Solaris iconv() is used.
36652         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36653         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36654         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36655         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36656         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36657
36658 2009-08-16  Bruno Haible  <bruno@clisp.org>
36659
36660         Fix test failures on Solaris 10.
36661         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36662         'tr' program and pass it as first argument.
36663         * tests/test-pipe-filter-gi1.sh: Likewise.
36664         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36665         program as first argument.
36666         * tests/test-pipe-filter-gi1.c (main): Likewise.
36667
36668 2009-08-16  Eric Blake  <ebb9@byu.net>
36669
36670         fpurge: fix previous commits
36671         * modules/fpurge (Makefile.am): Make replacement conditional,
36672         partially reverting 2007-04-29 change; missed in previous
36673         attempt.
36674         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36675         is missing.
36676
36677 2009-08-16  Bruno Haible  <bruno@clisp.org>
36678
36679         Clarify fpurge's effect on the file position.
36680         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36681         * tests/test-fpurge.c (main): Make a second pass for checking the file
36682         position.
36683
36684 2009-08-16  Bruno Haible  <bruno@clisp.org>
36685
36686         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36687         declaration of fpurge is missing.
36688         * tests/test-fpurge.c (main): Check that the file has not more contents
36689         than expected. Close the file before removing it.
36690
36691 2009-08-15  Eric Blake  <ebb9@byu.net>
36692
36693         fpurge: don't wrap working cygwin implementation
36694         * lib/fpurge.c (fpurge): Fix comment typo.
36695         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36696         1.7 to avoid replacement.
36697         * tests/test-fpurge.c (main): Enhance test.
36698
36699 2009-08-15  Eric Blake  <ebb9@byu.net>
36700         and Jim Meyering  <meyering@redhat.com>
36701
36702         test-update-copyright: skip if perl is insufficient
36703         * tests/test-update-copyright.sh: Failure to run maintainer tool
36704         should not cause testsuite failure on cygwin 1.5.
36705
36706 2009-08-14  Eric Blake  <ebb9@byu.net>
36707
36708         doc: mention more functions added in cygwin 1.7.0
36709         * doc/posix-headers/limits.texi (limits.h): Update for recent
36710         cygwin additions.
36711         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36712         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36713         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36714         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36715         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36716
36717 2009-08-14  Eric Blake  <ebb9@byu.net>
36718
36719         maint.mk: simplify update-copyright rule
36720         * top/maint.mk (update-copyright-local): Delete, and document how
36721         to do it in cfg.mk instead.
36722         (update-copyright-exclude-regexp): Delete, and document how to do
36723         it in .x-update-copyright instead.
36724         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36725         exclude ChangeLog.
36726
36727 2009-08-14  Bruno Haible  <bruno@clisp.org>
36728
36729         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36730
36731 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36732
36733         maint.mk: support update-copyright-env
36734         * top/maint.mk (update-copyright-env): Define place-holder.
36735         (update-copyright): Expand $(update-copyright-env) before
36736         invoking update-copyright.
36737
36738 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36739
36740         update-copyright: implement forced reformatting
36741         * build-aux/update-copyright: Implement and document
36742         UPDATE_COPYRIGHT_FORCE.
36743         * tests/test-update-copyright.sh: Test it.
36744
36745 2009-08-14  Eric Blake  <ebb9@byu.net>
36746         and Bruno Haible  <bruno@clisp.org>
36747
36748         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36749         * tests/test-locale.c: Revert previous patch related to NULL.
36750         * tests/test-stdio.c: Likewise.
36751         * tests/test-stdlib.c: Likewise.
36752         * tests/test-string.c: Likewise.
36753         * tests/test-unistd.c: Likewise.
36754         * modules/time-tests (Depends-on): Add verify.
36755         * modules/wchar-tests (Depends-on): Likewise.
36756         * tests/test-time.c: Test for NULL compliance.
36757         * tests/test-wchar.c: Likewise.
36758         * modules/locale (Depends-on): Add stddef.
36759         * modules/stdio (Depends-on): Likewise.
36760         * modules/stdlib (Depends-on): Likewise.
36761         * modules/string (Depends-on): Likewise.
36762         * modules/time (Depends-on): Likewise.
36763         * modules/unistd (Depends-on): Likewise.
36764         * modules/wchar (Depends-on): Likewise.
36765         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36766         * lib/stdlib.in.h (includes): Likewise.
36767         * lib/string.in.h (includes): Likewise.
36768         * lib/time.in.h (includes): Likewise.
36769         * lib/unistd.in.h (includes): Likewise.
36770         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36771         replaced.
36772         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36773         * m4/stddef_h.m4: New file.
36774         * modules/stddef: Likewise.
36775         * lib/stddef.in.h: Likewise.
36776         * modules/stddef-tests: Likewise.
36777         * tests/test-stddef.c: Likewise.
36778         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36779         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36780         * doc/posix-headers/locale.texi (locale.h): Likewise.
36781         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36782         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36783         * doc/posix-headers/string.texi (string.h): Likewise.
36784         * doc/posix-headers/time.texi (time.h): Likewise.
36785         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36786         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36787
36788 2009-08-14  Eric Blake  <ebb9@byu.net>
36789
36790         doc: improve git diff of texinfo files
36791         * .gitattributes: Add rule for *.texi files, with hint on how to
36792         use it.
36793         Copied from m4, and based on a report by Bruno Haible.
36794
36795 2009-08-14  Bruno Haible  <bruno@clisp.org>
36796
36797         Disable multithread support by default on Cygwin 1.5.x for real.
36798         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36799
36800 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36801
36802         update-copyright: much ado about intervals
36803         * build-aux/update-copyright: Implement and document
36804         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36805         of copyright year intervals.
36806         Also, document UPDATE_COPYRIGHT_YEAR.
36807         * tests/test-update-copyright.sh: Test it.
36808
36809         update-copyright: convert 2-digit to 4-digit years
36810         * build-aux/update-copyright: Implement and document.
36811         * tests/test-update-copyright.sh: Update.
36812
36813 2009-08-14  Jim Meyering  <meyering@redhat.com>
36814
36815         test-exclude: avoid coreutils "make check" failure
36816         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36817         just as in test-argmatch.c.
36818
36819 2009-08-13  Eric Blake  <ebb9@byu.net>
36820
36821         test-dup2: fix bad assumption
36822         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36823         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36824
36825         test-version-etc: fix CRLF portability issue
36826         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36827         recognize \r.
36828         * tests/test-argp-version-etc-1.sh: Likewise.
36829
36830         getopt: update client modules
36831         * modules/argp (Depends-on): Use getopt-gnu.
36832         * modules/git-merge-changelog (Depends-on): Likewise.
36833         * modules/long-options (Depends-on): Likewise.
36834         * modules/xstrtol (Depends-on): Likewise.
36835
36836 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36837
36838         * tests/test-version-etc.sh: Don't fail on different
36839         project/version.  Don't fail on CRLF differences.  Rewrite to use
36840         multiple -e instead of multiple sed forks, suggested by Eric Blake
36841         <ebb9@byu.net>.
36842         * tests/test-argp-version-etc-1.sh: Likewise.
36843
36844 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36845
36846         * tests/test-version-etc.sh: Don't fail on different
36847         project/version.
36848
36849 2009-08-12  Bruno Haible  <bruno@clisp.org>
36850
36851         Tests for modules 'getopt-posix', 'getopt-gnu'.
36852         * modules/getopt-posix-tests: New file.
36853         * tests/test-getopt.c: New file.
36854         * tests/test-getopt.h: New file.
36855         * tests/test-getopt_long.h: New file.
36856
36857         New modules 'getopt-posix', 'getopt-gnu'.
36858         * modules/getopt-gnu: New file, renamed from modules/getopt.
36859         * modules/getopt-posix: New file.
36860         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36861         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36862         (gl_GETOPT): Remove macro.
36863         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36864         Disable the test against BSD systems that declare optreset. Test
36865         against mingw bug. Test against lack of support of optional arguments
36866         on many platforms.
36867         * doc/glibc-headers/getopt.texi: Update module name and list of
36868         relevant platforms.
36869         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36870         'getopt-gnu' and more portability problems.
36871         * NEWS: Mention the changes.
36872
36873 2009-08-12  Bruno Haible  <bruno@clisp.org>
36874
36875         Ensure that optarg etc. get declared by <unistd.h>.
36876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36877         AC_USE_SYSTEM_EXTENSIONS.
36878         * modules/getopt (Depends-on): Add 'extensions'.
36879
36880 2009-08-12  Bruno Haible  <bruno@clisp.org>
36881
36882         Avoid test link errors.
36883         * modules/pipe-filter-ii-tests (Makefile.am): Define
36884         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36885         * modules/pipe-filter-gi-tests (Makefile.am): Define
36886         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36888
36889 2009-08-12  Bruno Haible  <bruno@clisp.org>
36890
36891         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36892         gl_GETOPT_SUBSTITUTE before.
36893         (gl_GETOPT): Use it.
36894         * m4/argp.m4 (gl_ARGP): Update.
36895         Reported by Sergey Poznyakoff.
36896
36897         * m4/getopt.m4: Reorder macros.
36898         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36899         (gl_GETOPT_SUBSTITUTE): Remove macro.
36900
36901 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36902
36903         Minor improvement in gitlog-to-changelog
36904
36905         * build-aux/gitlog-to-changelog: New option `--format' makes
36906         output format string configurable.
36907
36908 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36909
36910         Optimize exclude: use hash tables for non-wildcard patterns.
36911
36912         * lib/exclude.c: Include hash.h and mbuiter.h
36913         (struct exclude_pattern, exclude_segment): New data types.
36914         (struct exclude): Rewrite.
36915         (fnmatch_pattern_has_wildcards): New function.
36916         (new_exclude_segment, free_exclude_segment): New functions.
36917         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36918         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36919         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36920         * modules/exclude: Depend on hash and mbuiter.
36921
36922         * modules/exclude-tests: New file.
36923         * tests/test-exclude.c: New file.
36924         * tests/test-exclude1.sh: New file.
36925         * tests/test-exclude2.sh: New file.
36926         * tests/test-exclude3.sh: New file.
36927         * tests/test-exclude4.sh: New file.
36928         * tests/test-exclude5.sh: New file.
36929         * tests/test-exclude6.sh: New file.
36930         * tests/test-exclude7.sh: New file.
36931
36932 2009-08-12  Bruno Haible  <bruno@clisp.org>
36933
36934         Ensure that getopt() gets declared by <unistd.h>.
36935         * lib/unistd.in.h: Conditionally include getopt.h.
36936         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36937         Set GNULIB_UNISTD_H_GETOPT.
36938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36939         GNULIB_UNISTD_H_GETOPT.
36940         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36941
36942 2009-08-12  Bruno Haible  <bruno@clisp.org>
36943
36944         Clarify logic.
36945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36946         gl_replace_getopt instead of GETOPT_H.
36947
36948 2009-08-12  Bruno Haible  <bruno@clisp.org>
36949
36950         * m4/getopt.m4: Add comments.
36951
36952 2009-08-12  Bruno Haible  <bruno@clisp.org>
36953
36954         Disable multithread support by default on Cygwin 1.5.x.
36955         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36956         set gl_use_threads=no if not specified otherwise.
36957
36958 2009-08-11  Bruno Haible  <bruno@clisp.org>
36959
36960         Avoid compilation error on NetBSD 5.0.
36961         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36962         * tests/test-stdio.c: Likewise.
36963         * tests/test-stdlib.c: Likewise.
36964         * tests/test-string.c: Likewise.
36965         * tests/test-unistd.c: Likewise.
36966         Reported by Greg Troxel <gdt@ir.bbn.com>
36967         at <https://savannah.gnu.org/support/?106973>.
36968
36969 2009-08-11  Bruno Haible  <bruno@clisp.org>
36970
36971         * modules/dup2-tests (Depends-on): Remove close.
36972
36973         Undo 2009-07-19 commit.
36974         * modules/acl-tests (Depends-on): Remove close.
36975         * modules/binary-io-tests (Depends-on): Likewise.
36976         * modules/closein-tests (Depends-on): Likewise.
36977         * modules/flock-tests (Depends-on): Likewise.
36978         * modules/fsync-tests (Depends-on): Likewise.
36979         * modules/lseek-tests (Depends-on): Likewise.
36980         * modules/pipe-tests (Depends-on): Likewise.
36981         * modules/posix_spawn-tests (Depends-on): Likewise.
36982         * modules/posix_spawnp-tests (Depends-on): Likewise.
36983         * modules/stat-time-tests (Depends-on): Likewise.
36984         * modules/yesno-tests (Depends-on): Likewise.
36985
36986 2009-08-10  Bruno Haible  <bruno@clisp.org>
36987
36988         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36989
36990 2009-08-10  Bruno Haible  <bruno@clisp.org>
36991
36992         Fix a gcc warning.
36993         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36994
36995 2009-08-10  Bruno Haible  <bruno@clisp.org>
36996
36997         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36998         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36999         not only the first time.
37000         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37001         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37002         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37003         is 1, not only the the first time.
37004
37005 2009-08-10  Bruno Haible  <bruno@clisp.org>
37006
37007         Make it possible to use module 'gethostname' without module 'close'.
37008         * lib/unistd.in.h (close): Evoke a link error only if
37009         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37011         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37012         * modules/unistd (Makefile.am): Substitute
37013         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37014         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37015         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37016         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37017         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37018         * modules/sys_ioctl (Makefile.am): Substitute
37019         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37020         * modules/socket (configure.ac): On native Windows, set
37021         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37022         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37023         Reported by Sam Steingold <sds@gnu.org>.
37024
37025 2009-08-10  Bruno Haible  <bruno@clisp.org>
37026
37027         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37028         * modules/ioctl (configure.ac): Likewise.
37029
37030 2009-08-10  Bruno Haible  <bruno@clisp.org>
37031
37032         Avoid collision between gnulib wrapper and libintl wrapper.
37033         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37034         already defined in intl/printf.c.
37035         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37036         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37037
37038 2009-08-09  Bruno Haible  <bruno@clisp.org>
37039
37040         Make <sys/select.h> really self-contained, also on Solaris 10.
37041         * lib/sys_select.in.h: Include <string.h>.
37042         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37043         Solaris 10 problem.
37044         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37045         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37046         Reported by Jim Meyering.
37047
37048 2009-08-09  Bruno Haible  <bruno@clisp.org>
37049
37050         Avoid warnings from 'aclocal' that are due to a use of macro name
37051         AM_XGETTEXT_OPTION that is not defined in automake.
37052         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37053         automake.
37054         * modules/error (configure.ac): Likewise.
37055         * modules/propername (configure.ac): Likewise.
37056         * modules/vasprintf (configure.ac): Likewise.
37057         * modules/verror (configure.ac): Likewise.
37058         * modules/xprintf (configure.ac): Likewise.
37059         * modules/xvasprintf (configure.ac): Likewise.
37060
37061 2009-08-08  Bruno Haible  <bruno@clisp.org>
37062
37063         Avoid compilation error in C++ mode.
37064         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37065         Reported by Sam Steingold <sds@gnu.org>.
37066
37067 2009-08-08  Bruno Haible  <bruno@clisp.org>
37068
37069         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37070         for the various Unix platforms.
37071         * doc/posix-headers/limits.texi: Update platforms list regarding
37072         HOST_NAME_MAX.
37073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37074
37075 2009-08-07  Jim Meyering  <meyering@redhat.com>
37076
37077         selinux-at: fix typo in a comment
37078         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37079         Spotted by Paolo Bonzini.
37080
37081         selinux-at: remove redundant m4 code, add documentation
37082         * modules/selinux-at (configure.ac): Remove redundant code.
37083         LIB_SELINUX is already set via the dependent module, selinux-h.
37084         (Include): Add quotes around selinux-at.h.
37085         * lib/selinux-at.h: Add documentation.
37086         Reported by Bruno Haible in
37087         http://marc.info/?l=gnulib-bug&m=124958988300749
37088
37089 2009-08-07  Bruno Haible  <bruno@clisp.org>
37090
37091         Avoid link error on MacOS X 10.3 and 10.4.
37092         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37093         on non-ELF systems.
37094         * lib/argp-pv.c (argp_program_version): Likewise.
37095         Reported by Simon Josefsson.
37096
37097 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37098
37099         * tests/test-version-etc.sh: Use $EXEEXT.
37100
37101 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37102
37103         update-copyright: update documentation to point to maint.mk
37104         * build-aux/update-copyright: Here.
37105
37106 2009-08-06  Jim Meyering  <meyering@redhat.com>
37107
37108         maint.mk: support update-copyright-local
37109         * top/maint.mk (update-copyright-local): Define place-holder.
37110         (update-copyright): Depend on $(update-copyright-local).
37111
37112 2009-08-06  Jim Meyering  <meyering@redhat.com>
37113
37114         selinux-at: new module
37115         Initially written for coreutils, this module will soon be
37116         used by findutils, too.
37117         * MODULES.html.sh [Misc]: Add selinux-at.
37118         * lib/selinux-at.h: New file, from coreutils.
37119         * lib/selinux-at.c: Likewise.
37120         * modules/selinux-at: Likewise.
37121         (License): Change from LGPL to GPL, since it depends
37122         on the GPL'd openat module.
37123
37124         doc: update README
37125         * README: Remove references to cogito.
37126         Remove cvs-repo-updating instructions from 2007.
37127         Don't imply that CVS is better if you have limited disk space.
37128
37129 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37130
37131         update-copyright: support C-style comments
37132         * build-aux/update-copyright: Implement and document.
37133         * tests/test-update-copyright.sh: Test.
37134
37135 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37136
37137         update-copyright: support omitted "(C)"
37138         * build-aux/update-copyright: Implement and document.  Also,
37139         allow variable whitespace before "(C)".
37140         * tests/test-update-copyright.sh: Test.
37141
37142 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37143
37144         update-copyright: don't trip on non-FSF copyright statements
37145         * build-aux/update-copyright: Fix so that the first correctly
37146         formatted FSF copyright statement is recognized no matter what
37147         appears before it.  Update documentation.
37148         * tests/test-update-copyright.sh: Test that.
37149
37150 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37151
37152         update-copyright: clean up code a little
37153         * build-aux/update-copyright: Append "_re" to the name of any
37154         variable holding a regular expression.
37155         Replace "old" and "new" with "stmt" in variable names.
37156         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37157         handled correctly.
37158         Format code more consistently.
37159
37160 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37161
37162         update-copyright-tests: improve portability
37163         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37164         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37165
37166 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37167
37168         update-copyright: support @copyright{} and &copy;
37169         * build-aux/update-copyright: Implement and document.
37170         * tests/test-update-copyright.sh: Test.
37171
37172 2009-08-04  Jim Meyering  <meyering@redhat.com>
37173
37174         update-copyright-tests: correctly test EOL=\r\n handling
37175         * tests/test-update-copyright.sh: Put \r at the end of some lines
37176         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37177
37178         maint.mk: make update-copyright exclusion list more configurable
37179         * top/maint.mk (update-copyright): Default to excluding COPYING,
37180         but allow an override, in case someone does want to update that file.
37181
37182         maint.mk: don't update copyright date in COPYING
37183         * top/maint.mk (update-copyright): Exclude COPYING.
37184
37185         maint.mk: add a copyright-updating rule
37186         * top/maint.mk (update-copyright): New rule.
37187         Derived from coreutils/Makefile.am.
37188
37189         update-copyright: rename some variables
37190         * build-aux/update-copyright: Rename a few variables for clarity.
37191         Tweak syntax.  List Joel E. Denny as coauthor.
37192
37193 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37194
37195         update-copyright: fix bug for 2-digit last year and add tests
37196         * build-aux/update-copyright: Fix bug.
37197         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37198         specified.
37199         * modules/update-copyright-tests: New
37200         * tests/test-update-copyright.sh: New.
37201
37202 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37203
37204         update-copyright: handle leading tabs in line prefix
37205         * build-aux/update-copyright: Count leading tabs as 8 spaces
37206         when computing margin.  This helps with the formatting of
37207         ChangeLogs, for example.
37208         Fix documentation a little.
37209
37210 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37211
37212         update-copyright: support EOL=\r\n
37213         * build-aux/update-copyright: Implement that.
37214
37215 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37216
37217         update-copyright: automatically format copyright statements
37218         * build-aux/update-copyright: Implement that.
37219         Also, be a little more predictable and safer by always failing
37220         when the full copyright format is not perfectly recognized as an
37221         unbroken whole.  Discussed at
37222         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37223         Rewrite documentation.
37224
37225 2009-08-03  Bruno Haible  <bruno@clisp.org>
37226
37227         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37228
37229 2009-08-02  Bruno Haible  <bruno@clisp.org>
37230
37231         Tests for module 'uname'.
37232         * modules/uname-tests: New file.
37233         * tests/test-uname.c: New file.
37234
37235         New module 'uname'.
37236         * lib/uname.c: New file.
37237         * m4/uname.m4: New file.
37238         * modules/uname: New file.
37239         * doc/posix-functions/uname.texi: Mention the new module.
37240
37241 2009-08-02  Bruno Haible  <bruno@clisp.org>
37242
37243         Tests for module 'sys_utsname'.
37244         * modules/sys_utsname-tests: New file.
37245         * tests/test-sys_utsname.c: New file.
37246
37247         New module 'sys_utsname'.
37248         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37249         * m4/sys_utsname_h.m4: New file.
37250         * modules/sys_utsname: New file.
37251         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37252
37253 2009-08-02  Bruno Haible  <bruno@clisp.org>
37254
37255         Implicitly initialize the sockets library.
37256         * lib/gethostname.c: Include sockets.h.
37257         (rpl_gethostname): Invoke gl_sockets_startup.
37258         * lib/socket.c: Include sockets.h.
37259         (rpl_socket): Invoke gl_sockets_startup.
37260         * modules/gethostname (Depends-on): Add sockets.
37261         * modules/socket (Depends-on): Likewise.
37262         * tests/test-poll.c: Don't include sockets.h.
37263         (main): Don't invoke gl_sockets_startup.
37264         * tests/test-select.c: Don't include sockets.h.
37265         (main): Don't invoke gl_sockets_startup.
37266
37267 2009-08-02  Bruno Haible  <bruno@clisp.org>
37268
37269         Allow multiple calls to gl_sockets_startup.
37270         * lib/sockets.c (initialized_sockets_version): New variable.
37271         (gl_sockets_startup): Do nothing if already called for this or a higher
37272         version.
37273         (gl_sockets_cleanup): Reset initialized_sockets_version.
37274
37275 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37276
37277         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37278         different project/version.
37279
37280 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37281             Bruno Haible  <bruno@clisp.org>
37282
37283         Tests for module 'pipe-filter-gi'.
37284         * modules/pipe-filter-gi-tests: New file.
37285         * tests/test-pipe-filter-gi1.sh: New file.
37286         * tests/test-pipe-filter-gi1.c: New file.
37287         * tests/test-pipe-filter-gi2.sh: New file.
37288         * tests/test-pipe-filter-gi2-main.c: New file.
37289         * tests/test-pipe-filter-gi2-child.c: New file.
37290
37291         New module 'pipe-filter-gi'.
37292         * lib/pipe-filter-gi.c: New file.
37293         * modules/pipe-filter-gi: New file.
37294
37295 2009-08-02  Bruno Haible  <bruno@clisp.org>
37296             Paolo Bonzini  <bonzini@gnu.org>
37297
37298         Tests for module 'pipe-filter-ii'.
37299         * modules/pipe-filter-ii-tests: New file.
37300         * tests/test-pipe-filter-ii1.sh: New file.
37301         * tests/test-pipe-filter-ii1.c: New file.
37302         * tests/test-pipe-filter-ii2.sh: New file.
37303         * tests/test-pipe-filter-ii2-main.c: New file.
37304         * tests/test-pipe-filter-ii2-child.c: New file.
37305
37306         New module 'pipe-filter-ii'.
37307         * lib/pipe-filter.h: New file.
37308         * lib/pipe-filter-ii.c: New file.
37309         * lib/pipe-filter-aux.h: New file.
37310         * modules/pipe-filter-ii: New file.
37311
37312 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37313
37314         * lib/gc-libgcrypt.c: Change copyright to FSF.
37315         * lib/gc-gnulib.c: Likewise.
37316
37317 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37318
37319         * lib/gethostname.c: Include limits.h.
37320
37321 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37322             Bruno Haible  <bruno@clisp.org>
37323
37324         Ensure HOST_NAME_MAX as part of the gethostname module.
37325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37326         define also HOST_NAME_MAX.
37327         * tests/test-gethostname.c: Include <limits.h>.
37328         (main): Check also HOST_NAME_MAX.
37329         * doc/posix-headers/limits.texi: Document the mingw problem.
37330
37331 2009-08-02  Bruno Haible  <bruno@clisp.org>
37332
37333         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37334         Add comments.
37335
37336 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37337
37338         * lib/gethostname.c: Add Windows wrapper.
37339         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37340         * modules/gethostname: Depend on sys_socket & errno, for also
37341         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37342         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37343
37344 2009-07-31  Jim Meyering  <meyering@redhat.com>
37345
37346         getloadavg: fix symbol name in comment
37347         * lib/getloadavg.c: Correct a typo I introduced when adding
37348         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37349         Matt Kraai spotted the problem.
37350
37351 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37352
37353         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37354         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37355         code also if ! defined N_NAME_POINTER.
37356         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37357         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37358         but the n_name member is a 12-byte array.
37359
37360 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37361
37362         update-copyright: generalize comment handling
37363         * build-aux/update-copyright: Handle copyright statements
37364         within more comment styles.
37365         Document usage.
37366         Report any file with an external copyright holder or parse failure.
37367
37368 2009-07-29  Jim Meyering  <meyering@redhat.com>
37369
37370         mktime: correct setting of REPLACE_MKTIME
37371         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37372
37373         update-copyright: new module
37374         * modules/update-copyright: New file.
37375         * build-aux/update-copyright: New file.
37376         * MODULES.html.sh (maint+release support): Add update-copyright.
37377
37378 2009-07-27  Bruno Haible  <bruno@clisp.org>
37379
37380         Fix compilation error when <ctime> is used and mktime is replaced.
37381         * lib/time.in.h (mktime): New declaration.
37382         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37383         REPLACE_MKTIME instead of defining mktime in config.h.
37384         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37385         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37386         Reported by Ross McFarland <rwmcfa1@neces.com>.
37387
37388 2009-07-27  Bruno Haible  <bruno@clisp.org>
37389
37390         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37391         Reported by Matt Kraai <mkraai@beckman.com>.
37392
37393 2009-07-25  Jim Meyering  <meyering@redhat.com>
37394
37395         maint.mk: avoid warnings about missing files
37396         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37397         diagnostic when .prev-version does not exist.
37398         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37399         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37400         nonexistent cfg.mk.
37401         Suggestions from Simon Josefsson.
37402
37403 2009-07-25  Bruno Haible  <bruno@clisp.org>
37404
37405         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37406         defined as macros. Needed on QNX 6.4.1.
37407         Reported by Matt Kraai <mkraai@beckman.com>.
37408
37409 2009-07-23  Jim Meyering  <meyering@redhat.com>
37410
37411         maint.mk: invoke "make dist" with a working value of XZ_OPT
37412         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37413
37414 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37415
37416         Make fseeko.c compile on QNX.
37417         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37418
37419 2009-07-22  Peter Simons  <simons@cryp.to>
37420
37421         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37422         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37423         * lib/md4.h: Likewise.
37424         * lib/md5.h: Likewise.
37425         * lib/sha1.h: Likewise.
37426         * lib/sha256.h: Likewise.
37427         * lib/sha512.h: Likewise.
37428
37429         tests-sha1: don't assign literal string to 'char *' variable
37430         * tests/test-sha1.c (main): Declare locals with "const" to match
37431         attributes of the right hand side.
37432
37433 2009-07-21  Eric Blake  <ebb9@byu.net>
37434
37435         dup2: fix more mingw problems
37436         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37437         fd to itself.
37438         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37439         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37440         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37441         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37442         care of mingw bugs.
37443
37444 2009-07-21  Jim Meyering  <meyering@redhat.com>
37445
37446         vc-list-files: avoid failure when /bin/sh is dash
37447         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37448         On some Debian based systems, /bin/sh is a symlink to dash, and running
37449         this command would omit the "/" following each 'tests' prefix:
37450           dash -x build-aux/vc-list-files -C . tests
37451         That is because bash and dash work differently:
37452           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37453           bash ok
37454           dash odd
37455
37456 2009-07-21  Eric Blake  <ebb9@byu.net>
37457
37458         dup2-tests: test previous patch
37459         * modules/dup2-tests: New file.
37460         * tests/test-dup2.c: Likewise.
37461         * tests/test-open.c (main): Avoid unspecified behavior.
37462         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37463         test.
37464
37465         dup2: work around mingw and cygwin 1.5 bug
37466         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37468         * modules/unistd (Makefile.am): Substitute it.
37469         * lib/unistd.in.h (dup2): Declare the replacement.
37470         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37471         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37472         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37473         * modules/execute (Depends-on): Add dup2.
37474         * modules/fseterr (Depends-on): Likewise.
37475         * modules/pipe (Depends-on): Likewise.
37476         * modules/posix_spawn-internal (Depends-on): Likewise.
37477
37478 2009-07-21  Bruno Haible  <bruno@clisp.org>
37479
37480         * modules/.gitattributes: New file.
37481
37482 2009-07-20  Bruno Haible  <bruno@clisp.org>
37483
37484         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37485         (main): Use it.
37486
37487 2009-07-20  Eric Blake  <ebb9@byu.net>
37488
37489         test-pipe: make a bit more robust.
37490         * tests/test-pipe.c (myerr): Allow error messages regardless of
37491         what we do to stderr.
37492         (test_pipe): Rearrange to avoid deadlock.
37493         (child_main): Try a larger read, to ensure we avoided deadlock.
37494         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37495         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37496         if misused.
37497
37498 2009-07-19  Jim Meyering  <meyering@redhat.com>
37499
37500         fts: avoid false-positive cycle-detection
37501         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37502         for each new command line argument.
37503
37504 2009-07-19  Bruno Haible  <bruno@clisp.org>
37505
37506         Fix build error on mingw with the modules sys_select and unistd.
37507         * modules/acl-tests (Depends-on): Add close.
37508         * modules/binary-io-tests (Depends-on): Likewise.
37509         * modules/closein-tests (Depends-on): Likewise.
37510         * modules/flock-tests (Depends-on): Likewise.
37511         * modules/fsync-tests (Depends-on): Likewise.
37512         * modules/lseek-tests (Depends-on): Likewise.
37513         * modules/pipe-tests (Depends-on): Likewise.
37514         * modules/posix_spawn-tests (Depends-on): Likewise.
37515         * modules/posix_spawnp-tests (Depends-on): Likewise.
37516         * modules/stat-time-tests (Depends-on): Likewise.
37517         * modules/yesno-tests (Depends-on): Likewise.
37518
37519 2009-07-19  Bruno Haible  <bruno@clisp.org>
37520
37521         Unify conditionals.
37522         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37523         macros, not at the compiler macros.
37524         * lib/pipe.c: Likewise.
37525         * lib/execute.c: Likewise.
37526         * lib/spawni.c: Likewise.
37527
37528 2009-07-19  Bruno Haible  <bruno@clisp.org>
37529
37530         Fix handling of closed stdin/stdout/stderr on mingw.
37531         * lib/w32spawn.h: Include unistd.h.
37532         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37533         file descriptor with O_NOINHERIT flag.
37534         (fd_safer_noinherit): New function, based on fd-safer.c.
37535         (dup_safer_noinherit): New function, based on dup-safer.c.
37536         (undup_safer_noinherit): New function.
37537         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37538         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37539         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37540         instead of fd_safer.
37541         * tests/test-pipe.c: Include <windows.h>.
37542         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37543         result.
37544
37545         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37546         from main.
37547         (test_pipe): Pass an extra argument for disambiguation.
37548         (main): Invoke parent_main or child_main.
37549
37550         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37551         consistently.
37552
37553 2009-07-18  Eric Blake  <ebb9@byu.net>
37554
37555         test-pipe: fix mingw build
37556         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37557
37558 2009-07-18  Bruno Haible  <bruno@clisp.org>
37559
37560         * modules/pipe-tests (Makefile.am): Fix typo.
37561
37562 2009-07-18  Eric Blake  <ebb9@byu.net>
37563
37564         error: fix mingw build
37565         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37566         Reported by Bruno Haible.
37567
37568         error: avoid undefined use of stdout
37569         * lib/error.c (error, error_at_line): Check that fd 1 is open
37570         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37571         is handling faults and the close_stdout module wants to report the
37572         detection of closed stdout as an error.
37573
37574 2009-07-17  Eric Blake  <ebb9@byu.net>
37575
37576         pipe: be robust in face of closed fds
37577         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37578         should cause child to misbehave.
37579         * modules/pipe-tests: New module.
37580         * tests/test-pipe.c: New file.
37581         * tests/test-pipe.sh: New file.
37582         Reported by Akim Demaille.
37583
37584 2009-07-14  Bruno Haible  <bruno@clisp.org>
37585
37586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37587         Reported by anonymous kc.
37588
37589 2009-07-07  Jim Meyering  <meyering@redhat.com>
37590
37591         maint.mk: don't look for translatable strings in *.m4 or *.mk
37592         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37593         when searching for translatable strings.
37594
37595 2009-07-05  Jim Meyering  <meyering@redhat.com>
37596
37597         remove superfluous parentheses in STREQ definition
37598         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37599         * lib/getugroups.c (STREQ): Likewise.
37600         * lib/fnmatch.c (STREQ): Likewise.
37601         Spotted by Bruno Haible.
37602
37603 2009-07-04  Jim Meyering  <meyering@redhat.com>
37604
37605         argv-iter: new module
37606         * MODULES.html.sh: Add argv-iter.
37607         * lib/argv-iter.c, lib/argv-iter.h: New files.
37608         * modules/argv-iter: New file.
37609         * modules/argv-iter-tests: New file.
37610         * tests/test-argv-iter.c: Test it.
37611
37612 2009-07-04  Bruno Haible  <bruno@clisp.org>
37613
37614         Fix assertion.
37615         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37616         contains more exact copies of a given entry than file2, leave the extra
37617         copies unpaired rather than aborting.
37618         Reported by Eric Blake.
37619
37620 2009-07-02  Bruno Haible  <bruno@clisp.org>
37621
37622         Speedup git-merge-changelog for git cherry-pick.
37623         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37624         (entries_mapping_get): New function, extracted from compute_mapping.
37625         (entries_mapping_reverse_get): New function.
37626         (compute_mapping): Add a 'full' argument. Return the result in a
37627         'struct entries_mapping'.
37628         (main): Update. Access the mappings through entries_mapping_get.
37629         Reported by Eric Blake.
37630
37631 2009-07-02  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37634         best_i.
37635
37636 2009-07-02  Bruno Haible  <bruno@clisp.org>
37637
37638         Speed up approximate search for matching ChangeLog entries.
37639         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37640         argument. Call fstrcmp_bounded instead of fstrcmp.
37641         (compute_mapping, try_split_merged_entry, main): Update callers.
37642
37643 2009-07-02  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37646
37647 2009-06-30  Bruno Haible  <bruno@clisp.org>
37648
37649         Reduce the number of uc_is_cased calls.
37650         * lib/unicase.h (casing_suffix_context_t): Add
37651         'first_char_except_ignorable' field.
37652         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37653         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37654         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37655         Update initializer.
37656         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37657         case-ignorable characters.
37658         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37659         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37660         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37661         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37662         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37663
37664 2009-06-30  Bruno Haible  <bruno@clisp.org>
37665
37666         Tests for module 'unicase/ignorable'.
37667         * modules/unicase/ignorable-tests: New file.
37668         * tests/unicase/test-ignorable.c: New file, generated by
37669         gen-uni-tables.
37670
37671         Tests for module 'unicase/cased'.
37672         * modules/unicase/cased-tests: New file.
37673         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37674         * tests/unicase/test-predicate-part1.h: New file, derived from
37675         tests/unictype/test-predicate-part1.h.
37676         * tests/unicase/test-predicate-part2.h: New file, same as
37677         tests/unictype/test-predicate-part2.h.
37678
37679         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37680         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37681         (output_casing_properties): New function.
37682         (main): Call it.
37683         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37684         * lib/unicase/cased.c: Include unictype/bitmap.h.
37685         (uc_is_cased): Define through a bitmap lookup.
37686         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37687         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37688         (uc_is_case_ignorable): Define through a bitmap lookup.
37689         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37690         lib/unictype/bitmap.h.
37691         (Depends-on): Add inline. Clean up.
37692         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37693         lib/unictype/bitmap.h.
37694         (Depends-on): Add inline. Clean up.
37695         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37696         recognition.
37697         * tests/unicase/test-u16-tolower.c (main): Likewise.
37698         * tests/unicase/test-u32-tolower.c (main): Likewise.
37699
37700 2009-06-30  Bruno Haible  <bruno@clisp.org>
37701
37702         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37703         * lib/unicase/u16-casemap.c: Likewise.
37704         * lib/unicase/u32-casemap.c: Likewise.
37705
37706 2009-06-29  Bruno Haible  <bruno@clisp.org>
37707
37708         Define u32_casefold as a wrapper around u32_ct_casefold.
37709         * lib/unicase/u32-casefold.c: Update.
37710         * modules/unicase/u32-casefold (Depends-on): Add
37711         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37712         unicase/empty-suffix-context. Clean up.
37713
37714         Define u16_casefold as a wrapper around u16_ct_casefold.
37715         * lib/unicase/u16-casefold.c: Update.
37716         * modules/unicase/u16-casefold (Depends-on): Add
37717         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37718         unicase/empty-suffix-context. Clean up.
37719
37720         Define u8_casefold as a wrapper around u8_ct_casefold.
37721         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37722         * lib/unicase/u8-casefold.c: Update.
37723         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37724         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37725
37726         Define u32_totitle as a wrapper around u32_ct_totitle.
37727         * lib/unicase/u32-totitle.c: Update.
37728         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37729         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37730
37731         Define u16_totitle as a wrapper around u16_ct_totitle.
37732         * lib/unicase/u16-totitle.c: Update.
37733         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37734         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37735
37736         Define u8_totitle as a wrapper around u8_ct_totitle.
37737         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37738         functions.
37739         (FUNC): Delegate to U_CT_TOTITLE.
37740         * lib/unicase/u8-totitle.c: Update.
37741         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37742         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37743
37744         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37745         invocation.
37746         * modules/unicase/u32-tolower (Depends-on): Add
37747         unicase/empty-prefix-context, unicase/empty-suffix-context.
37748
37749         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37750         invocation.
37751         * modules/unicase/u16-tolower (Depends-on): Add
37752         unicase/empty-prefix-context, unicase/empty-suffix-context.
37753
37754         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37755         * modules/unicase/u8-tolower (Depends-on): Add
37756         unicase/empty-prefix-context, unicase/empty-suffix-context.
37757
37758         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37759         invocation.
37760         * modules/unicase/u32-toupper (Depends-on): Add
37761         unicase/empty-prefix-context, unicase/empty-suffix-context.
37762
37763         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37764         invocation.
37765         * modules/unicase/u16-toupper (Depends-on): Add
37766         unicase/empty-prefix-context, unicase/empty-suffix-context.
37767
37768         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37769         * modules/unicase/u8-toupper (Depends-on): Add
37770         unicase/empty-prefix-context, unicase/empty-suffix-context.
37771
37772         New module 'unicase/u32-ct-casefold'.
37773         * lib/unicase/u32-ct-casefold.c: New file.
37774         * modules/unicase/u32-ct-casefold: New file.
37775
37776         New module 'unicase/u16-ct-casefold'.
37777         * lib/unicase/u16-ct-casefold.c: New file.
37778         * modules/unicase/u16-ct-casefold: New file.
37779
37780         New module 'unicase/u8-ct-casefold'.
37781         * lib/unicase/u8-ct-casefold.c: New file.
37782         * lib/unicase/u-ct-casefold.h: New file, derived from
37783         lib/unicase/u-casefold.h.
37784         * modules/unicase/u8-ct-casefold: New file.
37785
37786         New module 'unicase/u32-ct-totitle'.
37787         * lib/unicase/u32-ct-totitle.c: New file.
37788         * modules/unicase/u32-ct-totitle: New file.
37789
37790         New module 'unicase/u16-ct-totitle'.
37791         * lib/unicase/u16-ct-totitle.c: New file.
37792         * modules/unicase/u16-ct-totitle: New file.
37793
37794         New module 'unicase/u8-ct-totitle'.
37795         * lib/unicase/u8-ct-totitle.c: New file.
37796         * lib/unicase/u-ct-totitle.h: New file, derived from
37797         lib/unicase/u-totitle.h.
37798         * modules/unicase/u8-ct-totitle: New file.
37799
37800         New module 'unicase/u32-ct-tolower'.
37801         * lib/unicase/u32-ct-tolower.c: New file.
37802         * modules/unicase/u32-ct-tolower: New file.
37803
37804         New module 'unicase/u16-ct-tolower'.
37805         * lib/unicase/u16-ct-tolower.c: New file.
37806         * modules/unicase/u16-ct-tolower: New file.
37807
37808         New module 'unicase/u8-ct-tolower'.
37809         * lib/unicase/u8-ct-tolower.c: New file.
37810         * modules/unicase/u8-ct-tolower: New file.
37811
37812         New module 'unicase/u32-ct-toupper'.
37813         * lib/unicase/u32-ct-toupper.c: New file.
37814         * modules/unicase/u32-ct-toupper: New file.
37815
37816         New module 'unicase/u16-ct-toupper'.
37817         * lib/unicase/u16-ct-toupper.c: New file.
37818         * modules/unicase/u16-ct-toupper: New file.
37819
37820         New module 'unicase/u8-ct-toupper'.
37821         * lib/unicase/u8-ct-toupper.c: New file.
37822         * modules/unicase/u8-ct-toupper: New file.
37823
37824         Add context arguments to u*_casemap functions.
37825         * lib/unicase/unicasemap.h: Include unicase.h.
37826         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37827         suffix_context arguments.
37828         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37829         functions.
37830         (FUNC): Add prefix_context and suffix_context arguments. Use
37831         uc_is_cased and uc_is_case_ignorable.
37832         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37833         * lib/unicase/u16-casemap.c: Likewise.
37834         * lib/unicase/u32-casemap.c: Likewise.
37835         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37836         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37837         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37838         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37839         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37840         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37841
37842         New module 'unicase/u32-suffix-context'.
37843         * lib/unicase/u32-suffix-context.c: New file.
37844         * modules/unicase/u32-suffix-context: New file.
37845
37846         New module 'unicase/u16-suffix-context'.
37847         * lib/unicase/u16-suffix-context.c: New file.
37848         * modules/unicase/u16-suffix-context: New file.
37849
37850         New module 'unicase/u8-suffix-context'.
37851         * lib/unicase/u8-suffix-context.c: New file.
37852         * lib/unicase/u-suffix-context.h: New file.
37853         * modules/unicase/u8-suffix-context: New file.
37854
37855         New module 'unicase/empty-suffix-context'.
37856         * lib/unicase/empty-suffix-context.c: New file.
37857         * modules/unicase/empty-suffix-context: New file.
37858
37859         New module 'unicase/u32-prefix-context'.
37860         * lib/unicase/u32-prefix-context.c: New file.
37861         * modules/unicase/u32-prefix-context: New file.
37862
37863         New module 'unicase/u16-prefix-context'.
37864         * lib/unicase/u16-prefix-context.c: New file.
37865         * modules/unicase/u16-prefix-context: New file.
37866
37867         New module 'unicase/u8-prefix-context'.
37868         * lib/unicase/u8-prefix-context.c: New file.
37869         * lib/unicase/u-prefix-context.h: New file.
37870         * lib/unicase/context.h: New file.
37871         * modules/unicase/u8-prefix-context: New file.
37872
37873         New module 'unicase/empty-prefix-context'.
37874         * lib/unicase/empty-prefix-context.c: New file.
37875         * modules/unicase/empty-prefix-context: New file.
37876
37877         New module 'unicase/ignorable'.
37878         * lib/unicase/ignorable.c: New file.
37879         * modules/unicase/ignorable: New file.
37880
37881         New module 'unicase/cased'.
37882         * lib/unicase/caseprop.h: New file.
37883         * lib/unicase/cased.c: New file.
37884         * modules/unicase/cased: New file.
37885
37886         New functions for case mapping of substrings.
37887         * lib/unicase.h (casing_prefix_context_t): New type.
37888         (unicase_empty_prefix_context): New variable.
37889         (u8_casing_prefix_context, u16_casing_prefix_context,
37890         u32_casing_prefix_context, u8_casing_prefixes_context,
37891         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37892         declarations.
37893         (casing_suffix_context_t): New type.
37894         (unicase_empty_suffix_context): New variable.
37895         (u8_casing_suffix_context, u16_casing_suffix_context,
37896         u32_casing_suffix_context, u8_casing_suffixes_context,
37897         u16_casing_suffixes_context, u32_casing_suffixes_context,
37898         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37899         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37900         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37901         declarations.
37902
37903 2009-06-28  Jim Meyering  <meyering@redhat.com>
37904
37905         boostrap: indent only with spaces
37906         * build-aux/bootstrap: Indent only with spaces, never TABs.
37907
37908         bootstrap: split long lines
37909         * build-aux/bootstrap: Keep line length < 80.
37910
37911         bootstrap: sync from coreutils
37912         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37913         just as autoreconf does.  Verify a list of prerequisite
37914         package-name,version-number pairs if defined in bootstrap.conf.
37915         Refer to README-prereq, if prerequisites are not satisfied.
37916
37917 2009-06-27  Eric Blake  <ebb9@byu.net>
37918
37919         tests: add test for bogus NULL definition
37920         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37921         * tests/test-stdlib.c: Likewise.
37922         * tests/test-string.c: Likewise.
37923         * tests/test-locale.c: Likewise.
37924         * tests/test-unistd.c: Likewise.
37925         * modules/stdio-tests (Depends-on): Add verify.
37926         * modules/stdlib-tests (Depends-on): Likewise.
37927         * modules/string-tests (Depends-on): Likewise.
37928         * modules/locale-tests (Depends-on): Likewise.
37929         * modules/unistd-tests (Depends-on): Likewise.
37930
37931 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37932
37933         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37934         self-explaining comment.
37935         * m4/selinux-selinux-h: Update serial.
37936         (gl_LIBSELINUX): New macro, adding a warning for missing development
37937         packages to code extracted from...
37938         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37939         Add warning for missing development packages here, too.
37940
37941 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37942
37943         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37944
37945 2009-06-25  Eric Blake  <ebb9@byu.net>
37946
37947         version-etc: fix regression
37948         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37949         gcc.
37950         (version_etc): Use it, to catch bugs with trailing NULL.
37951         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37952         (version_etc_va): Fix logic bug.
37953         * modules/version-etc-tests: Add test.
37954         * tests/test-version-etc.c: New file.
37955         * tests/test-version-etc.sh: Likewise.
37956
37957 2009-06-25  Sam Steingold  <sds@gnu.org>
37958
37959         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37960         mbtowc declaration.
37961
37962 2009-06-25  Eric Blake  <ebb9@byu.net>
37963
37964         fpurge: migrate into <stdio.h>
37965         * lib/fpurge.h: Delete...
37966         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37967         * lib/fpurge.c (fpurge): Change declaring header.
37968         * modules/fpurge (Files): Drop deleted file.
37969         (Depends-on): Add stdio.
37970         (configure.ac): Set witness.
37971         * modules/stdio (Makefile.am): Support fpurge macros.
37972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37974         * lib/fflush.c: Update client.
37975         * tests/test-fpurge.c: Likewise.
37976         * NEWS: Mention the change.
37977
37978 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37979
37980         * lib/argp-version-etc.c (program_authors): Add const
37981         qualifier.
37982         * lib/version-etc.c: Fix typos in the comments.
37983         * modules/argp-version-etc: Depends on version-etc.
37984
37985 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37986
37987         argp-version-etc: new module.
37988
37989         * lib/argp-version-etc.c: New file.
37990         * lib/argp-version-etc.h: New file.
37991         * modules/argp-version-etc: New file.
37992         * modules/argp-version-etc-tests: New file.
37993         * tests/test-argp-version-etc.c: New test.
37994         * tests/test-argp-version-etc-1.sh: New test.
37995
37996 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37997
37998         Provide additional interfaces and documentation for version-etc
37999         module.
38000
38001         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38002         interfaces.
38003         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38004         prototypes.
38005
38006 2009-06-24  Bruno Haible  <bruno@clisp.org>
38007
38008         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38009         HAVE_LIB${NAME} macro.
38010         Reported by Sam Steingold <sds@gnu.org>.
38011
38012 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38013
38014         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38015         needed.
38016
38017 2009-06-21  Bruno Haible  <bruno@clisp.org>
38018
38019         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38020         work.
38021         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38022         together with LIB${NAME}, LTLIB${NAME}.
38023         Reported by Sam Steingold <sds@gnu.org>.
38024
38025 2009-06-20  Jim Meyering  <meyering@redhat.com>
38026
38027         tests: make sc_require_test_exit_idiom more generic
38028         * top/maint.mk (Exit_witness_file): New overridable variable.
38029         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38030         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38031
38032 2009-06-19  Jim Meyering  <meyering@redhat.com>
38033
38034         hash: reverse order of src/dst parameters in an internal interface
38035         * lib/hash.c (transfer_entries): Reverse order of parameters to
38036         put DST before SRC.  Adjust callers.
38037
38038         tests: test-hash: avoid wholesale duplication
38039         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38040         Instead, use a loop and add a single conditional.
38041
38042         tests: test-hash: allow seed selection via a command line argument
38043         * tests/test-hash.c (get_seed): New function.
38044         (main): Use it.
38045
38046 2009-06-19  Eric Blake  <ebb9@byu.net>
38047
38048         hash: avoid memory leak on allocation failure
38049         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38050         failure.  Factor repeated algorithm...
38051         (transfer_entries): ...into new helper routine.
38052         (hash_delete): React to hash_rehash return value.
38053
38054         hash: reduce memory pressure in hash_rehash no-op case
38055         * lib/hash.c (next_prime): Avoid overflow.
38056         (hash_initialize): Factor bucket size computation...
38057         (compute_bucket_size): ...into new helper function.
38058         (hash_rehash): Use new function and open coding to reduce memory
38059         pressure, and avoid a memory leak in USE_OBSTACK code.
38060         Reported by Jim Meyering.
38061
38062 2009-06-18  Eric Blake  <ebb9@byu.net>
38063
38064         hash: make rotation more obvious
38065         * modules/hash (Depends-on): Add bitrotate and stdint.
38066         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38067         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38068         (SIZE_MAX): Rely on headers for definition.
38069         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38070         (raw_hasher): Use rotr_sz.
38071         Suggested by Jim Meyering.
38072
38073         hash: fix memory leak in last patch
38074         * lib/hash.c (hash_rehash): Avoid memory leak.
38075
38076         hash: avoid no-op rehashing
38077         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38078
38079         hash: provide default callback functions
38080         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38081         (hash_initialize): Use them as defaults.
38082         * tests/test-hash.c (main): Test this.
38083
38084         hash: minor optimization
38085         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38086         when possible.
38087         (hash_initialize): Document this promise.
38088         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38089         * tests/test-hash.c (hash_compare_strings): Test this.
38090
38091 2009-06-18  Bruno Haible  <bruno@clisp.org>
38092
38093         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38094         going to be replaced anyway.
38095
38096 2009-06-18  Bruno Haible  <bruno@clisp.org>
38097
38098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38099         in one place.
38100         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38101         be replaced anyway.
38102
38103 2009-06-18  Eric Blake  <ebb9@byu.net>
38104
38105         hash: check for resize before insertion
38106         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38107         threshold before insertion, so that a pathological hash_rehash
38108         that fills every bucket can still trigger another rehash.
38109
38110 2009-06-18  Jim Meyering  <meyering@redhat.com>
38111
38112         hash-tests: add a loop around the small tests
38113         * tests/test-hash.c (main): Repeat small tests with selected
38114         small initial table sizes.
38115
38116 2009-06-17  Eric Blake  <ebb9@byu.net>
38117
38118         hash: minor cleanups
38119         * lib/hash.h (hash_entry): Make opaque, by moving...
38120         * lib/hash.c (hash_entry): ...here.
38121         (hash_insert): Clarify restrictions on what can be inserted.
38122         (hash_get_next): Clarify when it is safe to remove an element
38123         during traversal.
38124         (check_tuning): Skip verification when tuning is known safe.
38125         (hash_initialize): Clarify restrictions on tuning.
38126
38127 2009-06-17  Jim Meyering  <jim@meyering.net>
38128         and Eric Blake  <ebb9@byu.net>
38129
38130         hash-tests: new module
38131         * modules/hash-tests: New file.
38132         * tests/test-hash.c: New file.
38133
38134 2009-06-17  Eric Blake  <ebb9@byu.net>
38135
38136         strstr-simple: document new module
38137         * MODULES.html.sh: Document new module.
38138
38139         strstr, strcasestr: replace on platforms with broken memchr
38140         * modules/strstr: Split into...
38141         * modules/strstr-simple: ...new module that does not care about
38142         performance, but does care about glibc bug.
38143         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38144         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38145         if platform memchr is broken, per Debian bug 521737.
38146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38147         memchr.
38148         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38149         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38150         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38151         * modules/mountlist (Depends-on): Add strstr-simple.
38152         * modules/gen-uni-tables (Depends-on): Likewise.
38153         * modules/argz (Depends-on): Add strstr.
38154
38155 2009-06-17  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/posix_spawn-internal (Depends-on): Add errno.
38158
38159 2009-06-17  Bruno Haible  <bruno@clisp.org>
38160
38161         Define missing ESTALE on Interix 3.5.
38162         * lib/errno.in.h (ESTALE): Assign a value if missing.
38163         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38164         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38165         missing.
38166         * doc/posix-headers/errno.texi: Mention the Interix bug.
38167         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38168
38169 2009-06-15  Eric Blake  <ebb9@byu.net>
38170
38171         memchr, memchr2: add valgrind exception
38172         * lib/memchr.valgrind: New file.
38173         * lib/memchr2.valgrind: New file.
38174         * modules/memchr (Files): Distribute valgrind file.
38175         * modules/memchr2 (Files): Likewise.
38176
38177         docs: memchr is no longer obsolete
38178         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38179         * lib/string.in.h (memchr): Simplify logic.
38180
38181 2009-06-14  Jim Meyering  <meyering@redhat.com>
38182
38183         link-follow: fix the "checking..." message to not mention trailing slash
38184         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38185         never considered trailing slashes.
38186
38187 2009-06-14  Bruno Haible  <bruno@clisp.org>
38188
38189         * m4/memchr.m4: Mention also the bug on IA-64.
38190         * doc/posix-functions/memchr.texi: Likewise.
38191
38192 2009-06-12  Eric Blake  <ebb9@byu.net>
38193
38194         memchr: detect broken x86_64 and alpha implementations
38195         * modules/memchr-tests (Depends-on): Move mmap detection...
38196         * modules/memchr (Depends-on): ...here.
38197         (configure.ac): Set indicator.
38198         * lib/string.in.h (memchr): Declare replacement.
38199         * modules/string (Makefile.am): Trigger replacement.
38200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38201         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38202         bugs.
38203         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38204         * modules/getpagesize (License): Relax license.
38205
38206 2009-06-11  Bruno Haible  <bruno@clisp.org>
38207
38208         * lib/idpriv.h: Add more references.
38209
38210 2009-06-08  Bruno Haible  <bruno@clisp.org>
38211
38212         Tests for module 'idpriv-droptemp'.
38213         * modules/idpriv-droptemp-tests: New file.
38214         * tests/test-idpriv-droptemp.sh: New file.
38215         * tests/test-idpriv-droptemp.su.sh: New file.
38216         * tests/test-idpriv-droptemp.c: New file.
38217
38218         New module 'idpriv-droptemp'.
38219         * lib/idpriv-droptemp.c: New file.
38220         * modules/idpriv-droptemp: New file.
38221
38222 2009-06-08  Bruno Haible  <bruno@clisp.org>
38223
38224         Tests for module 'idpriv-drop'.
38225         * modules/idpriv-drop-tests: New file.
38226         * tests/test-idpriv-drop.sh: New file.
38227         * tests/test-idpriv-drop.su.sh: New file.
38228         * tests/test-idpriv-drop.c: New file.
38229
38230         New module 'idpriv-drop'.
38231         * lib/idpriv.h: New file.
38232         * lib-idpriv-drop.c: New file.
38233         * m4/idpriv.m4: New file.
38234         * modules/idpriv-drop: New file.
38235
38236 2009-06-08  Bruno Haible  <bruno@clisp.org>
38237
38238         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38239         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38241         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38242         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38243         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38244         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38245
38246 2009-06-08  Eric Blake  <ebb9@byu.net>
38247
38248         test-strstr: use memory fence, when possible
38249         * tests/test-strstr.c (main): Use memory fence, in order to be
38250         more likely to trigger Debian bug 521737.
38251         * modules/strstr-tests (Files): Pull in additional files.
38252
38253         memchr: no longer obsolete, for wider field testing
38254         * modules/memchr (Status, Notice): Delete, this module is no
38255         longer obsolete.
38256         * modules/vasnprintf (Depends-on): Add memchr.
38257
38258 2009-06-07  Jim Meyering  <meyering@redhat.com>
38259
38260         hash: declare some functions with the warn_unused_result attribute
38261         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38262
38263 2009-06-07  Bruno Haible  <bruno@clisp.org>
38264
38265         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38266         Reported by Eric Blake.
38267
38268 2009-06-06  Eric Blake  <ebb9@byu.net>
38269
38270         test-alignof: fix typo with long double
38271         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38272         compiler error.
38273
38274 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38275
38276         Escape non-texinfo { and }s.
38277         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38278         markup error.
38279
38280 2009-06-04  Jim Meyering  <meyering@redhat.com>
38281
38282         gitlog-to-changelog: don't infloop on an empty commit log
38283         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38284         Reported by Boris Petersen <transacid@centerim.org>.
38285
38286 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38287
38288         version-etc: extend for packagers
38289         Add three new configure options, intended for packagers:
38290           --with-packager="packager name"
38291           --with-packager-version="packager-specific version"
38292           --with-packager-bug-reports="packager bug reporting"
38293         An example with coreutils:
38294           $ ./configure \
38295             --with-packager=Gentoo \
38296             --with-packager-bug-report=http://bugs.gentoo.org/ \
38297             --with-packager-version="patchset 1.6"
38298           $ ./src/ls --version | head -n2
38299           ls (GNU coreutils) 7.1-dirty
38300           Packaged by Gentoo (patchset 1.6)
38301         Note that the bug reporting info via --help doesn't show up because
38302         coreutils uses its own custom emit_bug_reporting_address() implementation
38303         in src/system.h.  If it didn't, it'd look like:
38304           $ ./src/ls --help | tail -n4
38305           Report bugs to <bug-coreutils@gnu.org>.
38306           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38307           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38308           General help using GNU software: <http://www.gnu.org/gethelp/>.
38309         * lib/version-etc.c: Print new information, if provided.
38310         * m4/version-etc.m4: New file.
38311         * modules/version-etc (Files): Add m4/version-etc.m4.
38312         (configure.ac): Add gl_VERSION_ETC.
38313
38314 2009-05-31  Bruno Haible  <bruno@clisp.org>
38315
38316         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38317         and 'int64_t'.
38318         * modules/alignof-tests (Dependencies): Add stdint.
38319         Reported by Eric Blake.
38320
38321 2009-05-31  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38324         restriction due to compiler bugs.
38325         Reported by Eric Blake.
38326
38327 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38328             Bruno Haible  <bruno@clisp.org>
38329
38330         Fix test-alignof failure.
38331         * lib/alignof.h (alignof_slot): New macro.
38332         (alignof_type): New macro, with the same semantics as the previous
38333         'alignof'.
38334         (alignof): Alias to alignof_slot.
38335         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38336         check that the results are usable as constant expressions.
38337
38338 2009-05-31  Bruno Haible  <bruno@clisp.org>
38339
38340         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38341         * tests/test-memchr.c (main): Check that memchr does not read past the
38342         first occurrence of the byte.
38343         * tests/test-strstr.c (main): Update comment.
38344         Suggested by Eric Blake.
38345
38346 2009-05-30  Bruno Haible  <bruno@clisp.org>
38347
38348         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38349         detail how to use dumpbin.
38350         Reported by David Byron <dbyron@dbyron.com>.
38351
38352 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38353
38354         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38355
38356 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38357
38358         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38359
38360 2009-05-28  Bruno Haible  <bruno@clisp.org>
38361
38362         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38363         build-aux/ files.
38364
38365 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38366
38367         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38368
38369 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38370
38371         * gnulib-tool (sed_transform_main_lib_file)
38372         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38373         regexps.
38374
38375 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38376
38377         * tests/test-strstr.c: Add another self-test.
38378         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38379         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38380
38381 2009-05-23  Bruno Haible  <bruno@clisp.org>
38382
38383         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38384         change.
38385
38386 2009-05-21  Bruno Haible  <bruno@clisp.org>
38387
38388         Simplify use of mode_t varargs.
38389         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38390         uses 'mode_t' or 'int'.
38391         * lib/openat.c (openat): Likewise.
38392         * lib/open-safer.c (open_safer): Likewise.
38393         * m4/mode_t.m4: New file.
38394         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38395         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38396         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38397         * modules/open (Files): Add m4/mode_t.m4.
38398         * modules/openat (Files): Likewise.
38399         * modules/fcntl-safer (Files): Likewise.
38400         Suggested by Eric Blake.
38401
38402 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38403
38404         * doc/glibc-functions/fallocate.texi: New file.
38405         * doc/gnulib.texi: Include it.
38406
38407 2009-05-21  Eric Blake  <ebb9@byu.net>
38408             Bruno Haible  <bruno@clisp.org>
38409
38410         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38411         invocations.
38412         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38413
38414 2009-05-21  Eric Blake  <ebb9@byu.net>
38415             Bruno Haible  <bruno@clisp.org>
38416
38417         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38418         include_next. Fix of 2008-11-20 commit.
38419         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38420         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38421         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38422         NEXT_MATH_H.
38423         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38424         instead of NEXT_MATH_H.
38425
38426 2009-05-21  Bruno Haible  <bruno@clisp.org>
38427
38428         Avoid redefinition warnings for SIZE_MAX.
38429         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38430         Reported by Simon Josefsson.
38431
38432 2009-05-21  Bruno Haible  <bruno@clisp.org>
38433
38434         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38435         AC_CACHE_VAL.
38436
38437 2009-05-20  Bruno Haible  <bruno@clisp.org>
38438
38439         Make zeroptr.h work on mingw.
38440         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38441         mprotect.
38442         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38443         * modules/memchr2-tests (configure.ac): Likewise.
38444         * modules/memcmp-tests (configure.ac): Likewise.
38445         * modules/memmem-tests (configure.ac): Likewise.
38446         * modules/memrchr-tests (configure.ac): Likewise.
38447         Reported by Simon Josefsson.
38448
38449 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38450
38451         * tests/test-glob.c: Include string.h for strcmp prototype.
38452
38453 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38454
38455         * modules/getdelim (Depends-on): Add explicit stdint, although it
38456         was implicitly already pulled in via realloc-posix.
38457         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38458
38459 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38460
38461         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38462         G. Christensen" <tgc@jupiterrise.com>.
38463         * m4/sys_socket_h.m4: Check for sa_family_t.
38464         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38465         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38466         * tests/test-sys_socket.c: Check that sa_family_t works.
38467
38468 2009-05-18  Eric Blake  <ebb9@byu.net>
38469
38470         maint.mk: allow gnulib_dir in VPATH build
38471         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38472
38473 2009-05-15  Jim Meyering  <meyering@redhat.com>
38474
38475         maint.mk: Give gnulib_dir a default definition.
38476         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38477         Thus, most packages no longer need to specify this variable in cfg.mk
38478
38479 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38480
38481         rename.m4: fix typos that would make non-mingw cross-configure fail
38482         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38483
38484 2009-05-13  Eric Blake  <ebb9@byu.net>
38485
38486         mmap-anon: avoid out-of-order autoconf expansion
38487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38488         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38489         * modules/memchr-tests (Depends-on): Add extensions.
38490         * modules/memchr2-tests (Depends-on): Add extensions.
38491         * modules/memcmp-tests (Depends-on): Add extensions.
38492         * modules/memmem-tests (Depends-on): Add extensions.
38493         * modules/memrchr-tests (Depends-on): Add extensions.
38494
38495 2009-05-13  Bruno Haible  <bruno@clisp.org>
38496
38497         Make some tests ISO C 99 compliant.
38498         * tests/zerosize-ptr.h: New file.
38499         * tests/test-memchr.c: Include zerosize-ptr.h.
38500         (main): Use a zero-size object pointer instead of NULL.
38501         * tests/test-memchr2.c: Include zerosize-ptr.h.
38502         (main): Use a zero-size object pointer instead of NULL.
38503         * tests/test-memcmp.c: Include zerosize-ptr.h.
38504         (main): Use a zero-size object pointer instead of NULL.
38505         * tests/test-memmem.c: Include zerosize-ptr.h.
38506         (main): Use a zero-size object pointer instead of NULL.
38507         * tests/test-memrchr.c: Include zerosize-ptr.h.
38508         (main): Use a zero-size object pointer instead of NULL.
38509         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38510         m4/mmap-anon.m4.
38511         (Depends-on): Add getpagesize.
38512         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38513         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38514         m4/mmap-anon.m4.
38515         (Depends-on): Add getpagesize.
38516         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38517         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38518         m4/mmap-anon.m4.
38519         (Depends-on): Add getpagesize.
38520         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38521         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38522         m4/mmap-anon.m4.
38523         (Depends-on): Add getpagesize.
38524         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38525         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38526         m4/mmap-anon.m4.
38527         (Depends-on): Add getpagesize.
38528         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38529
38530 2009-05-12  Bruno Haible  <bruno@clisp.org>
38531
38532         Tests for module 'alignof'.
38533         * modules/alignof-tests: New file.
38534         * tests/test-alignof.c: New file.
38535
38536 2009-05-12  Bruno Haible  <bruno@clisp.org>
38537
38538         Fix alignof macro.
38539         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38540         vendor compilers that are always correct.
38541
38542 2009-05-12  Bruno Haible  <bruno@clisp.org>
38543
38544         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38545         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38546         not whether its fully works.
38547
38548 2009-05-12  Bruno Haible  <bruno@clisp.org>
38549
38550         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38551
38552 2009-05-12  Jim Meyering  <meyering@redhat.com>
38553
38554         * top/maint.mk: Adjust backslash alignment.
38555
38556 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38557
38558         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38559
38560 2009-05-11  Eric Blake  <ebb9@byu.net>
38561
38562         argp: avoid undefined behavior
38563         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38564         macros.
38565
38566 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38567
38568         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38569         user.name to prevent git commit from complaining.
38570
38571 2009-05-10  Bruno Haible  <bruno@clisp.org>
38572
38573         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38574         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38575         it rewrites every file name only once.
38576         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38577
38578 2009-05-08  Bruno Haible  <bruno@clisp.org>
38579
38580         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38581         instead of 'max'.
38582
38583 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38584
38585         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38586         sockaddr_storage test.
38587
38588 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38589
38590         * modules/sys_socket (Makefile.am): Substitute
38591         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38592         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38593         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38594         * tests/test-sys_socket.c: Check sockaddr_storage.
38595
38596 2009-05-08  Bruno Haible  <bruno@clisp.org>
38597
38598         New module 'alignof'.
38599         * lib/alignof.h: New file.
38600         * modules/alignof: New file.
38601
38602 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38603             Bruno Haible  <bruno@clisp.org>
38604
38605         Fix test-file-has-acl on FreeBSD.
38606         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38607         mask is implicitly added.
38608         * tests/test-file-has-acl.c: Include <signal.h>.
38609         (main): Terminate the test after 5 seconds.
38610         * modules/acl-tests (configure.ac): Check for alarm function.
38611
38612 2009-05-04  Bruno Haible  <bruno@clisp.org>
38613
38614         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38616         * modules/errno (configure.ac): Drop AC_REQUIRE.
38617         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38618         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38619
38620 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38621
38622         * modules/glob-tests: New module.
38623         * tests/test-glob.c: Add.
38624
38625 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38626
38627         * modules/fnmatch-tests: New module.
38628         * tests/test-fnmatch.c: Add.
38629
38630 2009-05-04  Eric Blake  <ebb9@byu.net>
38631
38632         maint: make the new no-submodule-changes rule VPATH-safe
38633         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38634
38635 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38636             Bruno Haible  <bruno@clisp.org>
38637
38638         acl: Fix infinite loop on FreeBSD.
38639         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38640         of return value from acl_get_entry.
38641         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38642         Likewise.
38643
38644 2009-05-03  Bruno Haible  <bruno@clisp.org>
38645
38646         * lib/acl-internal.h (acl_entries): Clarify return value.
38647         * lib/acl_entries.c (acl_entries): Likewise.
38648
38649 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38650
38651         Bug fix in acl module.
38652         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38653
38654 2009-05-03  Bruno Haible  <bruno@clisp.org>
38655
38656         Create gperf-generated file in the source dir, not in the build dir.
38657         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38658         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38659         * modules/unicase/locale-language (unicase/locale-languages.h):
38660         Likewise.
38661         * modules/unicase/special-casing (unicase/special-casing-table.h):
38662         Likewise.
38663         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38664         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38665         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38666         Reported by Ralf Wildenhues.
38667
38668 2009-05-03  Bruno Haible  <bruno@clisp.org>
38669
38670         * modules/fnmatch (Description, configure.ac): Taken from
38671         fnmatch-posix.
38672         * modules/fnmatch-posix: Turn into a symbolic reference to the
38673         'fnmatch' module, and deprecate.
38674         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38675
38676 2009-05-03  Bruno Haible  <bruno@clisp.org>
38677
38678         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38679         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38680         Reported by Ralf Wildenhues.
38681
38682 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38683
38684         * m4/fnmatch.m4: Fix fnmatch re-define.
38685
38686 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38687
38688         priv-set: new module and tests; adapt write-any-file
38689         * lib/priv-set.c: New file.
38690         * lib/priv-set.h: New file.
38691         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38692         * lib/write-any-file.c: Simplify by using priv-set module.
38693         * m4/priv-set.m4: New file.
38694         * modules/priv-set: New file.
38695         * modules/unlinkdir: Add dependency on priv-set module.
38696         * modules/write-any-file: Likewise.
38697
38698         Tests for module 'priv-set'.
38699         * modules/priv-set-tests: New file.
38700         * tests/test-priv-set.c: New file.
38701
38702 2009-05-03  Jim Meyering  <meyering@redhat.com>
38703             Bruno Haible  <bruno@clisp.org>
38704
38705         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38706         use the converted UTF-8 variant of the name instead.
38707
38708 2009-05-03  Jim Meyering  <meyering@redhat.com>
38709
38710         tests: tighten some getdate tests
38711         * tests/test-getdate.c (main): Tighten tests: require equality,
38712         not just greater than.  Set TZ envvar to UTC0.
38713
38714 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38715
38716         getdate: correctly interpret "next monday" when run on a Monday
38717         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38718         that e.g., "next tues" (when run on a tuesday) results in a date
38719         that is one week in the future, and not today's date.
38720         I.e., add a week when the wday is the same as the current one.
38721         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38722         and earlier by Martin Bernreuther and Jan Minář.
38723         * tests/test-getdate.c (main): Check that "next DAY" is always in
38724         the future and that "last DAY" is always in the past.
38725
38726 2009-05-02  Jim Meyering  <meyering@redhat.com>
38727
38728         build: ensure that a release build fails when a submodule is unclean
38729         * top/maint.mk (no-submodule-changes): New rule.
38730         (alpha beta major): Depend on it.
38731
38732 2009-05-02  Bruno Haible  <bruno@clisp.org>
38733
38734         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38735         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38736         shell variable gl_fnmatch_required to detect which variant is
38737         requested.
38738         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38739         gl_FUNC_FNMATCH_POSIX.
38740         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38741         exclude fnmatch-posix.
38742
38743 2009-05-02  Bruno Haible  <bruno@clisp.org>
38744
38745         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38746         * modules/mbsrtowcs (License): Change to LGPLv2+.
38747         * modules/strnlen1 (License): Likewise.
38748         Reported by Simon Josefsson.
38749
38750 2009-05-02  Bruno Haible  <bruno@clisp.org>
38751
38752         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38753         "cross".
38754         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38755         gnulib-tool was called with option --source-base=lib.
38756
38757 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38758
38759         Use automake *-local hooks without commands, for extensibility.
38760         * modules/localcharset (Makefile.am): Rename install-exec-local
38761         rule to install-exec-localcharset, and make it a prerequisite of
38762         install-exec-local.  Likewise, rename the uninstall-local rule to
38763         uninstall-localcharset, and make it a prerequisite of the former.
38764
38765 2009-05-01  Bruno Haible  <bruno@clisp.org>
38766
38767         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38768         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38769         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38770         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38771         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38772         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38773         m4/locale-zh.m4, m4/codeset.m4.
38774
38775         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38776         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38777         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38778         m4/locale-zh.m4.
38779
38780         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38781         REPLACE_WCRTOMB if mbstate_t must be replaced.
38782         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38783         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38784
38785 2009-05-01  Bruno Haible  <bruno@clisp.org>
38786
38787         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38788         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38789         dngettext, dcngettext, textdomain, bindtextdomain,
38790         bind_textdomain_codeset): Undefine before redefining.
38791
38792 2009-04-30  Bruno Haible  <bruno@clisp.org>
38793
38794         Fix bug introduced on 2009-04-25.
38795         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38796         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38797         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38798         is defined.
38799         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38800         is defined.
38801         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38802         is defined.
38803         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38804
38805 2009-04-28  Bruno Haible  <bruno@clisp.org>
38806
38807         Comment tweaks.
38808         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38809         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38810         * lib/unicase.h (u*_casexfrm): Likewise.
38811         Reported by Paolo Bonzini.
38812
38813 2009-04-28  Bruno Haible  <bruno@clisp.org>
38814
38815         Fix a compilation error.
38816         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38817         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38818         Reported by Jim Meyering.
38819
38820 2009-04-27  Bruno Haible  <bruno@clisp.org>
38821
38822         New module 'libunistring'.
38823         * modules/libunistring: New file.
38824         * m4/libunistring.m4: New file.
38825         * MODULES.html.sh (Unicode string functions): Add it.
38826
38827 2009-04-27  Eric Blake  <ebb9@byu.net>
38828
38829         maint.mk: allow package-specific header to provide <config.h>
38830         * top/maint.mk (sc_require_config_h): New variable.
38831         (sc_require_config_h, sc_require_config_h_first): Use it.
38832
38833 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38834
38835         * top/maint.mk (sc_avoid_if_before_free): Except
38836         useless-if-before-free script.
38837
38838 2009-04-27  Eric Blake  <ebb9@byu.net>
38839
38840         maintainer-makefile: depend on all required helper scripts
38841         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38842         useless-if-before-free.
38843         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38844         version, rather than assuming gnulib checkout is available.
38845         Reported by Simen Josefsson.
38846
38847 2009-04-26  Bruno Haible  <bruno@clisp.org>
38848
38849         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38850         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38851         "../" or "..".
38852
38853 2009-04-26  Bruno Haible  <bruno@clisp.org>
38854
38855         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38856         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38857         AC_LIB_HAVE_LINKFLAGS.
38858
38859 2009-04-26  Bruno Haible  <bruno@clisp.org>
38860
38861         Simplify calling convention of u*_conv_from_encoding.
38862         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38863         u32_conv_from_encoding): Expect a resultbuf argument and return the
38864         result directly as a pointer.
38865         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38866         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38867         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38868         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38869         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38870         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38871         Update.
38872         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38873         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38874         * lib/vasnprintf.c (VASNPRINTF): Update.
38875         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38876         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38877         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38878         * NEWS: Mention the change.
38879
38880 2009-04-26  Bruno Haible  <bruno@clisp.org>
38881
38882         Simplify calling convention of u*_conv_to_encoding.
38883         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38884         u32_conv_to_encoding): Expect a resultbuf argument and return the
38885         result directly as a pointer.
38886         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38887         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38888         freeing scaled_offsets if mem_iconveha failed.
38889         * lib/unicase/u-casexfrm.h (FUNC): Update.
38890         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38891         * lib/vasnprintf.c (VASNPRINTF): Update.
38892         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38893         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38894         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38895         * NEWS: Mention the change.
38896
38897 2009-04-26  Bruno Haible  <bruno@clisp.org>
38898
38899         Avoid test failures on AIX and OSF/1.
38900         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38901         malloc(0).
38902         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38903         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38904         Likewise.
38905         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38906         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38907         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38908         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38909         * doc/posix-functions/malloc.texi: Document the portability problem
38910         related to malloc(0).
38911
38912 2009-04-26  Bruno Haible  <bruno@clisp.org>
38913
38914         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38915         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38916         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38917
38918 2009-04-25  Bruno Haible  <bruno@clisp.org>
38919
38920         Avoid link error when creating a namespace clean library.
38921         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38922         as macro with arguments if already defined as an alias.
38923         * lib/signbitf.c (gl_signbitf): Don't undefine.
38924         * lib/signbitd.c (gl_signbitd): Don't undefine.
38925         * lib/signbitl.c (gl_signbitl): Don't undefine.
38926
38927 2009-04-25  Jim Meyering  <meyering@redhat.com>
38928
38929         vc-list-files: fix another quoting bug
38930         * build-aux/vc-list-files: Avoid sed backslash expansion
38931         of pathological directory names.
38932
38933 2009-04-25  Eric Blake  <ebb9@byu.net>
38934
38935         vc-list-files: fix shell quoting error
38936         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38937         timestamp.
38938
38939 2009-04-25  Jim Meyering  <meyering@redhat.com>
38940
38941         vc-list-files: restore lost functionality with subdir argument
38942         * build-aux/vc-list-files: When given a non-"." sub-directory
38943         argument, substitute the $dir/ prefix back onto each resulting name.
38944         Otherwise, coreutils' root_tests check would fail.
38945
38946 2009-04-24  Eric Blake  <ebb9@byu.net>
38947
38948         vc-list-files: ignore git symlinks
38949         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38950         than ls-files, to ignore git symlinks.
38951
38952         maint.mk: import improvements from m4
38953         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38954         (move_if_change): Delete unused macro.
38955         (news-date-check, vc-diff-check): Support VPATH builds.
38956         (announcement): Likewise.  Split --bootstrap-tools list...
38957         (boostrap-tools): ...into separate list, which can be overridden
38958         in cfg.mk.
38959         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38960         requiring dependency on useless-if-before-free module.
38961         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38962         Support VPATH builds.
38963
38964 2009-04-24  Jim Meyering  <meyering@redhat.com>
38965
38966         maint.mk: remove coreutils-specific rules and variables
38967         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38968         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38969         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38970
38971         maint.mk: remove obsolete rule
38972         * top/maint.mk (rel-check): Remove rule.
38973         (WGET, WGETFLAGS): Remove now-unused variables.
38974
38975 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38976
38977         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38978         consistency.
38979
38980         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38981         '$(PATH_SEPARATOR)' instead of ':'.
38982
38983 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38984
38985         * lib/getopt1.c (main): Use 'const' for static array.
38986
38987 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38988
38989         * top/maint.mk: Sync with coreutils.
38990         * NEWS: Explain incompatibilities.
38991
38992 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38993             Bruno Haible  <bruno@clisp.org>
38994
38995         Fix cross-compilation results.
38996         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38997         statement, as third argument of AC_TRY_RUN.
38998         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38999         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39000         Likewise.
39001         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39002         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39003         Likewise.
39004         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39005         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39006         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39007
39008 2009-04-20  Bruno Haible  <bruno@clisp.org>
39009
39010         Avoid test failure on mingw.
39011         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39012
39013 2009-04-20  Bruno Haible  <bruno@clisp.org>
39014
39015         Avoid compilation error on mingw.
39016         * modules/localename-tests (Depends-on): Add locale.
39017
39018 2009-04-19  Bruno Haible  <bruno@clisp.org>
39019
39020         Support for building a shared library on Windows platforms.
39021         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39022         (main): Test the presence of UNINORM_NFC here.
39023         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39024         (main): Test the presence of UNINORM_NFD here.
39025         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39026         (main): Test the presence of UNINORM_NFKC here.
39027         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39028         (main): Test the presence of UNINORM_NFKD here.
39029
39030 2009-04-19  Bruno Haible  <bruno@clisp.org>
39031
39032         Avoid a compiler warning.
39033         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39034         Change type of variable 'sequence'.
39035
39036 2009-04-19  Bruno Haible  <bruno@clisp.org>
39037
39038         * modules/configmake (Makefile.am): When the contents of configmake.h
39039         does not change, arrange to preserve its modification time.
39040
39041 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39042
39043         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39044         gettext domain.
39045
39046 2009-04-16  Jim Meyering  <meyering@redhat.com>
39047
39048         useless-if-before-free: improve conversion code
39049         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39050         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39051
39052 2009-04-14  Bruno Haible  <bruno@clisp.org>
39053
39054         * modules/fcntl (Depends-on): Add extensions.
39055         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39056
39057 2009-04-12  Ben Pfaff  <blp@gnu.org>
39058
39059         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39060         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39061
39062 2009-03-20  Ben Pfaff  <blp@gnu.org>
39063
39064         Make rename replace existing destinations on Windows.
39065         * m4/rename.m4: Add test for Mingw.
39066         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39067         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39068         * doc/posix-functions/rename.texi: Document.
39069
39070 2009-04-10  Bruno Haible  <bruno@clisp.org>
39071
39072         New include file "iconveh.h".
39073         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39074         * lib/striconveh.h: Include it.
39075         (enum iconv_ilseq_handler): Remove definition.
39076         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39077         striconveh.h.
39078         * lib/striconveha.c: Include striconveh.h.
39079         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39080         * modules/striconveh (Files): Add lib/iconveh.h.
39081         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39082         lib/striconveh.h.
39083
39084 2009-04-10  Bruno Haible  <bruno@clisp.org>
39085
39086         * lib/uniconv.h: Update comment.
39087
39088 2009-04-10  Bruno Haible  <bruno@clisp.org>
39089
39090         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39091         always.
39092         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39093         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39094         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39095         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39096         "unistring-notinline.h", so that the function gets defined always.
39097         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39098         * lib/unistr/u8-uctomb.c: Likewise.
39099         * lib/unistr/u16-mbtouc.c: Likewise.
39100         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39101         * lib/unistr/u16-uctomb.c: Likewise.
39102         * lib/unistr/u32-mbtouc.c: Likewise.
39103         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39104         * lib/unistr/u32-uctomb.c: Likewise.
39105
39106 2009-04-10  Bruno Haible  <bruno@clisp.org>
39107
39108         Mark 'utime' obsolete.
39109         * modules/utime (Status, Notice): New sections.
39110         Suggested by Jim Meyering.
39111
39112         Fix cross-compile guess for utime test.
39113         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39114         autoconf.
39115         * doc/posix-functions/utime.texi: Give more precisions.
39116         Reported by Jan <ipif@ymail.com>.
39117
39118 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39119
39120         filevercmp: correct today's change
39121         * lib/filevercmp.c: Also handle coreutils' test inputs.
39122         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39123
39124         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39125         for reporting it.
39126         * lib/filevercmp.c: Special handle for "", "." and "..".
39127         * tests/test-filevercmp.c: Enlarge the set suite.
39128
39129 2009-04-07  Jim Meyering  <meyering@redhat.com>
39130
39131         useless-if-before-free: show how to remove braced useless free, too
39132         * build-aux/useless-if-before-free: still only in a comment, though.
39133
39134 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39135
39136         maint.mk: import changes to syntax-check macros from coreutils
39137         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39138         Use them in the relevant macros.
39139
39140 2009-04-06  Bruno Haible  <bruno@clisp.org>
39141
39142         Fix unportable use of bit-fields.
39143         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39144         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39145         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39146
39147 2009-04-06  Bruno Haible  <bruno@clisp.org>
39148
39149         Avoid test failures on AIX and OSF/1.
39150         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39151         that malloc(0) = NULL.
39152         * tests/unicase/test-u8-tolower.c (check): Likewise.
39153         * tests/unicase/test-u8-totitle.c (check): Likewise.
39154         * tests/unicase/test-u8-toupper.c (check): Likewise.
39155         * tests/unicase/test-u16-casefold.c (check): Likewise.
39156         * tests/unicase/test-u16-tolower.c (check): Likewise.
39157         * tests/unicase/test-u16-totitle.c (check): Likewise.
39158         * tests/unicase/test-u16-toupper.c (check): Likewise.
39159         * tests/unicase/test-u32-casefold.c (check): Likewise.
39160         * tests/unicase/test-u32-tolower.c (check): Likewise.
39161         * tests/unicase/test-u32-totitle.c (check): Likewise.
39162         * tests/unicase/test-u32-toupper.c (check): Likewise.
39163         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39164         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39165         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39166         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39167         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39168         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39169         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39170         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39171         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39172         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39173         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39174         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39175
39176 2009-04-05  Bruno Haible  <bruno@clisp.org>
39177
39178         Work around an autoconf limitation.
39179         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39180         comment line if it would be longer than 3 KB.
39181
39182 2009-04-05  Bruno Haible  <bruno@clisp.org>
39183
39184         Avoid test failure with libiconv-1.13.
39185         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39186         of the expected test results.
39187
39188 2009-04-05  Bruno Haible  <bruno@clisp.org>
39189
39190         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39191         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39192         that it should be installed.
39193
39194 2009-04-05  Bruno Haible  <bruno@clisp.org>
39195
39196         * gnulib-tool: New option --copy-file.
39197         (func_usage): Document it.
39198         (func_dest_tmpfilename): Moved out of func_import.
39199         (func_add_file, func_update_file): New functions, extracted from
39200         func_import.
39201         (func_import): Update.
39202
39203 2009-04-05  Karl Berry  <karl@gnu.org>
39204
39205         * README: prominently mention gnulib-tool.
39206         Rearrange sections so getting the code is near the top.
39207
39208 2009-04-05  Bruno Haible  <bruno@clisp.org>
39209
39210         * lib/unicase.h: Mention u*_cmp2.
39211         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39212         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39213         * lib/unicase/ulc-casecmp.c: Likewise.
39214         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39215         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39216         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39217         unistr/u8-cmp.
39218         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39219         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39220         unistr/u16-cmp.
39221         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39222         unistr/u32-cmp.
39223
39224         * lib/uninorm.h: Mention u*_cmp2.
39225         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39226         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39227         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39228         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39229         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39230         unistr/u8-cmp.
39231         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39232         unistr/u16-cmp.
39233         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39234         unistr/u32-cmp.
39235
39236         New module 'unistr/u32-cmp2'.
39237         * lib/unistr/u32-cmp2.c: New file.
39238         * modules/unistr/u32-cmp2: New file.
39239
39240         New module 'unistr/u16-cmp2'.
39241         * lib/unistr/u16-cmp2.c: New file.
39242         * modules/unistr/u16-cmp2: New file.
39243
39244         New module 'unistr/u8-cmp2'.
39245         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39246         * lib/unistr/u8-cmp2.c: New file.
39247         * lib/unistr/u-cmp2.h: New file.
39248         * modules/unistr/u8-cmp2: New file.
39249
39250 2009-04-05  Bruno Haible  <bruno@clisp.org>
39251
39252         * lib/unictype.h (uc_property_is_valid): New macro.
39253         * tests/unictype/test-pr_byname.c (main): Use it.
39254
39255         * lib/unistr.h: Doc fixes.
39256         * lib/uniconv.h: Doc fixes.
39257         * lib/unictype.h: Doc fixes.
39258
39259 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39260
39261         Port coreutils 7.2 to Solaris 8.
39262
39263         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39264         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39265         for Solaris 8.  This is a bit of a hack, as it means it's the
39266         caller's responsibility to add -lnsl if needed, but most likely it
39267         won't be needed since only getaddrinfo uses this and getaddrinfo
39268         isn't needed on Solaris 8.
39269
39270         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39271         problem to Solaris 8 encountered with coreutils 7.2, which
39272         resulted in a message "fnmatch.c:292: warning: passing argument 4
39273         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39274         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39275
39276 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39277
39278         * m4/ld-version-script.m4: Add FIXME comment.
39279
39280 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39281
39282         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39283         SOVERSION variable.
39284
39285 2009-04-02  Bruno Haible  <bruno@clisp.org>
39286
39287         * Makefile (info, html, dvi, pdf): Combine the rules.
39288         Suggested by Jim Meyering.
39289
39290 2009-04-01  Bruno Haible  <bruno@clisp.org>
39291
39292         * Makefile (info, html, dvi, pdf): New targets.
39293         Reported by Reuben Thomas <rrt@sc3d.org>.
39294
39295 2009-04-01  Bruno Haible  <bruno@clisp.org>
39296
39297         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39298         can be put into PATH.
39299         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39300
39301 2009-04-01  Bruno Haible  <bruno@clisp.org>
39302
39303         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39304
39305 2009-04-01  Bruno Haible  <bruno@clisp.org>
39306
39307         Rename module 'visibility'.
39308         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39309         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39310         * doc/gnulib.texi: Update.
39311         * MODULES.html.sh (Misc): Update.
39312         * NEWS: Mention the change.
39313
39314 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39315
39316         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39317         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39318         Eric Blake <ebb9@byu.net> for review.
39319         * MODULES.html.sh: Add lib-msvc-compat.
39320         * doc/gnulib.texi: Link to new section.
39321         * m4/ld-output-def.m4: New file.
39322         * doc/ld-output-def.texi: New file.
39323
39324 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39325
39326         Rename ld-version-script to lib-symbol-versions.  Suggested by
39327         Bruno Haible <bruno@clisp.org>.
39328         * modules/ld-version-script: Renamed to lib-symbol-versions.
39329         * doc/ld-version-script.texi: Fix module name.
39330         * MODULES.html.sh: Add lib-symbol-versions.
39331
39332 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39333
39334         * modules/u64-tests: New file.
39335         * tests/test-u64.c: New file.
39336
39337 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39338
39339         * MODULES.html.sh: Mention u64.
39340         * modules/u64: New module.
39341         * modules/crypto/sha512: Depend on u64 module instead of providing
39342         u64.h.
39343
39344 2009-03-27  Eric Blake  <ebb9@byu.net>
39345
39346         test-strerror: make debugging EAI_SYSTEM easier
39347         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39348         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39349         failure was EAI_SYSTEM.
39350
39351 2009-03-25  Bruno Haible  <bruno@clisp.org>
39352
39353         Fix a problem with --enable-relocatable on Solaris 7.
39354         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39355         since 2008-02-24.
39356
39357 2009-03-25  Eric Blake  <ebb9@byu.net>
39358
39359         test-sockets: avoid gcc warning
39360         * tests/test-sockets.c (main): Silence compiler warning.
39361
39362 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39363
39364         New modules nproc, pthread, contributed by Glen Lenker.
39365
39366         * MODULES.html.sh: Add pthread, nproc.
39367         * lib/nproc.c: New file.
39368         * lib/nproc.h: New file.
39369         * lib/pthread.in.h: New file.
39370         * m4/pthread.m4: New file.
39371         * modules/nproc: New file.
39372         * modules/pthread: New file.
39373
39374 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39375
39376         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39377         New variable.
39378
39379 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39380
39381         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39382         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39383         * tests/test-filevercmp.c: Add tests for backup suffixes.
39384
39385 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39386
39387         * modules/stdlib (Depends-on): Add stdint, needed when defining
39388         struct random_data on, for example, HP-UX 10.20.  Reported by
39389         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39390
39391 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39392
39393         * lib/readline.c (readline): Call fflush on stdout after printing
39394         prompt.
39395
39396 2009-03-20  Bruno Haible  <bruno@clisp.org>
39397
39398         Remove dependency from 'close' module to -lws2_32 on native Windows.
39399         * lib/close-hook.h: New file.
39400         * lib/close-hook.c: New file.
39401         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39402         w32sock.h.
39403         (_gl_close_fd_maybe_socket): Remove function.
39404         (rpl_close): Invoke execute_all_close_hooks instead of
39405         _gl_close_fd_maybe_socket.
39406         * lib/sockets.c: Include close-hook.h, w32sock.h.
39407         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39408         (close_sockets_hook): New variable.
39409         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39410         (gl_sockets_cleanup): Unregister it.
39411         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39412         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39413         * modules/close-hook: New file.
39414         * modules/close (Files): Remove lib/w32sock.h.
39415         (Depends-on): Add close-hook.
39416         (Link): Remove section.
39417         * modules/sockets (Files): Add lib/w32sock.h.
39418         (Depends-on): Add close-hook.
39419         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39420         invocation.
39421         * NEWS: Mention that LIB_CLOSE is gone.
39422
39423 2009-03-23  Eric Blake  <ebb9@byu.net>
39424
39425         signal-tests: test previous patch
39426         * tests/test-signal.c: New file.
39427         * modules/signal-tests: Likewise.
39428
39429         signal.h: always support 'volatile sig_atomic_t'
39430         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39431         (gl_SIGNAL_H_DEFAULTS): Add a default.
39432         * modules/signal (Makefile.am): Substitute if needed.
39433         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39434         users can blindly add volatile.
39435         * doc/posix-headers/signal.texi (signal.h): Document it.
39436         Reported by Matthew Woehlke.
39437
39438 2009-03-23  Jim Meyering  <meyering@redhat.com>
39439
39440         pathmax: PATH_MAX: use pathconf only when available
39441         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39442         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39443         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39444         This avoids a link failure in a PSP cross-compilation environment
39445         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39446
39447         * lib/vasnprintf.c (divide): Fix typo in comment.
39448
39449 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39450
39451         * gnulib-tool (func_filter_filelist): Fix comment.
39452
39453 2009-03-20  Bruno Haible  <bruno@clisp.org>
39454
39455         Make sockets.h self-contained.
39456         * lib/sockets.c: Include sockets.h first.
39457         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39458
39459 2009-03-19  Eric Blake  <ebb9@byu.net>
39460
39461         doc: mention more functions added in cygwin 1.7.0
39462         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39463         addition.
39464         * doc/posix-functions/log2f.texi: Likewise.
39465
39466 2009-03-19  Jim Meyering  <meyering@redhat.com>
39467
39468         fsusage: avoid syntax error due to statement-before-declaration
39469         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39470         after all declarations.  Reported by Matthew Woehlke in
39471         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39472
39473 2009-03-18  Eric Blake  <ebb9@byu.net>
39474
39475         build-aux/compile: sync from automake
39476         * build-aux/compile: New file, from automake.
39477         * config/srclist.txt: Mention build-aux/compile.
39478
39479 2009-03-17  Bruno Haible  <bruno@clisp.org>
39480
39481         * lib/git-merge-changelog.c: Fix typo in comment.
39482         Reported by Reuben Thomas <rrt@sc3d.org>.
39483
39484 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39485
39486         * m4/regex.m4: update and improve help for
39487         --without-included-regex.
39488
39489 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39490
39491         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39492         failure on missing include files.
39493
39494 2009-03-17  Eric Blake  <ebb9@byu.net>
39495
39496         doc: mention more functions added in cygwin 1.7.0
39497         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39498         addition.
39499         * doc/posix-functions/fwscanf.texi: Likewise.
39500         * doc/posix-functions/swprintf.texi: Likewise.
39501         * doc/posix-functions/swscanf.texi: Likewise.
39502         * doc/posix-functions/vfwprintf.texi: Likewise.
39503         * doc/posix-functions/vfwscanf.texi: Likewise.
39504         * doc/posix-functions/vswprintf.texi: Likewise.
39505         * doc/posix-functions/vswscanf.texi: Likewise.
39506         * doc/posix-functions/vwprintf.texi: Likewise.
39507         * doc/posix-functions/vwscanf.texi: Likewise.
39508         * doc/posix-functions/wcscasecmp.texi: Likewise.
39509         * doc/posix-functions/wcsdup.texi: Likewise.
39510         * doc/posix-functions/wcsftime.texi: Likewise.
39511         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39512         * doc/posix-functions/wprintf.texi: Likewise.
39513         * doc/posix-functions/wscanf.texi: Likewise.
39514         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39515
39516 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39517
39518         maint.mk: really add $(AM_MAKEFLAGS)
39519         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39520         was inadvertently omitted in the last commit.
39521         Spotted by Bruno Haible.
39522
39523         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39524         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39525         $(AM_MAKEFLAGS)' rather than plain `make'.
39526
39527         gnulib-tool: execute $MAKE not make
39528         * gnulib-tool: Default $MAKE to 'make'.
39529         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39530         than make.  Initialize $MAKE in the do-autobuild script.
39531
39532         gnulib-tool: use $MAKE not make in generated files
39533         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39534         make, in generated files.  Initialize $MAKE in the do-autobuild
39535         script.
39536
39537         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39538
39539         GNUmakefile: disable parallelism only for multiple, recursive targets
39540         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39541         additions in the Makefile.
39542         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39543         by Automake.
39544         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39545         are listed on the command line and at least one of them is
39546         listed in $(ALL_RECURSIVE_TARGETS).
39547
39548 2009-03-14  Bruno Haible  <bruno@clisp.org>
39549
39550         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39551         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39552         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39553         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39554         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39555         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39556         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39557         unistr/u8-uctomb.
39558         * modules/unistr/u8-strchr (Depends-on): Likewise.
39559         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39560         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39561         unistr/u16-uctomb.
39562         * modules/unistr/u16-strchr (Depends-on): Likewise.
39563         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39564
39565 2009-03-12  Bruno Haible  <bruno@clisp.org>
39566
39567         Work around select() bug on Interix 3.5.
39568         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39569         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39570         * m4/select.m4: New file.
39571         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39572         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39573         * modules/select (Files): Add m4/select.m4.
39574         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39575         * modules/nanosleep (Depends-on): Add select.
39576         * modules/poll (Depends-on): Likewise.
39577         * doc/posix-functions/select.texi: Mention the Interix bug.
39578         Reported by Markus Duft <mduft@gentoo.org>.
39579
39580         * lib/select.c: Renamed from lib/winsock-select.c.
39581         * modules/select (Files): Add lib/select.c, remove
39582         lib/winsock-select.c.
39583         (configure.ac): Update.
39584
39585 2009-03-12  Jim Meyering  <meyering@redhat.com>
39586
39587         avoid gcc warnings about unused macro definitions
39588         * lib/readtokens.c (STREQ): Remove unused definition.
39589         * lib/xmalloc.c (SIZE_MAX): Likewise.
39590         * lib/openat-die.c (N_): Likewise.
39591         * lib/mountlist.c (SIZE_MAX): Remove definition.
39592         Instead, include <stdint.h>.
39593         * lib/readutmp.c: Likewise.
39594         * modules/readutmp (Depends-on): Add stdint.
39595         * modules/mountlist (Depends-on): Add stdint.
39596         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39597
39598 2009-03-10  Bruno Haible  <bruno@clisp.org>
39599
39600         Tests for module 'mbmemcasecoll'.
39601         * modules/mbmemcasecoll-tests: New file.
39602         * tests/test-mbmemcasecoll1.sh: New file.
39603         * tests/test-mbmemcasecoll2.sh: New file.
39604         * tests/test-mbmemcasecoll3.sh: New file.
39605         * tests/test-mbmemcasecoll.c: New file.
39606
39607         New module 'mbmemcasecoll'.
39608         * lib/mbmemcasecoll.h: New file.
39609         * lib/mbmemcasecoll.c: New file.
39610         * modules/mbmemcasecoll: New file.
39611
39612         * tests/test-mbmemcasecmp.h: New file, extracted from
39613         tests/test-mbmemcasecmp.c.
39614         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39615         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39616         (main): Update.
39617         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39618
39619 2009-03-09  Bruno Haible  <bruno@clisp.org>
39620
39621         Tests for module 'mbmemcasecmp'.
39622         * modules/mbmemcasecmp-tests: New file.
39623         * tests/test-mbmemcasecmp1.sh: New file.
39624         * tests/test-mbmemcasecmp2.sh: New file.
39625         * tests/test-mbmemcasecmp3.sh: New file.
39626         * tests/test-mbmemcasecmp.c: New file.
39627
39628         New module 'mbmemcasecmp'.
39629         * lib/mbmemcasecmp.h: New file.
39630         * lib/mbmemcasecmp.c: New file.
39631         * modules/mbmemcasecmp: New file.
39632
39633 2009-03-09  Bruno Haible  <bruno@clisp.org>
39634
39635         Tests for module 'unicase/ulc-casecoll'.
39636         * modules/unicase/ulc-casecoll-tests: New file.
39637         * tests/unicase/test-ulc-casecoll1.sh: New file.
39638         * tests/unicase/test-ulc-casecoll2.sh: New file.
39639         * tests/unicase/test-ulc-casecoll.c: New file.
39640
39641         New module 'unicase/ulc-casecoll'.
39642         * lib/unicase.h (ulc_casecoll): New declaration.
39643         * lib/unicase/ulc-casecoll.c: New file.
39644         * modules/unicase/ulc-casecoll: New file.
39645
39646         New module 'unicase/ulc-casexfrm'.
39647         * lib/unicase.h (ulc_casexfrm): New declaration.
39648         * lib/unicase/ulc-casexfrm.c: New file.
39649         * modules/unicase/ulc-casexfrm: New file.
39650
39651 2009-03-09  Bruno Haible  <bruno@clisp.org>
39652
39653         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39654         invocations.
39655
39656         * m4/mbscasecmp.m4: Remove file.
39657         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39658         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39659
39660         * m4/mbscasestr.m4: Remove file.
39661         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39662         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39663
39664         * m4/mbschr.m4: Remove file.
39665         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39666         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39667
39668         * m4/mbscspn.m4: Remove file.
39669         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39670         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39671
39672         * m4/mbslen.m4: Remove file.
39673         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39674         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39675
39676         * m4/mbsncasecmp.m4: Remove file.
39677         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39678         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39679
39680         * m4/mbsnlen.m4: Remove file.
39681         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39682         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39683
39684         * m4/mbspbrk.m4: Remove file.
39685         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39686         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39687
39688         * m4/mbspcasecmp.m4: Remove file.
39689         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39690         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39691
39692         * m4/mbsrchr.m4: Remove file.
39693         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39694         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39695
39696         * m4/mbssep.m4: Remove file.
39697         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39698         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39699
39700         * m4/mbsspn.m4: Remove file.
39701         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39702         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39703
39704         * m4/mbsstr.m4: Remove file.
39705         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39706         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39707
39708         * m4/mbstok_r.m4: Remove file.
39709         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39710         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39711
39712         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39713
39714         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39715         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39716
39717         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39718
39719 2009-03-08  Bruno Haible  <bruno@clisp.org>
39720
39721         Tests for module 'unicase/ulc-casecmp'.
39722         * modules/unicase/ulc-casecmp-tests: New file.
39723         * tests/unicase/test-ulc-casecmp1.sh: New file.
39724         * tests/unicase/test-ulc-casecmp2.sh: New file.
39725         * tests/unicase/test-ulc-casecmp.c: New file.
39726
39727         New module 'unicase/ulc-casecmp'.
39728         * lib/unicase.h (ulc_casecmp): New declaration.
39729         * lib/unicase/ulc-casecmp.c: New file.
39730         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39731         'const SRC_UNIT *'.
39732         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39733         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39734         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39735         * modules/unicase/ulc-casecmp: New file.
39736
39737         Tests for module 'unicase/u32-is-cased'.
39738         * modules/unicase/u32-is-cased-tests: New file.
39739         * tests/unicase/test-u32-is-cased.c: New file.
39740
39741         Tests for module 'unicase/u16-is-cased'.
39742         * modules/unicase/u16-is-cased-tests: New file.
39743         * tests/unicase/test-u16-is-cased.c: New file.
39744
39745         Tests for module 'unicase/u8-is-cased'.
39746         * modules/unicase/u8-is-cased-tests: New file.
39747         * tests/unicase/test-u8-is-cased.c: New file.
39748         * tests/unicase/test-is-cased.h: New file.
39749
39750         New module 'unicase/u32-is-cased'.
39751         * lib/unicase/u32-is-cased.c: New file.
39752         * modules/unicase/u32-is-cased: New file.
39753
39754         New module 'unicase/u16-is-cased'.
39755         * lib/unicase/u16-is-cased.c: New file.
39756         * modules/unicase/u16-is-cased: New file.
39757
39758         New module 'unicase/u8-is-cased'.
39759         * lib/unicase/u8-is-cased.c: New file.
39760         * lib/unicase/u-is-cased.h: New file.
39761         * modules/unicase/u8-is-cased: New file.
39762
39763         Tests for module 'unicase/u32-is-casefolded'.
39764         * modules/unicase/u32-is-casefolded-tests: New file.
39765         * tests/unicase/test-u32-is-casefolded.c: New file.
39766
39767         Tests for module 'unicase/u16-is-casefolded'.
39768         * modules/unicase/u16-is-casefolded-tests: New file.
39769         * tests/unicase/test-u16-is-casefolded.c: New file.
39770
39771         Tests for module 'unicase/u8-is-casefolded'.
39772         * modules/unicase/u8-is-casefolded-tests: New file.
39773         * tests/unicase/test-u8-is-casefolded.c: New file.
39774         * tests/unicase/test-is-casefolded.h: New file.
39775
39776         New module 'unicase/u32-is-casefolded'.
39777         * lib/unicase/u32-is-casefolded.c: New file.
39778         * modules/unicase/u32-is-casefolded: New file.
39779
39780         New module 'unicase/u16-is-casefolded'.
39781         * lib/unicase/u16-is-casefolded.c: New file.
39782         * modules/unicase/u16-is-casefolded: New file.
39783
39784         New module 'unicase/u8-is-casefolded'.
39785         * lib/unicase/u8-is-casefolded.c: New file.
39786         * modules/unicase/u8-is-casefolded: New file.
39787
39788         Tests for module 'unicase/u32-is-titlecase'.
39789         * modules/unicase/u32-is-titlecase-tests: New file.
39790         * tests/unicase/test-u32-is-titlecase.c: New file.
39791
39792         Tests for module 'unicase/u16-is-titlecase'.
39793         * modules/unicase/u16-is-titlecase-tests: New file.
39794         * tests/unicase/test-u16-is-titlecase.c: New file.
39795
39796         Tests for module 'unicase/u8-is-titlecase'.
39797         * modules/unicase/u8-is-titlecase-tests: New file.
39798         * tests/unicase/test-u8-is-titlecase.c: New file.
39799         * tests/unicase/test-is-titlecase.h: New file.
39800
39801         New module 'unicase/u32-is-titlecase'.
39802         * lib/unicase/u32-is-titlecase.c: New file.
39803         * modules/unicase/u32-is-titlecase: New file.
39804
39805         New module 'unicase/u16-is-titlecase'.
39806         * lib/unicase/u16-is-titlecase.c: New file.
39807         * modules/unicase/u16-is-titlecase: New file.
39808
39809         New module 'unicase/u8-is-titlecase'.
39810         * lib/unicase/u8-is-titlecase.c: New file.
39811         * modules/unicase/u8-is-titlecase: New file.
39812
39813         Tests for module 'unicase/u32-is-lowercase'.
39814         * modules/unicase/u32-is-lowercase-tests: New file.
39815         * tests/unicase/test-u32-is-lowercase.c: New file.
39816
39817         Tests for module 'unicase/u16-is-lowercase'.
39818         * modules/unicase/u16-is-lowercase-tests: New file.
39819         * tests/unicase/test-u16-is-lowercase.c: New file.
39820
39821         Tests for module 'unicase/u8-is-lowercase'.
39822         * modules/unicase/u8-is-lowercase-tests: New file.
39823         * tests/unicase/test-u8-is-lowercase.c: New file.
39824         * tests/unicase/test-is-lowercase.h: New file.
39825
39826         New module 'unicase/u32-is-lowercase'.
39827         * lib/unicase/u32-is-lowercase.c: New file.
39828         * modules/unicase/u32-is-lowercase: New file.
39829
39830         New module 'unicase/u16-is-lowercase'.
39831         * lib/unicase/u16-is-lowercase.c: New file.
39832         * modules/unicase/u16-is-lowercase: New file.
39833
39834         New module 'unicase/u8-is-lowercase'.
39835         * lib/unicase/u8-is-lowercase.c: New file.
39836         * modules/unicase/u8-is-lowercase: New file.
39837
39838         Tests for module 'unicase/u32-is-uppercase'.
39839         * modules/unicase/u32-is-uppercase-tests: New file.
39840         * tests/unicase/test-u32-is-uppercase.c: New file.
39841
39842         Tests for module 'unicase/u16-is-uppercase'.
39843         * modules/unicase/u16-is-uppercase-tests: New file.
39844         * tests/unicase/test-u16-is-uppercase.c: New file.
39845
39846         Tests for module 'unicase/u8-is-uppercase'.
39847         * modules/unicase/u8-is-uppercase-tests: New file.
39848         * tests/unicase/test-u8-is-uppercase.c: New file.
39849         * tests/unicase/test-is-uppercase.h: New file.
39850
39851         New module 'unicase/u32-is-uppercase'.
39852         * lib/unicase/u32-is-uppercase.c: New file.
39853         * modules/unicase/u32-is-uppercase: New file.
39854
39855         New module 'unicase/u16-is-uppercase'.
39856         * lib/unicase/u16-is-uppercase.c: New file.
39857         * modules/unicase/u16-is-uppercase: New file.
39858
39859         New module 'unicase/u8-is-uppercase'.
39860         * lib/unicase/u8-is-uppercase.c: New file.
39861         * modules/unicase/u8-is-uppercase: New file.
39862
39863         New module 'unicase/u32-is-invariant'.
39864         * lib/unicase/u32-is-invariant.c: New file.
39865         * modules/unicase/u32-is-invariant: New file.
39866
39867         New module 'unicase/u16-is-invariant'.
39868         * lib/unicase/u16-is-invariant.c: New file.
39869         * modules/unicase/u16-is-invariant: New file.
39870
39871         New module 'unicase/u8-is-invariant'.
39872         * lib/unicase/u8-is-invariant.c: New file.
39873         * lib/unicase/invariant.h: New file.
39874         * lib/unicase/u-is-invariant.h: New file.
39875         * modules/unicase/u8-is-invariant: New file.
39876
39877         Tests for module 'unicase/u32-casecoll'.
39878         * modules/unicase/u32-casecoll-tests: New file.
39879         * tests/unicase/test-u32-casecoll.c: New file.
39880
39881         Tests for module 'unicase/u16-casecoll'.
39882         * modules/unicase/u16-casecoll-tests: New file.
39883         * tests/unicase/test-u16-casecoll.c: New file.
39884
39885         Tests for module 'unicase/u8-casecoll'.
39886         * modules/unicase/u8-casecoll-tests: New file.
39887         * tests/unicase/test-u8-casecoll.c: New file.
39888
39889         New module 'unicase/u32-casecoll'.
39890         * lib/unicase/u32-casecoll.c: New file.
39891         * modules/unicase/u32-casecoll: New file.
39892
39893         New module 'unicase/u16-casecoll'.
39894         * lib/unicase/u16-casecoll.c: New file.
39895         * modules/unicase/u16-casecoll: New file.
39896
39897         New module 'unicase/u8-casecoll'.
39898         * lib/unicase/u8-casecoll.c: New file.
39899         * lib/unicase/u-casecoll.h: New file.
39900         * modules/unicase/u8-casecoll: New file.
39901
39902         New module 'unicase/u32-casexfrm'.
39903         * lib/unicase/u32-casexfrm.c: New file.
39904         * modules/unicase/u32-casexfrm: New file.
39905
39906         New module 'unicase/u16-casexfrm'.
39907         * lib/unicase/u16-casexfrm.c: New file.
39908         * modules/unicase/u16-casexfrm: New file.
39909
39910         New module 'unicase/u8-casexfrm'.
39911         * lib/unicase/u8-casexfrm.c: New file.
39912         * lib/unicase/u-casexfrm.h: New file.
39913         * modules/unicase/u8-casexfrm: New file.
39914
39915         Tests for module 'unicase/u32-casecmp'.
39916         * modules/unicase/u32-casecmp-tests: New file.
39917         * tests/unicase/test-u32-casecmp.c: New file.
39918
39919         Tests for module 'unicase/u16-casecmp'.
39920         * modules/unicase/u16-casecmp-tests: New file.
39921         * tests/unicase/test-u16-casecmp.c: New file.
39922
39923         Tests for module 'unicase/u8-casecmp'.
39924         * modules/unicase/u8-casecmp-tests: New file.
39925         * tests/unicase/test-u8-casecmp.c: New file.
39926         * tests/unicase/test-casecmp.h: New file.
39927
39928         New module 'unicase/u32-casecmp'.
39929         * lib/unicase/u32-casecmp.c: New file.
39930         * modules/unicase/u32-casecmp: New file.
39931
39932         New module 'unicase/u16-casecmp'.
39933         * lib/unicase/u16-casecmp.c: New file.
39934         * modules/unicase/u16-casecmp: New file.
39935
39936         New module 'unicase/u8-casecmp'.
39937         * lib/unicase/u8-casecmp.c: New file.
39938         * lib/unicase/u-casecmp.h: New file.
39939         * modules/unicase/u8-casecmp: New file.
39940
39941         Tests for module 'unicase/u32-casefold'.
39942         * modules/unicase/u32-casefold-tests: New file.
39943         * tests/unicase/test-u32-casefold.c: New file.
39944
39945         Tests for module 'unicase/u16-casefold'.
39946         * modules/unicase/u16-casefold-tests: New file.
39947         * tests/unicase/test-u16-casefold.c: New file.
39948
39949         Tests for module 'unicase/u8-casefold'.
39950         * modules/unicase/u8-casefold-tests: New file.
39951         * tests/unicase/test-u8-casefold.c: New file.
39952
39953         New module 'unicase/u32-casefold'.
39954         * lib/unicase/u32-casefold.c: New file.
39955         * modules/unicase/u32-casefold: New file.
39956
39957         New module 'unicase/u16-casefold'.
39958         * lib/unicase/u16-casefold.c: New file.
39959         * modules/unicase/u16-casefold: New file.
39960
39961         New module 'unicase/u8-casefold'.
39962         * lib/unicase/u8-casefold.c: New file.
39963         * lib/unicase/u-casefold.h: New file.
39964         * modules/unicase/u8-casefold: New file.
39965
39966         New module 'unicase/tocasefold'.
39967         * lib/unicase/casefold.h: New file.
39968         * lib/unicase/tocasefold.c: New file.
39969         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39970         * modules/unicase/tocasefold: New file.
39971
39972         Tests for module 'unicase/u32-totitle'.
39973         * modules/unicase/u32-totitle-tests: New file.
39974         * tests/unicase/test-u32-totitle.c: New file.
39975
39976         Tests for module 'unicase/u16-totitle'.
39977         * modules/unicase/u16-totitle-tests: New file.
39978         * tests/unicase/test-u16-totitle.c: New file.
39979
39980         Tests for module 'unicase/u8-totitle'.
39981         * modules/unicase/u8-totitle-tests: New file.
39982         * tests/unicase/test-u8-totitle.c: New file.
39983
39984         New module 'unicase/u32-totitle'.
39985         * lib/unicase/u32-totitle.c: New file.
39986         * modules/unicase/u32-totitle: New file.
39987
39988         New module 'unicase/u16-totitle'.
39989         * lib/unicase/u16-totitle.c: New file.
39990         * modules/unicase/u16-totitle: New file.
39991
39992         New module 'unicase/u8-totitle'.
39993         * lib/unicase/u8-totitle.c: New file.
39994         * lib/unicase/u-totitle.h: New file.
39995         * modules/unicase/u8-totitle: New file.
39996
39997         Tests for module 'unicase/u32-tolower'.
39998         * modules/unicase/u32-tolower-tests: New file.
39999         * tests/unicase/test-u32-tolower.c: New file.
40000
40001         Tests for module 'unicase/u16-tolower'.
40002         * modules/unicase/u16-tolower-tests: New file.
40003         * tests/unicase/test-u16-tolower.c: New file.
40004
40005         Tests for module 'unicase/u8-tolower'.
40006         * modules/unicase/u8-tolower-tests: New file.
40007         * tests/unicase/test-u8-tolower.c: New file.
40008
40009         New module 'unicase/u32-tolower'.
40010         * lib/unicase/u32-tolower.c: New file.
40011         * modules/unicase/u32-tolower: New file.
40012
40013         New module 'unicase/u16-tolower'.
40014         * lib/unicase/u16-tolower.c: New file.
40015         * modules/unicase/u16-tolower: New file.
40016
40017         New module 'unicase/u8-tolower'.
40018         * lib/unicase/u8-tolower.c: New file.
40019         * modules/unicase/u8-tolower: New file.
40020
40021         Tests for module 'unicase/u32-toupper'.
40022         * modules/unicase/u32-toupper-tests: New file.
40023         * tests/unicase/test-u32-toupper.c: New file.
40024
40025         Tests for module 'unicase/u16-toupper'.
40026         * modules/unicase/u16-toupper-tests: New file.
40027         * tests/unicase/test-u16-toupper.c: New file.
40028
40029         Tests for module 'unicase/u8-toupper'.
40030         * modules/unicase/u8-toupper-tests: New file.
40031         * tests/unicase/test-u8-toupper.c: New file.
40032
40033         New module 'unicase/u32-toupper'.
40034         * lib/unicase/u32-toupper.c: New file.
40035         * modules/unicase/u32-toupper: New file.
40036
40037         New module 'unicase/u16-toupper'.
40038         * lib/unicase/u16-toupper.c: New file.
40039         * modules/unicase/u16-toupper: New file.
40040
40041         New module 'unicase/u8-toupper'.
40042         * lib/unicase/u8-toupper.c: New file.
40043         * modules/unicase/u8-toupper: New file.
40044
40045         New module 'unicase/u32-casemap'.
40046         * lib/unicase/u32-casemap.c: New file.
40047         * modules/unicase/u32-casemap: New file.
40048
40049         New module 'unicase/u16-casemap'.
40050         * lib/unicase/u16-casemap.c: New file.
40051         * modules/unicase/u16-casemap: New file.
40052
40053         New module 'unicase/u8-casemap'.
40054         * lib/unicase/unicasemap.h: New file.
40055         * lib/unicase/u8-casemap.c: New file.
40056         * lib/unicase/u-casemap.h: New file.
40057         * modules/unicase/u8-casemap: New file.
40058
40059         New module 'unicase/special-casing'.
40060         * lib/unicase/special-casing.h: New file.
40061         * lib/unicase/special-casing.c: New file.
40062         * lib/unicase/special-casing-table.gperf: New file, generated by
40063         gen-uni-tables.c.
40064         * modules/unicase/special-casing: New file.
40065
40066         Tests for module 'unicase/locale-language'.
40067         * modules/unicase/locale-language-tests: New file.
40068         * tests/unicase/test-locale-language.sh: New file.
40069         * tests/unicase/test-locale-language.c: New file.
40070
40071         New module 'unicase/locale-language'.
40072         * lib/unicase/locale-language.c: New file.
40073         * lib/unicase/locale-languages.gperf: New file.
40074         * modules/unicase/locale-language: New file.
40075
40076         Generate more tables for case conversion and case folding.
40077         * lib/gen-uni-tables.c (SCC_*): New enum items.
40078         (struct special_casing_rule): New type.
40079         (casing_rules, num_casing_rules, allocated_casing_rules): New
40080         variables.
40081         (add_casing_rule, fill_casing_rules): New functions.
40082         (struct casefold_rule): New type.
40083         (casefolding_rules, num_casefolding_rules,
40084         allocated_casefolding_rules): New variables.
40085         (fill_casefolding_rules): New function.
40086         (unicode_casefold): New variable.
40087         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40088         sort_casing_rules, output_casing_rules): New functions.
40089         (main): Accept to more arguments: SpecialCasing.txt and
40090         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40091         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40092         Output mapping for casefolding.
40093
40094         * lib/unicase.h: Include stdbool.h, uninorm.h.
40095         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40096         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40097         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40098         arguments.
40099         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40100         resultp arguments.
40101         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40102         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40103         resultp arguments.
40104         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40105         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40106         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40107         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40108         declarations.
40109         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40110
40111 2009-03-08  Bruno Haible  <bruno@clisp.org>
40112
40113         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40114         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40115         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40116         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40117
40118 2009-03-07  Bruno Haible  <bruno@clisp.org>
40119
40120         Adjust u*_normcmp, u*_normcoll API.
40121         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40122         u16_normcoll, u32_normcoll): Change failure conventions.
40123         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40124         errno and return -1.
40125         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40126
40127 2009-03-07  Bruno Haible  <bruno@clisp.org>
40128
40129         Tests for module 'uninorm/u32-normcoll'.
40130         * modules/uninorm/u32-normcoll-tests: New file.
40131         * tests/uninorm/test-u32-normcoll.c: New file.
40132
40133         Tests for module 'uninorm/u16-normcoll'.
40134         * modules/uninorm/u16-normcoll-tests: New file.
40135         * tests/uninorm/test-u16-normcoll.c: New file.
40136
40137         Tests for module 'uninorm/u8-normcoll'.
40138         * modules/uninorm/u8-normcoll-tests: New file.
40139         * tests/uninorm/test-u8-normcoll.c: New file.
40140
40141 2009-03-07  Bruno Haible  <bruno@clisp.org>
40142
40143         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40144         tests/uninorm/test-u32-normcmp.c.
40145         * tests/uninorm/test-u32-normcmp.c: Include it.
40146         (test_nonascii): New function, extracted from main. Add some more
40147         tests.
40148         (main): Invoke test_ascii and test_nonascii.
40149         * modules/uninorm/u32-normcmp-tests (Files): Add
40150         tests/uninorm/test-u32-normcmp.h.
40151         (Depends-on): Remove uninorm/u32-normcmp.
40152
40153         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40154         tests/uninorm/test-u16-normcmp.c.
40155         * tests/uninorm/test-u16-normcmp.c: Include it.
40156         (test_nonascii): New function, extracted from main. Add some more
40157         tests.
40158         (main): Invoke test_ascii and test_nonascii.
40159         * modules/uninorm/u16-normcmp-tests (Files): Add
40160         tests/uninorm/test-u16-normcmp.h.
40161         (Depends-on): Remove uninorm/u16-normcmp.
40162
40163         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40164         tests/uninorm/test-u8-normcmp.c.
40165         * tests/uninorm/test-u8-normcmp.c: Include it.
40166         (test_nonascii): New function, extracted from main. Add some more
40167         tests.
40168         (main): Invoke test_ascii and test_nonascii.
40169         * modules/uninorm/u8-normcmp-tests (Files): Add
40170         tests/uninorm/test-u8-normcmp.h.
40171         (Depends-on): Remove uninorm/u8-normcmp.
40172
40173 2009-03-07  Bruno Haible  <bruno@clisp.org>
40174
40175         New module 'uninorm/u32-normcoll'.
40176         * lib/uninorm/u32-normcoll.c: New file.
40177         * modules/uninorm/u32-normcoll: New file.
40178
40179         New module 'uninorm/u16-normcoll'.
40180         * lib/uninorm/u16-normcoll.c: New file.
40181         * modules/uninorm/u16-normcoll: New file.
40182
40183         New module 'uninorm/u8-normcoll'.
40184         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40185         declarations.
40186         * lib/uninorm/u8-normcoll.c: New file.
40187         * lib/uninorm/u-normcoll.h: New file.
40188         * modules/uninorm/u8-normcoll: New file.
40189
40190         New module 'uninorm/u32-normxfrm'.
40191         * lib/uninorm/u32-normxfrm.c: New file.
40192         * modules/uninorm/u32-normxfrm: New file.
40193
40194         New module 'uninorm/u16-normxfrm'.
40195         * lib/uninorm/u16-normxfrm.c: New file.
40196         * modules/uninorm/u16-normxfrm: New file.
40197
40198         New module 'uninorm/u8-normxfrm'.
40199         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40200         declarations.
40201         * lib/uninorm/u8-normxfrm.c: New file.
40202         * lib/uninorm/u-normxfrm.h: New file.
40203         * modules/uninorm/u8-normxfrm: New file.
40204
40205 2009-03-07  Bruno Haible  <bruno@clisp.org>
40206
40207         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40208         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40209         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40210
40211 2009-03-07  Bruno Haible  <bruno@clisp.org>
40212
40213         New module 'memxfrm'.
40214         * lib/memxfrm.h: New file.
40215         * lib/memxfrm.c: New file.
40216         * modules/memxfrm: New file.
40217
40218 2009-03-07  Bruno Haible  <bruno@clisp.org>
40219
40220         New module 'memcmp2'.
40221         * lib/memcmp2.h: New file.
40222         * lib/memcmp2.c: New file.
40223         * modules/memcmp2: New file.
40224
40225 2009-03-07  Bruno Haible  <bruno@clisp.org>
40226
40227         Tests for module 'uninorm/decomposing-form'.
40228         * modules/uninorm/decomposing-form-tests: New file.
40229         * tests/uninorm/test-decomposing-form.c: New file.
40230
40231         New module 'uninorm/decomposing-form'.
40232         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40233         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40234         Add 'decomposing_variant' field.
40235         * lib/uninorm/decomposing-form.c: New file.
40236         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40237         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40238         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40239         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40240         * modules/uninorm/decomposing-form: New file.
40241         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40242         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40243
40244 2009-03-07  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40247         strings.
40248
40249 2009-03-06  Bruno Haible  <bruno@clisp.org>
40250
40251         Tests for module 'uninorm/u32-normcmp'.
40252         * tests/uninorm/test-u32-normcmp.c: New file.
40253         * modules/uninorm/u32-normcmp-tests: New file.
40254
40255         Tests for module 'uninorm/u16-normcmp'.
40256         * tests/uninorm/test-u16-normcmp.c: New file.
40257         * modules/uninorm/u16-normcmp-tests: New file.
40258
40259         Tests for module 'uninorm/u8-normcmp'.
40260         * tests/uninorm/test-u8-normcmp.c: New file.
40261         * modules/uninorm/u8-normcmp-tests: New file.
40262
40263         New module 'uninorm/u32-normcmp'.
40264         * lib/uninorm/u32-normcmp.c: New file.
40265         * modules/uninorm/u32-normcmp: New file.
40266
40267         New module 'uninorm/u16-normcmp'.
40268         * lib/uninorm/u16-normcmp.c: New file.
40269         * modules/uninorm/u16-normcmp: New file.
40270
40271         New module 'uninorm/u8-normcmp'.
40272         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40273         declarations.
40274         * lib/uninorm/u8-normcmp.c: New file.
40275         * lib/uninorm/u-normcmp.h: New file.
40276         * modules/uninorm/u8-normcmp: New file.
40277
40278 2009-03-06  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40281         Reported by Eric Blake.
40282
40283 2009-03-06  Eric Blake  <ebb9@byu.net>
40284             Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40287         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40288         condition.
40289         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40290         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40291         condition.
40292         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40293
40294 2009-03-06  Eric Blake  <ebb9@byu.net>
40295
40296         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40297         to avoid compiler warnings.
40298         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40299
40300 2009-03-05  Bruno Haible  <bruno@clisp.org>
40301
40302         * tests/test-ftell.c (main): Disable test beyond end of file on
40303         FreeMiNT.
40304         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40305
40306 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40307
40308         * lib/filevercmp.c: Move hidden files up in ordering.
40309         * tests/test-filevercmp.c: Add tests for hidden files.
40310
40311 2009-03-04  Bruno Haible  <bruno@clisp.org>
40312
40313         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40314         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40315         AM_CFLAGS.
40316         Reported by Simon Josefsson.
40317
40318 2009-03-03  Bruno Haible  <bruno@clisp.org>
40319
40320         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40321         Reported by Simon Josefsson.
40322
40323         * doc/ld-version-script.texi: Update node reference.
40324
40325 2009-03-03  Bruno Haible  <bruno@clisp.org>
40326
40327         * modules/visibility (License): Change to 'unlimited'.
40328         Suggested by Simon Josefsson.
40329
40330 2009-03-03  Jim Meyering  <meyering@redhat.com>
40331
40332         unlinkdir: cannot_unlink_dir may modify process state
40333         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40334         it's neither thread-safe nor appropriate for use in a library.
40335
40336 2009-03-03  Eric Blake  <ebb9@byu.net>
40337
40338         test-closein: silence test under Darwin
40339         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40340         care if it dies from EPIPE or EBADF.
40341
40342 2009-03-03  Bruno Haible  <bruno@clisp.org>
40343
40344         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40345         earlier.
40346         * doc/visibility.texi: Fix @node and @section.
40347
40348 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40349
40350         * doc/gnulib.texi: Link to sections for ld version script and
40351         visibility.
40352         * doc/visibility.texi: Add @node and @section.
40353         * modules/ld-version-script: New module.
40354         * m4/ld-version-script.m4: New file.
40355         * doc/ld-version-script.texi: New file.
40356
40357 2009-03-02  David Lutterkort  <lutter@redhat.com>
40358
40359         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40361
40362 2009-03-02  Bruno Haible  <bruno@clisp.org>
40363
40364         * doc/visibility.texi: Mention libtool's -export-symbols option.
40365
40366 2009-03-02  Jim Meyering  <meyering@redhat.com>
40367
40368         announce-gen: new option: --no-print-checksums
40369         * build-aux/announce-gen (usage): Describe it.
40370         (print_checksums): Print a newline here, not in the [*] footnote.
40371         (main): Honor it.
40372
40373 2009-03-01  Bruno Haible  <bruno@clisp.org>
40374
40375         Use socklen_t in the native Windows replacements prototypes.
40376         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40377         instead of 'int'.
40378         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40379         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40380         * modules/getsockopt (Depends-on): Add socklen.
40381         * modules/setsockopt (Depends-on): Add socklen.
40382
40383 2009-03-01  Bruno Haible  <bruno@clisp.org>
40384
40385         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40386         least 4.2.
40387
40388 2009-03-01  Eric Blake  <ebb9@byu.net>
40389             Bruno Haible  <bruno@clisp.org>
40390
40391         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40392         error messages.
40393         * lib/wait-process.c (wait_subprocess): Omit error message about
40394         deadly signal sent to the child of termsigp != NULL.
40395
40396 2009-03-01  Eric Blake  <ebb9@byu.net>
40397
40398         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40399
40400 2009-03-01  Bruno Haible  <bruno@clisp.org>
40401
40402         Avoid a gcc warning.
40403         * tests/test-sched.c (b): Make global.
40404         Reported by Eric Blake.
40405
40406 2009-01-19  Martin Lambers  <marlam@marlam.de>
40407
40408         Provide POSIX semantics for socket timeout options on W32.
40409         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40410         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40411         * modules/setsockopt: Depend on sys_time module for struct timeval.
40412         * modules/getsockopt: Depend on sys_time module for struct timeval.
40413
40414 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40415
40416         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40417         __USE_GNU, for consistency with netdb.in.h.
40418         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40419
40420 2009-03-01  Bruno Haible  <bruno@clisp.org>
40421
40422         More support for FreeMiNT.
40423         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40424         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40425
40426 2009-03-01  Bruno Haible  <bruno@clisp.org>
40427
40428         More support for FreeMiNT.
40429         * lib/fpurge.c (fpurge): Correct last commit.
40430         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40431
40432 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40433
40434         Fix unportable awk script in vc-list-files.
40435         * build-aux/vc-list-files: In the replacement awk script, use
40436         substr with a second argument of 1, not zero.
40437         Report by Simon Josefsson.
40438
40439 2009-02-28  Bruno Haible  <bruno@clisp.org>
40440
40441         More support for FreeMiNT.
40442         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40443         to FreeMiNT today.
40444         * lib/fwriting.c (fwriting): Likewise.
40445         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40446
40447 2009-02-28  Bruno Haible  <bruno@clisp.org>
40448
40449         * tests/test-freadseek.c (main): Disable test beyond end of file on
40450         FreeMiNT.
40451         * tests/test-ftello.c (main): Likewise.
40452         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40453
40454 2009-02-28  Bruno Haible  <bruno@clisp.org>
40455
40456         Add tentative support for FreeMiNT.
40457         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40458         * lib/fpurge.c (fpurge): Likewise.
40459         * lib/freadable.c (freadable): Likewise.
40460         * lib/freading.c (freading): Likewise.
40461         * lib/freadptr.c (freadptr): Likewise.
40462         * lib/freadseek.c (freadptrinc): Likewise.
40463         * lib/fseeko.c (rpl_fseeko): Likewise.
40464         * lib/fseterr.c (fseterr): Likewise.
40465         * lib/fwritable.c (fwritable): Likewise.
40466         * lib/fwriting.c (fwriting): Likewise.
40467         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40468         Hourihane.
40469         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40470
40471 2009-02-28  Bruno Haible  <bruno@clisp.org>
40472
40473         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40474         SIGCHLD.
40475         Reported by Jim Meyering.
40476
40477 2009-02-28  Bruno Haible  <bruno@clisp.org>
40478
40479         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40480         Mention the results of these tests on various platforms.
40481         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40482         order.
40483         * doc/posix-functions/printf.texi: Likewise.
40484         * doc/posix-functions/snprintf.texi: Likewise.
40485         * doc/posix-functions/sprintf.texi: Likewise.
40486         * doc/posix-functions/vfprintf.texi: Likewise.
40487         * doc/posix-functions/vprintf.texi: Likewise.
40488         * doc/posix-functions/vsnprintf.texi: Likewise.
40489         * doc/posix-functions/vsprintf.texi: Likewise.
40490         * doc/glibc-functions/obstack_printf.texi: Likewise.
40491         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40492
40493 2009-02-28  Bruno Haible  <bruno@clisp.org>
40494
40495         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40496         Reported by Loïc Minier <lool@dooz.org>.
40497
40498 2009-02-27  Bruno Haible  <bruno@clisp.org>
40499
40500         * gnulib-tool (func_import): Make the sed expression used to create the
40501         sed script for updating the .gitignore file POSIX compliant.
40502         Reported by Eric Blake.
40503
40504 2009-02-27  Bruno Haible  <bruno@clisp.org>
40505
40506         * gnulib-tool (sed): Don't alias as "sed --posix".
40507         Reported by Eric Blake.
40508
40509 2009-02-27  Bruno Haible  <bruno@clisp.org>
40510
40511         Avoid test link errors.
40512         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40513         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40514         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40515         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40517
40518 2009-02-27  Bruno Haible  <bruno@clisp.org>
40519
40520         Avoid spurious "(cached)" in configure output.
40521         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40522         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40523         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40524         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40525         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40526         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40527         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40528         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40529         Reported by Eric Blake.
40530
40531 2009-02-27  Eric Blake  <ebb9@byu.net>
40532
40533         printf: fix regression in previous patch
40534         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40535
40536 2009-02-27  Bruno Haible  <bruno@clisp.org>
40537
40538         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40539         value.
40540         * lib/stdint.in.h: Likewise.
40541         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40542
40543 2009-02-27  Eric Blake  <ebb9@byu.net>
40544
40545         doc: mention more functions added in cygwin 1.7.0
40546         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40547         addition.
40548         * doc/posix-functions/open_wmemstream.texi: Likewise.
40549         * doc/posix-functions/wcsnlen.texi: Likewise.
40550         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40551         * doc/posix-functions/wcstod.texi: Likewise.
40552         * doc/posix-functions/wcstof.texi: Likewise.
40553         * doc/posix-functions/wcstoimax.texi: Likewise.
40554         * doc/posix-functions/wcstok.texi: Likewise.
40555         * doc/posix-functions/wcstoumax.texi: Likewise.
40556
40557         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40558         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40559         * doc/posix-functions/fprintf.texi: Update.
40560         * doc/posix-functions/printf.texi: Update.
40561         * doc/posix-functions/snprintf.texi: Update.
40562         * doc/posix-functions/sprintf.texi: Update.
40563         * doc/posix-functions/vfprintf.texi: Update.
40564         * doc/posix-functions/vprintf.texi: Update.
40565         * doc/posix-functions/vsnprintf.texi: Update.
40566         * doc/posix-functions/vsprintf.texi: Update.
40567         * doc/glibc-functions/obstack_printf.texi: Update.
40568         * doc/glibc-functions/obstack_vprintf.texi: Update.
40569
40570 2009-02-26  Eric Blake  <ebb9@byu.net>
40571
40572         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40573         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40574         compilation bug by using runtime conversion.
40575         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40576         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40577         * modules/ceill-tests (Files): Use nan.h.
40578         * modules/floorl-tests (Files): Likewise.
40579         * modules/frexpl-tests (Files): Likewise.
40580         * modules/isnanl-tests (Files): Likewise.
40581         * modules/ldexpl-tests (Files): Likewise.
40582         * modules/roundl-tests (Files): Likewise.
40583         * modules/truncl-tests (Files): Likewise.
40584         * tests/test-ceill.c (main): Use a working NaN.
40585         * tests/test-floorl.c (main): Likewise.
40586         * tests/test-frexpl.c (main): Likewise.
40587         * tests/test-isnan.c (test_long_double): Likewise.
40588         * tests/test-isnanl.h (main): Likewise.
40589         * tests/test-ldexpl.h (main): Likewise.
40590         * tests/test-roundl.h (main): Likewise.
40591         * tests/test-truncl.h (main): Likewise.
40592         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40593
40594 2009-02-26  Eric Blake  <ebb9@byu.net>
40595             Bruno Haible  <bruno@clisp.org>
40596
40597         Work around a *printf bug with %ls on Solaris.
40598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40599         precision is specified, sprintf stops converting the wide string
40600         argument when the number of bytes that have been produced by this
40601         conversion equals or exceeds the precision.
40602         * doc/posix-functions/fprintf.texi: Update.
40603         * doc/posix-functions/printf.texi: Update.
40604         * doc/posix-functions/snprintf.texi: Update.
40605         * doc/posix-functions/sprintf.texi: Update.
40606         * doc/posix-functions/vfprintf.texi: Update.
40607         * doc/posix-functions/vprintf.texi: Update.
40608         * doc/posix-functions/vsnprintf.texi: Update.
40609         * doc/posix-functions/vsprintf.texi: Update.
40610         * doc/glibc-functions/obstack_printf.texi: Update.
40611         * doc/glibc-functions/obstack_vprintf.texi: Update.
40612
40613 2009-02-26  Eric Blake  <ebb9@byu.net>
40614
40615         stdlib: favor compiler check of random.h
40616         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40617         to avoid an ObjC random.h installed by Swarm.
40618
40619 2009-02-26  Bruno Haible  <bruno@clisp.org>
40620
40621         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40622         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40623         Reported by Gary V. Vaughan <gary@gnu.org>.
40624
40625 2009-02-26  Bruno Haible  <bruno@clisp.org>
40626
40627         Fix *printf behaviour regarding the %ls directive.
40628         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40629         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40630         NEED_PRINTF_DIRECTIVE_LS.
40631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40632         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40633         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40634         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40635         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40636         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40637         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40638         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40639         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40640         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40642         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40646         * doc/posix-functions/fprintf.texi: Update.
40647         * doc/posix-functions/printf.texi: Update.
40648         * doc/posix-functions/snprintf.texi: Update.
40649         * doc/posix-functions/sprintf.texi: Update.
40650         * doc/posix-functions/vfprintf.texi: Update.
40651         * doc/posix-functions/vprintf.texi: Update.
40652         * doc/posix-functions/vsnprintf.texi: Update.
40653         * doc/posix-functions/vsprintf.texi: Update.
40654         * doc/glibc-functions/obstack_printf.texi: Update.
40655         * doc/glibc-functions/obstack_vprintf.texi: Update.
40656         Reported by Eric Blake.
40657
40658 2009-02-25  Bruno Haible  <bruno@clisp.org>
40659
40660         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40661         with known value.
40662         Reported by Gary V. Vaughan <gary@gnu.org>.
40663
40664 2009-02-25  Bruno Haible  <bruno@clisp.org>
40665
40666         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40667         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40668         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40669         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40670         Reported by Gary V. Vaughan <gary@gnu.org>.
40671
40672 2009-02-25  Bruno Haible  <bruno@clisp.org>
40673
40674         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40675         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40676         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40677         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40678         Reported by Gary V. Vaughan <gary@gnu.org>.
40679
40680 2009-02-25  Eric Blake  <ebb9@byu.net>
40681
40682         tests: skip fseek/ftell tests if ungetc is broken
40683         * m4/ungetc.m4: New file.
40684         * modules/fseek-tests: Split test, so ungetc dependency is
40685         separate from rest of test.
40686         * modules/fseeko-tests: Likewise.
40687         * modules/ftell-tests: Likewise.
40688         * modules/ftello-tests: Likewise.
40689         * tests/test-fseek.c (main): Isolate ungetc dependency.
40690         * tests/test-fseeko.c (main): Likewise.
40691         * tests/test-ftell.c (main): Likewise.
40692         * tests/test-ftello.c (main): Likewise.
40693         * tests/test-fseek2.sh: New file.
40694         * tests/test-fseeko2.sh: Likewise.
40695         * tests/test-ftell2.sh: Likewise.
40696         * tests/test-ftello2.sh: Likewise.
40697
40698 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40699
40700         test-getaddrinfo: fix usage of skip return code 77
40701         * tests/test-gettaddrinfo.c: Return skip code 77 only
40702         for first occurance of skip (4x77 is not 77)
40703
40704 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40705
40706         strtod: avoid C99 decl-after-statement
40707         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40708
40709 2009-02-24  Eric Blake  <ebb9@byu.net>
40710
40711         strtod: detect HP-UX 11.31 bug
40712         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40713         Reported by Gary V. Vaughan.
40714
40715 2009-02-23  Bruno Haible  <bruno@clisp.org>
40716
40717         Fix invalid read past end of memory block.
40718         * lib/vasnprintf.c (DCHAR_SET): Define.
40719         (local_wcslen): Define only when needed.
40720         (local_strnlen, local_wcsnlen): New functions.
40721         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40722         directives that involve a conversion ourselves.
40723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40724         wcsnlen, mbrtowc, wcrtomb.
40725         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40726         * tests/test-vasprintf-posix.c (test_function): Likewise.
40727         * tests/test-snprintf-posix.h (test_function): Likewise.
40728         * tests/test-sprintf-posix.h (test_function): Likewise.
40729         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40730
40731 2009-02-22  Bruno Haible  <bruno@clisp.org>
40732
40733         Implement new clarified decomposition of Hangul syllables.
40734         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40735         of type LTV, return only a pairwise decomposition.
40736         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40737         Likewise.
40738         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40739         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40740         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40741
40742 2009-02-22  Bruno Haible  <bruno@clisp.org>
40743
40744         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40745         zero-length results and shrink excess allocated memory.
40746         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40747         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40748         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40749         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40750         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40751         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40752         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40753         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40754         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40755         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40756         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40757         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40758
40759 2009-02-21  Bruno Haible  <bruno@clisp.org>
40760
40761         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40762         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40763         spaces after a period. Put a space between a macro name and its
40764         argument list. Trivial rewordings.
40765         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40766         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40767         (main): Return 0 explicitly.
40768
40769 2009-02-21  Bruno Haible  <bruno@clisp.org>
40770
40771         Tests for module 'uninorm/filter'.
40772         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40773         * modules/uninorm/filter-tests: New file.
40774
40775         New module 'uninorm/filter'.
40776         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40777         uninorm_filter_flush, uninorm_filter_free): New declarations.
40778         * lib/uninorm/uninorm-filter.c: New file.
40779         * modules/uninorm/filter: New file.
40780
40781 2009-02-21  Bruno Haible  <bruno@clisp.org>
40782
40783         Tests for module 'uninorm/nfkc'.
40784         * tests/uninorm/test-nfkc.c: New file.
40785         * tests/uninorm/test-u8-nfkc.c: New file.
40786         * tests/uninorm/test-u16-nfkc.c: New file.
40787         * tests/uninorm/test-u32-nfkc.c: New file.
40788         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40789         * tests/uninorm/test-u32-nfkc-big.c: New file.
40790         * modules/uninorm/nfkc-tests: New file.
40791
40792         New module 'uninorm/nfkc'.
40793         * lib/uninorm/nfkc.c: New file.
40794         * modules/uninorm/nfkc: New file.
40795
40796         Tests for module 'uninorm/nfkd'.
40797         * tests/uninorm/test-nfkd.c: New file.
40798         * tests/uninorm/test-u8-nfkd.c: New file.
40799         * tests/uninorm/test-u16-nfkd.c: New file.
40800         * tests/uninorm/test-u32-nfkd.c: New file.
40801         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40802         * tests/uninorm/test-u32-nfkd-big.c: New file.
40803         * modules/uninorm/nfkd-tests: New file.
40804
40805         New module 'uninorm/nfkd'.
40806         * lib/uninorm/nfkd.c: New file.
40807         * modules/uninorm/nfkd: New file.
40808
40809         Tests for module 'uninorm/nfc'.
40810         * tests/uninorm/test-nfc.c: New file.
40811         * tests/uninorm/test-u8-nfc.c: New file.
40812         * tests/uninorm/test-u16-nfc.c: New file.
40813         * tests/uninorm/test-u32-nfc.c: New file.
40814         * tests/uninorm/test-u32-nfc-big.sh: New file.
40815         * tests/uninorm/test-u32-nfc-big.c: New file.
40816         * modules/uninorm/nfc-tests: New file.
40817
40818         New module 'uninorm/nfc'.
40819         * lib/uninorm/nfc.c: New file.
40820         * modules/uninorm/nfc: New file.
40821
40822         Tests for module 'uninorm/nfd'.
40823         * tests/uninorm/test-nfd.c: New file.
40824         * tests/uninorm/test-u8-nfd.c: New file.
40825         * tests/uninorm/test-u16-nfd.c: New file.
40826         * tests/uninorm/test-u32-nfd.c: New file.
40827         * tests/uninorm/test-u32-nfd-big.sh: New file.
40828         * tests/uninorm/test-u32-nfd-big.c: New file.
40829         * tests/uninorm/test-u32-normalize-big.h: New file.
40830         * tests/uninorm/test-u32-normalize-big.c: New file.
40831         * tests/uninorm/NormalizationTest.txt: New file, created from
40832         Unicode 5.1.0 NormalizationTest.txt.
40833         * modules/uninorm/nfd-tests: New file.
40834
40835         New module 'uninorm/nfd'.
40836         * lib/uninorm/nfd.c: New file.
40837         * modules/uninorm/nfd: New file.
40838
40839         New module 'uninorm/u32-normalize'.
40840         * lib/uninorm/u32-normalize.c: New file.
40841         * modules/uninorm/u32-normalize: New file.
40842
40843         New module 'uninorm/u16-normalize'.
40844         * lib/uninorm/u16-normalize.c: New file.
40845         * modules/uninorm/u16-normalize: New file.
40846
40847         New module 'uninorm/u8-normalize'.
40848         * lib/uninorm/u8-normalize.c: New file.
40849         * lib/uninorm/normalize-internal.h: New file.
40850         * lib/uninorm/u-normalize-internal.h: New file.
40851         * modules/uninorm/u8-normalize: New file.
40852
40853         New module 'uninorm/decompose-internal'.
40854         * lib/uninorm/decompose-internal.c: New file.
40855         * modules/uninorm/decompose-internal: New file.
40856
40857         Tests for module 'uninorm/composition'.
40858         * tests/uninorm/test-composition.c: New file.
40859         * modules/uninorm/composition-tests: New file.
40860
40861         New module 'uninorm/composition'.
40862         * lib/uninorm/composition.c: New file.
40863         * lib/uninorm/composition-table.gperf: New file, generated by
40864         gen-uni-tables.
40865         * modules/uninorm/composition: New file.
40866
40867         Tests for module 'uninorm/compat-decomposition'.
40868         * tests/uninorm/test-compat-decomposition.c: New file.
40869         * modules/uninorm/compat-decomposition-tests: New file.
40870
40871         New module 'uninorm/compat-decomposition'.
40872         * lib/uninorm/decompose-internal.h: New file.
40873         * lib/uninorm/compat-decomposition.c: New file.
40874         * modules/uninorm/compat-decomposition: New file.
40875
40876         Tests for module 'uninorm/canonical-decomposition'.
40877         * tests/uninorm/test-canonical-decomposition.c: New file.
40878         * modules/uninorm/canonical-decomposition-tests: New file.
40879
40880         New module 'uninorm/canonical-decomposition'.
40881         * lib/uninorm/canonical-decomposition.c: New file.
40882         * modules/uninorm/canonical-decomposition: New file.
40883
40884         Tests for module 'uninorm/decomposition'.
40885         * tests/uninorm/test-decomposition.c: New file.
40886         * modules/uninorm/decomposition-tests: New file.
40887
40888         New module 'uninorm/decomposition'.
40889         * lib/uninorm/decomposition.c: New file.
40890         * modules/uninorm/decomposition: New file.
40891
40892         New module 'uninorm/decomposition-table'.
40893         * lib/uninorm/decomposition-table.h: New file.
40894         * lib/uninorm/decomposition-table.c: New file.
40895         * lib/uninorm/decomposition-table1.h: New file, generated by
40896         gen-uni-tables.
40897         * lib/uninorm/decomposition-table2.h: New file, generated by
40898         gen-uni-tables.
40899         * modules/uninorm/decomposition-table: New file.
40900
40901         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40902         (UC_DECOMP_*): New enumeration items.
40903         (get_decomposition): New function.
40904         (struct decomp_table): New type.
40905         (output_decomposition, output_decomposition_tables): New functions.
40906         (unicode_composition_exclusions): New variable.
40907         (fill_composition_exclusions, debug_output_composition_tables): New
40908         functions.
40909         (main): Accept one more argument. Invoke fill_composition_exclusions.
40910         Output decomposition and composition tables.
40911
40912         New module 'uninorm/base'.
40913         * lib/uninorm.h: New file.
40914         * lib/unictype.h: Update comment.
40915         * modules/uninorm/base: New file.
40916
40917 2009-02-21  David Lutterkort  <lutter@redhat.com>
40918
40919         Tests for module 'safe-alloc'.
40920         * tests/test-safe-alloc.c: New file.
40921         * modules/safe-alloc-tests: New file.
40922
40923         New module 'safe-alloc'.
40924         * lib/safe-alloc.h: New file.
40925         * lib/safe-alloc.c: New file.
40926         * m4/safe-alloc.m4: New file.
40927         * modules/safe-alloc: New file.
40928         * doc/safe-alloc.texi: New file.
40929         * doc/gnulib.texi: Include it.
40930         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40931         safe-alloc.
40932
40933 2009-02-18  Bruno Haible  <bruno@clisp.org>
40934
40935         Fix link error on non-glibc systems.
40936         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40937         variable.
40938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40939
40940 2009-02-18  Jim Meyering  <meyering@redhat.com>
40941
40942         fts: avoid used-uninitialized error due to recent change
40943         * lib/fts.c (fts_read): Guard uses of the new member,
40944         parent->fts_n_dirs_remaining, since it's not relevant for
40945         the parent of a directory specified on the command-line.
40946
40947 2009-02-17  James Youngman  <jay@gnu.org>
40948             Bruno Haible  <bruno@clisp.org>
40949
40950         * m4/include_next.m4: Reformulate comment.
40951
40952 2009-02-16  Jim Meyering  <meyering@redhat.com>
40953
40954         fts: add #if guards so that the fts_lgpl module still builds
40955         * lib/fts.c: Guard just-added hash-table-using parts with
40956         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40957         Reported by Simon Josefsson.
40958
40959 2009-02-15  Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/array-mergesort-tests: New file.
40962         * tests/test-array-mergesort.c: New file.
40963
40964         New module 'array-mergesort'.
40965         * modules/array-mergesort: New file.
40966         * lib/array-mergesort.h: New file.
40967
40968 2009-02-15  Bruno Haible  <bruno@clisp.org>
40969
40970         Fix 2009-02-07 commit.
40971         * lib/gen-uni-tables.c (output_predicate, output_category,
40972         output_combclass, output_bidi_category, output_decimal_digit,
40973         output_digit, output_numeric, output_mirror, output_scripts,
40974         output_ident_category, output_simple_mapping): Fix format directives.
40975         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40976
40977 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40978
40979         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40980         fixes are available from IBM.
40981
40982 2009-02-13  Jim Meyering  <meyering@redhat.com>
40983
40984         fts: arrange not to stat non-directories in more cases
40985         This makes GNU find (when it doesn't need to stat each file)
40986         *much* more efficient at traversing reiserfs file systems.
40987         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40988         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40989         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40990         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40991         (leaf_optimization_applies): New function.
40992         (LCO_hash, LCO_compare): New helper functions.
40993         (link_count_optimize_ok): New function.
40994         (fts_stat): Initialize new member (if dir).
40995         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40996         we've just stat'ed a directory.  Skip the stat call when possible.
40997         ---
40998         Note this AFS-related exchange:
40999         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41000         and note find's pioctl call in find/fstype.c.
41001         But that is necessary only if you want to enable the
41002         optimization for AFS, and for now, I don't.
41003
41004         fts: move a function definition "up" (no semantic change)
41005         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41006         "up" to precede upcoming use of a related function.
41007
41008 2009-02-11  Jim Meyering  <meyering@redhat.com>
41009
41010         fts: correct internal computation of nlinks (optimization-related)
41011         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41012         whether the current entry is a directory, so don't test it.
41013
41014 2009-02-10  Bruno Haible  <bruno@clisp.org>
41015
41016         Tests for module 'uniwbrk/ulc-wordbreaks'.
41017         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41018         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41019         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41020
41021         Tests for module 'uniwbrk/u32-wordbreaks'.
41022         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41023         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41024
41025         Tests for module 'uniwbrk/u16-wordbreaks'.
41026         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41027         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41028
41029         Tests for module 'uniwbrk/u8-wordbreaks'.
41030         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41031         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41032
41033 2009-02-10  Bruno Haible  <bruno@clisp.org>
41034
41035         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41036         property.
41037         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41038         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41039         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41040
41041 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41042
41043         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41044         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41045
41046 2009-02-10  Bruno Haible  <bruno@clisp.org>
41047
41048         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41049         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41050         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41051         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41052         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41053         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41054
41055 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41056
41057         * lib/sockets.h (gl_fd_to_handle): New function.
41058
41059         * tests/test-sockets.c: Call gl_fd_to_handle.
41060
41061 2009-02-09  Bruno Haible  <bruno@clisp.org>
41062
41063         * doc/havelib.texi: Document the conventions on bi-arch systems.
41064
41065 2009-02-08  Bruno Haible  <bruno@clisp.org>
41066
41067         Document the AC_LIB_LINKFLAGS macro.
41068         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41069         * doc/gnulib.texi: Include it.
41070
41071 2009-02-08  Bruno Haible  <bruno@clisp.org>
41072
41073         Fix wrong order of sections, compared to TOC.
41074         * doc/gnulib.texi: Include relocatable-maint.texi after the
41075         "Regular expressions" node, not before.
41076
41077 2009-02-08  Bruno Haible  <bruno@clisp.org>
41078
41079         Tests for module 'unicase/totitle'.
41080         * modules/unicase/totitle-tests: New file.
41081
41082         Tests for module 'unicase/tolower'.
41083         * modules/unicase/tolower-tests: New file.
41084
41085         Tests for module 'unicase/toupper'.
41086         * modules/unicase/toupper-tests: New file.
41087         * tests/unicase/test-mapping-part1.h: New file.
41088         * tests/unicase/test-mapping-part2.h: New file.
41089
41090         New module 'unicase/totitle'.
41091         * modules/unicase/totitle: New file.
41092         * lib/unicase/totitle.c: New file.
41093
41094         New module 'unicase/tolower'.
41095         * modules/unicase/tolower: New file.
41096         * lib/unicase/tolower.c: New file.
41097
41098         New module 'unicase/toupper'.
41099         * modules/unicase/toupper: New file.
41100         * lib/unicase/toupper.c: New file.
41101         * lib/unicase/simple-mapping.h: New file.
41102
41103         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41104         (mapping_table): New structure.
41105         (output_simple_mapping): New function.
41106         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41107         * modules/gen-uni-tables (Description): Update.
41108         * lib/unicase/toupper.h: New file, automatically generated by
41109         gen-uni-tables.
41110         * lib/unicase/tolower.h: New file, automatically generated by
41111         gen-uni-tables.
41112         * lib/unicase/totitle.h: New file, automatically generated by
41113         gen-uni-tables.
41114         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41115         gen-uni-tables.
41116         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41117         gen-uni-tables.
41118         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41119         gen-uni-tables.
41120
41121         New module 'unicase/base'.
41122         * modules/unicase/base: New file.
41123         * lib/unicase.h: New file.
41124
41125 2009-02-08  Bruno Haible  <bruno@clisp.org>
41126
41127         New module 'uniwbrk/ulc-wordbreaks'.
41128         * modules/uniwbrk/ulc-wordbreaks: New file.
41129         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41130
41131         New module 'uniwbrk/u32-wordbreaks'.
41132         * modules/uniwbrk/u32-wordbreaks: New file.
41133         * lib/uniwbrk/u32-wordbreaks.c: New file.
41134
41135         New module 'uniwbrk/u16-wordbreaks'.
41136         * modules/uniwbrk/u16-wordbreaks: New file.
41137         * lib/uniwbrk/u16-wordbreaks.c: New file.
41138
41139         New module 'uniwbrk/u8-wordbreaks'.
41140         * modules/uniwbrk/u8-wordbreaks: New file.
41141         * lib/uniwbrk/u8-wordbreaks.c: New file.
41142         * lib/uniwbrk/u-wordbreaks.h: New file.
41143
41144         New module 'uniwbrk/table'.
41145         * modules/uniwbrk/table: New file.
41146         * lib/uniwbrk/wbrktable.h: New file.
41147         * lib/uniwbrk/wbrktable.c: New file.
41148
41149         New module 'uniwbrk/wordbreak-property'.
41150         * modules/uniwbrk/wordbreak-property: New file.
41151         * lib/uniwbrk/wordbreak-property.c: New file.
41152
41153         * lib/gen-uni-tables.c (WBP_*): New enum items.
41154         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41155         (unicode_org_wbp): New variable.
41156         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41157         New functions.
41158         (wbp_table): New structure.
41159         (output_wbp, output_wbrk_tables): New functions.
41160         (main): Accept additional argument. Invoke fill_org_wbp,
41161         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41162         output_wbrk_tables.
41163         * modules/gen-uni-tables (Description): Update.
41164         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41165         gen-uni-tables.
41166
41167         New module 'uniwbrk/base'.
41168         * modules/uniwbrk/base: New file.
41169         * lib/uniwbrk.h: New file.
41170
41171 2009-02-08  Bruno Haible  <bruno@clisp.org>
41172
41173         Update to Unicode 5.1.0.
41174         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41175         U+2185..U+2188.
41176         (is_property_default_ignorable_code_point): Don't include characters
41177         of category Cc or Cs and not-a-characters.
41178         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41179         U+0D79, U+109E, U+109F, U+A60C.
41180         * lib/unictype/bidi_of.h: Regenerated.
41181         * lib/unictype/blocks.h: Regenerated.
41182         * lib/unictype/categ_C.h: Regenerated.
41183         * lib/unictype/categ_Cf.h: Regenerated.
41184         * lib/unictype/categ_Cn.h: Regenerated.
41185         * lib/unictype/categ_L.h: Regenerated.
41186         * lib/unictype/categ_Ll.h: Regenerated.
41187         * lib/unictype/categ_Lm.h: Regenerated.
41188         * lib/unictype/categ_Lo.h: Regenerated.
41189         * lib/unictype/categ_Lu.h: Regenerated.
41190         * lib/unictype/categ_M.h: Regenerated.
41191         * lib/unictype/categ_Mc.h: Regenerated.
41192         * lib/unictype/categ_Me.h: Regenerated.
41193         * lib/unictype/categ_Mn.h: Regenerated.
41194         * lib/unictype/categ_N.h: Regenerated.
41195         * lib/unictype/categ_Nd.h: Regenerated.
41196         * lib/unictype/categ_Nl.h: Regenerated.
41197         * lib/unictype/categ_No.h: Regenerated.
41198         * lib/unictype/categ_P.h: Regenerated.
41199         * lib/unictype/categ_Pd.h: Regenerated.
41200         * lib/unictype/categ_Pe.h: Regenerated.
41201         * lib/unictype/categ_Pf.h: Regenerated.
41202         * lib/unictype/categ_Pi.h: Regenerated.
41203         * lib/unictype/categ_Po.h: Regenerated.
41204         * lib/unictype/categ_Ps.h: Regenerated.
41205         * lib/unictype/categ_S.h: Regenerated.
41206         * lib/unictype/categ_Sk.h: Regenerated.
41207         * lib/unictype/categ_Sm.h: Regenerated.
41208         * lib/unictype/categ_So.h: Regenerated.
41209         * lib/unictype/categ_of.h: Regenerated.
41210         * lib/unictype/combining.h: Regenerated.
41211         * lib/unictype/ctype_alnum.h: Regenerated.
41212         * lib/unictype/ctype_alpha.h: Regenerated.
41213         * lib/unictype/ctype_graph.h: Regenerated.
41214         * lib/unictype/ctype_lower.h: Regenerated.
41215         * lib/unictype/ctype_print.h: Regenerated.
41216         * lib/unictype/ctype_punct.h: Regenerated.
41217         * lib/unictype/ctype_upper.h: Regenerated.
41218         * lib/unictype/decdigit.h: Regenerated.
41219         * lib/unictype/digit.h: Regenerated.
41220         * lib/unictype/mirror.h: Regenerated.
41221         * lib/unictype/numeric.h: Regenerated.
41222         * lib/unictype/pr_alphabetic.h: Regenerated.
41223         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41224         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41225         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41226         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41227         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41228         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41229         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41230         * lib/unictype/pr_combining.h: Regenerated.
41231         * lib/unictype/pr_dash.h: Regenerated.
41232         * lib/unictype/pr_decimal_digit.h: Regenerated.
41233         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41234         * lib/unictype/pr_deprecated.h: Regenerated.
41235         * lib/unictype/pr_diacritic.h: Regenerated.
41236         * lib/unictype/pr_extender.h: Regenerated.
41237         * lib/unictype/pr_format_control.h: Regenerated.
41238         * lib/unictype/pr_grapheme_base.h: Regenerated.
41239         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41240         * lib/unictype/pr_grapheme_link.h: Regenerated.
41241         * lib/unictype/pr_id_continue.h: Regenerated.
41242         * lib/unictype/pr_id_start.h: Regenerated.
41243         * lib/unictype/pr_ideographic.h: Regenerated.
41244         * lib/unictype/pr_ignorable_control.h: Regenerated.
41245         * lib/unictype/pr_lowercase.h: Regenerated.
41246         * lib/unictype/pr_math.h: Regenerated.
41247         * lib/unictype/pr_numeric.h: Regenerated.
41248         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41249         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41250         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41251         * lib/unictype/pr_other_id_continue.h: Regenerated.
41252         * lib/unictype/pr_other_lowercase.h: Regenerated.
41253         * lib/unictype/pr_other_math.h: Regenerated.
41254         * lib/unictype/pr_punctuation.h: Regenerated.
41255         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41256         * lib/unictype/pr_soft_dotted.h: Regenerated.
41257         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41258         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41259         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41260         * lib/unictype/pr_uppercase.h: Regenerated.
41261         * lib/unictype/pr_xid_continue.h: Regenerated.
41262         * lib/unictype/pr_xid_start.h: Regenerated.
41263         * lib/unictype/pr_zero_width.h: Regenerated.
41264         * lib/unictype/scripts.h: Regenerated.
41265         * lib/unictype/scripts_byname.gperf: Regenerated.
41266         * lib/unictype/sy_java_ident.h: Regenerated.
41267         * lib/unilbrk/lbrkprop1.h: Regenerated.
41268         * lib/unilbrk/lbrkprop2.h: Regenerated.
41269         * tests/unictype/test-categ_C.c: Regenerated.
41270         * tests/unictype/test-categ_Cf.c: Regenerated.
41271         * tests/unictype/test-categ_Cn.c: Regenerated.
41272         * tests/unictype/test-categ_L.c: Regenerated.
41273         * tests/unictype/test-categ_Ll.c: Regenerated.
41274         * tests/unictype/test-categ_Lm.c: Regenerated.
41275         * tests/unictype/test-categ_Lo.c: Regenerated.
41276         * tests/unictype/test-categ_Lu.c: Regenerated.
41277         * tests/unictype/test-categ_M.c: Regenerated.
41278         * tests/unictype/test-categ_Mc.c: Regenerated.
41279         * tests/unictype/test-categ_Me.c: Regenerated.
41280         * tests/unictype/test-categ_Mn.c: Regenerated.
41281         * tests/unictype/test-categ_N.c: Regenerated.
41282         * tests/unictype/test-categ_Nd.c: Regenerated.
41283         * tests/unictype/test-categ_Nl.c: Regenerated.
41284         * tests/unictype/test-categ_No.c: Regenerated.
41285         * tests/unictype/test-categ_P.c: Regenerated.
41286         * tests/unictype/test-categ_Pd.c: Regenerated.
41287         * tests/unictype/test-categ_Pe.c: Regenerated.
41288         * tests/unictype/test-categ_Pf.c: Regenerated.
41289         * tests/unictype/test-categ_Pi.c: Regenerated.
41290         * tests/unictype/test-categ_Po.c: Regenerated.
41291         * tests/unictype/test-categ_Ps.c: Regenerated.
41292         * tests/unictype/test-categ_S.c: Regenerated.
41293         * tests/unictype/test-categ_Sk.c: Regenerated.
41294         * tests/unictype/test-categ_Sm.c: Regenerated.
41295         * tests/unictype/test-categ_So.c: Regenerated.
41296         * tests/unictype/test-ctype_alnum.c: Regenerated.
41297         * tests/unictype/test-ctype_alpha.c: Regenerated.
41298         * tests/unictype/test-ctype_graph.c: Regenerated.
41299         * tests/unictype/test-ctype_lower.c: Regenerated.
41300         * tests/unictype/test-ctype_print.c: Regenerated.
41301         * tests/unictype/test-ctype_punct.c: Regenerated.
41302         * tests/unictype/test-ctype_upper.c: Regenerated.
41303         * tests/unictype/test-decdigit.h: Regenerated.
41304         * tests/unictype/test-digit.h: Regenerated.
41305         * tests/unictype/test-numeric.h: Regenerated.
41306         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41307         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41308         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41309         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41310         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41311         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41312         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41313         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41314         * tests/unictype/test-pr_combining.c: Regenerated.
41315         * tests/unictype/test-pr_dash.c: Regenerated.
41316         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41317         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41318         * tests/unictype/test-pr_deprecated.c: Regenerated.
41319         * tests/unictype/test-pr_diacritic.c: Regenerated.
41320         * tests/unictype/test-pr_extender.c: Regenerated.
41321         * tests/unictype/test-pr_format_control.c: Regenerated.
41322         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41323         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41324         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41325         * tests/unictype/test-pr_id_continue.c: Regenerated.
41326         * tests/unictype/test-pr_id_start.c: Regenerated.
41327         * tests/unictype/test-pr_ideographic.c: Regenerated.
41328         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41329         * tests/unictype/test-pr_lowercase.c: Regenerated.
41330         * tests/unictype/test-pr_math.c: Regenerated.
41331         * tests/unictype/test-pr_numeric.c: Regenerated.
41332         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41333         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41334         Regenerated.
41335         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41336         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41337         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41338         * tests/unictype/test-pr_other_math.c: Regenerated.
41339         * tests/unictype/test-pr_punctuation.c: Regenerated.
41340         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41341         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41342         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41343         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41344         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41345         * tests/unictype/test-pr_uppercase.c: Regenerated.
41346         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41347         * tests/unictype/test-pr_xid_start.c: Regenerated.
41348         * tests/unictype/test-pr_zero_width.c: Regenerated.
41349
41350         Update to Unicode 5.1.0.
41351         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41352         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41353         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41354         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41355         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41356         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41357         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41358         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41359         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41360         (nonspacing_table_ind): Update.
41361         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41362
41363         Update to Unicode 5.1.0.
41364         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41365         code transform.
41366         * lib/uniname/uniname.c (unicode_character_name,
41367         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41368         * lib/uniname/uninames.h: Regenerated.
41369         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41370
41371 2009-02-07  Bruno Haible  <bruno@clisp.org>
41372
41373         Merge gen-ctype and gen-lbrk into a single program.
41374         * lib/gen-uni-tables.c: New file, incorporating
41375         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41376         Add directory prefixes to the names of the generated files.
41377         * lib/unictype/gen-ctype.c: Remove file.
41378         * lib/unilbrk/gen-lbrk.c: Remove file.
41379         * modules/gen-uni-tables: New file.
41380         * modules/unictype/gen-ctype: Remove file.
41381         * modules/unilbrk/gen-lbrk: Remove file.
41382
41383 2009-02-07  Bruno Haible  <bruno@clisp.org>
41384
41385         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41386
41387         New module 'unistr/u32-strcoll'.
41388         * modules/unistr/u32-strcoll: New file.
41389         * lib/unistr/u32-strcoll.c: New file.
41390
41391         New module 'unistr/u16-strcoll'.
41392         * modules/unistr/u16-strcoll: New file.
41393         * lib/unistr/u16-strcoll.c: New file.
41394
41395         New module 'unistr/u8-strcoll'.
41396         * modules/unistr/u8-strcoll: New file.
41397         * lib/unistr/u8-strcoll.c: New file.
41398         * lib/unistr/u-strcoll.h: New file.
41399
41400 2009-02-07  Bruno Haible  <bruno@clisp.org>
41401
41402         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41403         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41404         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41405         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41406         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41407         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41408
41409 2009-02-07  Bruno Haible  <bruno@clisp.org>
41410
41411         Make 64-bit clean.
41412         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41413         output_combclass, output_bidi_category, output_decimal_digit,
41414         output_digit, output_numeric, output_mirror, output_scripts,
41415         output_ident_category): Use proper width specifier in format strings.
41416
41417 2009-02-07  Bruno Haible  <bruno@clisp.org>
41418
41419         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41420         failure behaviour.
41421
41422 2009-02-07  Jim Meyering  <meyering@redhat.com>
41423
41424         regex: avoid compilation failure with upcoming gcc-4.4
41425         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41426         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41427         "... error: integer overflow in preprocessor expression".
41428
41429 2009-02-05  Ben Pfaff  <blp@gnu.org>
41430
41431         Fix link errors on Windows when close module is used.
41432         * modules/close: Add $(LIB_CLOSE) to Link section.
41433         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41434         $(LIB_CLOSE) on Windows.
41435
41436 2009-02-05  Jim Meyering  <meyering@redhat.com>
41437
41438         still avoid unused-parameter warnings, but do it cleanly
41439         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41440         (get_fs_usage): Cast to void instead.
41441         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41442         (dev_from_mount_options, read_file_system_list): Cast to void.
41443         Prompted by Bruno Haible.
41444
41445 2009-02-04  Jim Meyering  <meyering@redhat.com>
41446
41447         fsusage.c: correct copyright year
41448         * lib/fsusage.c: Reflect year in which the change is pushed into
41449
41450         avoid misc. warnings
41451         * lib/fsusage.c (UNUSED_PARAM): Define.
41452         (get_fs_usage): Mark parameter "disk" as unused.
41453         * lib/getugroups.c (getgrent): Use "void" in prototype.
41454         * lib/mountlist.c: Mark unused parameters.
41455         (read_file_system_list): Declare a local with "const".
41456         * lib/nanosleep.c (getnow): Declare static.
41457         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41458
41459         dirfd: set errno upon failure
41460         * lib/dirfd.c: Include <errno.h>.
41461         Set errno to ENOTSUP when returning -1.
41462         * modules/dirfd (Depends-on): Add errno.
41463         Suggested by John Kodis <kodis@comcast.net>.
41464
41465 2009-02-01  Bruno Haible  <bruno@clisp.org>
41466
41467         Don't assume sizeof (long) >= sizeof (void *).
41468         * lib/memcmp.c: Include stdint.h.
41469         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41470         srcp2 to 'const byte *'.
41471         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41472         types to uintptr_t.
41473         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41474         * modules/memcmp (Depends-on): Add stdint.
41475         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41476
41477 2009-01-30  Eric Blake  <ebb9@byu.net>
41478
41479         fix more require-before-expand issues
41480         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41481         expand, AC_PROG_AWK.
41482         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41483
41484 2009-01-28  Eric Blake  <ebb9@byu.net>
41485
41486         version-etc: use consistent URL formatting
41487         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41488         Improve formatting.  Use fputs for string without %.
41489
41490 2009-01-28  Jim Meyering  <meyering@redhat.com>
41491
41492         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41493         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41494         "underquoted definition of NAME" from autoconf-2.59.
41495
41496 2009-01-28  Bruno Haible  <bruno@clisp.org>
41497
41498         * doc/gnulib.texi: Add "Obsolete modules" to index.
41499
41500 2009-01-28  Jim Meyering  <meyering@redhat.com>
41501
41502         useless-if-before-free: recognize more variants
41503         * build-aux/useless-if-before-free: Also recognize e.g.,
41504         if (NULL != p) free (p);
41505
41506 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41507
41508         test-getaddrinfo: skip (don't fail) this test when there's no network
41509         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41510         on the presumption that it means you lack network access.
41511
41512 2009-01-26  Jim Meyering  <meyering@redhat.com>
41513
41514         fflush: avoid warnings on modern systems
41515         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41516         pos and result, into scopes where they're used.
41517
41518 2009-01-26  Eric Blake  <ebb9@byu.net>
41519
41520         Silence warning reintroduced by recent extensions patch.
41521         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41522         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41523         autoconf.
41524
41525         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41526         * m4/00gnulib.m4: New file.
41527         * gnulib-tool (func_get_filelist): Always use it.
41528         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41529         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41530
41531 2009-01-25  Bruno Haible  <bruno@clisp.org>
41532
41533         Make test-quotearg work on MacOS X and AIX.
41534         * tests/test-quotearg.sh: New file.
41535         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41536         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41537         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41538         include <libintl.h>.
41539         (fake_locale): Remove variable.
41540         (gettext, dgettext, dcgettext): Remove functions.
41541         (main): Instead of setting a fake locale, set a real locale. Call
41542         textdomain and bindtextdomain.
41543         * modules/quotearg-tests (Files): Add the new files.
41544         (Depends-on): Add gettext, setenv, unsetenv.
41545         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41546         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41547         Augment TESTS_ENVIRONMENT.
41548
41549 2009-01-25  Bruno Haible  <bruno@clisp.org>
41550
41551         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41552         fr_FR.ISO8859-1 locale on MacOS X.
41553         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41554         ja_JP.eucJP locale on MacOS X.
41555         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41556         zh_CN.GB18030 locale on MacOS X.
41557
41558 2009-01-25  Bruno Haible  <bruno@clisp.org>
41559
41560         Avoid link errors on MacOS X 10.3.
41561         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41562         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41563
41564 2009-01-25  Bruno Haible  <bruno@clisp.org>
41565
41566         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41567         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41568         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41569         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41570         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41571         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41572         posix_spawnattr_init, posix_spawnattr_setsigmask,
41573         posix_spawnattr_setflags, posix_spawnattr_destroy.
41574
41575         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41576         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41577         * modules/execute (Files): Remove m4/posix_spawn.m4.
41578         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41579         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41580         posix_spawnattr_init, posix_spawnattr_setsigmask,
41581         posix_spawnattr_setflags, posix_spawnattr_destroy.
41582
41583 2009-01-25  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/glthread/threadlib.c: Include <stdlib.h>.
41586
41587 2009-01-25  Bruno Haible  <bruno@clisp.org>
41588
41589         * lib/glthread/threadlib.c (dummy): New declaration.
41590
41591 2009-01-25  Bruno Haible  <bruno@clisp.org>
41592
41593         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41594         multibyte characters also for the GB18030 encoding. Don't crash when
41595         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41596
41597 2009-01-25  Bruno Haible  <bruno@clisp.org>
41598
41599         Avoid redefining 'struct random_data' on OSF/1 5.1.
41600         * lib/stdlib.in.h: Include <random.h> if it exists.
41601         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41602         HAVE_RANDOM_H. Include <random.h> when testing whether
41603         'struct random_data' exists.
41604         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41605
41606 2009-01-25  Bruno Haible  <bruno@clisp.org>
41607
41608         Don't install charset.alias on MacOS X >= 10.3.
41609         * lib/localcharset.c (DARWIN7): New macro.
41610         (get_charset_aliases): Hardcode the result for Darwin7.
41611         * modules/localcharset (install-exec-local): Don't install
41612         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41613
41614 2009-01-25  Bruno Haible  <bruno@clisp.org>
41615
41616         Don't install charset.alias on mingw and Cygwin.
41617         * modules/localcharset (install-exec-local): Don't install
41618         charset.alias on mingw and Cygwin, if the file does not yet exist.
41619         The result for these platforms is hardcoded in localcharset.c.
41620
41621 2009-01-25  Bruno Haible  <bruno@clisp.org>
41622
41623         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41624         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41625         before requiring AC_USE_SYSTEM_EXTENSIONS.
41626
41627 2009-01-25  Jim Meyering  <meyering@redhat.com>
41628
41629         c-strtod: avoid warnings
41630         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41631         "assignment discards qualifiers from pointer target type" warnings.
41632
41633 2009-01-24  Bruno Haible  <bruno@clisp.org>
41634
41635         Add support for non-UTF-8 locales on MacOS X.
41636         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41637         canonical encodings. For Darwin 7 and newer, don't map traditional
41638         encodings to UTF-8.
41639         Reported by Vincent Lefevre <vincent@vinc17.org>
41640         at <http://savannah.gnu.org/bugs/?25235>.
41641
41642 2009-01-24  Bruno Haible  <bruno@clisp.org>
41643
41644         * doc/gnulib.texi (Obsolete modules): New section.
41645         Reported by Mike Frysinger <vapier@gentoo.org>.
41646
41647 2009-01-24  Bruno Haible  <bruno@clisp.org>
41648
41649         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41650         (%.dvi): New rule.
41651
41652 2009-01-24  Bruno Haible  <bruno@clisp.org>
41653
41654         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41655         Reported by Eric Blake.
41656
41657 2009-01-24  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41660         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41661         Reported by Gary V. Vaughan <gary@gnu.org>.
41662
41663 2009-01-24  Bruno Haible  <bruno@clisp.org>
41664
41665         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41666
41667 2009-01-23  Bruno Haible  <bruno@clisp.org>
41668
41669         Make c-strtod, c-strtold usable in libraries.
41670         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41671         (C_STRTOD): Call strdup instead of xstrdup.
41672         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41673         * modules/c-strtold (Depends-on): Likewise.
41674         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41675         * NEWS: Mention the change.
41676         Reported by Michael Gold <mgold@ncf.ca>.
41677
41678 2009-01-23  Jim Meyering  <meyering@redhat.com>
41679
41680         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41681         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41682         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41683
41684 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41685
41686         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41687         GNU CoreUtils.
41688         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41689         * modules/version-etc (Description): Update.
41690
41691 2009-01-22  Bruno Haible  <bruno@clisp.org>
41692
41693         Cache the C locale object.
41694         * lib/c-strtod.c (c_locale_cache): New variable.
41695         (c_locale): New function.
41696         (C_STRTOD): Use it, and don't call freelocale.
41697         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41698         Suggested by Paolo Bonzini.
41699
41700 2009-01-21  Bruno Haible  <bruno@clisp.org>
41701
41702         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41703         conditions other than overflow.
41704
41705 2009-01-21  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/c-strtod.c: Include errno.h.
41708         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41709         value from STRTOD_L and STRTOD.
41710
41711 2009-01-21  Bruno Haible  <bruno@clisp.org>
41712         and Jim Meyering  <meyering@redhat.com>
41713
41714         nanosleep: skip configure test (fail it) for apple universal builds
41715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41716         universal builds, assume that nanosleep does not work.
41717         * modules/nanosleep (Depends-on): Add multiarch.
41718
41719         mktime: skip configure test (fail it) for apple universal builds
41720         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41721         universal builds, assume that mktime does not work.
41722         * modules/mktime (Depends-on): Add multiarch.
41723
41724 2009-01-21  Eric Blake  <ebb9@byu.net>
41725
41726         multiarch: avoid expand-before-require warning
41727         * modules/multiarch (configure.ac): Require, rather than expand,
41728         gl_MULTIARCH.
41729         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41730         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41731         enforce that all clients require it.  Partial reversion of
41732         2008-12-29 patch.
41733
41734         error: avoid expand-before-require warning
41735         * modules/errno (configure.ac): Require, rather than expand,
41736         gl_HEADER_ERRNO_H.
41737         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41738         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41739         enforce that all clients require it.
41740
41741         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41742         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41743         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41744         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41745
41746 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41747
41748         Revert:
41749         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41750
41751         regex: do not depend on obsolete modules.
41752         * modules/regex: Remove memcmp and memmove.
41753
41754 2009-01-20  Bruno Haible  <bruno@clisp.org>
41755
41756         Make the 'link' module link on Windows NT 4.
41757         * lib/link.c (_WIN32_WINNT): Don't define.
41758         (CreateHardLinkFuncType): New type.
41759         (CreateHardLinkFunc, initialized): New variables.
41760         (initialize): New function.
41761         (link): Invoke CreateHardLink indirectly through the function pointer.
41762
41763 2009-01-20  Bruno Haible  <bruno@clisp.org>
41764
41765         Fix compilation failure on mingw.
41766         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41767
41768 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41769
41770         * doc/c-strtod.texi: Mention a couple of restrictions.
41771
41772 2009-01-20  Jim Meyering  <meyering@redhat.com>
41773
41774         gettimeofday: move more declarations out of functions
41775         * lib/gettimeofday.c: Move extern declarations of tzset and
41776         gmtime out of containing functions.  Prompted by Bruno Haible.
41777
41778 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41779
41780         regex: do not depend on obsolete modules.
41781         * modules/regex: Remove memcmp and memmove.
41782
41783 2009-01-19  Bruno Haible  <bruno@clisp.org>
41784
41785         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41786         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41787         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41788         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41789         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41790
41791 2009-01-19  Bruno Haible  <bruno@clisp.org>
41792
41793         * tests/test-link.c: Include <errno.h>.
41794         (main): Exit with code 77 when a hard link cannot be created due to
41795         the file system.
41796         * tests/test-link.sh: Skip test when a hard link cannot be created due
41797         to the file system.
41798         Suggested by Eric Blake.
41799
41800 2009-01-19  Martin Lambers  <marlam@marlam.de>
41801
41802         * modules/link-tests: New file.
41803         * tests/test-link.sh: New file.
41804         * tests/test-link.c: New file.
41805
41806 2009-01-19  Eric Blake  <ebb9@byu.net>
41807
41808         doc: mention another function added in cygwin 1.7.0
41809         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41810         Another new function in cygwin 1.7.
41811
41812 2009-01-19  Bruno Haible  <bruno@clisp.org>
41813
41814         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41815         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41816         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41817         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41818         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41819         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41820         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41821         * m4/md4.m4 (gl_MD4): Likewise.
41822         * m4/md5.m4 (gl_MD5): Likewise.
41823         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41824         * m4/sha1.m4 (gl_SHA1): Likewise.
41825         * m4/sha256.m4 (gl_SHA256): Likewise.
41826         * m4/sha512.m4 (gl_SHA512): Likewise.
41827
41828 2009-01-19  Bruno Haible  <bruno@clisp.org>
41829
41830         * modules/uniname/uniname-tests (Depends-on): Add progname.
41831         * tests/uniname/test-uninames.c: Include progname.h.
41832         (main): Call set_program_name.
41833
41834         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41835         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41836         (main): Call set_program_name.
41837
41838         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41839         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41840         (main): Call set_program_name.
41841
41842         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41843         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41844         (main): Call set_program_name.
41845
41846         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41847         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41848         (main): Call set_program_name.
41849
41850         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41851         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41852         (main): Call set_program_name.
41853
41854         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41855         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41856         (main): Call set_program_name.
41857
41858         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41859         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41860         (main): Call set_program_name.
41861
41862         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41863         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41864         (main): Call set_program_name.
41865
41866 2009-01-19  Eric Blake  <ebb9@byu.net>
41867
41868         test-unistd: test previous patch
41869         * tests/test-unistd.c: Test *_FILENO macros.
41870
41871         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41872         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41873         Guarantee a definition.
41874         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41875         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41876         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41877         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41878         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41879         Likewise.
41880         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41881         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41882         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41883         Likewise.
41884         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41885         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41886         (STDERR_FILENO): Likewise.
41887         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41888         (STDERR_FILENO): Likewise.
41889         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41890         (STDERR_FILENO): Likewise.
41891         Reported by Elbert Pol.
41892
41893 2009-01-19  Eric Blake  <ebb9@byu.net>
41894
41895         doc: mention more functions added in cygwin 1.7.0
41896         * doc/posix-functions/abort.texi (abort): Update wording related
41897         to cygwin.
41898         * doc/posix-functions/daylight.texi (daylight): Likewise.
41899         * doc/posix-functions/optarg.texi (optarg): Likewise.
41900         * doc/posix-functions/optarg.texi (opterr): Likewise.
41901         * doc/posix-functions/optarg.texi (optind): Likewise.
41902         * doc/posix-functions/optarg.texi (optopt): Likewise.
41903         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41904         worked in 1.5.x, and was withdrawn in 1.7.
41905         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41906         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41907         cygwin versions.
41908         * doc/posix-functions/perror.texi (perror): Likewise.
41909         * doc/posix-functions/printf.texi (printf): Likewise.
41910         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41911         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41912         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41913         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41914         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41915         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41916         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41917         Likewise.
41918         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41919         Likewise.
41920         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41921         this function.
41922         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41923         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41924         Likewise.
41925         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41926         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41927         * doc/posix-functions/confstr.texi (confstr): Likewise.
41928         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41929         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41930         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41931         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41932         * doc/posix-functions/fputws.texi (fputws): Likewise.
41933         * doc/posix-functions/fwide.texi (fwide): Likewise.
41934         * doc/posix-functions/getwc.texi (getwc): Likewise.
41935         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41936         * doc/posix-functions/putwc.texi (putwc): Likewise.
41937         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41938         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41939         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41940         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41941         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41942         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41943         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41944         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41945         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41946         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41947         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41948
41949 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41950
41951         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41952         * lib/ioctl.c: Include <sys/ioctl.h>.
41953
41954 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41955
41956         * modules/getdate-tests (Depends-on): Add progname.
41957         * tests/test-getdate.c: Use progname module, to avoid link errors
41958         on non-glibc systems.
41959
41960 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41961
41962         * modules/filenamecat-tests (Depends-on): Add progname.
41963         * modules/fstrcmp-tests (Depends-on): Likewise.
41964
41965         * tests/test-filenamecat.c: Use progname module, to avoid link
41966         errors on non-glibc systems.
41967         * tests/test-fstrcmp.c: Likewise.
41968
41969 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41970
41971         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41972         * lib/gettimeofday.c: Move extern declaration out of function.
41973
41974 2009-01-18  Bruno Haible  <bruno@clisp.org>
41975
41976         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41977         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41978         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41979
41980 2009-01-18  Bruno Haible  <bruno@clisp.org>
41981
41982         * lib/strftime.c (MEMPCPY): Remove unused macro.
41983         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41984
41985 2009-01-18  Martin Lambers  <marlam@marlam.de>
41986
41987         New module 'link'.
41988         * lib/unistd.in.h (link): New declaration.
41989         * lib/link.c: New file.
41990         * m4/link.m4: New file.
41991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41992         HAVE_LINK.
41993         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41994         * modules/link: New file.
41995         * doc/posix-functions/link.texi: Mention the new module.
41996
41997 2009-01-18  Bruno Haible  <bruno@clisp.org>
41998
41999         * tests/test-avltree_list.c (main): Call set_program_name.
42000         * tests/test-avltree_oset.c (main): Likewise.
42001         * tests/test-obstack-printf.c: Include progname.h.
42002         (main): Call set_program_name.
42003         * tests/test-quotearg.c: Include progname.h.
42004         (main): Call set_program_name.
42005         * tests/test-xmemdup0.c: Include progname.h.
42006         (main): Call set_program_name.
42007
42008 2009-01-18  Bruno Haible  <bruno@clisp.org>
42009
42010         New module 'alphasort'.
42011         * lib/dirent.in.h (alphasort): New declaration.
42012         * lib/alphasort.c: New file, from glibc with modifications.
42013         * m4/alphasort.m4: New file.
42014         * modules/alphasort: New file.
42015         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42016         HAVE_ALPHASORT.
42017         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42018         HAVE_ALPHASORT.
42019         * doc/posix-functions/alphasort.texi: Mention the new module and the
42020         portability problems.
42021
42022 2009-01-18  Bruno Haible  <bruno@clisp.org>
42023
42024         New module 'scandir'.
42025         * lib/dirent.in.h (scandir): New declaration.
42026         * lib/scandir.c: New file, from glibc with modifications.
42027         * m4/scandir.m4: New file.
42028         * modules/scandir: New file.
42029         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42030         HAVE_SCANDIR.
42031         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42032         HAVE_SCANDIR.
42033         * doc/posix-functions/scandir.texi: Mention the new module and the
42034         portability problems.
42035
42036 2009-01-17  Bruno Haible  <bruno@clisp.org>
42037
42038         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42039         Update documentation.
42040         (func_remove_suffix): Escape all dots in the suffix. Update
42041         documentation.
42042         (func_filter_filelist): Update documentation.
42043         Reported by Ralf Wildenhues.
42044
42045 2009-01-17  Bruno Haible  <bruno@clisp.org>
42046
42047         * modules/dprintf-posix-tests: New file.
42048         * tests/test-dprintf-posix.sh: New file.
42049         * tests/test-dprintf-posix.c: New file.
42050
42051         New modules 'dprintf', 'dprintf-posix'.
42052         * lib/stdio.in.h (dprintf): New declaration.
42053         * lib/dprintf.c: New file.
42054         * m4/dprintf.m4: New file.
42055         * m4/dprintf-posix.m4: New file.
42056         * modules/dprintf: New file.
42057         * modules/dprintf-posix: New file.
42058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42059         HAVE_DPRINTF, REPLACE_DPRINTF.
42060         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42061         HAVE_DPRINTF, REPLACE_DPRINTF.
42062         * doc/posix-functions/dprintf.texi: Mention the new modules.
42063
42064 2009-01-17  Bruno Haible  <bruno@clisp.org>
42065
42066         * modules/vdprintf-posix-tests: New file.
42067         * tests/test-vdprintf-posix.sh: New file.
42068         * tests/test-vdprintf-posix.c: New file.
42069
42070         New modules 'vdprintf', 'vdprintf-posix'.
42071         * lib/stdio.in.h (vdprintf): New declaration.
42072         * lib/vdprintf.c: New file.
42073         * m4/vdprintf.m4: New file.
42074         * m4/vdprintf-posix.m4: New file.
42075         * modules/vdprintf: New file.
42076         * modules/vdprintf-posix: New file.
42077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42078         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42079         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42080         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42081         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42082
42083 2009-01-17  Bruno Haible  <bruno@clisp.org>
42084
42085         Fix replacement of fopen on mingw.
42086         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42087         mingw.
42088
42089 2009-01-17  Bruno Haible  <bruno@clisp.org>
42090
42091         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42092         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42093
42094 2009-01-17  Bruno Haible  <bruno@clisp.org>
42095
42096         Avoid test-fflush2.sh failure on mingw.
42097         * tests/test-fflush2.c: Include binary-io.h.
42098         (main): Put standard input into binary mode.
42099         * modules/fflush-tests (Depends-on): Add binary-io.
42100
42101 2009-01-17  Bruno Haible  <bruno@clisp.org>
42102
42103         * lib/wchar.in.h: In another particular situation, include only the
42104         system's <wchar.h> file.
42105         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42106         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42107         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42108
42109 2009-01-17  Bruno Haible  <bruno@clisp.org>
42110
42111         Support for stripping executables in --enable-relocatable.
42112         * build-aux/install-reloc: Expect one more argument, or an environment
42113         variable RELOC_STRIP_PROG. If set, strip the destination program and
42114         its wrapper.
42115         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42116         RELOC_STRIP_PROG.
42117         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42118         to set RELOCATABLE_STRIP.
42119         * NEWS: Mention the new Makefile requirement.
42120
42121 2009-01-17  Bruno Haible  <bruno@clisp.org>
42122
42123         * build-aux/install-reloc: Remove debugging information left over by
42124         C compiler on MacOS X.
42125
42126 2009-01-17  Bruno Haible  <bruno@clisp.org>
42127
42128         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42129         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42130         _NSGetExecutablePath.
42131
42132 2009-01-16  Jim Meyering  <meyering@redhat.com>
42133
42134         strerror: avoid warnings about discarding "const"
42135         * lib/strerror.c (rpl_strerror): Instead of returning a const
42136         string from each and every "case", use a variable, and add a single
42137         cast after the switch.
42138
42139 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42140
42141         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42142
42143 2009-01-16  Bruno Haible  <bruno@clisp.org>
42144
42145         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42146         array initializer syntax that also works in C++ mode.
42147         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42148
42149 2009-01-16  Jim Meyering  <meyering@redhat.com>
42150
42151         poll: suppress a warning
42152         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42153         to ignore "...unsigned expression < 0 is always false" warnings.
42154
42155 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42156
42157         poll: remove declarations of unused variables
42158         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42159         sockbuf and optlen.
42160
42161 2009-01-15  Bruno Haible  <bruno@clisp.org>
42162
42163         Make fflush-after-ungetc POSIX compliant on BSD systems.
42164         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42165         (clear_ungetc_buffer): Implement also for other systems.
42166         (rpl_fflush): On glibc systems, invoke
42167         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42168         clear_ungetc_buffer after fetching the stream's position, not before.
42169
42170 2009-01-15  Bruno Haible  <bruno@clisp.org>
42171
42172         Make fflush-after-ungetc POSIX compliant on glibc systems.
42173         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42174         after ungetc.
42175         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42176         (rpl_fflush): On glibc systems, simply call the system's fflush
42177         function after clearing the ungetc buffer.
42178         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42179         Instead, lseek only to the end of file, then use the system's fseeko
42180         for the rest. On glibc systems, reset the EOF indicator bit.
42181
42182 2009-01-15  Jim Meyering  <meyering@redhat.com>
42183
42184         openmp.m4: revert quote-adding change, for portability to older autoconf
42185         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42186         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42187         Simon Josefsson noticed the problem when using autoconf-2.61.
42188
42189 2009-01-15  Bruno Haible  <bruno@clisp.org>
42190
42191         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42192         * tests/test-fflush2.c (ASSERT): Always fail.
42193         (main): Add two tests for fflush() after ungetc(), taking into account
42194         the Austin Group's clarification.
42195         Suggested by Eric Blake.
42196
42197 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42198
42199         mktime.m4: remove K&R-style function prototypes
42200         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42201         for the Sun C++ compiler.
42202
42203 2009-01-14  Bruno Haible  <bruno@clisp.org>
42204
42205         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42206         while including <wchar.h>.
42207         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42208         the system's <wchar.h> file.
42209         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42210
42211 2009-01-14  Bruno Haible  <bruno@clisp.org>
42212
42213         * m4/csharp.m4: Don't mention gettext on the serial number line.
42214         * m4/csharpexec.m4: Likewise.
42215         * m4/eaccess.m4: Likewise.
42216         * m4/javaexec.m4: Likewise.
42217         * m4/sig_atomic_t.m4: Likewise.
42218         * m4/tmpdir.m4: Likewise.
42219         * m4/intldir.m4: Bump gettext version.
42220         * m4/lib-ld.m4: Likewise.
42221
42222 2009-01-14  Bruno Haible  <bruno@clisp.org>
42223
42224         * lib/progname.c (set_program_name): Add more comments.
42225         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42226
42227 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42228
42229         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42230         were sys/stat.h does not define it.
42231
42232 2009-01-14  Jim Meyering  <meyering@redhat.com>
42233
42234         many *.m4 files: improve m4 quoting
42235         99% of this change was performed by running the following commands:
42236         git ls-files | grep '\.m4$' | xargs perl -pi \
42237           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42238           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42239           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42240           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42241         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42242         The remainder were to add Copyright dates, increment serial numbers,
42243         undo some changes in comments, exclude m4/intl.m4, and add quotes
42244         around the "1" in ",1" where the unusual spacing prohibited the
42245         above regexps from doing the job.  For more details, see
42246         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42247         * m4/acl.m4: Modified.
42248         * m4/afs.m4: Likewise.
42249         * m4/alloca.m4: Likewise.
42250         * m4/argp.m4: Likewise.
42251         * m4/argz.m4: Likewise.
42252         * m4/atexit.m4: Likewise.
42253         * m4/bison-i18n.m4: Likewise.
42254         * m4/bison.m4: Likewise.
42255         * m4/byteswap.m4: Likewise.
42256         * m4/c-stack.m4: Likewise.
42257         * m4/c-strtod.m4: Likewise.
42258         * m4/calloc.m4: Likewise.
42259         * m4/canonicalize-lgpl.m4: Likewise.
42260         * m4/chown.m4: Likewise.
42261         * m4/clock_time.m4: Likewise.
42262         * m4/codeset.m4: Likewise.
42263         * m4/copy-file.m4: Likewise.
42264         * m4/csharp.m4: Likewise.
42265         * m4/csharpcomp.m4: Likewise.
42266         * m4/csharpexec.m4: Likewise.
42267         * m4/d-ino.m4: Likewise.
42268         * m4/d-type.m4: Likewise.
42269         * m4/dirfd.m4: Likewise.
42270         * m4/double-slash-root.m4: Likewise.
42271         * m4/eaccess.m4: Likewise.
42272         * m4/eealloc.m4: Likewise.
42273         * m4/environ.m4: Likewise.
42274         * m4/errno_h.m4: Likewise.
42275         * m4/euidaccess.m4: Likewise.
42276         * m4/execute.m4: Likewise.
42277         * m4/fatal-signal.m4: Likewise.
42278         * m4/fchdir.m4: Likewise.
42279         * m4/fcntl_h.m4: Likewise.
42280         * m4/fileblocks.m4: Likewise.
42281         * m4/filenamecat.m4: Likewise.
42282         * m4/findprog.m4: Likewise.
42283         * m4/flexmember.m4: Likewise.
42284         * m4/fnmatch.m4: Likewise.
42285         * m4/fopen.m4: Likewise.
42286         * m4/fpending.m4: Likewise.
42287         * m4/fprintf-posix.m4: Likewise.
42288         * m4/free.m4: Likewise.
42289         * m4/frexp.m4: Likewise.
42290         * m4/frexpl.m4: Likewise.
42291         * m4/fsusage.m4: Likewise.
42292         * m4/ftruncate.m4: Likewise.
42293         * m4/gc-camellia.m4: Likewise.
42294         * m4/gc-random.m4: Likewise.
42295         * m4/gc.m4: Likewise.
42296         * m4/getaddrinfo.m4: Likewise.
42297         * m4/getcwd-abort-bug.m4: Likewise.
42298         * m4/getcwd-path-max.m4: Likewise.
42299         * m4/getdate.m4: Likewise.
42300         * m4/getdomainname.m4: Likewise.
42301         * m4/getgroups.m4: Likewise.
42302         * m4/gethostname.m4: Likewise.
42303         * m4/gethrxtime.m4: Likewise.
42304         * m4/getline.m4: Likewise.
42305         * m4/getloadavg.m4: Likewise.
42306         * m4/getndelim2.m4: Likewise.
42307         * m4/getpass.m4: Likewise.
42308         * m4/gettext.m4: Likewise.
42309         * m4/gettime.m4: Likewise.
42310         * m4/gettimeofday.m4: Likewise.
42311         * m4/gnulib-common.m4: Likewise.
42312         * m4/group-member.m4: Likewise.
42313         * m4/host-os.m4: Likewise.
42314         * m4/iconv.m4: Likewise.
42315         * m4/iconv_open.m4: Likewise.
42316         * m4/inet_ntop.m4: Likewise.
42317         * m4/inet_pton.m4: Likewise.
42318         * m4/inline.m4: Likewise.
42319         * m4/intldir.m4: Likewise.
42320         * m4/intlmacosx.m4: Likewise.
42321         * m4/intmax.m4: Likewise.
42322         * m4/intmax_t.m4: Likewise.
42323         * m4/inttypes.m4: Likewise.
42324         * m4/inttypes_h.m4: Likewise.
42325         * m4/inttypes-pri.m4: Likewise.
42326         * m4/isapipe.m4: Likewise.
42327         * m4/isnand.m4: Likewise.
42328         * m4/isnanf.m4: Likewise.
42329         * m4/isnanl.m4: Likewise.
42330         * m4/javacomp.m4: Likewise.
42331         * m4/javaexec.m4: Likewise.
42332         * m4/jm-winsz1.m4: Likewise.
42333         * m4/jm-winsz2.m4: Likewise.
42334         * m4/lchown.m4: Likewise.
42335         * m4/lcmessage.m4: Likewise.
42336         * m4/ldexpl.m4: Likewise.
42337         * m4/lib-ld.m4: Likewise.
42338         * m4/lib-link.m4: Likewise.
42339         * m4/libsigsegv.m4: Likewise.
42340         * m4/link-follow.m4: Likewise.
42341         * m4/localcharset.m4: Likewise.
42342         * m4/locale-fr.m4: Likewise.
42343         * m4/locale-ja.m4: Likewise.
42344         * m4/locale-tr.m4: Likewise.
42345         * m4/locale-zh.m4: Likewise.
42346         * m4/lock.m4: Likewise.
42347         * m4/longlong.m4: Likewise.
42348         * m4/ls-mntd-fs.m4: Likewise.
42349         * m4/lstat.m4: Likewise.
42350         * m4/malloc.m4: Likewise.
42351         * m4/mathl.m4: Likewise.
42352         * m4/mbrtowc.m4: Likewise.
42353         * m4/mbstate_t.m4: Likewise.
42354         * m4/mbswidth.m4: Likewise.
42355         * m4/memchr.m4: Likewise.
42356         * m4/memcmp.m4: Likewise.
42357         * m4/memcpy.m4: Likewise.
42358         * m4/memmem.m4: Likewise.
42359         * m4/memmove.m4: Likewise.
42360         * m4/mempcpy.m4: Likewise.
42361         * m4/memrchr.m4: Likewise.
42362         * m4/memset.m4: Likewise.
42363         * m4/minmax.m4: Likewise.
42364         * m4/mkdir-slash.m4: Likewise.
42365         * m4/mkdtemp.m4: Likewise.
42366         * m4/mktime.m4: Likewise.
42367         * m4/mmap-anon.m4: Likewise.
42368         * m4/mountlist.m4: Likewise.
42369         * m4/nanosleep.m4: Likewise.
42370         * m4/nls.m4: Likewise.
42371         * m4/nocrash.m4: Likewise.
42372         * m4/open.m4: Likewise.
42373         * m4/openat.m4: Likewise.
42374         * m4/openmp.m4: Likewise.
42375         * m4/pathmax.m4: Likewise.
42376         * m4/perl.m4: Likewise.
42377         * m4/physmem.m4: Likewise.
42378         * m4/pipe.m4: Likewise.
42379         * m4/po.m4: Likewise.
42380         * m4/poll.m4: Likewise.
42381         * m4/posixtm.m4: Likewise.
42382         * m4/posixver.m4: Likewise.
42383         * m4/printf-frexp.m4: Likewise.
42384         * m4/printf-frexpl.m4: Likewise.
42385         * m4/printf-posix.m4: Likewise.
42386         * m4/printf-posix-rpl.m4: Likewise.
42387         * m4/printf.m4: Likewise.
42388         * m4/progtest.m4: Likewise.
42389         * m4/putenv.m4: Likewise.
42390         * m4/readline.m4: Likewise.
42391         * m4/readlink.m4: Likewise.
42392         * m4/readutmp.m4: Likewise.
42393         * m4/realloc.m4: Likewise.
42394         * m4/regex.m4: Likewise.
42395         * m4/relocatable.m4: Likewise.
42396         * m4/relocatable-lib.m4: Likewise.
42397         * m4/rename-dest-slash.m4: Likewise.
42398         * m4/rename.m4: Likewise.
42399         * m4/rmdir-errno.m4: Likewise.
42400         * m4/rmdir.m4: Likewise.
42401         * m4/roundf.m4: Likewise.
42402         * m4/roundl.m4: Likewise.
42403         * m4/rpmatch.m4: Likewise.
42404         * m4/save-cwd.m4: Likewise.
42405         * m4/selinux-selinux-h.m4: Likewise.
42406         * m4/setenv.m4: Likewise.
42407         * m4/settime.m4: Likewise.
42408         * m4/sig2str.m4: Likewise.
42409         * m4/sig_atomic_t.m4: Likewise.
42410         * m4/signalblocking.m4: Likewise.
42411         * m4/signbit.m4: Likewise.
42412         * m4/sigpipe.m4: Likewise.
42413         * m4/sockets.m4: Likewise.
42414         * m4/sockpfaf.m4: Likewise.
42415         * m4/st_dm_mode.m4: Likewise.
42416         * m4/stat-time.m4: Likewise.
42417         * m4/stdbool.m4: Likewise.
42418         * m4/stdint.m4: Likewise.
42419         * m4/stdint_h.m4: Likewise.
42420         * m4/stpcpy.m4: Likewise.
42421         * m4/stpncpy.m4: Likewise.
42422         * m4/strcase.m4: Likewise.
42423         * m4/strchrnul.m4: Likewise.
42424         * m4/strcspn.m4: Likewise.
42425         * m4/strdup.m4: Likewise.
42426         * m4/strftime.m4: Likewise.
42427         * m4/strndup.m4: Likewise.
42428         * m4/strnlen.m4: Likewise.
42429         * m4/strpbrk.m4: Likewise.
42430         * m4/strptime.m4: Likewise.
42431         * m4/strsep.m4: Likewise.
42432         * m4/strtod.m4: Likewise.
42433         * m4/strtoimax.m4: Likewise.
42434         * m4/strtok_r.m4: Likewise.
42435         * m4/strtol.m4: Likewise.
42436         * m4/strtoll.m4: Likewise.
42437         * m4/strtoul.m4: Likewise.
42438         * m4/strtoull.m4: Likewise.
42439         * m4/strtoumax.m4: Likewise.
42440         * m4/strverscmp.m4: Likewise.
42441         * m4/threadlib.m4: Likewise.
42442         * m4/timegm.m4: Likewise.
42443         * m4/tm_gmtoff.m4: Likewise.
42444         * m4/tmpdir.m4: Likewise.
42445         * m4/tmpfile.m4: Likewise.
42446         * m4/tzset.m4: Likewise.
42447         * m4/uintmax_t.m4: Likewise.
42448         * m4/unlinkdir.m4: Likewise.
42449         * m4/unlocked-io.m4: Likewise.
42450         * m4/uptime.m4: Likewise.
42451         * m4/userspec.m4: Likewise.
42452         * m4/utimbuf.m4: Likewise.
42453         * m4/utime.m4: Likewise.
42454         * m4/utimes-null.m4: Likewise.
42455         * m4/utimes.m4: Likewise.
42456         * m4/vararrays.m4: Likewise.
42457         * m4/vasnprintf.m4: Likewise.
42458         * m4/vfprintf-posix.m4: Likewise.
42459         * m4/vprintf-posix.m4: Likewise.
42460         * m4/wait-process.m4: Likewise.
42461         * m4/wchar_t.m4: Likewise.
42462         * m4/wint_t.m4: Likewise.
42463         * m4/write-any-file.m4: Likewise.
42464         * m4/yield.m4: Likewise.
42465
42466 2009-01-13  Bruno Haible  <bruno@clisp.org>
42467
42468         Avoid test-copy-file.sh failures when ACL support insufficient.
42469         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42470         TESTS_ENVIRONMENT.
42471         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42472         Reported by Jim Meyering.
42473
42474 2009-01-13  Bruno Haible  <bruno@clisp.org>
42475
42476         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42477         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42478         * modules/unistdio/u8-printf-parse (Files): Likewise.
42479         * modules/unistdio/u32-printf-parse (Files): Likewise.
42480         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42481
42482 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42483
42484         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42485         and m4/inttypes_h.m4 too.
42486
42487 2009-01-12  Eric Blake  <ebb9@byu.net>
42488
42489         tests: IRIX 6.2 cc can't compile -0.0 into .data
42490         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42491         rather than at compile-time.
42492         * tests/test-floorl.c (minus_zero): Likewise.
42493         * tests/test-frexpl.c (minus_zero): Likewise.
42494         * tests/test-isnan.c (minus_zerol): Likewise.
42495         * tests/test-isnanl.h (minus_zero): Likewise.
42496         * tests/test-ldexpl.c (minus_zero): Likewise.
42497         * tests/test-roundl.c (minus_zero): Likewise.
42498         * tests/test-signbit.c (minus_zerol): Likewise.
42499         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42500         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42501         * tests/test-truncl.c (minus_zero): Likewise.
42502         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42503         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42504         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42505
42506 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42507
42508         regex: fix glibc bug 9697
42509         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42510         handling.
42511
42512 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42513
42514         regex: fix glibc bug 697
42515         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42516         being NULL also if there are no backreferences.
42517
42518 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42519
42520         regex: merge glibc changes
42521         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42522         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42523         re_string_skip_chars, re_string_reconstruct): Likewise.
42524         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42525
42526 2009-01-07  Jim Meyering  <meyering@redhat.com>
42527
42528         poll: filter through cppi
42529         * lib/poll.c: Indent cpp directives to reflect nesting.
42530
42531 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42532
42533         poll: don't return uninitialized
42534         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42535
42536 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42537
42538         avoid compile failure on AIX 6.1
42539         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42540         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42541
42542 2009-01-04  Jim Meyering  <meyering@redhat.com>
42543
42544         remove duplicate inclusion of <stdio.h>
42545         * tests/test-fprintf-posix.c: Likewise.
42546         * tests/test-printf-posix.c: Likewise.
42547         * tests/test-snprintf-posix.c: Likewise.
42548         * tests/test-sprintf-posix.c: Likewise.
42549         * tests/test-vasprintf-posix.c: Likewise.
42550         * tests/test-vfprintf-posix.c: Likewise.
42551         * tests/test-vprintf-posix.c: Likewise.
42552         * tests/test-vsnprintf-posix.c: Likewise.
42553         * tests/test-vsprintf-posix.c: Likewise.
42554
42555 2009-01-03  Jim Meyering  <meyering@redhat.com>
42556
42557         gnulib-tool: fix sed-based filtering
42558         * gnulib-tool (func_filter_filelist): Remove extra backslash
42559         in sed_fff_filter definition.
42560
42561 2009-01-02  Jim Meyering  <meyering@redhat.com>
42562
42563         strftime: avoid compilation failure on Solaris 2.6
42564         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42565         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42566         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42567         be available.  Reported by Tom G. Christensen.  Details in
42568         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42569
42570 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42571             Bruno Haible  <bruno@clisp.org>
42572
42573         Speed up gnulib-tool by doing more string processing through shell
42574         built-ins.
42575         * gnulib-tool (fast_func_append): New variable.
42576         (func_remove_prefix, func_remove_suffix): New functions.
42577         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42578         (func_filter_filelist): New function.
42579         (func_get_dependencies): Use func_remove_suffix instead of sed.
42580         (func_get_automake_snippet): Use func_filter_filelist instead of a
42581         subshell and sed invocation.
42582
42583 2009-01-01  Bruno Haible  <bruno@clisp.org>
42584
42585         Fix a security bug.
42586         * gnulib-tool (func_import, import, update): Don't allow the characters
42587         '"', '$', '`', '\' in macro arguments that become part of commands that
42588         are evaluated.
42589
42590 2009-01-01  Bruno Haible  <bruno@clisp.org>
42591
42592         * gnulib-tool (func_reset_sigpipe): Add more comments.
42593
42594 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42595
42596         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42597         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42598         already know the answer.
42599
42600 2009-01-01  Jim Meyering  <meyering@redhat.com>
42601
42602         * lib/version-etc.c (version_etc_va): Update copyright year.
42603
42604 2008-12-30  Bruno Haible  <bruno@clisp.org>
42605
42606         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42607         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42608         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42609
42610 2008-12-29  Eric Blake  <ebb9@byu.net>
42611
42612         multiarch: avoid autoconf AC_REQUIRE bug
42613         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42614         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42615         2.63 and older.
42616         Reported by Bruno Haible, and analyzed in
42617         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42618
42619 2008-12-29  Bruno Haible  <bruno@clisp.org>
42620
42621         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42622         files in subdirectories correctly.
42623         Reported by Ralf Wildenhues.
42624
42625 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42626
42627         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42628         rather than 'join FILE -', for Solaris join.
42629
42630 2008-12-29  Bruno Haible  <bruno@clisp.org>
42631
42632         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42633         quoting.
42634         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42635         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42636         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42637         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42638         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42639         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42640         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42641         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42642         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42643         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42644         * m4/nls.m4 (AM_NLS): Likewise.
42645         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42646         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42647         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42648         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42649         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42650         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42651         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42652         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42653         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42654         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42655         * m4/xsize.m4 (gl_XSIZE): Likewise.
42656         Suggested by Jim Meyering.
42657
42658 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42659
42660         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42661         * lib/parse-duration.c: use a switch instead of cascading if's.
42662
42663 2008-12-29  Eric Blake  <ebb9@byu.net>
42664
42665         wchar.h: supply WEOF on Irix 5.3
42666         * lib/wchar.in.h (wint_t): Also supply WEOF.
42667         * lib/wctype.in.h (wint_t): Likewise.
42668         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42669         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42670         Reported by Tom G. Christensen.
42671
42672 2008-12-26  Bruno Haible  <bruno@clisp.org>
42673
42674         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42675         i486, i586, i686.
42676
42677 2008-12-26  Bruno Haible  <bruno@clisp.org>
42678
42679         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42680
42681 2008-12-26  Bruno Haible  <bruno@clisp.org>
42682
42683         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42684         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42685         not __STDC_CONSTANT_MACROS.
42686         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42687
42688 2008-12-25  Bruno Haible  <bruno@clisp.org>
42689
42690         Add support for universal builds to vasnprintf.
42691         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42692         universal builds, guess no.
42693         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42694         * modules/vasprintf-posix (Depends-on): Likewise.
42695         * modules/fprintf-posix (Depends-on): Likewise.
42696         * modules/vfprintf-posix (Depends-on): Likewise.
42697         * modules/snprintf-posix (Depends-on): Likewise.
42698         * modules/vsnprintf-posix (Depends-on): Likewise.
42699         * modules/sprintf-posix (Depends-on): Likewise.
42700         * modules/vsprintf-posix (Depends-on): Likewise.
42701         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42702         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42703         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42704         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42705         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42706         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42707         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42708
42709         Add support for universal builds to <inttypes.h>.
42710         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42711         _SCNu64_PREFIX): In Apple
42712         universal builds, define directly, using _LP64.
42713         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42714         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42715         * modules/inttypes (Depends-on): Add multiarch.
42716         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42717
42718         Add support for universal builds to <stdint.h>.
42719         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42720         universal builds, define directly, using _LP64.
42721         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42722         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42723         and size_t.
42724         * modules/stdint (Depends-on): Add multiarch.
42725         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42726
42727         New module 'multiarch'.
42728         * modules/multiarch: New file.
42729         * m4/multiarch.m4: New file.
42730
42731 2008-12-25  Bruno Haible  <bruno@clisp.org>
42732
42733         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42734
42735 2008-12-25  Bruno Haible  <bruno@clisp.org>
42736
42737         * modules/btowc (License): Relicense under LGPLv2+.
42738         * modules/mbsinit (License): Likewise.
42739         * modules/mbrtowc (License): Likewise.
42740         * modules/wcrtomb (License): Likewise.
42741         * modules/streq (License): Likewise.
42742         Reported by David Lutterkort <lutter@redhat.com>.
42743
42744 2008-12-23  Bruno Haible  <bruno@clisp.org>
42745
42746         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42747
42748 2008-12-23  Bruno Haible  <bruno@clisp.org>
42749
42750         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42752         GETADDRINFO_LIB, not in LIBS.
42753         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42754         * modules/canon-host (Link): Likewise.
42755         * NEWS: Mention the change.
42756         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42757         GETADDRINFO_LIB.
42758
42759 2008-12-22  Bruno Haible  <bruno@clisp.org>
42760
42761         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42762         * doc/posix-functions/iswalpha_l.texi: Likewise.
42763         * doc/posix-functions/iswblank_l.texi: Likewise.
42764         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42765         * doc/posix-functions/iswctype_l.texi: Likewise.
42766         * doc/posix-functions/iswdigit_l.texi: Likewise.
42767         * doc/posix-functions/iswgraph_l.texi: Likewise.
42768         * doc/posix-functions/iswlower_l.texi: Likewise.
42769         * doc/posix-functions/iswprint_l.texi: Likewise.
42770         * doc/posix-functions/iswpunct_l.texi: Likewise.
42771         * doc/posix-functions/iswspace_l.texi: Likewise.
42772         * doc/posix-functions/iswupper_l.texi: Likewise.
42773         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42774         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42775         * doc/posix-functions/open_wmemstream.texi: Likewise.
42776         * doc/posix-functions/swscanf.texi: Likewise.
42777         * doc/posix-functions/towctrans_l.texi: Likewise.
42778         * doc/posix-functions/towlower.texi: Likewise.
42779         * doc/posix-functions/towlower_l.texi: Likewise.
42780         * doc/posix-functions/towupper.texi: Likewise.
42781         * doc/posix-functions/towupper_l.texi: Likewise.
42782         * doc/posix-functions/vfwprintf.texi: Likewise.
42783         * doc/posix-functions/vfwscanf.texi: Likewise.
42784         * doc/posix-functions/vswscanf.texi: Likewise.
42785         * doc/posix-functions/vwprintf.texi: Likewise.
42786         * doc/posix-functions/vwscanf.texi: Likewise.
42787         * doc/posix-functions/wcpcpy.texi: Likewise.
42788         * doc/posix-functions/wcpncpy.texi: Likewise.
42789         * doc/posix-functions/wcscasecmp.texi: Likewise.
42790         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42791         * doc/posix-functions/wcscoll_l.texi: Likewise.
42792         * doc/posix-functions/wcsdup.texi: Likewise.
42793         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42794         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42795         * doc/posix-functions/wcsnlen.texi: Likewise.
42796         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42797         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42798         * doc/posix-functions/wctrans_l.texi: Likewise.
42799         * doc/posix-functions/wctype_l.texi: Likewise.
42800         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42801         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42802         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42803         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42804         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42805         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42806         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42807         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42808         * doc/glibc-functions/wcschrnul.texi: Likewise.
42809         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42810         * doc/glibc-functions/wcstod_l.texi: Likewise.
42811         * doc/glibc-functions/wcstof_l.texi: Likewise.
42812         * doc/glibc-functions/wcstol_l.texi: Likewise.
42813         * doc/glibc-functions/wcstold_l.texi: Likewise.
42814         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42815         * doc/glibc-functions/wcstoq.texi: Likewise.
42816         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42817         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42818         * doc/glibc-functions/wcstouq.texi: Likewise.
42819         * doc/glibc-functions/wmempcpy.texi: Likewise.
42820
42821 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42822             Eric Blake  <ebb9@byu.net>
42823             Paolo Bonzini  <bonzini@gnu.org>
42824             Bruno Haible  <bruno@clisp.org>
42825
42826         Make c-stack work on Haiku.
42827         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42828         (c_stack_action): Use SA_ONSTACK flag.
42829
42830 2008-12-22  Bruno Haible  <bruno@clisp.org>
42831
42832         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42833
42834 2008-12-22  Bruno Haible  <bruno@clisp.org>
42835
42836         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42837         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42838         being overridden.
42839         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42840         New macros.
42841         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42843         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42844         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42845
42846 2008-12-22  Bruno Haible  <bruno@clisp.org>
42847
42848         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42849         from test code.
42850
42851 2008-12-22  Eric Blake  <ebb9@byu.net>
42852
42853         Avoid gcc warnings on cygwin.
42854         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42855         Avoid unused variable.
42856         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42857         Likewise.
42858
42859 2008-12-22  Bruno Haible  <bruno@clisp.org>
42860
42861         Remove HAVE_MBRTOWC conditionals.
42862         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42863         (mbscasecmp): Assume mbrtowc function.
42864         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42865         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42866         * lib/mbschr.c: Include mbuiter.h unconditionally.
42867         (mbschr): Assume mbrtowc function.
42868         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42869         (mbscspn): Assume mbrtowc function.
42870         * lib/mbslen.c: Include mbuiter.h unconditionally.
42871         (mbslen): Assume mbrtowc function.
42872         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42873         (mbsncasecmp): Assume mbrtowc function.
42874         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42875         (mbsnlen): Assume mbrtowc function.
42876         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42877         (mbspbrk): Assume mbrtowc function.
42878         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42879         (mbspcasecmp): Assume mbrtowc function.
42880         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42881         (mbsrchr): Assume mbrtowc function.
42882         * lib/mbssep.c: Include mbuiter.h unconditionally.
42883         (mbssep): Assume mbrtowc function.
42884         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42885         (mbsspn): Assume mbrtowc function.
42886         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42887         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42888         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42889         (mbstok_r): Assume mbrtowc function.
42890         * lib/propername.c: Include mbuiter.h unconditionally.
42891         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42892         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42893         (trim2): Assume mbrtowc function.
42894         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42895         (mbsnwidth): Assume mbrtowc function.
42896         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42897         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42898         fallback definitions.
42899         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42900
42901 2008-12-22  Bruno Haible  <bruno@clisp.org>
42902
42903         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42904
42905 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42906
42907         * modules/regex: Request emulations for the mb*/wc* functions we need.
42908         * m4/regex.m4: Don't look for those functions here.
42909         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42910
42911 2008-12-22  Bruno Haible  <bruno@clisp.org>
42912
42913         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42914
42915 2008-12-21  Bruno Haible  <bruno@clisp.org>
42916
42917         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42918         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42919         (Include): Remove conditionalization.
42920         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42921         (Include): Remove conditionalization.
42922         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42923         (Include): Remove conditionalization.
42924         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42925         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42926         * NEWS: Mention the change.
42927         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42928         via Sergey Poznyakoff <gray@gnu.org.ua>.
42929
42930 2008-12-21  Bruno Haible  <bruno@clisp.org>
42931
42932         * MODULES.html.sh (Extended multibyte and wide character utilities
42933         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42934         wcrtomb, wcsrtombs.
42935         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42936         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42937         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42938         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42939
42940 2008-12-21  Bruno Haible  <bruno@clisp.org>
42941
42942         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42943
42944 2008-12-21  Bruno Haible  <bruno@clisp.org>
42945
42946         * modules/wcsnrtombs-tests: New file.
42947         * tests/test-wcsnrtombs1.sh: New file.
42948         * tests/test-wcsnrtombs2.sh: New file.
42949         * tests/test-wcsnrtombs3.sh: New file.
42950         * tests/test-wcsnrtombs4.sh: New file.
42951         * tests/test-wcsnrtombs.c: New file.
42952
42953         New module 'wcsnrtombs'.
42954         * lib/wchar.in.h (wcsnrtombs): New declaration.
42955         * lib/wcsnrtombs.c: New file.
42956         * lib/wcsrtombs-state.c: New file.
42957         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42958         (internal_state): Remove variable.
42959         * m4/wcsnrtombs.m4: New file.
42960         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42961         compilation units.
42962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42963         HAVE_WCSNRTOMBS.
42964         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42965         HAVE_WCSNRTOMBS.
42966         * modules/wcsnrtombs: New file.
42967         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42968         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42969
42970 2008-12-21  Bruno Haible  <bruno@clisp.org>
42971
42972         * modules/wcsrtombs-tests: New file.
42973         * tests/test-wcsrtombs1.sh: New file.
42974         * tests/test-wcsrtombs2.sh: New file.
42975         * tests/test-wcsrtombs3.sh: New file.
42976         * tests/test-wcsrtombs4.sh: New file.
42977         * tests/test-wcsrtombs.c: New file.
42978
42979         New module 'wcsrtombs'.
42980         * lib/wchar.in.h (wcsrtombs): New declaration.
42981         * lib/wcsrtombs.c: New file.
42982         * m4/wcsrtombs.m4: New file.
42983         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42984         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42986         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42987         * modules/wcsrtombs: New file.
42988         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42989         bugs.
42990
42991 2008-12-21  Bruno Haible  <bruno@clisp.org>
42992
42993         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42994         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42995         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42996         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42997         if not correct.
42998         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42999         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43000         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43001         m4/locale-zh.m4, m4/codeset.m4.
43002         * doc/posix-functions/wcrtomb.texi: Document the bug.
43003
43004 2008-12-21  Bruno Haible  <bruno@clisp.org>
43005
43006         Work around a btowc() bug on IRIX 6.5.
43007         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43008         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43009         REPLACE_WTOBC if not.
43010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43011         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43012         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43013
43014 2008-12-21  Bruno Haible  <bruno@clisp.org>
43015
43016         * modules/wcrtomb-tests: New file.
43017         * tests/test-wcrtomb.sh: New file.
43018         * tests/test-wcrtomb.c: New file.
43019
43020         New module 'wcrtomb'.
43021         * lib/wchar.in.h (wcrtomb): New declaration.
43022         * lib/wcrtomb.c: New file.
43023         * m4/wcrtomb.m4: New file.
43024         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43025         HAVE_WCRTOMB.
43026         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43027         HAVE_WCRTOMB.
43028         * modules/wcrtomb: New file.
43029         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43030
43031 2008-12-21  Bruno Haible  <bruno@clisp.org>
43032
43033         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43034         * modules/mbsrtowcs (Files): Likewise.
43035         * modules/wctob (Files): Likewise.
43036         * modules/c-strcase-tests (Files): Likewise.
43037         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43038         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43039         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43040         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43041         * modules/vasnprintf-posix-tests (Files): Likewise.
43042
43043 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43044
43045         gitlog-to-changelog: pass all command-line arguments to git-log
43046         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43047         it is sometimes convenient to filter the commits in various ways.
43048         gitlog-to-changelog only allows --since to specify a start date,
43049         but git-log itself supports many other filtering mechanisms.
43050         At the moment, I want to filter by branch name.  Rather than
43051         adding a --branch option to gitlog-to-changelog, it seems more
43052         flexible to simply pass all options directly to git-log and let
43053         git do the work.  Notice that this effectively makes --since a
43054         redundant option for gitlog-to-changelog, but removing it would
43055         require current usage to change since calls would then require
43056         an additional '--'.
43057
43058 2008-12-21  Bruno Haible  <bruno@clisp.org>
43059
43060         * modules/mbsnrtowcs-tests: New file.
43061         * tests/test-mbsnrtowcs1.sh: New file.
43062         * tests/test-mbsnrtowcs2.sh: New file.
43063         * tests/test-mbsnrtowcs3.sh: New file.
43064         * tests/test-mbsnrtowcs4.sh: New file.
43065         * tests/test-mbsnrtowcs.c: New file.
43066
43067         New module 'mbsnrtowcs'.
43068         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43069         * lib/mbsnrtowcs.c: New file.
43070         * lib/mbsrtowcs-state.c: New file.
43071         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43072         (internal_state): Remove variable.
43073         * m4/mbsnrtowcs.m4: New file.
43074         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43075         compilation units.
43076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43077         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43078         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43079         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43080         * modules/mbsnrtowcs: New file.
43081         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43082         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43083         portability problem.
43084
43085 2008-12-21  Bruno Haible  <bruno@clisp.org>
43086
43087         Work around mbsrtowcs bug.
43088         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43089         (gl_FUNC_MBSRTOWCS): Invoke it.
43090         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43091         m4/locale-zh.m4.
43092         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43093
43094 2008-12-21  Bruno Haible  <bruno@clisp.org>
43095
43096         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43097
43098 2008-12-21  Bruno Haible  <bruno@clisp.org>
43099
43100         Update doc for AIX.
43101         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43102         16-bit wchar_t type.
43103         * doc/posix-functions/btowc.texi: Likewise.
43104         * doc/posix-functions/fgetwc.texi: Likewise.
43105         * doc/posix-functions/fgetws.texi: Likewise.
43106         * doc/posix-functions/fputwc.texi: Likewise.
43107         * doc/posix-functions/fputws.texi: Likewise.
43108         * doc/posix-functions/fwide.texi: Likewise.
43109         * doc/posix-functions/fwprintf.texi: Likewise.
43110         * doc/posix-functions/fwscanf.texi: Likewise.
43111         * doc/posix-functions/getwchar.texi: Likewise.
43112         * doc/posix-functions/getwc.texi: Likewise.
43113         * doc/posix-functions/iswalnum.texi: Likewise.
43114         * doc/posix-functions/iswalpha.texi: Likewise.
43115         * doc/posix-functions/iswblank.texi: Likewise.
43116         * doc/posix-functions/iswcntrl.texi: Likewise.
43117         * doc/posix-functions/iswctype.texi: Likewise.
43118         * doc/posix-functions/iswdigit.texi: Likewise.
43119         * doc/posix-functions/iswgraph.texi: Likewise.
43120         * doc/posix-functions/iswlower.texi: Likewise.
43121         * doc/posix-functions/iswprint.texi: Likewise.
43122         * doc/posix-functions/iswpunct.texi: Likewise.
43123         * doc/posix-functions/iswspace.texi: Likewise.
43124         * doc/posix-functions/iswupper.texi: Likewise.
43125         * doc/posix-functions/iswxdigit.texi: Likewise.
43126         * doc/posix-functions/mbrtowc.texi: Likewise.
43127         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43128         * doc/posix-functions/mbstowcs.texi: Likewise.
43129         * doc/posix-functions/mbtowc.texi: Likewise.
43130         * doc/posix-functions/putwchar.texi: Likewise.
43131         * doc/posix-functions/putwc.texi: Likewise.
43132         * doc/posix-functions/swprintf.texi: Likewise.
43133         * doc/posix-functions/tolower.texi: Likewise.
43134         * doc/posix-functions/toupper.texi: Likewise.
43135         * doc/posix-functions/towctrans.texi: Likewise.
43136         * doc/posix-functions/ungetwc.texi: Likewise.
43137         * doc/posix-functions/vswprintf.texi: Likewise.
43138         * doc/posix-functions/wcrtomb.texi: Likewise.
43139         * doc/posix-functions/wcscat.texi: Likewise.
43140         * doc/posix-functions/wcschr.texi: Likewise.
43141         * doc/posix-functions/wcscmp.texi: Likewise.
43142         * doc/posix-functions/wcscoll.texi: Likewise.
43143         * doc/posix-functions/wcscpy.texi: Likewise.
43144         * doc/posix-functions/wcscspn.texi: Likewise.
43145         * doc/posix-functions/wcsftime.texi: Likewise.
43146         * doc/posix-functions/wcslen.texi: Likewise.
43147         * doc/posix-functions/wcsncat.texi: Likewise.
43148         * doc/posix-functions/wcsncmp.texi: Likewise.
43149         * doc/posix-functions/wcsncpy.texi: Likewise.
43150         * doc/posix-functions/wcspbrk.texi: Likewise.
43151         * doc/posix-functions/wcsrchr.texi: Likewise.
43152         * doc/posix-functions/wcsrtombs.texi: Likewise.
43153         * doc/posix-functions/wcsspn.texi: Likewise.
43154         * doc/posix-functions/wcsstr.texi: Likewise.
43155         * doc/posix-functions/wcstod.texi: Likewise.
43156         * doc/posix-functions/wcstof.texi: Likewise.
43157         * doc/posix-functions/wcstoimax.texi: Likewise.
43158         * doc/posix-functions/wcstok.texi: Likewise.
43159         * doc/posix-functions/wcstold.texi: Likewise.
43160         * doc/posix-functions/wcstoll.texi: Likewise.
43161         * doc/posix-functions/wcstol.texi: Likewise.
43162         * doc/posix-functions/wcstombs.texi: Likewise.
43163         * doc/posix-functions/wcstoull.texi: Likewise.
43164         * doc/posix-functions/wcstoul.texi: Likewise.
43165         * doc/posix-functions/wcstoumax.texi: Likewise.
43166         * doc/posix-functions/wcswidth.texi: Likewise.
43167         * doc/posix-functions/wcsxfrm.texi: Likewise.
43168         * doc/posix-functions/wctob.texi: Likewise.
43169         * doc/posix-functions/wctomb.texi: Likewise.
43170         * doc/posix-functions/wctrans.texi: Likewise.
43171         * doc/posix-functions/wctype.texi: Likewise.
43172         * doc/posix-functions/wcwidth.texi: Likewise.
43173         * doc/posix-functions/wmemchr.texi: Likewise.
43174         * doc/posix-functions/wmemcmp.texi: Likewise.
43175         * doc/posix-functions/wmemcpy.texi: Likewise.
43176         * doc/posix-functions/wmemmove.texi: Likewise.
43177         * doc/posix-functions/wmemset.texi: Likewise.
43178         * doc/posix-functions/wprintf.texi: Likewise.
43179         * doc/posix-functions/wscanf.texi: Likewise.
43180
43181 2008-12-21  Bruno Haible  <bruno@clisp.org>
43182
43183         Update doc for HP-UX 11.11.
43184         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43185         in HP-UX version 11.00, not in all versions of HP-UX 11.
43186         * doc/posix-functions/fwide.texi: Likewise.
43187         * doc/posix-functions/fwprintf.texi: Likewise.
43188         * doc/posix-functions/fwscanf.texi: Likewise.
43189         * doc/posix-functions/inet_ntop.texi: Likewise.
43190         * doc/posix-functions/inet_pton.texi: Likewise.
43191         * doc/posix-functions/mbrlen.texi: Likewise.
43192         * doc/posix-functions/mbrtowc.texi: Likewise.
43193         * doc/posix-functions/mbsinit.texi: Likewise.
43194         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43195         * doc/posix-functions/swprintf.texi: Likewise.
43196         * doc/posix-functions/swscanf.texi: Likewise.
43197         * doc/posix-functions/towctrans.texi: Likewise.
43198         * doc/posix-functions/vfwprintf.texi: Likewise.
43199         * doc/posix-functions/vswprintf.texi: Likewise.
43200         * doc/posix-functions/vwprintf.texi: Likewise.
43201         * doc/posix-functions/wcrtomb.texi: Likewise.
43202         * doc/posix-functions/wcsrtombs.texi: Likewise.
43203         * doc/posix-functions/wcsstr.texi: Likewise.
43204         * doc/posix-functions/wctob.texi: Likewise.
43205         * doc/posix-functions/wctrans.texi: Likewise.
43206         * doc/posix-functions/wmemchr.texi: Likewise.
43207         * doc/posix-functions/wmemcmp.texi: Likewise.
43208         * doc/posix-functions/wmemcpy.texi: Likewise.
43209         * doc/posix-functions/wmemmove.texi: Likewise.
43210         * doc/posix-functions/wmemset.texi: Likewise.
43211         * doc/posix-functions/wprintf.texi: Likewise.
43212         * doc/posix-functions/wscanf.texi: Likewise.
43213
43214 2008-12-21  Bruno Haible  <bruno@clisp.org>
43215
43216         Work around a portability problem.
43217         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43218         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43219
43220 2008-12-20  Bruno Haible  <bruno@clisp.org>
43221
43222         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43223         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43224         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43226         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43227
43228         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43229         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43230         set.
43231         (GNULIB_defined_mbstate_t): New macro.
43232         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43233         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43234         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43235         reuses the system's mbrtowc function but works around the bugs.
43236         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43237         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43238         macros.
43239         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43240         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43241         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43242         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43243         REPLACE_MBSINIT if mbsinit needs to be overridden.
43244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43245         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43246         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43247         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43248         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43249         m4/locale-zh.m4.
43250         (Depends): Add mbsinit.
43251         * modules/mbsinit (Depends): Add mbrtowc.
43252         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43253
43254 2008-12-20  Bruno Haible  <bruno@clisp.org>
43255
43256         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43257         so that there are no conversion errors on AIX.
43258         * tests/test-mbsrtowcs.c (main): LIkewise.
43259
43260 2008-12-20  Bruno Haible  <bruno@clisp.org>
43261
43262         Work around wctob bug on Solaris <= 9.
43263         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43264         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43266         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43267         * modules/wctob (Files): Add m4/locale-fr.m4.
43268         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43269
43270 2008-12-20  Bruno Haible  <bruno@clisp.org>
43271
43272         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43273         /dev/null.
43274         * tests/test-select-in.sh: Likewise.
43275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43276
43277 2008-12-20  Bruno Haible  <bruno@clisp.org>
43278
43279         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43280         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43281         Cygwin 1.5.x.
43282
43283 2008-12-20  Bruno Haible  <bruno@clisp.org>
43284
43285         Ensure mbstate_t is defined on HP-UX 11.11.
43286         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43287         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43288         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43289         AC_USE_SYSTEM_EXTENSIONS.
43290         * modules/fnmatch (Depends-on): Add extensions.
43291         * modules/mbrlen (Depends-on): Likewise.
43292         * modules/mbrtowc (Depends-on): Likewise.
43293         * modules/mbsinit (Depends-on): Likewise.
43294         * modules/mbsrtowcs (Depends-on): Likewise.
43295         * modules/mbswidth (Depends-on): Likewise.
43296         * modules/quotearg (Depends-on): Likewise.
43297         * modules/strftime (Depends-on): Likewise.
43298
43299 2008-12-20  Bruno Haible  <bruno@clisp.org>
43300
43301         Ensure wctob is declared on IRIX 6.5.
43302         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43303         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43304         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43306         of HAVE_WCTOB.
43307         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43308         HAVE_WCTOB.
43309         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43310
43311 2008-12-19  Bruno Haible  <bruno@clisp.org>
43312
43313         * modules/mbsrtowcs-tests: New file.
43314         * tests/test-mbsrtowcs1.sh: New file.
43315         * tests/test-mbsrtowcs2.sh: New file.
43316         * tests/test-mbsrtowcs3.sh: New file.
43317         * tests/test-mbsrtowcs4.sh: New file.
43318         * tests/test-mbsrtowcs.c: New file.
43319
43320         New module 'mbsrtowcs'.
43321         * lib/wchar.in.h (mbsrtowcs): New declaration.
43322         * lib/mbsrtowcs.c: New file.
43323         * m4/mbsrtowcs.m4: New file.
43324         * modules/mbsrtowcs: New file.
43325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43326         HAVE_MBSRTOWCS.
43327         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43328         HAVE_MBSRTOWCS.
43329         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43330
43331 2008-12-19  Bruno Haible  <bruno@clisp.org>
43332
43333         New module 'mbrlen'.
43334         * lib/wchar.in.h (mbrlen): New declaration.
43335         * lib/mbrlen.c: New file.
43336         * m4/mbrlen.m4: New file.
43337         * modules/mbrlen: New file.
43338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43339         HAVE_MBRLEN.
43340         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43341         HAVE_MBRLEN.
43342         * doc/posix-functions/mbrlen.texi: Document the new module.
43343
43344 2008-12-19  Bruno Haible  <bruno@clisp.org>
43345
43346         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43347         * modules/mbrtowc (Depends-on): Add verify.
43348         Suggested by Paul Eggert.
43349
43350 2008-12-18  Bruno Haible  <bruno@clisp.org>
43351
43352         * modules/mbsinit-tests: New file.
43353         * tests/test-mbsinit.sh: New file.
43354         * tests/test-mbsinit.c: New file.
43355
43356 2008-12-18  Bruno Haible  <bruno@clisp.org>
43357
43358         * modules/mbrtowc-tests: New file.
43359         * tests/test-mbrtowc1.sh: New file.
43360         * tests/test-mbrtowc2.sh: New file.
43361         * tests/test-mbrtowc3.sh: New file.
43362         * tests/test-mbrtowc4.sh: New file.
43363         * tests/test-mbrtowc.c: New file.
43364
43365         New module 'mbrtowc'.
43366         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43367         mbsinit and mbrtowc.
43368         (mbrtowc): New declaration.
43369         * lib/mbrtowc.c: New file.
43370         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43371         * modules/mbrtowc: New file.
43372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43373         HAVE_MBRTOWC.
43374         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43375         HAVE_MBRTOWC.
43376         * doc/posix-functions/mbrtowc.texi: Document the new module.
43377
43378 2008-12-18  Bruno Haible  <bruno@clisp.org>
43379
43380         New module 'wctob'.
43381         * lib/wchar.in.h (wctob): New declaration.
43382         * lib/wctob.c: New file.
43383         * m4/wctob.m4: New file.
43384         * modules/wctob: New file.
43385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43386         HAVE_WCTOB.
43387         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43388         * doc/posix-functions/wctob.texi: Document the new module.
43389
43390 2008-12-18  Bruno Haible  <bruno@clisp.org>
43391
43392         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43393         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43394
43395 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43396
43397         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43398         G. Christensen" <tgc@jupiterrise.com>.
43399
43400         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43401         G. Christensen" <tgc@jupiterrise.com>.
43402
43403         * lib/flock.c: Need to include string.h.  Reported by "Tom
43404         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43405         <ebb9@byu.net>.
43406
43407 2008-12-18  Bruno Haible  <bruno@clisp.org>
43408
43409         * m4/locale-ja.m4: New file, from GNU gettext.
43410
43411 2008-12-17  Bruno Haible  <bruno@clisp.org>
43412
43413         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43414         Suggested by Eric Blake.
43415
43416 2008-12-17  Bruno Haible  <bruno@clisp.org>
43417
43418         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43419
43420 2008-12-17  Bruno Haible  <bruno@clisp.org>
43421
43422         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43423         * modules/mbsinit (Depends-on): Add verify.
43424         Suggested by Paul Eggert.
43425
43426 2008-12-17  Bruno Haible  <bruno@clisp.org>
43427
43428         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43429         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43430         gl_FUNC_MBRTOWC.
43431         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43432         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43433         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43434         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43435         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43436         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43437         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43438         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43439         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43440         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43441         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43442         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43443         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43444         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43445         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43446         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43447         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43448         * modules/trim (configure.ac): Likewise.
43449
43450 2008-12-17  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/btowc-tests: New file.
43453         * tests/test-btowc1.sh: New file.
43454         * tests/test-btowc2.sh: New file.
43455         * tests/test-btowc.c: New file.
43456
43457         New module 'btowc'.
43458         * lib/wchar.in.h (btowc): New declaration.
43459         * lib/btowc.c: New file.
43460         * m4/btowc.m4: New file.
43461         * modules/btowc: New file.
43462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43463         HAVE_BTOWC.
43464         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43465         * doc/posix-functions/btowc.texi: Document the new module.
43466
43467 2008-12-17  Bruno Haible  <bruno@clisp.org>
43468
43469         New module 'mbsinit'.
43470         * lib/wchar.in.h (mbsinit): New declaration.
43471         * lib/mbsinit.c: New file.
43472         * m4/mbsinit.m4: New file.
43473         * modules/mbsinit: New file.
43474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43475         HAVE_MBSINIT.
43476         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43477         HAVE_MBSINIT.
43478         * doc/posix-functions/mbsinit.texi: Document the new module.
43479
43480 2008-12-16  Bruno Haible  <bruno@clisp.org>
43481
43482         * lib/unistd.in.h: Add comment.
43483         * tests/test-environ.c: Don't include <stdlib.h>.
43484
43485 2008-12-16  Bruno Haible  <bruno@clisp.org>
43486
43487         * lib/parse-duration.h (parse_duration): Document return value
43488         convention.
43489         * lib/parse-duration.c: Include specification header first. Add
43490         comments.
43491         (_): Remove macro.
43492         (parse_year_month_day, parse_hour_minute_second): Move side effects
43493         outside of strchr call.
43494         (parse_non_iso8601): Move side effects outside of isspace call.
43495         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43496         call.
43497
43498 2008-12-16  Bruno Haible  <bruno@clisp.org>
43499
43500         * tests/test-parse-duration.sh: Produce no output when the test
43501         succeeds.
43502
43503 2008-12-16  Bruno Haible  <bruno@clisp.org>
43504
43505         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43506         expressions.
43507
43508 2008-12-15  Bruno Haible  <bruno@clisp.org>
43509
43510         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43511         * doc/glibc-functions/flistxattr.texi: Likewise.
43512         * doc/glibc-functions/fopencookie.texi: Likewise.
43513         * doc/glibc-functions/fremovexattr.texi: Likewise.
43514         * doc/glibc-functions/fsetxattr.texi: Likewise.
43515         * doc/glibc-functions/getxattr.texi: Likewise.
43516         * doc/glibc-functions/lgetxattr.texi: Likewise.
43517         * doc/glibc-functions/listxattr.texi: Likewise.
43518         * doc/glibc-functions/llistxattr.texi: Likewise.
43519         * doc/glibc-functions/lremovexattr.texi: Likewise.
43520         * doc/glibc-functions/lsetxattr.texi: Likewise.
43521         * doc/glibc-functions/removexattr.texi: Likewise.
43522         * doc/glibc-functions/setxattr.texi: Likewise.
43523         * doc/posix-functions/open_memstream.texi: Likewise.
43524
43525 2008-12-15  Eric Blake  <ebb9@byu.net>
43526
43527         Update doc for cygwin 1.7.
43528         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43529         functions.
43530         * doc/posix-functions/fchmodat.texi: Likewise.
43531         * doc/posix-functions/fchownat.texi: Likewise.
43532         * doc/posix-functions/fdopendir.texi: Likewise.
43533         * doc/posix-functions/fmemopen.texi: Likewise.
43534         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43535         * doc/posix-functions/fstatat.texi: Likewise.
43536         * doc/posix-functions/futimens.texi: Likewise.
43537         * doc/posix-functions/gai_strerror.texi: Likewise.
43538         * doc/posix-functions/getaddrinfo.texi: Likewise.
43539         * doc/posix-functions/getnameinfo.texi: Likewise.
43540         * doc/posix-functions/if_freenameindex.texi: Likewise.
43541         * doc/posix-functions/if_indextoname.texi: Likewise.
43542         * doc/posix-functions/if_nameindex.texi: Likewise.
43543         * doc/posix-functions/if_nametoindex.texi: Likewise.
43544         * doc/posix-functions/insque.texi: Likewise.
43545         * doc/posix-functions/linkat.texi: Likewise.
43546         * doc/posix-functions/llrint.texi: Likewise.
43547         * doc/posix-functions/llrintf.texi: Likewise.
43548         * doc/posix-functions/llrintl.texi: Likewise.
43549         * doc/posix-functions/lockf.texi: Likewise.
43550         * doc/posix-functions/lrintl.texi: Likewise.
43551         * doc/posix-functions/mkdirat.texi: Likewise.
43552         * doc/posix-functions/mkfifoat.texi: Likewise.
43553         * doc/posix-functions/mknodat.texi: Likewise.
43554         * doc/posix-functions/mq_close.texi: Likewise.
43555         * doc/posix-functions/mq_getattr.texi: Likewise.
43556         * doc/posix-functions/mq_notify.texi: Likewise.
43557         * doc/posix-functions/mq_open.texi: Likewise.
43558         * doc/posix-functions/mq_receive.texi: Likewise.
43559         * doc/posix-functions/mq_send.texi: Likewise.
43560         * doc/posix-functions/mq_setattr.texi: Likewise.
43561         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43562         * doc/posix-functions/mq_timedsend.texi: Likewise.
43563         * doc/posix-functions/mq_unlink.texi: Likewise.
43564         * doc/posix-functions/open_memstream.texi: Likewise.
43565         * doc/posix-functions/openat.texi: Likewise.
43566         * doc/posix-functions/posix_fadvise.texi: Likewise.
43567         * doc/posix-functions/posix_fallocate.texi: Likewise.
43568         * doc/posix-functions/posix_madvise.texi: Likewise.
43569         * doc/posix-functions/posix_memalign.texi: Likewise.
43570         * doc/posix-functions/posix_openpt.texi: Likewise.
43571         * doc/posix-functions/readlinkat.texi: Likewise.
43572         * doc/posix-functions/remque.texi: Likewise.
43573         * doc/posix-functions/renameat.texi: Likewise.
43574         * doc/posix-functions/rintl.texi: Likewise.
43575         * doc/posix-functions/sem_unlink.texi: Likewise.
43576         * doc/posix-functions/shm_open.texi: Likewise.
43577         * doc/posix-functions/shm_unlink.texi: Likewise.
43578         * doc/posix-functions/signgam.texi: Likewise.
43579         * doc/posix-functions/sigset.texi: Likewise.
43580         * doc/posix-functions/stpcpy.texi: Likewise.
43581         * doc/posix-functions/stpncpy.texi: Likewise.
43582         * doc/posix-functions/strerror.texi: Likewise.
43583         * doc/posix-functions/strtod.texi: Likewise.
43584         * doc/posix-functions/symlinkat.texi: Likewise.
43585         * doc/posix-functions/unlinkat.texi: Likewise.
43586         * doc/posix-functions/utimensat.texi: Likewise.
43587         * doc/glibc-functions/bindresvport.texi: Likewise.
43588         * doc/glibc-functions/dn_expand.texi: Likewise.
43589         * doc/glibc-functions/exp10.texi: Likewise.
43590         * doc/glibc-functions/exp10f.texi: Likewise.
43591         * doc/glibc-functions/fgetxattr.texi: Likewise.
43592         * doc/glibc-functions/flistxattr.texi: Likewise.
43593         * doc/glibc-functions/fopencookie.texi: Likewise.
43594         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43595         * doc/glibc-functions/fremovexattr.texi: Likewise.
43596         * doc/glibc-functions/fsetxattr.texi: Likewise.
43597         * doc/glibc-functions/getifaddrs.texi: Likewise.
43598         * doc/glibc-functions/getxattr.texi: Likewise.
43599         * doc/glibc-functions/lgetxattr.texi: Likewise.
43600         * doc/glibc-functions/listxattr.texi: Likewise.
43601         * doc/glibc-functions/llistxattr.texi: Likewise.
43602         * doc/glibc-functions/lremovexattr.texi: Likewise.
43603         * doc/glibc-functions/lsetxattr.texi: Likewise.
43604         * doc/glibc-functions/pow10.texi: Likewise.
43605         * doc/glibc-functions/pow10f.texi: Likewise.
43606         * doc/glibc-functions/rcmd_af.texi: Likewise.
43607         * doc/glibc-functions/removexattr.texi: Likewise.
43608         * doc/glibc-functions/res_init.texi: Likewise.
43609         * doc/glibc-functions/res_mkquery.texi: Likewise.
43610         * doc/glibc-functions/res_query.texi: Likewise.
43611         * doc/glibc-functions/res_querydomain.texi: Likewise.
43612         * doc/glibc-functions/res_send.texi: Likewise.
43613         * doc/glibc-functions/rresvport_af.texi: Likewise.
43614         * doc/glibc-functions/setxattr.texi: Likewise.
43615         * doc/glibc-functions/strcasestr.texi: Likewise.
43616
43617 2008-12-15  Bruno Haible  <bruno@clisp.org>
43618
43619         Fix compilation error on OSF/1 4.0.
43620         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43621         <sys/time.h>, simply delegate to the system header.
43622         Reported by Daniel Richard G. <oss@teragram.com>.
43623
43624 2008-12-15  Bruno Haible  <bruno@clisp.org>
43625
43626         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43627         * doc/posix-functions/fchmodat.texi: Likewise.
43628         * doc/posix-functions/fchownat.texi: Likewise.
43629         * doc/posix-functions/fdopendir.texi: Likewise.
43630         * doc/posix-functions/fstatat.texi: Likewise.
43631         * doc/posix-functions/mkdirat.texi: Likewise.
43632         * doc/posix-functions/unlinkat.texi: Likewise.
43633
43634 2008-12-14  Bruno Haible  <bruno@clisp.org>
43635
43636         Update doc for POSIX:2008.
43637         * doc/posix-functions/faccessat.texi: New file.
43638         * doc/posix-functions/fchmodat.texi: New file.
43639         * doc/posix-functions/fchownat.texi: New file.
43640         * doc/posix-functions/fdopendir.texi: New file.
43641         * doc/posix-functions/fstatat.texi: New file.
43642         * doc/posix-functions/futimens.texi: New file.
43643         * doc/posix-functions/linkat.texi: New file.
43644         * doc/posix-functions/mkdirat.texi: New file.
43645         * doc/posix-functions/mkfifoat.texi: New file.
43646         * doc/posix-functions/mknodat.texi: New file.
43647         * doc/posix-functions/open_wmemstream.texi: New file.
43648         * doc/posix-functions/openat.texi: New file.
43649         * doc/posix-functions/psiginfo.texi: New file.
43650         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43651         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43652         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43653         * doc/posix-functions/readlinkat.texi: New file.
43654         * doc/posix-functions/renameat.texi: New file.
43655         * doc/posix-functions/strerror_l.texi: New file.
43656         * doc/posix-functions/symlinkat.texi: New file.
43657         * doc/posix-functions/unlinkat.texi: New file.
43658         * doc/posix-functions/utimensat.texi: New file.
43659         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43660
43661 2008-12-14  Bruno Haible  <bruno@clisp.org>
43662
43663         Update doc for POSIX:2008.
43664         * doc/posix-functions/alphasort.texi: Renamed from
43665         doc/glibc-functions/alphasort.texi.
43666         * doc/posix-functions/dirfd.texi: Renamed from
43667         doc/glibc-functions/dirfd.texi.
43668         * doc/posix-functions/dprintf.texi: Renamed from
43669         doc/glibc-functions/dprintf.texi.
43670         * doc/posix-functions/duplocale.texi: Renamed from
43671         doc/glibc-functions/duplocale.texi.
43672         * doc/posix-functions/fexecve.texi: Renamed from
43673         doc/glibc-functions/fexecve.texi.
43674         * doc/posix-functions/fmemopen.texi: Renamed from
43675         doc/glibc-functions/fmemopen.texi.
43676         * doc/posix-functions/freelocale.texi: Renamed from
43677         doc/glibc-functions/freelocale.texi.
43678         * doc/posix-functions/getdate_err.texi: Renamed from
43679         doc/glibc-functions/getdate_err.texi.
43680         * doc/posix-functions/isalnum_l.texi: Renamed from
43681         doc/glibc-functions/isalnum_l.texi.
43682         * doc/posix-functions/isalpha_l.texi: Renamed from
43683         doc/glibc-functions/isalpha_l.texi.
43684         * doc/posix-functions/isblank_l.texi: Renamed from
43685         doc/glibc-functions/isblank_l.texi.
43686         * doc/posix-functions/iscntrl_l.texi: Renamed from
43687         doc/glibc-functions/iscntrl_l.texi.
43688         * doc/posix-functions/isdigit_l.texi: Renamed from
43689         doc/glibc-functions/isdigit_l.texi.
43690         * doc/posix-functions/isgraph_l.texi: Renamed from
43691         doc/glibc-functions/isgraph_l.texi.
43692         * doc/posix-functions/islower_l.texi: Renamed from
43693         doc/glibc-functions/islower_l.texi.
43694         * doc/posix-functions/isprint_l.texi: Renamed from
43695         doc/glibc-functions/isprint_l.texi.
43696         * doc/posix-functions/ispunct_l.texi: Renamed from
43697         doc/glibc-functions/ispunct_l.texi.
43698         * doc/posix-functions/isspace_l.texi: Renamed from
43699         doc/glibc-functions/isspace_l.texi.
43700         * doc/posix-functions/isupper_l.texi: Renamed from
43701         doc/glibc-functions/isupper_l.texi.
43702         * doc/posix-functions/iswalnum_l.texi: Renamed from
43703         doc/glibc-functions/iswalnum_l.texi.
43704         * doc/posix-functions/iswalpha_l.texi: Renamed from
43705         doc/glibc-functions/iswalpha_l.texi.
43706         * doc/posix-functions/iswblank_l.texi: Renamed from
43707         doc/glibc-functions/iswblank_l.texi.
43708         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43709         doc/glibc-functions/iswcntrl_l.texi.
43710         * doc/posix-functions/iswctype_l.texi: Renamed from
43711         doc/glibc-functions/iswctype_l.texi.
43712         * doc/posix-functions/iswdigit_l.texi: Renamed from
43713         doc/glibc-functions/iswdigit_l.texi.
43714         * doc/posix-functions/iswgraph_l.texi: Renamed from
43715         doc/glibc-functions/iswgraph_l.texi.
43716         * doc/posix-functions/iswlower_l.texi: Renamed from
43717         doc/glibc-functions/iswlower_l.texi.
43718         * doc/posix-functions/iswprint_l.texi: Renamed from
43719         doc/glibc-functions/iswprint_l.texi.
43720         * doc/posix-functions/iswpunct_l.texi: Renamed from
43721         doc/glibc-functions/iswpunct_l.texi.
43722         * doc/posix-functions/iswspace_l.texi: Renamed from
43723         doc/glibc-functions/iswspace_l.texi.
43724         * doc/posix-functions/iswupper_l.texi: Renamed from
43725         doc/glibc-functions/iswupper_l.texi.
43726         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43727         doc/glibc-functions/iswxdigit_l.texi.
43728         * doc/posix-functions/isxdigit_l.texi: Renamed from
43729         doc/glibc-functions/isxdigit_l.texi.
43730         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43731         doc/glibc-functions/mbsnrtowcs.texi.
43732         * doc/posix-functions/mkdtemp.texi: Renamed from
43733         doc/glibc-functions/mkdtemp.texi.
43734         * doc/posix-functions/newlocale.texi: Renamed from
43735         doc/glibc-functions/newlocale.texi.
43736         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43737         doc/glibc-functions/nl_langinfo_l.texi.
43738         * doc/posix-functions/open_memstream.texi: Renamed from
43739         doc/glibc-functions/open_memstream.texi.
43740         * doc/posix-functions/opterr.texi: Renamed from
43741         doc/glibc-functions/opterr.texi.
43742         * doc/posix-functions/optind.texi: Renamed from
43743         doc/glibc-functions/optind.texi.
43744         * doc/posix-functions/optopt.texi: Renamed from
43745         doc/glibc-functions/optopt.texi.
43746         * doc/posix-functions/psignal.texi: Renamed from
43747         doc/glibc-functions/psignal.texi.
43748         * doc/posix-functions/scandir.texi: Renamed from
43749         doc/glibc-functions/scandir.texi.
43750         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43751         doc/glibc-functions/sched_get_priority_min.texi.
43752         * doc/posix-functions/signgam.texi: Renamed from
43753         doc/glibc-functions/signgam.texi.
43754         * doc/posix-functions/stpcpy.texi: Renamed from
43755         doc/glibc-functions/stpcpy.texi.
43756         * doc/posix-functions/stpncpy.texi: Renamed from
43757         doc/glibc-functions/stpncpy.texi.
43758         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43759         doc/glibc-functions/strcasecmp_l.texi.
43760         * doc/posix-functions/strcoll_l.texi: Renamed from
43761         doc/glibc-functions/strcoll_l.texi.
43762         * doc/posix-functions/strfmon_l.texi: Renamed from
43763         doc/glibc-functions/strfmon_l.texi.
43764         * doc/posix-functions/strftime_l.texi: Renamed from
43765         doc/glibc-functions/strftime_l.texi.
43766         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43767         doc/glibc-functions/strncasecmp_l.texi.
43768         * doc/posix-functions/strndup.texi: Renamed from
43769         doc/glibc-functions/strndup.texi.
43770         * doc/posix-functions/strnlen.texi: Renamed from
43771         doc/glibc-functions/strnlen.texi.
43772         * doc/posix-functions/strsignal.texi: Renamed from
43773         doc/glibc-functions/strsignal.texi.
43774         * doc/posix-functions/strxfrm_l.texi: Renamed from
43775         doc/glibc-functions/strxfrm_l.texi.
43776         * doc/posix-functions/timer_gettime.texi: Renamed from
43777         doc/glibc-functions/timer_gettime.texi.
43778         * doc/posix-functions/tolower_l.texi: Renamed from
43779         doc/glibc-functions/tolower_l.texi.
43780         * doc/posix-functions/toupper_l.texi: Renamed from
43781         doc/glibc-functions/toupper_l.texi.
43782         * doc/posix-functions/towctrans_l.texi: Renamed from
43783         doc/glibc-functions/towctrans_l.texi.
43784         * doc/posix-functions/towlower_l.texi: Renamed from
43785         doc/glibc-functions/towlower_l.texi.
43786         * doc/posix-functions/towupper_l.texi: Renamed from
43787         doc/glibc-functions/towupper_l.texi.
43788         * doc/posix-functions/uselocale.texi: Renamed from
43789         doc/glibc-functions/uselocale.texi.
43790         * doc/posix-functions/vdprintf.texi: Renamed from
43791         doc/glibc-functions/vdprintf.texi.
43792         * doc/posix-functions/wcpcpy.texi:
43793         Renamed from doc/glibc-functions/wcpcpy.texi.
43794         * doc/posix-functions/wcpncpy.texi: Renamed from
43795         doc/glibc-functions/wcpncpy.texi.
43796         * doc/posix-functions/wcscasecmp.texi: Renamed from
43797         doc/glibc-functions/wcscasecmp.texi.
43798         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43799         doc/glibc-functions/wcscasecmp_l.texi.
43800         * doc/posix-functions/wcscoll_l.texi: Renamed from
43801         doc/glibc-functions/wcscoll_l.texi.
43802         * doc/posix-functions/wcsdup.texi: Renamed from
43803         doc/glibc-functions/wcsdup.texi.
43804         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43805         doc/glibc-functions/wcsncasecmp.texi.
43806         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43807         doc/glibc-functions/wcsncasecmp_l.texi.
43808         * doc/posix-functions/wcsnlen.texi: Renamed from
43809         doc/glibc-functions/wcsnlen.texi.
43810         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43811         doc/glibc-functions/wcsnrtombs.texi.
43812         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43813         doc/glibc-functions/wcsxfrm_l.texi.
43814         * doc/posix-functions/wctrans_l.texi: Renamed from
43815         doc/glibc-functions/wctrans_l.texi.
43816         * doc/posix-functions/wctype_l.texi: Renamed from
43817         doc/glibc-functions/wctype_l.texi.
43818         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43819         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43820         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43821         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43822         these subsections.
43823         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43824         Remove sections.
43825
43826 2008-12-14  Bruno Haible  <bruno@clisp.org>
43827
43828         Update doc for POSIX:2008.
43829         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43830
43831 2008-12-14  Bruno Haible  <bruno@clisp.org>
43832
43833         Update doc for POSIX:2008.
43834         * doc/pastposix-functions/bcmp.texi: Renamed from
43835         doc/posix-functions/bcmp.texi.
43836         * doc/pastposix-functions/bcopy.texi: Renamed from
43837         doc/posix-functions/bcopy.texi.
43838         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43839         doc/posix-functions/bsd_signal.texi.
43840         * doc/pastposix-functions/bzero.texi: Renamed from
43841         doc/posix-functions/bzero.texi.
43842         * doc/pastposix-functions/ecvt.texi: Renamed from
43843         doc/posix-functions/ecvt.texi.
43844         * doc/pastposix-functions/fcvt.texi: Renamed from
43845         doc/posix-functions/fcvt.texi.
43846         * doc/pastposix-functions/ftime.texi: Renamed from
43847         doc/posix-functions/ftime.texi.
43848         * doc/pastposix-functions/gcvt.texi: Renamed from
43849         doc/posix-functions/gcvt.texi.
43850         * doc/pastposix-functions/getcontext.texi: Renamed from
43851         doc/posix-functions/getcontext.texi.
43852         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43853         doc/posix-functions/gethostbyaddr.texi.
43854         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43855         doc/posix-functions/gethostbyname.texi.
43856         * doc/pastposix-functions/getwd.texi: Renamed from
43857         doc/posix-functions/getwd.texi.
43858         * doc/pastposix-functions/h_errno.texi: Renamed from
43859         doc/posix-functions/h_errno.texi.
43860         * doc/pastposix-functions/index.texi: Renamed from
43861         doc/posix-functions/index.texi.
43862         * doc/pastposix-functions/makecontext.texi: Renamed from
43863         doc/posix-functions/makecontext.texi.
43864         * doc/pastposix-functions/mktemp.texi: Renamed from
43865         doc/posix-functions/mktemp.texi.
43866         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43867         doc/posix-functions/pthread_attr_getstackaddr.texi.
43868         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43869         doc/posix-functions/pthread_attr_setstackaddr.texi.
43870         * doc/pastposix-functions/rindex.texi: Renamed from
43871         doc/posix-functions/rindex.texi.
43872         * doc/pastposix-functions/scalb.texi: Renamed from
43873         doc/posix-functions/scalb.texi.
43874         * doc/pastposix-functions/setcontext.texi: Renamed from
43875         doc/posix-functions/setcontext.texi.
43876         * doc/pastposix-functions/swapcontext.texi: Renamed from
43877         doc/posix-functions/swapcontext.texi.
43878         * doc/pastposix-functions/ualarm.texi: Renamed from
43879         doc/posix-functions/ualarm.texi.
43880         * doc/pastposix-functions/usleep.texi: Renamed from
43881         doc/posix-functions/usleep.texi.
43882         * doc/pastposix-functions/vfork.texi: Renamed from
43883         doc/posix-functions/vfork.texi.
43884         * doc/pastposix-functions/wcswcs.texi: Renamed from
43885         doc/posix-functions/wcswcs.texi.
43886         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43887         (Function Substitutes): Update.
43888
43889 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43890
43891         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43892         m4/strerror.m4.
43893
43894 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43895             Bruno Haible  <bruno@clisp.org>
43896
43897         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43898
43899 2008-12-13  Bruno Haible  <bruno@clisp.org>
43900
43901         * modules/strtoull (Depends-on): Remove unistd.
43902
43903 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43904
43905         * modules/strtoull (Depends-on): Add stdlib.
43906
43907 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43908
43909         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43910
43911 2008-12-10  Jim Meyering  <meyering@redhat.com>
43912
43913         gl_ASSERT: don't say assertions are disabled when they're not
43914         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43915         "checking whether to enable assertions... no", when they are in
43916         fact enabled.  This is solely a bug in the output of configure.
43917         In spite of saying "no", NDEBUG was not defined in that case.
43918         Also, as noted by Eric Blake, leave assertions enabled upon
43919         --enable-assert=INVALID.
43920
43921 2008-12-10  Bruno Haible  <bruno@clisp.org>
43922
43923         Change MODULES.html to refer to POSIX:2008 where possible.
43924         * MODULES.html.sh (POSIX2008_URL): New variable.
43925         (posix_headers): Remove sys/timeb, ucontext.
43926         (posix2001_headers): New variable.
43927         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43928         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43929         index, makecontext, mktemp, pthread_attr_getstackaddr,
43930         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43931         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43932         (posix2001_functions): New variable.
43933         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43934         otherwise.
43935
43936 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43937
43938         add missing include to parse-duration.c
43939         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43940         * modules/parse-duration (Depends-on): Add xalloc.
43941
43942         fix sed script reading maint.mk
43943         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43944         (syntax-check-rules): Use it.
43945
43946 2008-12-09  Bruno Haible  <bruno@clisp.org>
43947
43948         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43949         MacOS X 10.4/PowerPC.
43950         Reported by Simon Josefsson.
43951
43952 2008-12-08  Jim Meyering  <meyering@redhat.com>
43953
43954         work around mingw's lack of some S_IF definitions
43955         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43956         Reported by Simon Josefsson.
43957
43958 2008-12-08  Bruno Haible  <bruno@clisp.org>
43959
43960         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43961         applied to variables. Needed on MacOS X 10.4/PowerPC.
43962         Reported by Simon Josefsson.
43963
43964 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43965         and Eric Blake  <ebb9@byu.net>
43966
43967         assert: honor --enable-assert
43968         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43969         order to honor --enable-assert, rather than treating it as a
43970         synonym for --disable-assert.
43971
43972 2008-12-08  Jim Meyering  <meyering@redhat.com>
43973
43974         * lib/posixtm.c: Remove now-useless declaration of mktime.
43975
43976         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43977
43978 2008-12-07  Bruno Haible  <bruno@clisp.org>
43979
43980         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43981         test_once): Mark functions as static.
43982         * tests/test-tls.c (test_tls): Likewise.
43983
43984 2008-12-07  Bruno Haible  <bruno@clisp.org>
43985
43986         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43987         iconv_register_autodetect.
43988
43989 2008-12-07  Jim Meyering  <meyering@redhat.com>
43990
43991         posixtm.c: avoid a warning
43992         * lib/posixtm.c (posixtime): Don't initialize tm0.
43993         It's no longer needed to placate gcc4's -Wuninitialized,
43994         and the attempt to placate would elicit a new warning.
43995
43996         unicodeio.c: mark unused parameters
43997         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43998         (fallback_failure_callback): Likewise.
43999
44000 2008-12-07  Bruno Haible  <bruno@clisp.org>
44001
44002         * gnulib-tool (func_create_testdir): When building the tests
44003         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44004         Reported by Simon Josefsson.
44005
44006 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44007
44008         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44009
44010 2008-12-06  Bruno Haible  <bruno@clisp.org>
44011
44012         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44013         Suggested by Eric Blake.
44014
44015 2008-12-06  Bruno Haible  <bruno@clisp.org>
44016
44017         Fix a c-stack test failure on MacOS X.
44018         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44019         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44020         handler for SIGBUS as well.
44021         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44022         install a signal handler for SIGBUS as well.
44023         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44024
44025 2008-12-06  Bruno Haible  <bruno@clisp.org>
44026
44027         Advocacy documentation.
44028         * doc/gnulib-intro.texi (Benefits): New section.
44029         * doc/gnulib.texi: Update.
44030
44031 2008-12-06  Bruno Haible  <bruno@clisp.org>
44032
44033         Document the 'manywarnings' module.
44034         * doc/manywarnings.texi: New file.
44035         * doc/gnulib.texi: Include it.
44036
44037 2008-12-05  Eric Blake  <ebb9@byu.net>
44038
44039         tests: silence some gcc warnings
44040         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44041         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44042         type mismatches.
44043
44044 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44045             Bruno Haible  <bruno@clisp.org>
44046
44047         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44048
44049 2008-11-29  Jim Meyering  <meyering@redhat.com>
44050
44051         unicodeio.c: mark unused parameters
44052         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44053         (fallback_failure_callback): Likewise.
44054
44055         fts: fix a thinko
44056         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44057         (set_stat_type): Return S_IF*-valued "type" directly.
44058         Prompted by James Youngman's spotting a related bug.
44059         Confirmed by further testing through find.
44060
44061         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44062         * lib/fts.c (D_TYPE): Define.
44063         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44064         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44065         (s_ifmt_shift_bits): New function.
44066         (set_stat_type): New function.
44067         (fts_build): When not calling fts_stat, call set_stat_type
44068         to propagate dirent.d_type info to fts_read caller.
44069         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44070         fts_statp->st_mode type information may be valid.
44071
44072 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44073
44074         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44075         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44076         <sds@gnu.org>.
44077
44078 2008-11-20  Bruno Haible  <bruno@clisp.org>
44079
44080         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44081         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44082         INCLUDE_NEXT.
44083         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44084         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44085         * modules/math (Makefile.am): Substitute
44086         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44087         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44088
44089 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44090             Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/stdint.in.h: Define all type macros so that their expansion is
44093         a single typedef'ed token. Fixes a compilation failure in Boost which
44094         does "using ::int8_t;".
44095
44096 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44097
44098         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44099         gl_MANYWARN_ALL_GCC.
44100         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44101         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44102         * modules/manywarnings: New file.
44103         * MODULES.html.sh: Mention manywarnings module.
44104
44105 2008-11-18  Bruno Haible  <bruno@clisp.org>
44106
44107         * doc/gnulib-tool.texi (Unit tests): New section.
44108
44109 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44110
44111         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44112         paths like 'lib/po/foo.po'.
44113
44114 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44115
44116         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44117         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44118
44119 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44120
44121         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44122         parameter works.
44123
44124 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44125
44126         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44127
44128 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44129
44130         * modules/parse-duration-tests: New file.
44131         * tests/test-parse-duration.sh: New file.
44132         * tests/test-parse-duration.c: New file.
44133
44134         New module 'parse-duration'.
44135         * lib/parse-duration.h: New file.
44136         * lib/parse-duration.c: New file.
44137         * modules/parse-duration: New file.
44138
44139 2008-11-17  Bruno Haible  <bruno@clisp.org>
44140
44141         * tests/test-select-out.sh: Comment out the first pipe test.
44142         Reported by Simon Josefsson.
44143
44144 2008-11-17  Bruno Haible  <bruno@clisp.org>
44145
44146         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44147         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44148         gl_HOSTENT.
44149
44150 2008-11-17  Bruno Haible  <bruno@clisp.org>
44151
44152         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44153         -lnetwork and -lnet. Needed for Haiku and BeOS.
44154
44155 2008-11-16  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44158
44159 2008-11-16  Bruno Haible  <bruno@clisp.org>
44160
44161         Avoid test failure on Haiku.
44162         * tests/test-fsync.c: Include <errno.h>.
44163         (main): Don't require that fsync (0) fails.
44164
44165 2008-11-15  Bruno Haible  <bruno@clisp.org>
44166
44167         New module 'hostent'.
44168         * modules/hostent: New file.
44169         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44170
44171 2008-11-15  Bruno Haible  <bruno@clisp.org>
44172
44173         New module 'servent'.
44174         * modules/servent: New file.
44175         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44176
44177 2008-11-15  Bruno Haible  <bruno@clisp.org>
44178
44179         Avoid generating same test program with two different rules.
44180         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44181         test-frexp to test-frexp-nolibm.
44182         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44183         test-frexpl to test-frexpl-nolibm.
44184
44185 2008-11-15  Bruno Haible  <bruno@clisp.org>
44186
44187         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44188         $(FREXPL_LIBM).
44189
44190 2008-11-15  Bruno Haible  <bruno@clisp.org>
44191
44192         * lib/netdb.in.h: Activate the definitions also when the system's
44193         <netdb.h> has 'struct addrinfo'.
44194         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44195         EAI_OVERFLOW or AI_NUMERICSERV.
44196         * doc/posix-headers/netdb.texi: Document the problem.
44197
44198 2008-11-15  Bruno Haible  <bruno@clisp.org>
44199
44200         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44201
44202         Make the 'sched' module work on platforms where <sched.h> exists but
44203         is incomplete (such as Haiku).
44204         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44205         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44206         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44207         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44208         HAVE_STRUCT_SCHED_PARAM.
44209         * modules/sched (Depends-on): Add include_next.
44210         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44211         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44212         * doc/posix-headers/sched.texi: Document the issue.
44213
44214 2008-11-13  Jim Meyering  <meyering@redhat.com>
44215
44216         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44217         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44218         test would fail due to the difference in the Report bugs to ...
44219         line.  The expected address is empty, "<>", while the actual
44220         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44221
44222 2008-11-12  Bruno Haible  <bruno@clisp.org>
44223
44224         lstat: don't compile lstat.c on systems lacking lstat
44225         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44226         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44227         Reported by Daniel P. Berrange via Jim Meyering.
44228
44229 2008-11-12  Jim Meyering  <meyering@redhat.com>
44230
44231         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44232
44233 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44234
44235         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44236         instead.
44237
44238 2008-11-12  Bruno Haible  <bruno@clisp.org>
44239
44240         * lib/unicodeio.c: Include unistr.h.
44241         (utf8_wctomb): Remove function.
44242         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44243
44244 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44245
44246         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44247         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44248         <bruno@clisp.org>.
44249         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44250
44251 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44252
44253         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44254         * doc/gnulib.texi: Add section for warnings.
44255
44256 2008-11-11  Bruno Haible  <bruno@clisp.org>
44257
44258         * lib/sockets.h: Add a comment.
44259
44260 2008-11-11  Karl Berry  <karl@gnu.org>
44261
44262         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44263
44264 2008-11-11  Eric Blake  <ebb9@byu.net>
44265
44266         fdl.texi: avoid git symlinks
44267         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44268
44269 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44270
44271         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44272
44273 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44274
44275         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44276         (gl_WARN_ADD): Substitute $2 if literal.
44277
44278 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44279
44280         * m4/warning.m4: Remove.
44281
44282 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44283
44284         * m4/warnings.m4: Almost complete rewrite. :-)
44285
44286 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44287
44288         * modules/warnings: New module.
44289         * m4/warnings.m4: New file.
44290         * MODULES.html.sh: Mention warnings module.
44291         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44292         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44293
44294 2008-11-10  Eric Blake  <ebb9@byu.net>
44295
44296         fdl.texi: make a symlink to the latest version
44297         * doc/standards.texi: Revert today's earlier change.
44298         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44299         * doc/fdl.texi: ...and replace this with a symlink to the newer
44300         fdl-1.3.texi.
44301
44302 2008-11-10  Bruno Haible  <bruno@clisp.org>
44303
44304         * tests/test-select-fd.c (main): Accept the result file name as fourth
44305         argument.
44306         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44307         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44308
44309 2008-11-10  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44312         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44313         as autoconf-substituted macros.
44314         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44316         gl_NETDB_H_DEFAULTS. Set these variables.
44317         * modules/netdb (Makefile.am): Substitute these variables.
44318
44319 2008-11-10  Eric Blake  <ebb9@byu.net>
44320
44321         standards.texi: include correct file for FDL 1.3
44322         * doc/standards.texi (GNU Free Documentation License): Change
44323         include file to pull in FDL 1.3, not 1.2.
44324
44325         fdl.texi: revert accidental change to license
44326         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44327
44328 2008-11-10  Bruno Haible  <bruno@clisp.org>
44329
44330         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44331         cross-compiling guesses also when the native compile gives no result.
44332
44333 2008-11-10  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/spawni.c (__spawni): Force variable into the stack.
44336
44337 2008-11-10  Bruno Haible  <bruno@clisp.org>
44338
44339         Add support for Haiku.
44340         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44341         glibc and BeOS, but also on Haiku.
44342         * lib/fpurge.c (fpurge): Likewise.
44343         * lib/freadable.c (freadable): Likewise.
44344         * lib/freadahead.c (freadahead): Likewise.
44345         * lib/freading.c (freading): Likewise.
44346         * lib/freadptr.c (freadptr): Likewise.
44347         * lib/freadseek.c (freadptrinc): Likewise.
44348         * lib/fseeko.c (rpl_fseeko): Likewise.
44349         * lib/fseterr.c (fseterr): Likewise.
44350         * lib/fwritable.c (fwritable): Likewise.
44351         * lib/fwriting.c (fwriting): Likewise.
44352         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44353
44354 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44355
44356         * lib/config.charset: Treat Haiku like BeOS.
44357
44358 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44359
44360         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44361         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44362
44363 2008-11-08  Bruno Haible  <bruno@clisp.org>
44364
44365         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44366         AC_CACHE_CHECK.
44367
44368 2008-11-08  Bruno Haible  <bruno@clisp.org>
44369
44370         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44371
44372 2008-11-08  Bruno Haible  <bruno@clisp.org>
44373
44374         * tests/test-select-fd.c: New file.
44375         * tests/test-select-in.sh: New file.
44376         * tests/test-select-out.sh: New file.
44377         * tests/test-select-stdin.c: New file.
44378         * modules/select-tests (Files): Add the new files.
44379         (Depends-on): Add gettimeofday.
44380         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44381         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44382         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44383
44384 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44385             Bruno Haible  <bruno@clisp.org>
44386
44387         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44388
44389 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44390
44391         * build-aux/pmccabe2html: Added support for C++ source files.
44392
44393 2008-11-05  Ben Pfaff  <blp@gnu.org>
44394
44395         Fix lib/close.c build on Windows.
44396         * modules/close (Files): Add lib/w32sock.h.
44397
44398 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44399
44400         Accept Bison's NEWS format.
44401         * build-aux/announce-gen (print_news_deltas): Tweak
44402         $re_prefix.
44403
44404 2008-11-04  Bruno Haible  <bruno@clisp.org>
44405
44406         * modules/random_r (Maintainer): Add glibc.
44407
44408 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44409
44410         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44411         by karl@freefriends.org (Karl Berry).
44412         * doc/alloca.texi: Likewise.
44413         * doc/c-ctype.texi: Likewise.
44414         * doc/c-strcase.texi: Likewise.
44415         * doc/c-strcaseeq.texi: Likewise.
44416         * doc/c-strcasestr.texi: Likewise.
44417         * doc/c-strstr.texi: Likewise.
44418         * doc/c-strtod.texi: Likewise.
44419         * doc/c-strtold.texi: Likewise.
44420         * doc/ctime.texi: Likewise.
44421         * doc/error.texi: Likewise.
44422         * doc/fdl.texi: Likewise.
44423         * doc/gcd.texi: Likewise.
44424         * doc/getdate.texi: Likewise.
44425         * doc/gnulib-intro.texi: Likewise.
44426         * doc/gnulib-tool.texi: Likewise.
44427         * doc/gnulib.texi: Likewise.
44428         * doc/inet_ntoa.texi: Likewise.
44429         * doc/maintain.texi: Likewise.
44430         * doc/make-stds.texi: Likewise.
44431         * doc/quote.texi: Likewise.
44432         * doc/regexprops-generic.texi: Likewise.
44433         * doc/standards.texi: Likewise.
44434         * doc/verify.texi: Likewise.
44435         * doc/visibility.texi: Likewise.
44436         * doc/gnulib.texi (GNU Free Documentation License): Include
44437         fdl-1.3.texi instead of fdl.texi.
44438
44439 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44440
44441         * doc/fdl-1.3.texi: New file, from
44442         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44443         * modules/fdl-1.3: Add.
44444         * MODULES.html.sh: Add fdl-1.3.
44445
44446 2008-11-03  Bruno Haible  <bruno@clisp.org>
44447
44448         Make determination of absolute name of header file work with AIX xlc.
44449         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44450         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44451         preprocessing.
44452         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44453         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44454
44455 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44456
44457         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44458         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44459         <ludo@gnu.org>.
44460
44461 2008-11-02  Bruno Haible  <bruno@clisp.org>
44462
44463         Mark 'strpbrk' obsolete.
44464         * modules/strpbrk (Status, Notice): New sections.
44465         * modules/strtok_r (Depends-on): Add strpbrk.
44466
44467 2008-11-02  Bruno Haible  <bruno@clisp.org>
44468
44469         Mark 'strdup' obsolete.
44470         * modules/strdup (Status, Notice): New sections.
44471         * modules/findprog (Depends-on): Add strdup.
44472         * modules/getaddrinfo (Depends-on): Likewise.
44473         * modules/localename (Depends-on): Likewise.
44474         * modules/relocatable-lib (Depends-on): Likewise.
44475         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44476         * modules/relocatable-prog (Depends-on): Likewise.
44477         * modules/trim (Depends-on): Likewise.
44478         * modules/unictype/gen-ctype (Depends-on): Likewise.
44479         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44480
44481 2008-11-02  Bruno Haible  <bruno@clisp.org>
44482
44483         Mark 'strcspn' obsolete.
44484         * modules/strcspn (Status, Notice): New sections.
44485
44486 2008-11-02  Bruno Haible  <bruno@clisp.org>
44487
44488         Mark 'rmdir' obsolete.
44489         * modules/rmdir (Status, Notice): New sections.
44490         * modules/clean-temp (Depends-on): Add rmdir.
44491         * modules/openat (Depends-on): Likewise.
44492
44493 2008-11-02  Bruno Haible  <bruno@clisp.org>
44494
44495         Mark 'raise' obsolete.
44496         * modules/raise (Status, Notice): New sections.
44497         (Include): Specify <signal.h>.
44498         * modules/stdio (Depends-on): Add raise.
44499         * modules/write (Depends-on): Likewise.
44500
44501 2008-11-02  Bruno Haible  <bruno@clisp.org>
44502
44503         Mark 'memset' obsolete.
44504         * modules/memset (Status, Notice): New sections.
44505
44506 2008-11-02  Bruno Haible  <bruno@clisp.org>
44507
44508         Mark 'memmove' obsolete.
44509         * modules/memmove (Status, Notice): New sections.
44510         * modules/argp (Depends-on): Add memmove.
44511         * modules/argz (Depends-on): Likewise.
44512         * modules/canonicalize (Depends-on): Likewise.
44513         * modules/canonicalize-lgpl (Depends-on): Likewise.
44514         * modules/fts (Depends-on): Likewise.
44515         * modules/getcwd (Depends-on): Likewise.
44516         * modules/human (Depends-on): Likewise.
44517         * modules/regex (Depends-on): Likewise.
44518         * modules/striconveh (Depends-on): Likewise.
44519         * modules/trim (Depends-on): Likewise.
44520         * modules/unistr/u8-move (Depends-on): Likewise.
44521         * modules/unistr/u16-move (Depends-on): Likewise.
44522         * modules/unistr/u32-move (Depends-on): Likewise.
44523
44524 2008-11-02  Bruno Haible  <bruno@clisp.org>
44525
44526         Mark 'memcpy' obsolete.
44527         * modules/memcpy (Status, Notice): New sections.
44528
44529 2008-11-02  Bruno Haible  <bruno@clisp.org>
44530
44531         Mark 'memcmp' obsolete.
44532         * modules/memcmp (Status, Notice): New sections.
44533         * modules/argmatch (Depends-on): Add memchr.
44534         * modules/backupfile (Depends-on): Likewise.
44535         * modules/c-strcasestr (Depends-on): Likewise.
44536         * modules/crypto/des (Depends-on): Likewise.
44537         * modules/csharpcomp (Depends-on): Likewise.
44538         * modules/fnmatch (Depends-on): Likewise.
44539         * modules/git-merge-changelog (Depends-on): Likewise.
44540         * modules/isnand (Depends-on): Likewise.
44541         * modules/isnand-nolibm (Depends-on): Likewise.
44542         * modules/isnanf (Depends-on): Likewise.
44543         * modules/isnanf-nolibm (Depends-on): Likewise.
44544         * modules/isnanl (Depends-on): Likewise.
44545         * modules/isnanl-nolibm (Depends-on): Likewise.
44546         * modules/mbchar (Depends-on): Likewise.
44547         * modules/memcoll (Depends-on): Likewise.
44548         * modules/quotearg (Depends-on): Likewise.
44549         * modules/regex (Depends-on): Likewise.
44550         * modules/relocatable-prog (Depends-on): Likewise.
44551         * modules/same (Depends-on): Likewise.
44552         * modules/signbit (Depends-on): Likewise.
44553         * modules/strcasestr-simple (Depends-on): Likewise.
44554         * modules/unictype/gen-ctype (Depends-on): Likewise.
44555         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44556         * modules/uniname/uniname (Depends-on): Likewise.
44557         * modules/unistr/u8-cmp (Depends-on): Likewise.
44558
44559 2008-11-02  Bruno Haible  <bruno@clisp.org>
44560
44561         Mark 'memchr' obsolete.
44562         * modules/memchr (Status, Notice): New sections.
44563         * modules/argp (Depends-on): Add memchr.
44564         * modules/base64 (Depends-on): Likewise.
44565         * modules/c-strcasestr (Depends-on): Likewise.
44566         * modules/chdir-long (Depends-on): Likewise.
44567         * modules/fnmatch (Depends-on): Likewise.
44568         * modules/getsubopt (Depends-on): Likewise.
44569         * modules/git-merge-changelog (Depends-on): Likewise.
44570         * modules/glob (Depends-on): Likewise.
44571         * modules/strcasestr-simple (Depends-on): Likewise.
44572         * modules/strnlen (Depends-on): Likewise.
44573
44574 2008-11-02  Bruno Haible  <bruno@clisp.org>
44575
44576         Mark 'atexit' obsolete.
44577         * modules/atexit (Status, Notice): New sections.
44578         * modules/chdir-long (Depends-on): Add atexit.
44579         * modules/wait-process (Depends-on): Likewise.
44580
44581 2008-11-02  Bruno Haible  <bruno@clisp.org>
44582
44583         * gnulib-tool: New option --with-obsolete.
44584         (func_usage): Document it.
44585         (func_modules_transitive_closure): Drop obsolete dependencies if
44586         incobsolete is not true.
44587         (func_import): Read and save the incobsolete variable to the cache.
44588
44589 2008-11-02  Bruno Haible  <bruno@clisp.org>
44590
44591         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44592         * gnulib-tool: New option --extract-status.
44593         (func_usage): Document it.
44594         (sed_extract_prog): Recognize it.
44595         (func_get_status): New function.
44596
44597 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44598
44599         * modules/sockets (License): Change from LGPL to LGPLv2+.
44600
44601 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44602
44603         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44604
44605 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44606
44607         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44608         Mention times and sys_times.
44609         * modules/sys_times, modules/sys_times-tests: New modules.
44610         * modules/times, modules/times-tests: Likewise
44611         * m4/sys_times_h.m4: New file.
44612         * lib/sys_times.in.h: Likewise
44613         * lib/times.c: Likewise.
44614         * tests/test-sys_times.c: Likewise.
44615         * tests/test-times.c: Likewise.
44616         * doc/posix-headers/sys_times.texi: Update.
44617         * doc/posix-functions/times.texi: Update.
44618
44619 2008-10-28  Jim Meyering  <meyering@redhat.com>
44620
44621         * modules/tempname (Depends-on): Add lstat.
44622
44623         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44624
44625 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44626
44627         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44628         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44629         using idiom used elsewhere in gnulib.
44630
44631 2008-10-27  Jim Meyering  <meyering@redhat.com>
44632
44633         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44634
44635 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44636
44637         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44638         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44639         programs.
44640         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44641
44642 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44643
44644         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44645
44646 2008-10-27  Bruno Haible  <bruno@clisp.org>
44647
44648         * tests/test-lstat.c: Include <stdio.h>.
44649
44650 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44651
44652         * modules/lstat-tests: New module.
44653         * tests/test-lstat.c: New file.
44654
44655 2008-10-26  Jim Meyering  <meyering@redhat.com>
44656
44657         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44658
44659 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44660             Bruno Haible  <bruno@clisp.org>
44661
44662         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44663         * modules/configmake (Include): Add a note that the include must come
44664         after all system headers.
44665         * lib/javaversion.c: Include configmake.h after all other includes.
44666
44667 2008-10-26  Bruno Haible  <bruno@clisp.org>
44668
44669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44670         HAVE_STRUCT_RANDOM_DATA to 1.
44671         (gl_STDLIB_H): Simplify.
44672
44673 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44674
44675         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44676         substitute HAVE_STRUCT_RANDOM_DATA.
44677         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44678         random_data.
44679         * modules/stdlib (Makefile.am): Substitute
44680         HAVE_STRUCT_RANDOM_DATA.
44681
44682 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44683
44684         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44685         * doc/gnulib-intro.texi (Copyright): Likewise.
44686
44687 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44688
44689         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44690         findings.
44691
44692 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44693             Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/unistd.in.h: Include <winsock2.h>.
44696         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44697         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44698         Provide dummy declarations.
44699         (gethostname): Override.
44700         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44701         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44702         gl_PREREQ_SYS_H_WINSOCK2.
44703         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44704         * doc/posix-functions/gethostname.texi: More details.
44705
44706 2008-10-25  Bruno Haible  <bruno@clisp.org>
44707
44708         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44709         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44710         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44711
44712         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44713         here ...
44714         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44715         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44716         gl_UNISTD_H_DEFAULTS.
44717
44718 2008-10-25  Eric Blake  <ebb9@byu.net>
44719
44720         signbit: avoid spurious compiler failure
44721         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44722         declarations inside function.
44723
44724 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44725             Bruno Haible  <bruno@clisp.org>
44726
44727         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44728         * modules/random_r (Depends-on): Add stdint.
44729
44730 2008-10-24  Bruno Haible  <bruno@clisp.org>
44731
44732         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44733         Eggert.
44734         * modules/strerror (License): Likewise.
44735
44736 2008-10-24  Jim Meyering  <meyering@redhat.com>
44737
44738         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44739         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44740
44741 2008-10-24  Eric Blake  <ebb9@byu.net>
44742
44743         getgroups: fix compilation when getgroups is available
44744         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44745         but with <config.h> override of getgroups disabled.
44746
44747 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44748
44749         * doc/gnulib.texi (Header files): Add note about C++ problems.
44750         Explained by Bruno Haible <bruno@clisp.org>.
44751
44752 2008-10-23  Bruno Haible  <bruno@clisp.org>
44753
44754         Define a dummy SA_NODEFER macro on Interix.
44755         * lib/signal.in.h (SA_NODEFER): Define fallback.
44756         Reported by Aleksey Cheusov <cheusov@tut.by> via
44757         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44758
44759 2008-10-23  Bruno Haible  <bruno@clisp.org>
44760
44761         * modules/freadahead (License): Change to LGPLv2+.
44762         Suggested by Simon Josefsson.
44763
44764 2008-10-23  Jim Meyering  <meyering@redhat.com>
44765
44766         random_r: new module
44767         * modules/random_r: New file.
44768         * m4/random_r.m4: New file.
44769         * lib/random_r.c: New file, from glibc.
44770         * modules/random_r-tests: New file.
44771         * tests/test-random_r.c: New file.
44772         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44773          Declare.
44774         (RAND_MAX): Define.
44775         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44776         * modules/stdlib: Substitute them, too.
44777         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44778         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44779         * doc/glibc-functions/random_r.texi: Likewise.
44780         * doc/glibc-functions/setstate_r.texi: Likewise.
44781         * doc/glibc-functions/srandom_r.texi: Likewise.
44782         * config/srclist.txt: Mention it.
44783
44784 2008-10-23  David Lutterkort  <lutter@redhat.com>
44785
44786         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44787         link requirement
44788
44789 2008-10-23  Jim Meyering  <meyering@redhat.com>
44790
44791         selinux-h: mark parameters of stub functions as intentionally unused
44792         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44793         * lib/se-context.in.h: Likewise.
44794
44795 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44796
44797         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44798
44799 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44800
44801         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44802
44803 2008-10-22  Eric Blake  <ebb9@byu.net>
44804
44805         glthread/thread: avoid compiler warning
44806         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44807         Add unreachable abort to silence compiler.
44808
44809 2008-10-22  Eric Blake  <ebb9@byu.net>
44810
44811         netdb: also supply struct addrinfo for cygwin 1.5.x
44812         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44813         older cygwin.
44814         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44815         cygwin.
44816         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44817
44818 2008-10-22  Bruno Haible  <bruno@clisp.org>
44819
44820         * users.txt: Update entry about pspp.
44821
44822 2008-10-21  Bruno Haible  <bruno@clisp.org>
44823
44824         Simplification.
44825         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44826         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44827
44828         Simplification.
44829         * lib/ioctl.c (ioctl): Don't undefine.
44830         * lib/socket.c (socket): Don't undefine.
44831
44832         Remove unused module indicator macros.
44833         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44834         GNULIB_$1 as a C macro.
44835
44836         * doc/posix-functions/close.texi: Undo last change.
44837         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44838         Windows platforms.
44839
44840 2008-10-21  Bruno Haible  <bruno@clisp.org>
44841
44842         Add gethostname() declaration to <unistd.h>.
44843         * lib/unistd.in.h (gethostname): New declaration.
44844         * lib/gethostname.c: Include <unistd.h>.
44845         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44846         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44848         and HAVE_GETHOSTNAME.
44849         * modules/gethostname (Depends-on): Add unistd.
44850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44851         (Include): Specify <unistd.h>.
44852         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44853         HAVE_GETHOSTNAME.
44854         * tests/test-gethostname.c: Include <unistd.h> first.
44855
44856 2008-10-21  Bruno Haible  <bruno@clisp.org>
44857
44858         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44859         * modules/select-tests (Depends-on): Likewise.
44860         Reported by Simon Josefsson.
44861
44862 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44863
44864         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44865         * lib/accept.c: New file, based on winsock.c.
44866         * lib/bind.c: New file, based on winsock.c.
44867         * lib/connect.c: New file, based on winsock.c.
44868         * lib/getpeername.c: New file, based on winsock.c.
44869         * lib/getsockname.c: New file, based on winsock.c.
44870         * lib/getsockopt.c: New file, based on winsock.c.
44871         * lib/ioctl.c: New file, based on winsock.c.
44872         * lib/listen.c: New file, based on winsock.c.
44873         * lib/recv.c: New file, based on winsock.c.
44874         * lib/recvfrom.c: New file, based on winsock.c.
44875         * lib/send.c: New file, based on winsock.c.
44876         * lib/sendto.c: New file, based on winsock.c.
44877         * lib/setsockopt.c: New file, based on winsock.c.
44878         * lib/shutdown.c: New file, based on winsock.c.
44879         * lib/socket.c: New file, based on winsock.c.
44880         * lib/w32sock.h: New file, based on winsock.c.
44881         * lib/winsock.c: Remove file.
44882         * modules/accept: Likewise.
44883         * modules/bind: Likewise.
44884         * modules/connect: Likewise.
44885         * modules/getpeername: Likewise.
44886         * modules/getsockname: Likewise.
44887         * modules/getsockopt: Likewise.
44888         * modules/ioctl: Likewise.
44889         * modules/listen: Likewise.
44890         * modules/recv: Likewise.
44891         * modules/recvfrom: Likewise.
44892         * modules/send: Likewise.
44893         * modules/sendto: Likewise.
44894         * modules/setsockopt: Likewise.
44895         * modules/shutdown: Likewise.
44896         * modules/socket: Use socket.c instead of winsock.c.
44897         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44898         * doc/posix-functions/accept.texi: Doc fix.
44899         * doc/posix-functions/bind.texi: Doc fix.
44900         * doc/posix-functions/close.texi: Doc fix.
44901         * doc/posix-functions/connect.texi: Doc fix.
44902         * doc/posix-functions/getpeername.texi: Doc fix.
44903         * doc/posix-functions/getsockname.texi: Doc fix.
44904         * doc/posix-functions/getsockopt.texi: Doc fix.
44905         * doc/posix-functions/ioctl.texi: Doc fix.
44906         * doc/posix-functions/listen.texi: Doc fix.
44907         * doc/posix-functions/recv.texi: Doc fix.
44908         * doc/posix-functions/recvfrom.texi: Doc fix.
44909         * doc/posix-functions/send.texi: Doc fix.
44910         * doc/posix-functions/sendto.texi: Doc fix.
44911         * doc/posix-functions/setsockopt.texi: Doc fix.
44912         * doc/posix-functions/shutdown.texi: Doc fix.
44913         * doc/posix-functions/socket.texi: Doc fix.
44914
44915 2008-10-20  Bruno Haible  <bruno@clisp.org>
44916
44917         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44918         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44919         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44920         as an alias for SIGABRT.
44921         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44922         (sigaction): Map it to SIGABRT.
44923         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44924
44925 2008-10-20  Bruno Haible  <bruno@clisp.org>
44926
44927         * lib/fts.c: Don't include lstat.h.
44928         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44929
44930         Move the lstat() declaration to <sys/stat.h>.
44931         * lib/lstat.h: Remove file.
44932         * lib/sys_stat.in.h: Add special invocation convention.
44933         (lstat): New declaration.
44934         * lib/lstat.c (orig_lstat): New function.
44935         (rpl_lstat): Use orig_lstat instead of lstat.
44936         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44937         AC_C_INLINE. Set REPLACE_LSTAT.
44938         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44939         and REPLACE_LSTAT.
44940         * modules/lstat (Files): Remove lib/lstat.h.
44941         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44942         (Include): Specify <sys/stat.h> instead of lstat.h.
44943         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44944         REPLACE_LSTAT.
44945         * NEWS: Mention the change.
44946
44947 2008-10-20  Bruno Haible  <bruno@clisp.org>
44948
44949         * modules/posix_spawn-tests: New file.
44950         * tests/test-posix_spawn3.c: New file.
44951
44952 2008-10-20  Bruno Haible  <bruno@clisp.org>
44953
44954         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44955         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44956         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44957         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44958         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44959
44960 2008-10-20  Bruno Haible  <bruno@clisp.org>
44961
44962         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44963         of posix_spawn on AIX 5.3.
44964
44965 2008-10-20  Bruno Haible  <bruno@clisp.org>
44966
44967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44968
44969 2008-10-20  Bruno Haible  <bruno@clisp.org>
44970
44971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44972         of AC_LANG_PROGRAM.
44973
44974 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44975
44976         * lib/netdb.in.h: Don't define GNU specific constants until they
44977         are supported or needed.  Reported by Bruno Haible
44978         <bruno@clisp.org>.
44979
44980 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44981
44982         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44983
44984 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44985
44986         * lib/getaddrinfo.h: Remove file.
44987         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44988         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44989         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44990         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44991         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44992         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44993         * tests/test-getaddrinfo.c: Likewise.
44994         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44995         * NEWS: Mention change.
44996
44997 2008-10-19  Bruno Haible  <bruno@clisp.org>
44998
44999         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45000
45001 2008-10-19  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/wait-process.c: Include simply <sys/wait.h>.
45004         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45005         WIFSTOPPED): Remove fallback definitions.
45006         * modules/wait-process (Depends-on): Add sys_wait.
45007
45008         New module 'sys_wait'.
45009         * modules/sys_wait: New file.
45010         * lib/sys_wait.in.h: New file, partially copied from
45011         lib/wait-process.c.
45012         * m4/sys_wait_h.m4: New file.
45013         * doc/posix-headers/sys_wait.texi: Mention the new module.
45014
45015 2008-10-19  Bruno Haible  <bruno@clisp.org>
45016
45017         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45018
45019 2008-10-19  Bruno Haible  <bruno@clisp.org>
45020
45021         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45022         * lib/wait-process.c (WAIT_T): Remove type.
45023         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45024         (wait_subprocess): Update.
45025
45026 2008-10-19  Bruno Haible  <bruno@clisp.org>
45027
45028         New module 'atoll'.
45029         * modules/atoll: New file.
45030         * lib/stdlib.in.h (atoll): New declaration.
45031         * lib/atoll.c: New file, from glibc with modifications.
45032         * m4/atoll.m4: New file.
45033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45034         HAVE_ATOLL.
45035         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45036         * doc/posix-functions/atoll.texi: Mention the new module.
45037
45038 2008-10-19  Bruno Haible  <bruno@clisp.org>
45039
45040         Add strtoull() declaration to <stdlib.h>.
45041         * lib/stdlib.in.h (strtoull): New declaration.
45042         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45043         Set HAVE_STRTOULL.
45044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45045         HAVE_STRTOULL.
45046         * modules/strtoull (Depends-on): Add stdlib.
45047         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45048         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45049         HAVE_STRTOULL.
45050
45051 2008-10-19  Bruno Haible  <bruno@clisp.org>
45052
45053         Add strtoll() declaration to <stdlib.h>.
45054         * lib/stdlib.in.h (strtoll): New declaration.
45055         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45056         Set HAVE_STRTOLL.
45057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45058         HAVE_STRTOLL.
45059         * modules/strtoll (Depends-on): Add stdlib.
45060         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45061         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45062
45063 2008-10-19  Bruno Haible  <bruno@clisp.org>
45064
45065         * modules/bcopy (Depends-on): Add strings.
45066         (Include): Specify <strings.h>.
45067
45068 2008-10-19  Bruno Haible  <bruno@clisp.org>
45069
45070         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45071
45072 2008-10-19  Bruno Haible  <bruno@clisp.org>
45073
45074         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45075         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45076         mingw.
45077
45078 2008-10-19  Bruno Haible  <bruno@clisp.org>
45079
45080         * lib/atanl.c: Don't include isnanl.h.
45081         * lib/cosl.c: Likewise.
45082         * lib/ldexpl.c: Likewise.
45083         * lib/logl.c: Likewise.
45084         * lib/sinl.c: Likewise.
45085         * lib/sqrtl.c: Likewise.
45086         * lib/tanl.c: Likewise.
45087
45088         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45089         * lib/isnanf.h: Remove file.
45090         * lib/isnand.h: Remove file.
45091         * lib/isnanl.h: Remove file.
45092         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45093         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45094         macros.
45095         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45096         HAVE_ISNANF, don't define it as a C macro.
45097         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45098         HAVE_ISNAND, don't define it as a C macro.
45099         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45100         HAVE_ISNANL, don't define it as a C macro.
45101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45102         HAVE_ISNAN[FDL].
45103         * modules/isnanf (Files): Remove lib/isnanf.h.
45104         (Depends-on): Add math.
45105         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45106         (Include): Specify <math.h> instead of isnanf.h.
45107         * modules/isnand (Files): Remove lib/isnand.h.
45108         (Depends-on): Add math.
45109         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45110         (Include): Specify <math.h> instead of isnand.h.
45111         * modules/isnanl (Files): Remove lib/isnanl.h.
45112         (Depends-on): Add math.
45113         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45114         (Include): Specify <math.h> instead of isnanl.h.
45115         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45116         HAVE_ISNAN[FDL].
45117         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45118         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45119         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45120         * NEWS: Mention the change.
45121
45122 2008-10-18  Bruno Haible  <bruno@clisp.org>
45123
45124         Add getusershell(), setusershell(), endusershell() declarations to
45125         <unistd.h>.
45126         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45127         declarations.
45128         * lib/getusershell.c: Include unistd.h.
45129         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45130         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45131         HAVE_GETUSERSHELL.
45132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45133         and HAVE_GETUSERSHELL.
45134         * modules/getusershell (Depends-on): Add unistd, extensions.
45135         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45136         (Include): Specify <unistd.h>.
45137         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45138         HAVE_GETUSERSHELL.
45139
45140 2008-10-18  Bruno Haible  <bruno@clisp.org>
45141
45142         Add a getloadavg() declaration to <stdlib.h>.
45143         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45144         getloadavg declaration.
45145         (getloadavg): New declaration.
45146         * lib/getloadavg.c: Include <stdlib.h> first.
45147         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45148         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45149         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45151         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45152         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45153         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45154         (Include): Specify <stdlib.h>.
45155         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45156         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45157
45158 2008-10-18  Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/dirchownmod.c: Don't include lchmod.h.
45161
45162         Move the lchmod() declaration to <sys/stat.h>.
45163         * lib/lchmod.h: Remove file.
45164         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45165         (lchmod): New declaration, moved here from lib/lchown.h.
45166         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45167         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45169         and HAVE_LCHMOD.
45170         * modules/lchmod (Files): Remove lib/lchmod.h.
45171         (Depends-on): Add sys_stat, extensions.
45172         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45173         (Include): Specify <sys/stat.h> instead of lchmod.h.
45174         * modules/sys_stat (Depends-on): Add link-warning.
45175         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45176         definition of GL_LINK_WARNING.
45177         * NEWS: Mention the change.
45178
45179 2008-10-18  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/fchdir.c: Don't include dirfd.h.
45182         * lib/fts.c: Likewise.
45183         * lib/getcwd.c: Likewise.
45184         * lib/glob.c: Likewise.
45185
45186         Move the dirfd() declaration to <dirent.h>.
45187         * lib/dirfd.h: Remove file.
45188         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45189         (dirfd): New declaration.
45190         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45191         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45192         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45193         HAVE_DECL_DIRFD.
45194         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45195         HAVE_DECL_DIRFD.
45196         * modules/dirfd (Files): Remove lib/dirfd.h.
45197         (Depends-on): Add dirent, extensions.
45198         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45199         (Include): Specify <dirent.h> instead of dirfd.h.
45200         * modules/dirent (Depends-on): Add link-warning.
45201         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45202         definition of GL_LINK_WARNING.
45203         * NEWS: Mention the change.
45204
45205 2008-10-18  Bruno Haible  <bruno@clisp.org>
45206
45207         Move the euidaccess() declaration to <unistd.h>.
45208         * lib/euidaccess.h: Remove file.
45209         * lib/unistd.in.h (euidaccess): New declaration.
45210         * lib/euidaccess.c: Don't include euidaccess.h.
45211         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45212         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45214         and HAVE_EUIDACCESS.
45215         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45216         (Depends-on): Add unistd.
45217         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45218         (Include): Specify <unistd.h> instead of euidaccess.h.
45219         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45220         HAVE_EUIDACCESS.
45221         * NEWS: Mention the change.
45222
45223 2008-10-18  Bruno Haible  <bruno@clisp.org>
45224
45225         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45226
45227         Move the getdomainname() declaration to <unistd.h>.
45228         * lib/getdomainname.h: Remove file.
45229         * lib/unistd.in.h (getdomainname): New declaration.
45230         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45231         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45232         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45233         HAVE_GETDOMAINNAME.
45234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45235         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45236         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45237         (Depends-on): Add unistd, extensions.
45238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45239         (Includes): Specify <unistd.h> instead of getdomainname.h.
45240         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45241         HAVE_GETDOMAINNAME.
45242         * NEWS: Mention the change.
45243
45244 2008-10-18  Bruno Haible  <bruno@clisp.org>
45245
45246         * modules/dirent: New file.
45247         * m4/dirent_h.m4: New file.
45248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45249         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45250         * modules/fchdir (Files): Remove lib/dirent.in.h.
45251         (Depends-on): Add dirent.
45252         (Makefile.am): Move rules to modules/dirent.
45253         * doc/posix-headers/dirent.texi: Mention the new module.
45254
45255 2008-10-18  Bruno Haible  <bruno@clisp.org>
45256
45257         Avoid -Wunused-parameter warnings in public gnulib header files.
45258         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45259         macro.
45260         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45261
45262 2008-10-18  Bruno Haible  <bruno@clisp.org>
45263
45264         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45265         * doc/glibc-functions/error.texi: Mention the module 'error'.
45266         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45267         * doc/glibc-functions/getdomainname.texi: Mention the module
45268         'getdomainname'.
45269         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45270         * doc/glibc-functions/getpagesize.texi: Mention the module
45271         'getpagesize'.
45272         * doc/glibc-functions/getusershell.texi: Mention the module
45273         'getusershell'.
45274         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45275         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45276         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45277         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45278         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45279         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45280         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45281         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45282         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45283         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45284         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45285         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45286         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45287         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45288
45289 2008-10-17  Bruno Haible  <bruno@clisp.org>
45290
45291         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45292         HP-UX and IRIX, use -0.0L.
45293         * tests/test-ceill.c (minus_zero): Likewise.
45294         * tests/test-floorl.c (minus_zero): Likewise.
45295         * tests/test-frexpl.c (minus_zero): Likewise.
45296         * tests/test-isnan.c (minus_zerol): Likewise.
45297         * tests/test-isnanl.h (minus_zero): Likewise.
45298         * tests/test-ldexpl.c (minus_zero): Likewise.
45299         * tests/test-roundl.c (minus_zero): Likewise.
45300         * tests/test-signbit.c (minus_zerol): Likewise.
45301         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45302         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45303         * tests/test-truncl.c (minus_zero): Likewise.
45304         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45305         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45306         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45307         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45308
45309 2008-10-17  Bruno Haible  <bruno@clisp.org>
45310
45311         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45312         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45313         that it gets activated only for gcc >= 3.0.
45314         * lib/dirent.in.h: Likewise.
45315         * lib/errno.in.h: Likewise.
45316         * lib/fcntl.in.h: Likewise.
45317         * lib/float.in.h: Likewise.
45318         * lib/iconv.in.h: Likewise.
45319         * lib/inttypes.in.h: Likewise.
45320         * lib/locale.in.h: Likewise.
45321         * lib/math.in.h: Likewise.
45322         * lib/netdb.in.h: Likewise.
45323         * lib/netinet_in.in.h: Likewise.
45324         * lib/search.in.h: Likewise.
45325         * lib/signal.in.h: Likewise.
45326         * lib/spawn.in.h: Likewise.
45327         * lib/stdarg.in.h: Likewise.
45328         * lib/stdint.in.h: Likewise.
45329         * lib/stdio.in.h: Likewise.
45330         * lib/stdlib.in.h: Likewise.
45331         * lib/string.in.h: Likewise.
45332         * lib/strings.in.h: Likewise.
45333         * lib/sys_file.in.h: Likewise.
45334         * lib/sys_ioctl.in.h: Likewise.
45335         * lib/sys_select.in.h: Likewise.
45336         * lib/sys_socket.in.h: Likewise.
45337         * lib/sys_stat.in.h: Likewise.
45338         * lib/sys_time.in.h: Likewise.
45339         * lib/sysexits.in.h: Likewise.
45340         * lib/time.in.h: Likewise.
45341         * lib/unistd.in.h: Likewise.
45342         * lib/wchar.in.h: Likewise.
45343         * lib/wctype.in.h: Likewise.
45344         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45345
45346 2008-10-17  Jim Meyering  <meyering@redhat.com>
45347
45348         ignore-value: don't depend on inline module
45349         * modules/ignore-value (Depends-on): Remove 'inline'.
45350         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45351         Suggestion from Bruno Haible.
45352
45353 2008-10-17  Bruno Haible  <bruno@clisp.org>
45354
45355         New implementation of condition variables for Win32.
45356         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45357         (gl_linked_waitqueue_t): New type.
45358         (gl_cond_t): Use it.
45359         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45360         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45361         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45362         (glthread_cond_init_func, glthread_cond_wait_func,
45363         glthread_cond_timedwait_func, glthread_cond_signal_func,
45364         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45365         Reimplemented on the basis of gl_linked_waitqueue_t.
45366         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45367         gl_waitqueue_t.
45368         (gl_rwlock_t): Update.
45369         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45370
45371 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45372
45373         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45374         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45375
45376 2008-10-17  Jim Meyering  <meyering@redhat.com>
45377
45378         ignore-value: new module
45379         * modules/ignore-value: New file.
45380         * lib/ignore-value.h: New file.
45381         * MODULES.html.sh (Compiler warning management): New section,
45382         just for this module.  More to come.
45383
45384 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45385
45386         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45387         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45388         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45389
45390 2008-10-16  Jim Meyering  <meyering@redhat.com>
45391
45392         openat-die.c: avoid 'no previous prototype' warning
45393         * lib/openat-die.c: Include "openat.h".
45394         Reported by Reuben Thomas <rrt@sc3d.org>.
45395
45396 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45397
45398         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45399         * lib/netdb.in.h: Fix typo.
45400         Reported by Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/netdb.in.h: Include sys/socket.h for platforms without
45403         netdb.h, to get structures like hostent on MinGW.
45404         * modules/netdb (Depends-on): Add sys_socket.
45405
45406 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45407
45408         * modules/netdb, modules/netdb-tests: New file.
45409         * m4/netdb_h.m4: New file.
45410         * lib/netdb.in.h: Add, currently just an empty file pending
45411         definitions.
45412         * tests/test-netdb.c: New file.
45413         * doc/posix-headers/netdb.texi: Mention that we replace it if
45414         needed.
45415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45416         netdb.
45417
45418 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45419
45420         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45421         with code.
45422
45423 2008-10-13  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/glthread/cond.c (glthread_cond_wait_func,
45426         glthread_cond_timedwait_func): Add a comment.
45427
45428 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45429
45430         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45431         * tests/test-select.c: Likewise,
45432
45433 2008-10-13  Bruno Haible  <bruno@clisp.org>
45434
45435         * lib/glthread/cond.c (glthread_cond_wait_func,
45436         glthread_cond_timedwait_func): Fix variable name.
45437         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45438
45439 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45440
45441         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45442         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45443         struct sockaddr.sa_len.
45444         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45445
45446 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45447
45448         * build-aux/pmccabe2html: Add css and css_url parameters.
45449
45450 2008-10-12  Bruno Haible  <bruno@clisp.org>
45451
45452         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45453         calling aclx_get.
45454         Reported by Rainer Tammer <tammer@tammer.net>.
45455
45456 2008-10-12  Bruno Haible  <bruno@clisp.org>
45457
45458         Use msvcrt aware primitives for creation/termination of Win32 threads.
45459         * lib/glthread/thread.c: Include <process.h>.
45460         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45461         (wrapper_func): Update signature.
45462         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45463
45464 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45465             Bruno Haible  <bruno@clisp.org>
45466
45467         Provide a Win32 implementation of the 'cond' module.
45468         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45469         * lib/glthread/cond.c (glthread_cond_init_func,
45470         glthread_cond_wait_func, glthread_cond_timedwait_func,
45471         glthread_cond_signal_func, glthread_cond_broadcast_func,
45472         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45473         * modules/cond (Dependencies): Add gettimeofday.
45474
45475 2008-10-11  Bruno Haible  <bruno@clisp.org>
45476
45477         Make sleep work on older versions of mingw.
45478         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45479         only whether it exists.
45480         * doc/posix-functions/sleep.texi: Mention the problem with older
45481         versions of mingw.
45482
45483 2008-10-11  Bruno Haible  <bruno@clisp.org>
45484
45485         New module 'shutdown'.
45486         * modules/shutdown: New file.
45487         * lib/sys_socket.in.h (shutdown): New declaration.
45488         * lib/winsock.c (shutdown): New function.
45489         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45490         GNULIB_SHUTDOWN.
45491         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45492         * doc/posix-functions/shutdown.texi: Document the new module.
45493
45494 2008-10-11  Jim Meyering  <meyering@redhat.com>
45495
45496         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45497
45498 2008-10-11  Bruno Haible  <bruno@clisp.org>
45499
45500         New module 'fclose'.
45501         * modules/fclose: New file.
45502         * lib/stdio.in.h (fclose): New declaration.
45503         * lib/fclose.c: New file.
45504         * m4/fclose.m4: New file.
45505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45506         REPLACE_FCLOSE.
45507         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45508         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45509         REPLACE_FCLOSE.
45510         * modules/close (Depends-on): fclose.
45511         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45512
45513 2008-10-11  Bruno Haible  <bruno@clisp.org>
45514
45515         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45516         set errno and don't call _close.
45517
45518 2008-10-10  Bruno Haible  <bruno@clisp.org>
45519
45520         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45521         ACL, not afterwards. Fixes test failure on Cygwin.
45522
45523 2008-10-09  Ben Pfaff  <blp@gnu.org>
45524
45525         * build-aux/announce-gen: Fix gnulib version related part of usage
45526         message.  Die with a useful error message if no tarballs are
45527         found.
45528
45529 2008-10-10  Jim Meyering  <meyering@redhat.com>
45530
45531         bootstrap: use git's --depth=N option only if it's supported
45532         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45533         recognize the --depth option.  Reported by Pádraig Brady.
45534
45535 2008-10-09  Bruno Haible  <bruno@clisp.org>
45536
45537         New module 'ioctl'.
45538         * modules/ioctl: New file.
45539         * lib/sys_socket.in.h (ioctl): Remove declaration.
45540         * lib/winsock.c: Include <sys/ioctl.h>.
45541         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45542         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45543         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45544         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45545         * doc/posix-functions/ioctl.texi: Mention the new module.
45546
45547 2008-10-09  Bruno Haible  <bruno@clisp.org>
45548
45549         New module 'sys_ioctl'.
45550         * lib/sys_ioctl.in.h: New file.
45551         * m4/sys_ioctl_h.m4: New file.
45552         * modules/sys_ioctl: New file.
45553         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45554
45555 2008-10-09  Bruno Haible  <bruno@clisp.org>
45556
45557         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45558         * lib/winsock.c: Include <stdarg.h>.
45559         (rpl_ioctl): Change to second argument 'int' and then varargs.
45560
45561 2008-10-09  Bruno Haible  <bruno@clisp.org>
45562
45563         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45564         when the sys_socket module is present and the system has <winsock2.h>.
45565
45566 2008-10-09  Bruno Haible  <bruno@clisp.org>
45567
45568         * doc/posix-functions/close.texi: Mention module 'close' instead of
45569         module 'sys_socket'.
45570
45571 2008-10-09  Bruno Haible  <bruno@clisp.org>
45572
45573         * doc/glibc-headers/sys_ioctl.texi: New file.
45574         * doc/gnulib.texi: Include it.
45575
45576 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45577             Bruno Haible  <bruno@clisp.org>
45578
45579         Combine the two replacements of 'close'.
45580         * lib/sys_socket.in.h (close): Define to a reminder to include
45581         <unistd.h>.
45582         (_gl_close_fd_maybe_socket): New declaration.
45583         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45584         * lib/winsock.c (close): Remove undefinition.
45585         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45586         needed for the gnulib module 'close'.
45587         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45588         define to an error symbol or to a warning, if suitable.
45589         * lib/close.c: Include <sys/socket.h>.
45590         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45591         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45592         UNISTD_H_HAVE_WINSOCK2_H.
45593         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45595         UNISTD_H_HAVE_WINSOCK2_H.
45596         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45597         (configure.ac): Set a module indicator.
45598         (Makefile.am): Substitute GNULIB_CLOSE.
45599         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45600         * modules/poll-tests (Depends-on): Add close.
45601         * modules/select-tests (Depends-on): Likewise.
45602
45603 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45604             Bruno Haible  <bruno@clisp.org>
45605
45606         New module 'close'.
45607         * modules/close: New file.
45608         * lib/unistd.in.h (close): Move declaration out of the
45609         FCHDIR_REPLACEMENT scope.
45610         (_gl_unregister_fd): New declaration.
45611         * lib/close.c: New file.
45612         * lib/fchdir.c (rpl_close): Remove function.
45613         * m4/close.m4: New file.
45614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45615         close.
45616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45617         REPLACE_CLOSE.
45618         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45619         REPLACE_CLOSE.
45620         * modules/fchdir (Depends-on): Add close.
45621
45622 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45623             Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/fcntl.in.h (open): Simplify conditionals.
45626         (_gl_register_fd): New declaration.
45627         * lib/fchdir.c (rpl_open): Remove function.
45628         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45629         also.
45630         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45632         open.
45633
45634 2008-10-09  Jim Meyering  <meyering@redhat.com>
45635
45636         GNUmakefile: use the more name-space-friendly "_version"
45637         * top/GNUmakefile (_dummy): Update.
45638         (_version): Rename from "version".
45639
45640 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45641             Bruno Haible  <bruno@clisp.org>
45642
45643         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45644         rpl_close.
45645         (_gl_register_fd): New function, extracted from rpl_open.
45646         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45647         (rpl_open, rpl_opendir): Use _gl_register_fd.
45648
45649 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45650
45651         Fix organization of 'open' replacement.
45652         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45653         (gl_FUNC_OPEN): Use it.
45654         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45655
45656 2008-10-08  Bruno Haible  <bruno@clisp.org>
45657
45658         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45659
45660 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45661
45662         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45663         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45664         listen).
45665
45666 2008-10-08  Eric Blake  <ebb9@byu.net>
45667
45668         GNUmakefile: add 'make version' target
45669         * top/GNUmakefile (_curr-ver): Split version update rules...
45670         (version): ...into a target.
45671
45672 2008-10-07  Bruno Haible  <bruno@clisp.org>
45673
45674         Use a more portable replacement expression for -0.0L.
45675         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45676         instead of -0.0L. Fix m4 quotation.
45677
45678         * tests/test-signbit.c: Include <float.h>.
45679         (minus_zero): New variable.
45680         (test_signbitl): Use minus_zero instead of -zero.
45681         * modules/signbit-tests (Depends-on): Add float.
45682
45683         * tests/test-ceill.c: Include <float.h>.
45684         (zero): Remove variable.
45685         (minus_zero): New variable.
45686         (main): Use minus_zero instead of -zero.
45687         * modules/ceill-tests (Depends-on): Add float.
45688
45689         * tests/test-floorl.c: Include <float.h>.
45690         (zero): Remove variable.
45691         (minus_zero): New variable.
45692         (main): Use minus_zero instead of -zero.
45693         * modules/floorl-tests (Depends-on): Add float.
45694
45695         * tests/test-roundl.c: Include <float.h>.
45696         (zero): Remove variable.
45697         (minus_zero): New variable.
45698         (main): Use minus_zero instead of -zero.
45699         * modules/roundl-tests (Depends-on): Add float.
45700
45701         * tests/test-truncl.c: Include <float.h>.
45702         (zero): Remove variable.
45703         (minus_zero): New variable.
45704         (main): Use minus_zero instead of -zero.
45705         * modules/truncl-tests (Depends-on): Add float.
45706
45707         * tests/test-frexpl.c (zero): Remove variable.
45708         (minus_zero): New variable.
45709         (main): Use minus_zero instead of -zero.
45710         * modules/frexpl-tests (Depends-on): Add float.
45711
45712         * tests/test-isnan.c (zerol): Remove variable.
45713         (minus_zerol): New variable.
45714         (test_long_double): Use minus_zerol instead of -zerol.
45715         * modules/isnan-tests (Depends-on): Add float.
45716
45717         * tests/test-isnanl.h (zero): Remove variable.
45718         (minus_zero): New variable.
45719         (main): Use minus_zero instead of -zero.
45720         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45721         * modules/isnanl-tests (Depends-on): Add float.
45722
45723         * tests/test-ldexpl.c (zero): Remove variable.
45724         (minus_zero): New variable.
45725         (main): Use minus_zero instead of -zero.
45726         * modules/ldexpl-tests (Depends-on): Add float.
45727
45728         * tests/test-snprintf-posix.h (zerol): Remove variable.
45729         (minus_zerol): New variable.
45730         (test_function): Use minus_zerol instead of -zerol.
45731         * modules/snprintf-posix-tests (Depends-on): Add float.
45732         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45733
45734         * tests/test-sprintf-posix.h (zerol): Remove variable.
45735         (minus_zerol): New variable.
45736         (test_function): Use minus_zerol instead of -zerol.
45737         * modules/sprintf-posix-tests (Depends-on): Add float.
45738         * modules/vsprintf-posix-tests (Depends-on): Add float.
45739
45740         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45741         (minus_zerol): New variable.
45742         (test_function): Use minus_zerol instead of -zerol.
45743         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45744
45745         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45746         (minus_zerol): New variable.
45747         (test_function): Use minus_zerol instead of -zerol.
45748         * modules/vasprintf-posix-tests (Depends-on): Add float.
45749
45750 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45751
45752         * MODULES.html.sh (Support for building documentation): Mention
45753         pmccabe2html.  Sort entries.
45754
45755         Add pmccabe2html module, from gnupdf.
45756         * build-aux/pmccabe.css: New file.
45757         * build-aux/pmccabe2html: New file.
45758         * m4/pmccabe2html.m4: New file.
45759         * modules/pmccabe2html: New file.
45760
45761 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45762
45763         flock: new module
45764         * MODULES.html.sh: Add to list of modules.
45765         * lib/flock.c: flock implementation for Windows and Unix systems
45766         which have fcntl.
45767         * doc/glibc-functions/flock.texi: Update documentation.
45768         * lib/sys_file.in.h: <sys/file.h> header file.
45769         * m4/flock.m4: M4 macros.
45770         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45771         * modules/flock: flock module.
45772         * modules/flock-tests: flock tests module.
45773         * modules/sys_file: sys/file.h module.
45774         * tests/test-flock.c: test suite for flock.
45775
45776 2008-10-06  Jim Meyering  <meyering@redhat.com>
45777
45778         bootstrap: check for LT_INIT more portably still ;-)
45779         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45780         Spotted by Bruno Haible.
45781
45782 2008-10-06  Eric Blake  <ebb9@byu.net>
45783
45784         test-signbit: avoid tripping Irix cc bug on -0.0L
45785         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45786         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45787         entire testsuite consistent and avoids an Irix 6.2 bug.
45788
45789 2008-10-05  Bruno Haible  <bruno@clisp.org>
45790             Jim Meyering  <jim@meyering.net>
45791
45792         Add an option for ignoring EPIPE during close_stdout.
45793         * lib/closeout.h: Include <stdbool.h>.
45794         (close_stdout_set_ignore_EPIPE): New declaration.
45795         * lib/closeout.c: Include <stdbool.h>.
45796         (ignore_EPIPE): New variable.
45797         (close_stdout_set_ignore_EPIPE): New function.
45798         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45799         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45800         failure.
45801         * modules/closeout (Depends-on): Add stdbool.
45802
45803 2008-10-05  Bruno Haible  <bruno@clisp.org>
45804
45805         * modules/accept: New file.
45806         * modules/bind: New file.
45807         * modules/connect: New file.
45808         * modules/getpeername: New file.
45809         * modules/getsockname: New file.
45810         * modules/getsockopt: New file.
45811         * modules/listen: New file.
45812         * modules/recv: New file.
45813         * modules/recvfrom: New file.
45814         * modules/send: New file.
45815         * modules/sendto: New file.
45816         * modules/setsockopt: New file.
45817         * modules/socket: New file.
45818         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45819         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45820         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45821         the particular module is requested. Add a link warning when the
45822         particular module is not requested.
45823         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45824         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45825         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45826         the particular module is requested.
45827         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45828         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45829         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45830         * modules/sys_socket (Depends-on): Add link-warning.
45831         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45832         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45833         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45834         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45835         GL_LINK_WARNING.
45836         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45837         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45838         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45839         * doc/posix-functions/getpeername.texi: Mention the new module
45840         'getpeername'.
45841         * doc/posix-functions/getsockname.texi: Mention the new module
45842         'getsockname'.
45843         * doc/posix-functions/getsockopt.texi: Mention the new module
45844         'getsockopt'.
45845         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45846         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45847         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45848         * doc/posix-functions/send.texi: Mention the new module 'send'.
45849         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45850         * doc/posix-functions/setsockopt.texi: Mention the new module
45851         'setsockopt'.
45852         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45853         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45854         listen, connect, accept.
45855         * modules/select-tests (Depends-on): Likewise.
45856
45857 2008-10-05  Bruno Haible  <bruno@clisp.org>
45858
45859         * lib/winsock.c (strerror): Remove unused #undef.
45860         (rpl_close): Remove unused local variable.
45861
45862         * modules/sys_socket (Depends-on); Add errno.
45863
45864 2008-10-05  Bruno Haible  <bruno@clisp.org>
45865
45866         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45867         (select): Add a link warning when the 'select' module is not used.
45868         * modules/sys_select (Depends-on): Add link-warning.
45869         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45870         Suggested by Paolo Bonzini.
45871
45872 2008-10-05  Jim Meyering  <meyering@redhat.com>
45873
45874         bootstrap: check for LT_INIT more portably
45875         * build-aux/bootstrap: Avoid using grep -E, since it's not
45876         portable enough.  Suggestion from Bruno Haible.
45877
45878 2008-10-05  Bruno Haible  <bruno@clisp.org>
45879
45880         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45881         as being fixed by gnulib.
45882
45883 2008-10-05  Bruno Haible  <bruno@clisp.org>
45884
45885         * modules/select-tests: New file, mostly copied from
45886         modules/sys_select-tests.
45887         * tests/test-select.c: New file, mostly copied from
45888         tests/test-sys_select.c.
45889         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45890         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45891         (Makefile.am): Remove test_sys_select_LDADD.
45892
45893         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45894         to an undefined symbol, for an error message.
45895         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45896         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45897         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45898         winsock-select.c here.
45899         * modules/sys_select (Files): Remove lib/winsock-select.c.
45900         (Depends-on): Remove alloca.
45901         (Makefile.am): Substitute GNULIB_SELECT.
45902         * modules/select: New file.
45903         * doc/posix-functions/select.texi: Update.
45904
45905 2008-10-05  Bruno Haible  <bruno@clisp.org>
45906
45907         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45908         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45909         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45910         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45911         getdtablesize.
45912         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45913         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45914
45915 2008-10-05  Bruno Haible  <bruno@clisp.org>
45916
45917         * modules/getdtablesize-tests: New file.
45918         * tests/test-getdtablesize.c: New file.
45919
45920         New module 'getdtablesize'.
45921         * lib/unistd.in.h (getdtablesize): New declaration.
45922         * lib/getdtablesize.c: New file.
45923         * m4/getdtablesize.m4: New file.
45924         * modules/getdtablesize: New file.
45925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45926         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45927         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45928         HAVE_GETDTABLESIZE.
45929         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45930
45931 2008-10-05  Bruno Haible  <bruno@clisp.org>
45932
45933         * modules/sched (Makefile.am): Fix typo.
45934         Reported by Simon Josefsson.
45935
45936 2008-10-05  Jim Meyering  <meyering@redhat.com>
45937
45938         bootstrap: check for LT_INIT, too
45939         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45940         are deprecated.  Suggestion from Ralf Wildenhues.
45941
45942 2008-10-05  Bruno Haible  <bruno@clisp.org>
45943
45944         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45945         overriding them by ours.
45946         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45947
45948 2008-10-05  Jim Meyering  <meyering@redhat.com>
45949
45950         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45951         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45952         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45953
45954 2008-10-04  Bruno Haible  <bruno@clisp.org>
45955
45956         * modules/dup2 (License): Change to LGPLv2+.
45957         * modules/sleep (License): Likewise.
45958         * modules/perror (License): Likewise.
45959         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45960         Blake.
45961         * modules/signal (License): Likewise.
45962         * modules/sigprocmask (License): Likewise.
45963         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45964         Meyering.
45965
45966 2008-10-04  Bruno Haible  <bruno@clisp.org>
45967
45968         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45969         Reported by Rainer Tammer <tammer@tammer.net>.
45970
45971 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45972             Bruno Haible  <bruno@clisp.org>
45973
45974         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45975         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45976         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45977
45978 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45979
45980         filevercmp: new module
45981         * lib/filevercmp.h: New function filevercmp comparing version strings.
45982         * lib/filevercmp.c: Implementation of filevercmp function.
45983         * modules/filevercmp: Module metadata.
45984         * tests/test-filevercmp.c: Unit test for new module.
45985         * modules/filevercmp-tests: Unit test metadata.
45986         * MODULES.html.sh: Add filevercmp module.
45987
45988 2008-10-03  Bruno Haible  <bruno@clisp.org>
45989
45990         * lib/c-ctype.h: Add comment.
45991         Reported by Jim Meyering.
45992
45993 2008-10-02  Bruno Haible  <bruno@clisp.org>
45994
45995         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45996
45997 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45998
45999         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46000         name of bootstrap.conf accordingly.
46001
46002 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46003
46004         * build-aux/bootstrap: Install git-merge-changelog configuration
46005         items into .gitconfig if needed.
46006
46007 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46008
46009         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46010         git repository, and initialize/update it accordingly.
46011
46012 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46013
46014         * modules/fsync-tests: New file.
46015         * tests/test-fsync.c: New file.
46016
46017         New module 'fsync'.
46018         * lib/fsync.c: New file.
46019         * m4/fsync.m4: New file.
46020         * modules/fsync: New file.
46021         * lib/unistd.in.h (fsync): New declaration.
46022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46023         GNULIB_FSYNC and HAVE_FSYNC.
46024         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46025         * MODULES.html.sh (posix_functions): Add fsync.
46026         * doc/posix-functions/fsync.texi: Mention the new module.
46027
46028 2008-10-02  Jim Meyering  <meyering@redhat.com>
46029
46030         fts.c: sync with similar code from coreutils' remove.c
46031         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46032         Guard also with "#if defined __linux__", since for now at least,
46033         this code is Linux-kernel-specific.
46034
46035 2008-10-02  Jim Meyering  <meyering@redhat.com>
46036
46037         fts: bug fixes
46038         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46039         Include <sys/vfs.h>, not <sys/statfs.h>.
46040
46041         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46042         Include <sys/vfs.h>, not <sys/statfs.h>.
46043
46044 2008-10-01  Bruno Haible  <bruno@clisp.org>
46045
46046         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46048         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46049         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46050         * doc/posix-functions/posix_spawnp.texi: Likewise.
46051         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46052         whether posix_spawn actually works.
46053         * m4/pipe.m4 (gl_PIPE): Likewise.
46054         * modules/execute (Files): Add m4/posix_spawn.m4.
46055         * modules/pipe (Files): Add m4/posix_spawn.m4.
46056         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46057
46058 2008-10-01  Jim Meyering  <meyering@redhat.com>
46059
46060         remove trailing spaces
46061         * NEWS: Likewise.
46062         * lib/poll.c (poll): Likewise.
46063         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46064         * lib/winsock.c (rpl_close): Likewise.
46065         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46066         * modules/yield: Likewise.
46067         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46068         * tests/test-sys_select.c (connect_to_socket): Likewise.
46069
46070         fts.c: adjust a new interface to be more generally useful
46071         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46072         (fts_build): Adjust caller.
46073
46074 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46075
46076         * modules/cond-tests: New file.
46077         * tests/test-cond.c: New file.
46078
46079 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46080             Bruno Haible  <bruno@clisp.org>
46081
46082         * modules/cond (Dependencies): Add errno, time.
46083         * lib/glthread/cond.h: Include <time.h>.
46084         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46085         across platforms.
46086
46087 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46088             Bruno Haible  <bruno@clisp.org>
46089
46090         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46091
46092 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46093             Bruno Haible  <bruno@clisp.org>
46094
46095         * modules/tls-tests (Depends-on): Add thread, yield.
46096         (configure.ac): Remove all checks.
46097         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46098         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46099         gl_thread_self): Remove definitions. Include glthread/thread.h and
46100         glthread/yield.h instead.
46101         (test_tls): Pass an additional NULL argument to gl_thread_join.
46102
46103 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46104             Bruno Haible  <bruno@clisp.org>
46105
46106         * modules/lock-tests (Depends-on): Add thread, yield.
46107         (configure.ac): Remove all checks.
46108         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46109         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46110         gl_thread_self): Remove definitions. Include glthread/thread.h and
46111         glthread/yield.h instead.
46112         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46113         additional NULL argument to gl_thread_join.
46114
46115 2008-09-30  Bruno Haible  <bruno@clisp.org>
46116
46117         Fix the Win32 implementation of the 'thread' module.
46118         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46119         pointer type.
46120         (gl_thread_self): Invoke gl_thread_self_func.
46121         (gl_thread_self_func): New declaration.
46122         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46123         (do_init_self_key, init_self_key): New functions.
46124         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46125         Remove some fields.
46126         (running_threads, running_lock): Remove variables.
46127         (get_current_thread_handle): New function.
46128         (gl_thread_self_func, wrapper_func, glthread_create_func,
46129         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46130         simplified.
46131
46132 2008-09-30  Bruno Haible  <bruno@clisp.org>
46133
46134         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46135         files.
46136
46137 2008-09-30  Jim Meyering  <meyering@redhat.com>
46138
46139         fts.m4: correct the test for statfs.f_type
46140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46141         when checking for statfs.f_type.
46142
46143 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46144
46145         tests: avoid some compiler warnings
46146         * tests/test-memchr.c (main): Pass NULL indirectly.
46147         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46148
46149 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46150
46151         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46152         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46153         exactly specified dayshifts.
46154         (dayshift): New rule.
46155         (rel): Add dayshift.
46156         (relative_time_table) [tomorrow, yesterday, today, now]:
46157         Use tDAY_SHIFT in place of tDAY_UNIT.
46158         * tests/test-getdate.c: Add tests for now-disallowed countable
46159         dayshifts, e.g., "4 yesterday ago".
46160
46161 2008-09-29  Bruno Haible  <bruno@clisp.org>
46162
46163         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46164         * tests/test-posix_spawn1.in.sh: Renamed from
46165         tests/test-posix_spawn.in.sh.
46166         * tests/test-posix_spawn2.c: New file.
46167         * tests/test-posix_spawn2.in.sh: New file.
46168         * modules/posix_spawnp-tests (Files): Update.
46169         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46170
46171 2008-09-29  Bruno Haible  <bruno@clisp.org>
46172
46173         Propagate effects of putenv/setenv/unsetenv to child processes.
46174         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46175         * lib/pipe.c (create_pipe): Likewise.
46176
46177 2008-09-29  Bruno Haible  <bruno@clisp.org>
46178
46179         Enable use of shell scripts as executables in mingw.
46180         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46181         run the program as a shell script.
46182         * lib/pipe.c (create_pipe): Likewise.
46183         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46184         resulting array.
46185
46186 2008-09-29  Eric Blake  <ebb9@byu.net>
46187
46188         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46189
46190 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46191
46192         * doc/posix-functions/accept.texi: Update mingw problems.
46193         * doc/posix-functions/bind.texi: Update mingw problems.
46194         * doc/posix-functions/close.texi: Update mingw problems.
46195         * doc/posix-functions/connect.texi: Update mingw problems.
46196         * doc/posix-functions/getpeername.texi: Update mingw problems.
46197         * doc/posix-functions/getsockname.texi: Update mingw problems.
46198         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46199         * doc/posix-functions/ioctl.texi: Update mingw problems.
46200         * doc/posix-functions/listen.texi: Update mingw problems.
46201         * doc/posix-functions/recv.texi: Update mingw problems.
46202         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46203         * doc/posix-functions/select.texi: Update mingw problems.
46204         * doc/posix-functions/send.texi: Update mingw problems.
46205         * doc/posix-functions/sendto.texi: Update mingw problems.
46206         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46207         * doc/posix-functions/socket.texi: Update mingw problems.
46208
46209 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46210             Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/sys_select.in.h: Include sys/time.h.
46213         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46214         * modules/sys_select: Depend on sys_time.
46215         * tests/test-sys_select.c: Test that sys/select.h defines struct
46216         timeval fully.
46217
46218 2008-09-29  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46221         * lib/sys_select.in.h: Likewise.
46222
46223 2008-09-29  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46226
46227 2008-09-29  Bruno Haible  <bruno@clisp.org>
46228
46229         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46230         Set LIBSOCKET instead of augmenting LIBS.
46231         * modules/sockets (Link): New section.
46232         * modules/sockets-tests (test_sockets_LDADD): New variable.
46233         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46234         * modules/poll-tests (test_poll_LDADD): New variable.
46235         * NEWS: Document the change.
46236
46237 2008-09-29  Bruno Haible  <bruno@clisp.org>
46238
46239         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46240         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46241         ARPA_INET_H directly.
46242         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46243
46244 2008-09-28  Bruno Haible  <bruno@clisp.org>
46245
46246         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46247         from gl_HEADER_SYS_SOCKET.
46248         (gl_HEADER_SYS_SOCKET): Invoke it.
46249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46250
46251 2008-09-28  Bruno Haible  <bruno@clisp.org>
46252
46253         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46254         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46255         Needed on OSF/1 4.0.
46256
46257 2008-09-28  Bruno Haible  <bruno@clisp.org>
46258
46259         Override open more carefully.
46260         * lib/open.c (orig_open): New function.
46261         (rpl_open): Use orig_open instead of open.
46262         * lib/fcntl.in.h: Add special invocation convention.
46263         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46264         (gl_FUNC_OPEN): Invoke it.
46265
46266         Override freopen more carefully.
46267         * lib/freopen.c (orig_freopen): New function.
46268         (rpl_freopen): Use orig_freopen instead of freopen.
46269         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46270         (gl_FUNC_FREOPEN): Invoke it.
46271
46272         Override fopen more carefully.
46273         * lib/fopen.c (orig_fopen): New function.
46274         (rpl_fopen): Use orig_fopen instead of fopen.
46275         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46276         (gl_FUNC_FOPEN): Invoke it.
46277         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46278
46279 2008-09-28  Bruno Haible  <bruno@clisp.org>
46280
46281         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46282         SIGPIPE.
46283
46284 2008-09-28  Bruno Haible  <bruno@clisp.org>
46285
46286         * tests/test-sigaction.c (handler, main): Disable the check whether
46287         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46288         glibc systems with LinuxThreads.
46289
46290 2008-09-28  Bruno Haible  <bruno@clisp.org>
46291
46292         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46293
46294         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46295         with AIX xlc.
46296         * lib/fcntl.in.h (open): Likewise.
46297         Reported by Rainer Tammer <tammer@tammer.net>.
46298
46299 2008-09-28  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/posix_spawnp-tests: New file.
46302         * tests/test-posix_spawn.c: New file.
46303         * tests/test-posix_spawn.in.sh: New file.
46304
46305         New module 'posix_spawnp'.
46306         * modules/posix_spawnp: New file.
46307         * lib/spawnp.c: New file, from GNU libc with modifications.
46308         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46309
46310         New module 'posix_spawn'.
46311         * modules/posix_spawn: New file.
46312         * lib/spawn.c: New file, from GNU libc with modifications.
46313         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46314
46315         New module 'posix_spawnattr_destroy'.
46316         * modules/posix_spawnattr_destroy: New file.
46317         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46318         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46319         module.
46320
46321         New module 'posix_spawnattr_setsigmask'.
46322         * modules/posix_spawnattr_setsigmask: New file.
46323         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46324         modifications.
46325         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46326         new module.
46327
46328         New module 'posix_spawnattr_getsigmask'.
46329         * modules/posix_spawnattr_getsigmask: New file.
46330         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46331         modifications.
46332         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46333         new module.
46334
46335         New module 'posix_spawnattr_setsigdefault'.
46336         * modules/posix_spawnattr_setsigdefault: New file.
46337         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46338         modifications.
46339         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46340         new module.
46341
46342         New module 'posix_spawnattr_getsigdefault'.
46343         * modules/posix_spawnattr_getsigdefault: New file.
46344         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46345         modifications.
46346         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46347         new module.
46348
46349         New module 'posix_spawnattr_setschedpolicy'.
46350         * modules/posix_spawnattr_setschedpolicy: New file.
46351         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46352         modifications.
46353         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46354         new module.
46355
46356         New module 'posix_spawnattr_getschedpolicy'.
46357         * modules/posix_spawnattr_getschedpolicy: New file.
46358         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46359         modifications.
46360         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46361         new module.
46362
46363         New module 'posix_spawnattr_setschedparam'.
46364         * modules/posix_spawnattr_setschedparam: New file.
46365         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46366         modifications.
46367         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46368         new module.
46369
46370         New module 'posix_spawnattr_getschedparam'.
46371         * modules/posix_spawnattr_getschedparam: New file.
46372         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46373         modifications.
46374         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46375         new module.
46376
46377         New module 'posix_spawnattr_setpgroup'.
46378         * modules/posix_spawnattr_setpgroup: New file.
46379         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46380         modifications.
46381         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46382         module.
46383
46384         New module 'posix_spawnattr_getpgroup'.
46385         * modules/posix_spawnattr_getpgroup: New file.
46386         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46387         modifications.
46388         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46389         module.
46390
46391         New module 'posix_spawnattr_setflags'.
46392         * modules/posix_spawnattr_setflags: New file.
46393         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46394         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46395         module.
46396
46397         New module 'posix_spawnattr_getflags'.
46398         * modules/posix_spawnattr_getflags: New file.
46399         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46400         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46401         module.
46402
46403         New module 'posix_spawnattr_init'.
46404         * modules/posix_spawnattr_init: New file.
46405         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46406         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46407         module.
46408
46409         New module 'posix_spawn_file_actions_destroy'.
46410         * modules/posix_spawn_file_actions_destroy: New file.
46411         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46412         modifications.
46413         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46414         the new module.
46415
46416         New module 'posix_spawn_file_actions_addopen'.
46417         * modules/posix_spawn_file_actions_addopen: New file.
46418         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46419         modifications.
46420         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46421         the new module.
46422
46423         New module 'posix_spawn_file_actions_adddup2'.
46424         * modules/posix_spawn_file_actions_adddup2: New file.
46425         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46426         modifications.
46427         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46428         the new module.
46429
46430         New module 'posix_spawn_file_actions_addclose'.
46431         * modules/posix_spawn_file_actions_addclose: New file.
46432         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46433         modifications.
46434         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46435         the new module.
46436
46437         New module 'posix_spawn_file_actions_init'.
46438         * modules/posix_spawn_file_actions_init: New file.
46439         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46440         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46441         new module.
46442
46443         New module 'posix_spawn-internal'.
46444         * modules/posix_spawn-internal: New file.
46445         * lib/spawn_int.h: New file, from GNU libc with modifications.
46446         * lib/spawni.c: New file, from GNU libc with modifications.
46447         * m4/posix_spawn.m4: New file.
46448
46449         New module 'spawn'.
46450         * modules/spawn: New file.
46451         * lib/spawn.in.h: New file, from GNU libc with modifications.
46452         * m4/spawn_h.m4: New file.
46453         * doc/posix-headers/spawn.texi: Mention the new module.
46454
46455 2008-09-28  Bruno Haible  <bruno@clisp.org>
46456
46457         * modules/sched-tests: New file.
46458         * tests/test-sched.c: New file.
46459
46460         New module 'sched'.
46461         * modules/sched: New file.
46462         * lib/sched.in.h: New file.
46463         * m4/sched_h.m4: New file.
46464         * doc/posix-headers/sched.texi: Mention the new module.
46465
46466 2008-09-27  Eric Blake  <ebb9@byu.net>
46467
46468         Fix previous patch, and tweak references to $0.
46469         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46470         (func_version, func_gnulib_dir): Don't call this program
46471         gnulib-tool.
46472         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46473         with using $0 in function.
46474         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46475         (func_fatal_error): Reuse the name the user invoked us with.
46476
46477 2008-09-27  Bruno Haible  <bruno@clisp.org>
46478
46479         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46480         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46481         (gl_ICONV_H): Not here.
46482         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46483         instead of assigning ICONV_H directly.
46484
46485         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46487         WCHAR_H directly.
46488
46489 2008-09-27  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46492         * modules/arpa_inet (Depends-on): Add link-warning.
46493         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46494         * modules/unistd (Makefile.am): Likewise.
46495
46496 2008-09-26  Bruno Haible  <bruno@clisp.org>
46497
46498         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46499         variables.
46500         (func_version): Essentially copied from gnulib-tool.
46501         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46502         func_readlink): Copied from gnulib-tool.
46503
46504 2008-09-26  Bruno Haible  <bruno@clisp.org>
46505
46506         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46507         invoking git-version-gen.
46508
46509 2008-09-26  Bruno Haible  <bruno@clisp.org>
46510
46511         * posix-modules: Update to directory names changed on 2008-01-19.
46512         Remove commas in output before splitting into words. No more need to
46513         avoid 'ftruncate' since 2007-02-19.
46514
46515 2008-09-26  Bruno Haible  <bruno@clisp.org>
46516
46517         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46518
46519 2008-09-26  Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46522         * modules/fwriteerror (Depends-on): Add errno.
46523
46524 2008-09-26  Bruno Haible  <bruno@clisp.org>
46525
46526         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46527         * tests/test-vc-list-files-cvs.sh: Likewise.
46528
46529 2008-09-26  Bruno Haible  <bruno@clisp.org>
46530
46531         * doc/posix-headers/sys_resource.texi: Reorder items.
46532
46533 2008-09-26  Jim Meyering  <meyering@redhat.com>
46534
46535         fts: tweak inode comparison function
46536         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46537         inode numbers, as documented.
46538
46539         fts: sort dirent entries on inode number before traversing
46540         This avoids a quadratic, seek-related performance penalty when
46541         operating on a directory containing many entries (measurable at 10k;
46542         3.5 hours at 2 million entries with a cold cache) on certain types
46543         of file systems, including ext3 and ext4, but not tmpfs.
46544         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46545         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46546         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46547         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46548         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46549         (fts_build): Set the stat.st_ino member from D_INO.
46550         If it is likely to be useful, sort dirent entries on inode number.
46551
46552         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46553         and the struct statfs.f_type member.
46554         * modules/fts (Depends-on): Add d-ino.
46555
46556 2008-09-26  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/sigpipe-die (Depends-on): Add sigpipe.
46559
46560         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46561         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46562         and GNULIB_STDIO_H_SIGPIPE are set.
46563         * lib/stdio-write.c: New file.
46564         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46565         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46566         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46567         REPLACE_STDIO_WRITE_FUNCS.
46568         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46569         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46570         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46571         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46572         * modules/stdio (Files): Add lib/stdio-write.c.
46573         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46574         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46575         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46576         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46577         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46578         REPLACE_FPRINTF_POSIX.
46579         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46580         REPLACE_PRINTF_POSIX.
46581         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46582         REPLACE_VFPRINTF_POSIX.
46583         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46584         REPLACE_VPRINTF_POSIX.
46585         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46586         SIGPIPE issue.
46587         * doc/posix-functions/fputc.texi: Likewise.
46588         * doc/posix-functions/fputs.texi: Likewise.
46589         * doc/posix-functions/fwrite.texi: Likewise.
46590         * doc/posix-functions/printf.texi: Likewise.
46591         * doc/posix-functions/putc.texi: Likewise.
46592         * doc/posix-functions/putchar.texi: Likewise.
46593         * doc/posix-functions/puts.texi: Likewise.
46594         * doc/posix-functions/vfprintf.texi: Likewise.
46595         * doc/posix-functions/vprintf.texi: Likewise.
46596
46597         * modules/safe-write (Depends-on): Add write.
46598
46599         * modules/sigpipe-tests: New file.
46600         * tests/test-sigpipe.c: New file.
46601         * tests/test-sigpipe.sh: New file.
46602
46603         * modules/write: New file.
46604         * lib/unistd.in.h: Include <sys/types.h>.
46605         (write): New declaration.
46606         * lib/write.c: New file.
46607         * m4/write.m4: New file.
46608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46609         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46610         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46611         GNULIB_WRITE, REPLACE_WRITE.
46612         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46613         and the SIGPIPE issue.
46614
46615         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46616         (raise): New declaration.
46617         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46618         (ext_signal): New function.
46619         (rpl_raise): New function.
46620         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46621         GNULIB_SIGNAL_H_SIGPIPE.
46622         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46623         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46624
46625         * modules/sigpipe: New file.
46626         * m4/sigpipe.m4: New file.
46627
46628 2008-09-25  Derek Price  <derek@ximbiot.com>
46629             Bruno Haible  <bruno@clisp.org>
46630
46631         * gnulib-tool (func_import): Report all license incompatibilities, not
46632         just the first one.
46633
46634 2008-09-25  Bruno Haible  <bruno@clisp.org>
46635
46636         * gnulib-tool (func_import): When computing the edits, consider not
46637         only the Makefile.ams that exist but also those that will be generated.
46638
46639 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46640
46641         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46642         fixes gnulib-tool --test warning about duplicate dependency.
46643
46644 2008-09-25  Bruno Haible  <bruno@clisp.org>
46645
46646         * gnulib-tool: Don't ask the user to perform edits in the generated
46647         Makefile.ams.
46648         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46649         apply to the Makefile.am being generated.
46650         (func_emit_tests_Makefile_am): Execute edits that apply to the
46651         Makefile.am being generated.
46652         (func_import): Setup list of Makefile.am edits before emitting the
46653         Makefile.ams, not at the end.
46654         (func_create_testdir): Update.
46655         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46656
46657 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46658
46659         * gnulib-tool (func_import): Store the --tests-base option in the
46660         comment in gnulib-cache.m4.
46661
46662 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46663
46664         * NEWS: Document increased portability that sys_select now provides.
46665
46666         * lib/sys_select.in.h: Install select wrapper.
46667         * lib/sys_socket.in.h: Use more descriptive name when there is no
46668         select wrapper.
46669         * lib/winsock-select.c: New.
46670         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46671         Require gl_HEADER_SYS_SOCKET.
46672         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46673         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46674         * tests/test-sys_select.c: Add functional tests.
46675
46676 2008-09-24  Eric Blake  <ebb9@byu.net>
46677
46678         open, fopen: close fd leak in last patch
46679         * lib/open.c (rpl_open): Close fd before returning error.
46680         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46681         * doc/posix-functions/open.texi (open): Document that Irix also
46682         has the bug.
46683         * doc/posix-functions/fopen.texi (fopen): Likewise.
46684         Reported by Paolo Bonzini.
46685
46686 2008-09-24  Bruno Haible  <bruno@clisp.org>
46687
46688         Ensure that a filename ending in a slash cannot be used to access a
46689         non-directory.
46690         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46691         to check whether it's really a directory.
46692         * lib/fopen.c: Include fcntl.h, unistd.h.
46693         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46694         and fdopen().
46695         * modules/fopen (Depends-on): Add unistd.
46696         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46697         * tests/test-fopen.c (main): Likewise.
46698         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46699         * doc/posix-functions/fopen.texi: Likewise.
46700         Reported by Eric Blake.
46701
46702 2008-09-23  Eric Blake  <ebb9@byu.net>
46703
46704         c-stack: avoid compiler optimizations when provoking overflow
46705         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46706         recursion harder to optimize, to ensure a stack overflow occurs.
46707         * tests/test-c-stack.c (recurse): Likewise.
46708         Borrowed from libsigsegv.
46709
46710         c-stack: work around Irix sigaltstack bug
46711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46712         whether sigaltstack uses wrong end of stack_t (copied in part from
46713         libsigsegv).
46714         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46715         Irix bug, without requiring an over-allocation.
46716         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46717         bug.
46718
46719         fopen: document mingw bug on directories
46720         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46721         not allowing a stream visiting a directory, even though reading
46722         from such a stream is not portable.
46723
46724 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46725
46726         * lib/poll.c: Rewrite.
46727         * modules/poll: Depend on alloca.
46728
46729 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46730
46731         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46732         instead define prototypes for a full set of wrappers.  Ensure
46733         that Cygwin does not use the compatibility code, which is only
46734         for MinGW.
46735         * lib/winsock.c: New.
46736         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46737         * modules/sys_socket: Add lib/winsock.c.
46738
46739         * modules/poll-tests: Add errno and perror.
46740         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46741
46742 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46743
46744         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46745
46746 2008-09-23  Bruno Haible  <bruno@clisp.org>
46747
46748         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46749         * doc/glibc-functions/*: Likewise.
46750
46751 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46752
46753         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46754         success.
46755
46756 2008-09-22  Eric Blake  <ebb9@byu.net>
46757             Bruno Haible  <bruno@clisp.org>
46758
46759         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46760         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46761         supply %A but mishandle pseudo-NaN.
46762         Reported by Simon Josefsson.
46763
46764 2008-09-21  Bruno Haible  <bruno@clisp.org>
46765
46766         * tests/test-lock.c (main): Tweak skip message.
46767         * tests/test-tls.c (main): Likewise.
46768
46769 2008-09-21  Bruno Haible  <bruno@clisp.org>
46770
46771         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46772         whether 'struct sigaction' has sa_sigaction here...
46773         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46774         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46775
46776 2008-09-21  Bruno Haible  <bruno@clisp.org>
46777
46778         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46779         section.
46780         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46781         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46782         the new section.
46783         (Support for obsolete systems lacking POSIX:2001): New section.
46784         (String handling <string.h>): Move strdup to the new section.
46785         Suggested by Simon Josefsson and Paolo Bonzini.
46786
46787 2008-09-21  Bruno Haible  <bruno@clisp.org>
46788
46789         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46790         exponents in %e and %g results on 'long double'. Needed for mingw's
46791         improved *printf functions.
46792         * tests/test-vasprintf-posix.c (test_function): Likewise.
46793         * tests/test-snprintf-posix.h (test_function): Likewise.
46794         * tests/test-sprintf-posix.h (test_function): Likewise.
46795         Reported by Eric Blake.
46796
46797 2008-09-21  Bruno Haible  <bruno@clisp.org>
46798
46799         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46800         * tests/test-sprintf-posix.h (test_function): Likewise.
46801
46802 2008-09-21  Bruno Haible  <bruno@clisp.org>
46803
46804         * modules/getpass (Depends-on): Add strdup-posix.
46805
46806         New module 'strdup-posix'.
46807         * modules/strdup-posix: New file.
46808         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46809         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46811         REPLACE_STRDUP.
46812         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46813         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46815         strdup-posix.
46816
46817         * modules/strdup (Depends-on): Remove malloc-posix.
46818
46819 2008-09-20  Bruno Haible  <bruno@clisp.org>
46820
46821         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46822         Wildenhues.
46823
46824 2008-09-20  Bruno Haible  <bruno@clisp.org>
46825
46826         Ensure that wint_t gets defined on IRIX 5.3.
46827         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46828         * lib/wctype.in.h (wint_t): Likewise.
46829         (__wctype_wint_t): Remove type.
46830         (isw*): Use wint_t instead of __wctype_wint_t.
46831         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46832         * modules/wchar (Files): Add m4/wint_t.m4.
46833         (Makefile.am): Substitute HAVE_WINT_T.
46834         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46835         * tests/test-wctype.c: Check that wint_t is defined.
46836         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46837         * doc/posix-headers/wctype.texi: Likewise.
46838         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46839
46840 2008-09-18  Bruno Haible  <bruno@clisp.org>
46841
46842         * gnulib-tool (func_exit): Update comment.
46843
46844 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46845
46846         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46847         assumes strdup exists and does not depend on strdup to return
46848         ENOMEM on out of memory conditions.
46849
46850 2008-09-18  Bruno Haible  <bruno@clisp.org>
46851
46852         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46853         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46854         digits for the exponent.
46855
46856 2008-09-18  Jim Meyering  <meyering@redhat.com>
46857             Bruno Haible  <bruno@clisp.org>
46858
46859         * lib/vasnprintf.c (decimal_point_char): Define also if
46860         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46861
46862 2008-09-16  Bruno Haible  <bruno@clisp.org>
46863         and Eric Blake  <ebb9@byu.net>
46864
46865         vasnprintf: support Irix 5.3
46866         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46867         that mishandle long double infinity.
46868         Reported by Tom G. Christensen.
46869
46870 2008-09-16  Bruno Haible  <bruno@clisp.org>
46871
46872         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46873         Solaris 9.
46874         * doc/glibc-functions/alphasort.texi: Likewise.
46875         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46876
46877 2008-09-16  Jim Meyering  <meyering@redhat.com>
46878
46879         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46880         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46881         a umask modification leak out of a subshell.  Otherwise, the
46882         opensolaris /bin/sh would be accepted and thus cause unwarranted
46883         failures in the coreutils test suite.
46884
46885 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46886
46887         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46888         to succeed.
46889
46890 2008-09-16  Jim Meyering  <meyering@redhat.com>
46891
46892         avoid spurious test failure when library is built without ACL support
46893         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46894         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46895         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46896         * tests/test-copy-acl.sh: Likewise.
46897
46898 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46899
46900         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46901         based on character occurrence counts.
46902
46903 2008-09-15  Eric Blake  <ebb9@byu.net>
46904
46905         tests: avoid some compiler warnings
46906         * tests/test-memchr.c (main): Pass NULL indirectly.
46907         * tests/test-closein.c (main): Avoid unused variable.
46908
46909 2008-09-15  Bruno Haible  <bruno@clisp.org>
46910
46911         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46912         are missing on OpenBSD 4.0 individually.
46913         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46914
46915 2008-09-15  Bruno Haible  <bruno@clisp.org>
46916
46917         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46918         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46919         * doc/posix-functions/perror.texi: Likewise.
46920         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46921         is missing.
46922         Reported by Eric Blake.
46923
46924         * lib/errno.in.h: Use replacement values >= 2000.
46925         Reported by Eric Blake.
46926
46927 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46928
46929         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46930         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46931         limit.
46932         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46933         compareseq was aborted.
46934
46935 2008-09-14  Bruno Haible  <bruno@clisp.org>
46936
46937         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46938         yvec_edit_count.
46939         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46940         (fstrcmp_bounded): Simplify result computation accordingly.
46941
46942 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46943
46944         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46945         (fstrcmp): Define in terms of fstrcmp_bounded.
46946         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46947         lower_bound argument.
46948         Return quickly if the result is certainly < lower_bound.
46949         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46950
46951 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46952
46953         * lib/diffseq.h (EARLY_ABORT): New macro.
46954         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46955         evaluates to true.
46956
46957 2008-09-14  Bruno Haible  <bruno@clisp.org>
46958
46959         * modules/perror-tests: New file.
46960         * tests/test-perror.sh: New file.
46961         * tests/test-perror.c: New file.
46962
46963         New module 'perror'.
46964         * lib/stdio.in.h (perror): New declaration.
46965         * lib/perror.c: New file.
46966         * m4/perror.m4: New file.
46967         * modules/perror: New file.
46968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46969         * doc/posix-functions/perror.texi: Mention the perror module.
46970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46971         REPLACE_PERROR.
46972         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46973         REPLACE_PERROR.
46974
46975 2008-09-14  Bruno Haible  <bruno@clisp.org>
46976
46977         * modules/stdio (Makefile.am): Reorder to match the order in
46978         lib/stdio.in.h.
46979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46980
46981 2008-09-13  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46984
46985 2008-09-13  Bruno Haible  <bruno@clisp.org>
46986
46987         Extend strerror to cover the added errno values.
46988         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46989         (rpl_strerror): Provide error messages for the added errno values and
46990         for the WSA* values.
46991         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46992         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46993         strerror.
46994         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46995         * modules/strerror (Depends-on): Add errno.
46996         * doc/posix-functions/strerror.texi: Document the change.
46997         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46998         and EOVERFLOW.
46999
47000 2008-09-13  Bruno Haible  <bruno@clisp.org>
47001
47002         * modules/EOVERFLOW: Remove file.
47003         * m4/eoverflow.m4: Remove file.
47004         * modules/EOVERFLOW-tests: Remove file.
47005         * tests/test-EOVERFLOW.c: Remove file.
47006         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47007         * modules/ftell (Depends-on): Likewise.
47008         * modules/getdelim (Depends-on): Likewise.
47009         * modules/getugroups (Depends-on): Likewise.
47010         * modules/poll (Depends-on): Likewise.
47011         * modules/snprintf (Depends-on): Likewise.
47012         * modules/sprintf-posix (Depends-on): Likewise.
47013         * modules/vasnprintf (Depends-on): Likewise.
47014         * modules/vasprintf (Depends-on): Likewise.
47015         * modules/vfprintf-posix (Depends-on): Likewise.
47016         * modules/vsnprintf (Depends-on): Likewise.
47017         * modules/vsprintf-posix (Depends-on): Likewise.
47018         * modules/xvasprintf (Depends-on): Likewise.
47019         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47020         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47021         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47022         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47023         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47024         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47025         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47026         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47027         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47028         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47029         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47030         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47031         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47032         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47033         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47034         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47035         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47036         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47037         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47038         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47039         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47040         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47041         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47042         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47043         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47044         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47045         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47046         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47047         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47048         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47049         * MODULES.html.sh: Remove EOVERFLOW.
47050         * NEWS: Mention the change.
47051
47052 2008-09-13  Bruno Haible  <bruno@clisp.org>
47053
47054         * modules/errno-tests: New file.
47055         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47056
47057         * lib/errno.in.h: New file.
47058         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47059         * modules/errno: New file.
47060         * doc/posix-headers/errno.texi: Update documentation.
47061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47062
47063 2008-09-13  Bruno Haible  <bruno@clisp.org>
47064
47065         * tests/test-poll.c: Use #if for native Windows, rather than testing
47066         __MSVCRT__.
47067
47068 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47069             Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/glob.c: Don't include <pwd.h> on native Windows.
47072         (WINDOWS32): New macro.
47073         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47074
47075 2008-09-13  Bruno Haible  <bruno@clisp.org>
47076
47077         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47078         (ETIMEDOUT): Remove macro.
47079         (glthread_cond_timedwait_multithreaded): New declaration.
47080         (glthread_cond_timedwait): Use it.
47081         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47082         (glthread_cond_timedwait_multithreaded): New function.
47083
47084 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47085
47086         * modules/poll-tests: Do not check for io.h.
47087         * tests/test-poll.c: Check for __MSVCRT__ instead.
47088
47089 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47090
47091         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47092         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47093         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47094
47095 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47096
47097         * modules/poll-tests: New.
47098         * tests/test-poll.c: New.
47099
47100 2008-09-12  Eric Blake  <ebb9@byu.net>
47101
47102         frexp: test for NetBSD failure on -0.0
47103         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47104         not all, bugs from NetBSD 3.0 have been fixed.
47105         * doc/posix-functions/frexp.texi (frexp): Document bug.
47106         Reported by Thomas Klausner.
47107
47108         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47109         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47110         literal -0.0.
47111         Reported by Jonathan C. Patschke <jp@centtech.com>.
47112
47113 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47114
47115         * lib/glthread/cond.h: Use dummy implementation also if
47116         USE_WIN32_THREADS.
47117
47118 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47119
47120         * modules/fnmatch-posix (License): Change to LGPLv2+.
47121         * modules/fnmatch-gnu (License): Likewise.
47122
47123 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47124
47125         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47126
47127 2008-09-11  Jim Meyering  <meyering@redhat.com>
47128
47129         * users.txt: Add gtk-vnc.
47130
47131 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47132
47133         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47134         rotate amounts.
47135
47136         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47137         required for 16-bit and 8-bit rotates.
47138         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47139         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47140         UINT8_MAX instead of hard-coded constants.
47141         Suggested by Paul Eggert.
47142
47143 2008-09-07  Bruno Haible  <bruno@clisp.org>
47144
47145         * tests/test-striconveh.c (main): Check behaviour when converting from
47146         UTF-7.
47147
47148         Make striconveh work better with stateful encodings.
47149         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47150         that iconv does not increment the inptr when returning -1/EINVAL.
47151
47152 2008-09-07  Bruno Haible  <bruno@clisp.org>
47153
47154         * build-aux/config.rpath: Update according to libtool-2.2.6.
47155         * build-aux/config.libpath: Likewise.
47156
47157 2008-09-06  Bruno Haible  <bruno@clisp.org>
47158
47159         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47160         * lib/freadptr.c (freadptr): Likewise.
47161         * lib/freadseek.c (freadptrinc): Likewise.
47162         Reported by Simon Josefsson.
47163
47164 2008-09-06  Bruno Haible  <bruno@clisp.org>
47165
47166         * modules/freadptr (License): Change to LGPLv2+.
47167         * modules/freadseek (License): Likewise.
47168         Suggested by Eric Blake.
47169
47170         * modules/memchr2 (License): Change to LGPLv2+.
47171         Approved by Eric Blake.
47172
47173 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47174             Bruno Haible  <bruno@clisp.org>
47175
47176         Make gnulib-tool work with native 'sed' on AIX.
47177         * gnulib-tool (sed_noop): New variable.
47178         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47179         func_add_or_update, func_create_testdir): Use it to initialize sed
47180         script variables.
47181         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47182
47183 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47184             Bruno Haible  <bruno@clisp.org>
47185
47186         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47187         also works after #include directives.
47188
47189 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47190
47191         getdate.y: reject an out-of-range timezone value
47192         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47193         the range [-24...+24].  When specified with only one or two digits,
47194         * tests/test-getdate.c: Tests for the fix.
47195         * doc/getdate.texi: Document this change.
47196
47197 2008-09-03  Bruno Haible  <bruno@clisp.org>
47198
47199         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47200
47201 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47202
47203         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47204         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47205         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47206         Blake <ebb9@byu.net>.
47207
47208         * tests/test-bitrotate.c: Add more test vectors.
47209
47210 2008-09-02  Eric Blake  <ebb9@byu.net>
47211
47212         vasnprintf-posix: handle large precision via %.*d
47213         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47214         when handling it ourselves.
47215         * tests/test-vasnprintf-posix.c (test_function): Add test.
47216         * tests/test-snprintf-posix.h (test_function): Likewise.
47217         * tests/test-sprintf-posix.h (test_function): Likewise.
47218         * tests/test-vasprintf-posix.c (test_function): Likewise.
47219         Reported by Alain Guibert.
47220
47221 2008-09-01  Eric Blake  <ebb9@byu.net>
47222
47223         c-stack: make configure-time check more robust
47224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47225         successful sigaction call.
47226         Reported by Tom G. Christensen.
47227
47228 2008-09-01  Bruno Haible  <bruno@clisp.org>
47229
47230         New module 'findprog-lgpl'.
47231         * modules/findprog-lgpl: New file.
47232         * lib/findprog-lgpl.c: New file.
47233         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47234         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47235         to decide whether to use strdup or xstrdup, concatenated_filename or
47236         xconcatenated_filename.
47237
47238 2008-09-01  Bruno Haible  <bruno@clisp.org>
47239
47240         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47241         'xconcat-filename' (GPL).
47242         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47243         (License): Change to LGPLv2+.
47244         * modules/xconcat-filename: New file.
47245         * lib/concat-filename.h (concatenated_filename): Change specification.
47246         (xconcatenated_filename): New declaration.
47247         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47248         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47249         memory situations.
47250         * lib/xconcat-filename.c: New file.
47251         * NEWS: Mention the change.
47252         * lib/findprog.c: Include concat-filename.h, not filename.h.
47253         (find_in_path): Use xconcatenated_filename instead of
47254         concatenated_filename.
47255         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47256         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47257         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47258         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47259         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47260         instead of concatenated_filename.
47261         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47262         (execute_java_class): Use xconcatenated_filename instead of
47263         concatenated_filename.
47264         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47265         * modules/javacomp (Depends-on): Likewise.
47266         * modules/javaexec (Depends-on): Likewise.
47267
47268 2008-09-01  Bruno Haible  <bruno@clisp.org>
47269
47270         Split module 'filename' into 'filename' and 'concat-filename'.
47271         * modules/filename: Keep only lib/filename.h.
47272         (License): Change to LGPLv2+.
47273         * modules/concat-filename: New file, extracted from modules/filename.
47274         * lib/filename.h (concatenated_filename): Remove declaration.
47275         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47276         * lib/concat-filename.c: Include concat-filename.h.
47277         * NEWS: Mention the change.
47278
47279 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47280
47281         * lib/bitrotate.h (rotl8, rotr8): Add.
47282
47283         * modules/bitrotate (configure.ac): Need
47284         AC_REQUIRE([AC_C_INLINE]).
47285         (Description): Mention stdint.h.  Reported by Bruno Haible
47286         <bruno@clisp.org>.
47287
47288         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47289         Paolo Bonzini <bonzini@gnu.org>.
47290
47291 2008-08-31  Bruno Haible  <bruno@clisp.org>
47292
47293         Assume Solaris specific bi-arch conventions on Solaris systems.
47294         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47295         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47296         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47297         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47298         like acl_libdirstem.
47299         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47300         acl_libdirstem.
47301         * NEWS: Mention the change.
47302         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47303
47304 2008-08-31  Jim Meyering  <meyering@redhat.com>
47305
47306         * lib/strftime.h: Add comments describing the two added arguments.
47307
47308         remove duplicate #include directives
47309         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47310         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47311
47312 2008-08-31  Bruno Haible  <bruno@clisp.org>
47313
47314         New module 'sigpipe-die'.
47315         * modules/sigpipe-die: New file.
47316         * lib/sigpipe-die.h: New file.
47317         * lib/sigpipe-die.c: New file.
47318         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47319
47320 2008-08-31  Bruno Haible  <bruno@clisp.org>
47321
47322         Don't override previously installed signal handlers.
47323         * lib/fatal-signal.c (saved_sigactions): New variable.
47324         (uninstall_handlers): Reset the signal to the saved handler, not
47325         to SIG_DFL (except when ignored).
47326         (install_handlers): Save the previous handlers.
47327
47328 2008-08-30  Bruno Haible  <bruno@clisp.org>
47329
47330         * gnulib-tool (func_reset_sigpipe): New function.
47331         (func_get_automake_snippet, func_modules_transitive_closure,
47332         func_import): Invoke it before a join command that reads from stdin,
47333         to avoid "echo: write error: Broken pipe" error messages on stderr.
47334         Reported by Sam Steingold <sds@gnu.org>.
47335
47336 2008-08-30  Bruno Haible  <bruno@clisp.org>
47337
47338         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47339         Code copied from m4/open.m4.
47340         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47341         access and the filename ends in a slash. Code copied from lib/open.c.
47342         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47343         * tests/test-fopen.c (main): Check against bug with trailing slash.
47344
47345 2008-08-29  Bruno Haible  <bruno@clisp.org>
47346
47347         Avoid some "gcc -pedantic" warnings.
47348         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47349         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47350         * lib/dirent.in.h: Likewise.
47351         * lib/fcntl.in.h: Likewise.
47352         * lib/float.in.h: Likewise.
47353         * lib/iconv.in.h: Likewise.
47354         * lib/inttypes.in.h: Likewise.
47355         * lib/locale.in.h: Likewise.
47356         * lib/math.in.h: Likewise.
47357         * lib/netinet_in.in.h: Likewise.
47358         * lib/search.in.h: Likewise.
47359         * lib/signal.in.h: Likewise.
47360         * lib/stdarg.in.h: Likewise.
47361         * lib/stdint.in.h: Likewise.
47362         * lib/stdio.in.h: Likewise.
47363         * lib/stdlib.in.h: Likewise.
47364         * lib/string.in.h: Likewise.
47365         * lib/strings.in.h: Likewise.
47366         * lib/sys_select.in.h: Likewise.
47367         * lib/sys_socket.in.h: Likewise.
47368         * lib/sys_stat.in.h: Likewise.
47369         * lib/sys_time.in.h: Likewise.
47370         * lib/sysexits.in.h: Likewise.
47371         * lib/time.in.h: Likewise.
47372         * lib/unistd.in.h: Likewise.
47373         * lib/wchar.in.h: Likewise.
47374         * lib/wctype.in.h: Likewise.
47375         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47376         * modules/fchdir (Makefile.am): Likewise.
47377         * modules/fcntl (Makefile.am): Likewise.
47378         * modules/float (Makefile.am): Likewise.
47379         * modules/iconv_open (Makefile.am): Likewise.
47380         * modules/inttypes (Makefile.am): Likewise.
47381         * modules/locale (Makefile.am): Likewise.
47382         * modules/math (Makefile.am): Likewise.
47383         * modules/netinet_in (Makefile.am): Likewise.
47384         * modules/search (Makefile.am): Likewise.
47385         * modules/signal (Makefile.am): Likewise.
47386         * modules/stdarg (Makefile.am): Likewise.
47387         * modules/stdint (Makefile.am): Likewise.
47388         * modules/stdio (Makefile.am): Likewise.
47389         * modules/stdlib (Makefile.am): Likewise.
47390         * modules/string (Makefile.am): Likewise.
47391         * modules/strings (Makefile.am): Likewise.
47392         * modules/sys_select (Makefile.am): Likewise.
47393         * modules/sys_socket (Makefile.am): Likewise.
47394         * modules/sys_stat (Makefile.am): Likewise.
47395         * modules/sys_time (Makefile.am): Likewise.
47396         * modules/sysexits (Makefile.am): Likewise.
47397         * modules/time (Makefile.am): Likewise.
47398         * modules/unistd (Makefile.am): Likewise.
47399         * modules/wchar (Makefile.am): Likewise.
47400         * modules/wctype (Makefile.am): Likewise.
47401         Reported by Reuben Thomas <rrt@sc3d.org>.
47402
47403 2008-08-29  Bruno Haible  <bruno@clisp.org>
47404
47405         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47406         any more.
47407
47408 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47409
47410         * MODULES.html.sh (Misc): Add bitrotate.
47411
47412         * modules/bitrotate: New file.
47413
47414         * lib/bitrotate.h: New file.
47415
47416         * modules/bitrotate-tests: New file.
47417
47418         * tests/test-bitrotate.c: New file.
47419
47420         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47421         on the bitrotate module.
47422
47423         * lib/arctwo.c: Use new bitrotate module.
47424
47425 2008-08-29  Jim Meyering  <meyering@redhat.com>
47426
47427         bootstrap: merge changes from coreutils
47428         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47429         of copied files.  Remove a kludge, now that this is fixed.
47430         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47431         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47432         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47433
47434 2008-08-29  Bruno Haible  <bruno@clisp.org>
47435
47436         * MODULES.html.sh: Remove --cvs-urls option.
47437
47438 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47439
47440         maint.mk: adjust to file name change
47441         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47442
47443 2008-08-28  Jim Meyering  <meyering@redhat.com>
47444
47445         * modules/getndelim2 (License): Relicense to LGPLv2+.
47446         Approved by Richard Stallman for the version of 1995, and by
47447         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47448
47449 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47450
47451         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47452         dummy if one is not available.  Do not touch them if
47453         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47454         (getc_maybe_unlocked): New.
47455         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47456
47457 2008-08-26  Eric Blake  <ebb9@byu.net>
47458
47459         doc/INSTALL: resync from autoconf
47460         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47461         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47462         moving...
47463         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47464         * INSTALL: Regenerate.
47465         * INSTALL.ISO: New file.
47466         * INSTALL.UTF-8: Likewise.
47467
47468 2008-08-26  Jim Meyering  <meyering@redhat.com>
47469
47470         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47471         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47472         these definitions conditional, so that they may be overridden, too.
47473
47474 2008-08-26  Bruno Haible  <bruno@clisp.org>
47475
47476         Generate INSTALL file variants with prettier quotes.
47477         * doc/Makefile (INSTALL_PRELUDE): New macro.
47478         (INSTALL): Use it.
47479         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47480
47481 2008-08-26  Bruno Haible  <bruno@clisp.org>
47482
47483         Run makeinfo in an English locale.
47484         * doc/Makefile (MAKEINFO): New variable.
47485
47486 2008-08-26  Bruno Haible  <bruno@clisp.org>
47487
47488         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47489         Suggested by Eric Blake.
47490
47491 2008-08-25  Bruno Haible  <bruno@clisp.org>
47492
47493         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47494
47495 2008-08-25  Eric Blake  <ebb9@byu.net>
47496
47497         c-stack: test that stack overflow can be caught
47498         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47499         that platform allows handling stack overflow; at least OS/2 EMX
47500         has sigaltstack, but crashes before transferring control to
47501         handler on stack overflow.
47502         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47503         check for HAVE_STACK_OVERFLOW_HANDLING.
47504         Reported by Elbert Pol.
47505
47506 2008-08-25  Bruno Haible  <bruno@clisp.org>
47507
47508         * doc/posix-functions/strftime.texi: Fix description of strftime
47509         module.
47510
47511 2008-08-24  Bruno Haible  <bruno@clisp.org>
47512
47513         * tests/uniwidth/test-uc_width2.c: New file.
47514         * tests/uniwidth/test-uc_width2.sh: New file.
47515         * modules/uniwidth/width-tests (Files): Add the new files.
47516         (TESTS): Add uniwidth/test-uc_width2.sh.
47517         (TESTS_ENVIRONMENT): New variable.
47518         (check_PROGRAMS): Add test-uc_width2.
47519         (test_uc_width2_SOURCES): New variable.
47520
47521         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47522         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47523         not 0x00AB.
47524         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47525
47526 2008-08-22  Eric Blake  <ebb9@byu.net>
47527
47528         test-lock, test-tls: mention why a test is skipped
47529         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47530         skipped.
47531         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47532
47533         count-one-bits: relax license
47534         * modules/count-one-bits (License): Relicense to LGPLv2+.
47535         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47536
47537 2008-08-22  Andreas Schwab  <schwab@suse.de>
47538
47539         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47540         Remove spurious space in assignment.
47541
47542 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47543
47544         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47545         Paul Eggert <eggert@CS.UCLA.EDU>.
47546
47547 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47548
47549         * modules/gettext: Add m4/threadlib.m4.
47550
47551 2008-08-19  Eric Blake  <ebb9@byu.net>
47552
47553         test-c-stack: fix compilation failure on FreeBSD 5.0
47554         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47555         headers before <sys/resource.h>.
47556         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47557         the bug.
47558         Reported by Nelson H. F. Beebe.
47559
47560         strverscmp: migrate from "strverscmp.h" to <string.h>
47561         * modules/string (Makefile.am): Add new hooks.
47562         * modules/strverscmp (Files): Remove strverscmp.h.
47563         (Depends-on): Add string.
47564         (configure.ac): Add indicator.
47565         (Include): Mention new header.
47566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47567         defaults.
47568         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47569         results.
47570         * lib/strverscmp.h: Delete.
47571         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47572         * tests/test-strverscmp.c (includes): Adjust client.
47573         * lib/check-version.c (includes): Likewise.
47574         * NEWS: Document the change.
47575
47576         strverscmp: add unit test
47577         * modules/strverscmp-tests: New file.
47578         * tests/test-strverscmp.c: Likewise.
47579
47580 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47581
47582         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47583         regarding Windows crypto stuff, from Mono.
47584
47585 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47586
47587         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47588         if present, for intel RND.  Return error on failures.
47589
47590 2008-08-18  Ben Pfaff  <blp@gnu.org>
47591
47592         gitlog-to-changelog: give better diagnostic for failed pipe-open
47593         * build-aux/gitlog-to-changelog: Improve error message: suggest
47594         that the version of Git may be too old.
47595
47596 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47597
47598         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47599         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47600
47601 2008-08-18  Bruno Haible  <bruno@clisp.org>
47602
47603         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47604         pthread_in_use().
47605
47606 2008-08-18  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/glthread/threadlib.c: Include <pthread.h>.
47609
47610 2008-08-18  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47613         glthread_recursive_lock_* macros.
47614         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47615         Fix syntax error.
47616
47617 2008-08-18  Bruno Haible  <bruno@clisp.org>
47618
47619         * lib/glthread/thread.c: Avoid forcing a context switch right after
47620         thread creation.
47621
47622 2008-08-17  Bruno Haible  <bruno@clisp.org>
47623
47624         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47625         * lib/glthread/thread.h: Provide Win32 specific implementation.
47626         * modules/thread (Files): Add lib/glthread/thread.c.
47627         (Depends-on): Add lock.
47628         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47629
47630 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47631
47632         New module 'yield'.
47633         * modules/yield: New file.
47634         * lib/glthread/yield.h: New file.
47635         * m4/yield.m4: New file.
47636         * MODULES.html.sh (Multithreading): Add yield.
47637
47638 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47639
47640         New module 'thread'.
47641         * modules/thread: New file.
47642         * lib/glthread/thread.h: New file.
47643         * m4/thread.m4: New file.
47644         * MODULES.html.sh (Multithreading): Add thread.
47645
47646 2008-08-17  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/glthread/lock.h: Include <stdlib.h> always.
47649         * lib/glthread/tls.h: Likewise.
47650         * lib/glthread/cond.h: Likewise.
47651
47652 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47653
47654         New module 'cond'.
47655         * modules/cond: New file.
47656         * lib/glthread/cond.h: New file.
47657         * lib/glthread/cond.c: New file.
47658         * m4/cond.m4: New file.
47659         * MODULES.html.sh (Multithreading): Add cond.
47660
47661 2008-08-16  Eric Blake  <ebb9@byu.net>
47662
47663         c-stack: fix regression on Irix 5.3 from 2008-06-21
47664         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47665         sa_sigaction...
47666         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47667         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47668         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47669         * modules/signal (Makefile.am): Use the value.
47670         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47671         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47672         * doc/posix-headers/signal.texi (signal.h): Document this
47673         portability issue.
47674         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47675         Reported by Tom G. Christensen.
47676
47677 2008-08-17  Bruno Haible  <bruno@clisp.org>
47678
47679         New module 'threadlib'.
47680         * modules/threadlib: New file.
47681         * lib/glthread/threadlib.c: New file, extracted from
47682         lib/glthread/lock.c.
47683         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47684         functions.
47685         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47686         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47687         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47688         macros.
47689         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47690         (gl_DISABLE_THREADS): Remove macro.
47691         * modules/lock (Files): Remove build-aux/config.rpath.
47692         (Depends-on): Remove havelib. Add threadlib.
47693         (configure.ac-early): Remove section.
47694         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47695         * modules/tls (Depends-on): Remove lock. Add threadlib.
47696         (Link): New section, copied from threadlib.
47697         * MODULES.html.sh (Multithreading): Add threadlib.
47698
47699 2008-08-14  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47702         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47703         glthread_rwlock_unlock, glthread_rwlock_destroy,
47704         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47705         glthread_recursive_lock_destroy): Define as macros always.
47706         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47707         glthread_lock_lock.
47708         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47709         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47710         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47711         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47712         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47713         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47714         (glthread_recursive_lock_lock_func): Renamed from
47715         glthread_recursive_lock_lock.
47716         (glthread_recursive_lock_unlock_func): Renamed from
47717         glthread_recursive_lock_unlock.
47718         (glthread_recursive_lock_destroy_func): Renamed from
47719         glthread_recursive_lock_destroy.
47720
47721 2008-08-14  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/glthread/lock.h: Renamed from lib/lock.h.
47724         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47725         * lib/glthread/tls.h: Renamed from lib/tls.h.
47726         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47727         * lib/fstrcmp.c: Update includes.
47728         * lib/strsignal.c: Update includes.
47729         * modules/lock (Files, Makefile.am): Update.
47730         (Include): Change to "glthread/lock.h".
47731         * modules/tls (Files, Makefile.am): Update.
47732         (Include): Change to "glthread/tls.h".
47733         * tests/test-lock.c: Update includes.
47734         * tests/test-tls.c: Update includes.
47735         * NEWS: Mention the renamed header files.
47736
47737 2008-08-11  Jim Meyering  <meyering@redhat.com>
47738
47739         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47740
47741 2008-08-11  Eric Blake  <ebb9@byu.net>
47742
47743         test-c-stack: avoid C99-ism
47744         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47745         before statement.
47746         Reported by Alain Guibert.
47747
47748 2008-08-10  Jim Meyering  <meyering@redhat.com>
47749
47750         ensure that return value of uinttostr et al are not ignored
47751         * lib/inttostr.h (__GNUC_PREREQ): Define.
47752         (__attribute_warn_unused_result__): Define.
47753         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47754
47755 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47756
47757         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47758         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47759
47760 2008-08-07  Jim Meyering  <meyering@redhat.com>
47761
47762         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47763
47764         * modules/mkstemp (License): Relicense under LGPLv2+.
47765         * modules/tempname (License): Likewise.
47766
47767 2008-08-06  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/poll.c (poll): Further micro-optimization.
47770
47771 2008-08-06  Jim Meyering  <meyering@redhat.com>
47772
47773         inet_pton.c: use locale-independent tolower
47774         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47775         (inet_pton6): Use c_tolower rather than tolower.
47776         * modules/inet_pton (Depends-on): Add c-ctype.
47777
47778 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47779
47780         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47781         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47782
47783 2008-08-06  Jim Meyering  <meyering@redhat.com>
47784
47785         * modules/inet_pton (License): Relicense under LGPLv2+.
47786
47787 2008-08-03  Bruno Haible  <bruno@clisp.org>
47788
47789         Additional non-aborting API for lock and tls.
47790         * lib/lock.h: Include <errno.h>.
47791         (glthread_lock_init): New macro/function.
47792         (gl_lock_init): Define as wrapper around glthread_lock_init.
47793         (glthread_lock_lock): New macro/function.
47794         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47795         (glthread_lock_unlock): New macro/function.
47796         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47797         (glthread_lock_destroy): New macro/function.
47798         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47799         (glthread_rwlock_init): New macro/function.
47800         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47801         (glthread_rwlock_rdlock): New macro/function.
47802         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47803         (glthread_rwlock_wrlock): New macro/function.
47804         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47805         (glthread_rwlock_unlock): New macro/function.
47806         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47807         (glthread_rwlock_destroy): New macro/function.
47808         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47809         (glthread_recursive_lock_init): New macro/function.
47810         (gl_recursive_lock_init): Define as wrapper around
47811         glthread_recursive_lock_init.
47812         (glthread_recursive_lock_lock): New macro/function.
47813         (gl_recursive_lock_lock): Define as wrapper around
47814         glthread_recursive_lock_lock.
47815         (glthread_recursive_lock_unlock): New macro/function.
47816         (gl_recursive_lock_unlock): Define as wrapper around
47817         glthread_recursive_lock_unlock.
47818         (glthread_recursive_lock_destroy): New macro/function.
47819         (gl_recursive_lock_destroy): Define as wrapper around
47820         glthread_recursive_lock_destroy.
47821         (glthread_once): New macro/function.
47822         (gl_once): Define as wrapper around glthread_once.
47823         Update function declarations.
47824         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47825         glthread_rwlock_init. Return error code.
47826         (glthread_rwlock_rdlock_multithreaded): Renamed from
47827         glthread_rwlock_rdlock. Return error code.
47828         (glthread_rwlock_wrlock_multithreaded): Renamed from
47829         glthread_rwlock_wrlock. Return error code.
47830         (glthread_rwlock_unlock_multithreaded): Renamed from
47831         glthread_rwlock_unlock. Return error code.
47832         (glthread_rwlock_destroy_multithreaded): Renamed from
47833         glthread_rwlock_destroy. Return error code.
47834         (glthread_recursive_lock_init_multithreaded): Renamed from
47835         glthread_recursive_lock_init. Return error code.
47836         (glthread_recursive_lock_lock_multithreaded): Renamed from
47837         glthread_recursive_lock_lock. Return error code.
47838         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47839         glthread_recursive_lock_unlock. Return error code.
47840         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47841         glthread_recursive_lock_destroy. Return error code.
47842         (glthread_once_call): Make static.
47843         (glthread_once_multithreaded): Renamed from glthread_once.
47844         * lib/tls.h: Include <errno.h>.
47845         (glthread_tls_key_init): New macro/function.
47846         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47847         (glthread_tls_set): New macro/function.
47848         (gl_tls_set): Define as wrapper around glthread_tls_set.
47849         (glthread_tls_key_destroy): New macro/function.
47850         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47851         Update function declarations.
47852         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47853         glthread_tls_get.
47854         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47855
47856 2008-08-04  Eric Blake  <ebb9@byu.net>
47857
47858         gnumakefile: use space, not TAB, outside of targets
47859         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47860
47861 2008-08-02  Jim Meyering  <meyering@redhat.com>
47862
47863         getdate.y: avoid locale-dependent date parsing failure
47864         In Turkish locales, getdate would fail to recognize keywords
47865         containing a lowercase "i".  The solution is not to rely on
47866         locale-sensitive case-conversion.
47867         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47868         (lookup_word): Use c_toupper in place of toupper.
47869         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47870         Reported by Vefa Bicakci <bicave@superonline.com> in
47871         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47872         * modules/getdate (Depends-on): Add c-ctype.
47873
47874 2008-08-02  Bruno Haible  <bruno@clisp.org>
47875
47876         * gnulib-tool (func_import): When updating or creating a .gitignore
47877         file, prepend each added line with a slash, and ignore leading slashes
47878         from the existing lines.
47879         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47880
47881 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47882
47883         Portability fix for GNU make 3.79.1.
47884         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47885         versions do not understand.
47886
47887 2008-08-01  Bruno Haible  <bruno@clisp.org>
47888
47889         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47890         * tests/test-isnanf.h (zero): New variable.
47891         (main): Avoid literal -0.0f.
47892         * tests/test-isnand.h (zero): New variable.
47893         (main): Avoid literal -0.0.
47894         * tests/test-isnanl.h (zero): New variable.
47895         (main): Avoid literal -0.0L.
47896         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47897         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47898         -0.0, -0.0L.
47899         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47900         (test_signbitd): Avoid literal -0.0.
47901         (test_signbitl): Avoid literal -0.0L.
47902         * tests/test-ceilf1.c (zero): New variable.
47903         (main): Avoid literal -0.0f.
47904         * tests/test-ceill.c (zero): New variable.
47905         (main): Avoid literal -0.0L.
47906         * tests/test-floorf1.c (zero): New variable.
47907         (main): Avoid literal -0.0f.
47908         * tests/test-floorl.c (zero): New variable.
47909         (main): Avoid literal -0.0L.
47910         * tests/test-roundf1.c (zero): New variable.
47911         (main): Avoid literal -0.0f.
47912         * tests/test-round1.c (zero): New variable.
47913         (main): Avoid literal -0.0.
47914         * tests/test-roundl.c (zero): New variable.
47915         (main): Avoid literal -0.0L.
47916         * tests/test-truncf1.c (zero): New variable.
47917         (main): Avoid literal -0.0f.
47918         * tests/test-trunc1.c (zero): New variable.
47919         (main): Avoid literal -0.0.
47920         * tests/test-truncl.c (zero): New variable.
47921         (main): Avoid literal -0.0L.
47922         * tests/test-frexp.c (zero): New variable.
47923         (main): Avoid literal -0.0.
47924         * tests/test-frexpl.c (zero): New variable.
47925         (main): Avoid literal -0.0L.
47926         * tests/test-ldexpl.c (zero): New variable.
47927         (main): Avoid literal -0.0L.
47928         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47929         (zerod, zerol): New variables.
47930         (test_function): Avoid literals -0.0, -0.0L.
47931         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47932         (zerod, zerol): New variables.
47933         (test_function): Avoid literals -0.0, -0.0L.
47934         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47935         (zerod, zerol): New variables.
47936         (test_function): Avoid literals -0.0, -0.0L.
47937         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47938         (zerod, zerol): New variables.
47939         (test_function): Avoid literals -0.0, -0.0L.
47940         * tests/test-strtod.c (zero): New variable.
47941         (main): Avoid literal -0.0.
47942         Reported by Jonathan C. Patschke <jp@centtech.com>.
47943
47944 2008-07-31  Jim Meyering  <meyering@redhat.com>
47945
47946         sha256.h: correct definition of SHA224_DIGEST_SIZE
47947         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47948         Reported by Paulie Pena IV <paulie4@gmail.com>.
47949         Define as 224 / 8, rather than as a literal.
47950         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47951         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47952         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47953
47954 2008-07-31  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47957         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47958         Reported by Jonathan Patschke <jp@centtech.com>.
47959
47960 2008-07-31  Bruno Haible  <bruno@clisp.org>
47961
47962         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47963         Reported by Paolo Bonzini <bonzini@gnu.org>.
47964
47965 2008-07-30  Eric Blake  <ebb9@byu.net>
47966
47967         test-strtod: allow compilation without -lm
47968         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47969         Reported by Dennis Clarke <blastwave@gmail.com>.
47970
47971 2008-07-28  Jim Meyering  <meyering@redhat.com>
47972
47973         bootstrap: work also when there are no .po files in po/
47974         * build-aux/bootstrap (update_po_files): Complete the change
47975         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47976
47977 2008-07-27  Jim Meyering  <meyering@redhat.com>
47978
47979         * users.txt: Add zile.
47980
47981 2008-07-26  Ben Pfaff  <blp@gnu.org>
47982
47983         Add missing dependencies on new m4/exponent[fdl].m4 files.
47984         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47985         * modules/isnand-nolibm: Add m4/exponentd.m4.
47986         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47987         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47988         m4/isnan[fdl].m4, because the macros actually used moved.
47989         Reported by Jim Meyering.
47990
47991 2008-07-14  Ben Pfaff  <blp@gnu.org>
47992
47993         Add isinf module.
47994         * lib/isinf.c: New file.
47995         * lib/math.in.h: Define isinf macro if we have decided to replace
47996         it.
47997         * m4/isinf.m4: New file.
47998         * m4/math_h.m4: Initialize and substitute variables for isinf
47999         module.
48000         * modules/isinf: New file.
48001         * modules/isinf-tests: New file.
48002         * modules/math: Add substitutions for new module.
48003         * tests/test-isinf.c: New file.
48004         * doc/posix-functions/isinf.texi: Mention new module.
48005         * MODULES.html.sh: Mention new module.
48006
48007 2008-07-14  Ben Pfaff  <blp@gnu.org>
48008
48009         Factor out some macros for use by additional modules.
48010         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48011         exponentf.m4.
48012         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48013         exponentd.m4.
48014         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48015         file exponentl.m4.
48016         * m4/exponentf.m4: New file.
48017         * m4/exponentd.m4: New file.
48018         * m4/exponentl.m4: New file.
48019         * modules/isnanf: Use new file m4/exponentf.m4.
48020         * modules/isnand: Use new file m4/exponentd.m4.
48021         * modules/isnanl: Use new file m4/exponentl.m4.
48022
48023 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48024
48025         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48026         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48027         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48028         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48029
48030         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48031         readlink on platforms without PATH_MAX.
48032
48033 2008-07-21  Eric Blake  <ebb9@byu.net>
48034
48035         Warn, not fail, on stale version.
48036         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48037
48038         Don't allow installation with stale devel version number.
48039         * top/GNUmakefile (_is-install-target): New macro.
48040         (_curr-ver): Forbid installation with stale version number.
48041
48042 2008-07-20  Bruno Haible  <bruno@clisp.org>
48043
48044         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48045         TESTS_ENVIRONMENT.
48046         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48047
48048 2008-07-20  Bruno Haible  <bruno@clisp.org>
48049
48050         * lib/c-stack.h (c_stack_action): Add documentation.
48051         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48052
48053 2008-07-20  Bruno Haible  <bruno@clisp.org>
48054
48055         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48056         * modules/readlink (License): Likewise.
48057
48058 2008-07-17  Eric Blake  <ebb9@byu.net>
48059
48060         * modules/c-stack (Link): Fix typo.
48061
48062         Make c-stack use libsigsegv, when available.
48063         * modules/c-stack (Depends-on): Add libsigsegv.
48064         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48065         needed.
48066         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48067         (segv_handler, overflow_handler, c_stack_action)
48068         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48069         implementation when libsigsegv is available, but only when using
48070         the library is necessary.
48071         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48072         comment, explaining why XSI check fails on Linux.
48073         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48074         * tests/test-c-stack2.sh: Tweak skip message.
48075         * NEWS: Document new link-time requirements.
48076
48077 2008-07-16  Eric Blake  <ebb9@byu.net>
48078
48079         c-stack: Expose false positives when not using libsigsegv.
48080         * modules/c-stack-tests (Files): Expand test.
48081         * tests/test-c-stack.c (main): Add means to conditionally trigger
48082         non-overflow SIGSEGV.
48083         * tests/test-c-stack2.sh: New file.
48084
48085 2008-07-14  Bruno Haible  <bruno@clisp.org>
48086
48087         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48088         Reported by Eric Blake.
48089
48090 2008-07-14  Sam Steingold  <sds@gnu.org>
48091             Bruno Haible  <bruno@clisp.org>
48092
48093         New module libsigsegv.
48094         * modules/libsigsegv: New file.
48095         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48096         modifications.
48097         * MODULES.html.sh (Signal handling): New section.
48098
48099 2008-07-14  Bruno Haible  <bruno@clisp.org>
48100
48101         * modules/unictype/ctype-* (Description): Add the word "function".
48102         Improves the resulting doc in MODULES.html.
48103
48104 2008-07-12  Ben Pfaff  <blp@gnu.org>
48105
48106         Add longlong module.
48107         * modules/longlong: New file.
48108
48109 2008-07-12  Bruno Haible  <bruno@clisp.org>
48110
48111         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48112         to empty.
48113
48114 2008-07-10  Ben Pfaff  <blp@gnu.org>
48115
48116         Add isnan module.
48117         * doc/posix-functions/isnan.texi: Mention new module.
48118         * lib/math.in.h: Define isnan macro if we have decided to replace
48119         it.
48120         * m4/isnan.m4: New file.
48121         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48122         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48123         also.
48124         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48125         redundancy.
48126         * m4/math_h.m4: Initialize and substitute variables for isnan
48127         module.
48128         * modules/isnan: New file.
48129         * modules/isnan-tests: New file.
48130         * modules/math: Add substitutions for new module.
48131         * tests/test-isnan.c: New file.
48132         * MODULES.html.sh: Mention new module.
48133
48134 2008-07-10  Ben Pfaff  <blp@gnu.org>
48135
48136         Add isnanf module.
48137         * lib/isnanf.m4: New file.
48138         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48139         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48140         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48141         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48142         * modules/isnanf: New file.
48143         * modules/isnanf-tests: New file.
48144         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48145         files.
48146         * tests/test-isnanf-nolibm.c: factored most of its contents into
48147         new file tests/test-isnanf.h.
48148         * tests/test-isnanf.h: New file.
48149         * tests/test-isnanf.c: New file.
48150         * MODULES.html.sh: Mention new module.
48151         * doc/glibc-functions/isnanf.texi: Mention new module.
48152
48153 2008-07-10  Ben Pfaff  <blp@gnu.org>
48154
48155         Add isnand module.
48156         * lib/isnand.h: New file.
48157         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48158         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48159         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48160         functionality also.
48161         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48162         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48163         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48164         * modules/isnand: New file.
48165         * modules/isnand-tests: New file.
48166         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48167         files.
48168         * tests/test-isnand-nolibm.c: factored most of its contents into
48169         new file tests/test-isnand.h.
48170         * tests/test-isnand.h: New file.
48171         * tests/test-isnand.c: New file.
48172         * MODULES.html.sh: Mention new module.
48173
48174 2008-07-10  Ben Pfaff  <blp@gnu.org>
48175
48176         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48177         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48178         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48179         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48180         * modules/isnanf-nolibm: Update references to renamed files.
48181         * modules/isnand-nolibm: Likewise.
48182         * modules/isnanf-nolibm-tests: Likewise.
48183         * modules/isnand-nolibm-tests: Likewise.
48184         * lib/frexp.c: Likewise.
48185         * lib/isfinite.c: Likewise.
48186         * lib/signbitd.c: Likewise.
48187         * lib/signbitf.c: Likewise.
48188         * lib/vasnprintf.c: Likewise.
48189         * tests/test-ceilf1.c: Likewise.
48190         * tests/test-ceilf2.c: Likewise.
48191         * tests/test-floorf1.c: Likewise.
48192         * tests/test-floorf2.c: Likewise.
48193         * tests/test-frexp.c: Likewise.
48194         * tests/test-round1.c: Likewise.
48195         * tests/test-round2.c: Likewise.
48196         * tests/test-roundf1.c: Likewise.
48197         * tests/test-strtod.c: Likewise.
48198         * tests/test-trunc1.c: Likewise.
48199         * tests/test-trunc2.c: Likewise.
48200         * tests/test-truncf1.c: Likewise.
48201         * tests/test-truncf2.c: Likewise.
48202         * NEWS: Mention the renamed header files.
48203
48204 2008-07-11  Jim Meyering  <meyering@redhat.com>
48205
48206         vc-list-files: make the last-resort awk code more portable
48207         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48208         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48209         does not support it.
48210
48211 2008-07-10  Eric Blake  <ebb9@byu.net>
48212
48213         Work with tar's bootstrap.
48214         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48215         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48216         an m4 comment.
48217
48218 2008-07-09  Jim Meyering  <meyering@redhat.com>
48219
48220         posix-shell.m4: fix typo that made this test malfunction
48221         * m4/posix-shell.m4: Remove capitalization in variable name.
48222
48223 2008-07-08  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/onceonly.m4: Update comments.
48226         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48227
48228 2008-07-04  Jim Meyering  <meyering@redhat.com>
48229
48230         * users.txt: Add vc-dwim.
48231         (bison, coreutils): Use the gitweb URL.
48232
48233 2008-07-03  Jim Meyering  <meyering@redhat.com>
48234
48235         * users.txt: Add libffcall.  From Sam Steingold.
48236
48237 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48238
48239         getdate.y: do not ignore TZ with relative day, month or year offset
48240         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48241         relative-date-handling, since otherwise, the latter would clobber the
48242         sole output (an updated Start value) of the tz-handling block.
48243         * tests/test-getdate.c: Tests for the fix
48244
48245 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48246
48247         Recognize 'foo_LIBRARIES += libgnu.a'.
48248         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48249         makefile snippet has already specified an installation location,
48250         also using '+='.
48251
48252 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48253
48254         getdate.y: factor out common actions
48255         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48256         Use them in place of open-coded actions.
48257
48258 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48259
48260         Add self-test for getdate module.
48261         * modules/getdate-tests: New file.
48262         * tests/test-getdate.c: New file.
48263
48264 2008-06-29  Bruno Haible  <bruno@clisp.org>
48265
48266         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48267         .gitignore.
48268         Reported by Sylvain Beucler <beuc@beuc.net>.
48269
48270 2008-06-29  Bruno Haible  <bruno@clisp.org>
48271
48272         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48273         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48274
48275 2008-06-29  Bruno Haible  <bruno@clisp.org>
48276
48277         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48278         EXTRA_DIST.
48279         Reported by Sylvain Beucler <beuc@beuc.net>.
48280
48281 2008-06-26  Jim Meyering  <meyering@redhat.com>
48282
48283         make several modules depend on the "open" module
48284         This provides slightly increased consistency when opening-for-write
48285         the name of a non-directory spelled with a trailing slash.
48286         * modules/chdir-safer: Likewise.
48287         * modules/chown: Likewise.
48288         * modules/clean-temp: Likewise.
48289         * modules/copy-file: Likewise.
48290         * modules/fchdir: Likewise.
48291         * modules/fcntl-safer: Likewise.
48292         * modules/pipe: Likewise.
48293         * modules/utime: Likewise.
48294         Prompted by Eric Blake and Bruno Haible.
48295
48296 2008-06-24  Andreas Schwab  <schwab@suse.de>
48297
48298         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48299         literals can be used as initializers for global variables.
48300
48301 2008-06-23  Eric Blake  <ebb9@byu.net>
48302
48303         Make gnulib-cache.m4 easier to diff.
48304         * gnulib-tool (func_import): Allow newlines when reading cached
48305         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48306
48307 2008-06-23  Bruno Haible  <bruno@clisp.org>
48308
48309         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48310         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48311         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48312         m4/signalblocking.m4.
48313         (gl_PREREQ_SIGACTION): Don't invoke it.
48314         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48315         gl_PREREQ_SIG_HANDLER_H.
48316         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48317         Don't check for sigaction here.
48318
48319 2008-06-23  Bruno Haible  <bruno@clisp.org>
48320
48321         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48322         (install_handlers): Don't set the SA_RESETHAND flag.
48323
48324 2008-06-23  Bruno Haible  <bruno@clisp.org>
48325
48326         * m4/sigaction.m4: Comment fixes.
48327         * lib/signal.in.h: Likewise.
48328
48329 2008-06-23  Eric Blake  <ebb9@byu.net>
48330
48331         Fix typo.
48332         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48333
48334         Avoid SA_ namespace.
48335         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48336         Reported by Ralf Wildenhues.
48337
48338         Avoid test failure due to SA_RESTORER.
48339         * tests/test-sigaction.c (SA_MASK): New macro.
48340         (main): Avoid failing due to extension flags being set.
48341         Reported by Jim Meyering.
48342
48343         Revert use of sig-handler.h in sigprocmask.c.
48344         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48345         it requires the existence of struct sigaction.
48346         * lib/sigprocmask.c (handler_t): Restore typedef.
48347         (rpl_signal, old_handlers): Use local type.
48348
48349 2008-06-22  Bruno Haible  <bruno@clisp.org>
48350
48351         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48352         conditionally.
48353         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48354
48355 2008-06-22  Bruno Haible  <bruno@clisp.org>
48356
48357         * doc/posix-functions/siginterrupt.texi: Move note.
48358
48359         * lib/signal.in.h (SA_RESTART): New macro.
48360         * lib/sigaction.c: Update comment.
48361
48362         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48363
48364         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48365         (gl_PREREQ_SIGPROCMASK): Invoke it.
48366         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48367
48368         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48369
48370         * lib/sigprocmask.c: Update a comment.
48371
48372 2008-06-21  Eric Blake  <ebb9@byu.net>
48373
48374         Use sigaction module rather than signal().
48375         * modules/c-stack (Depends-on): Add sigaction.
48376         * modules/fatal-signal (Depends-on): Likewise.
48377         * modules/nanosleep (Depends-on): Likewise.
48378         * modules/sigprocmask (Files): Add sig-handler.h.
48379         * modules/sigaction (Files): Likewise.
48380         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48381         Eggert.
48382         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48383         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48384         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48385         (init_fatal_signals): Likewise.
48386         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48387         (siginterrupt): Delete fallback.
48388         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48389         instead.
48390         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48391         siginterrupt.
48392
48393         New module sigaction, for mingw.
48394         * modules/sigaction: New module...
48395         * modules/sigaction-tests: ...and its test.
48396         * m4/sigaction.m4: New file.
48397         * lib/sigaction.c: Likewise.
48398         * tests/test-sigaction.c: Likewise.
48399         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48400         * modules/signal (Makefile.am): Likewise.
48401         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48402         needed.
48403         * doc/posix-headers/signal.texi (signal.h): Mention provided
48404         types.
48405         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48406         that sigaction is preferable.
48407         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48408         module.
48409         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48410         sigaction.
48411
48412         Improve robustness of sigprocmask by overriding signal.
48413         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48414         is in use.
48415         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48416         (SIGKILL, SIGSTOP): Provide fallbacks.
48417         (rpl_signal): Implement.
48418         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48419         signal can be called inside handlers.
48420
48421         Fix nanosleep module on mingw.
48422         * modules/nanosleep (Depends-on): Add sys_select.
48423         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48424
48425         Fix licensing of sigprocmask.
48426         * modules/raise (License): Relicense as LGPL.
48427
48428 2008-06-21  Bruno Haible  <bruno@clisp.org>
48429
48430         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48431         result if it contains question marks.
48432         Reported by Michael Geng <linux@michaelgeng.de>.
48433
48434 2008-06-19  Bruno Haible  <bruno@clisp.org>
48435
48436         Fix CVS-ism.
48437         * doc/gnulib.texi: Include updated-stamp.texi.
48438         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48439         (updated-stamp.texi): New rule.
48440         (gnulib.info): Depend on it.
48441         * doc/.gitignore: Add updated-stamp.texi.
48442         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48443
48444 2008-06-19  Bruno Haible  <bruno@clisp.org>
48445
48446         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48447         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48448
48449 2008-06-19  Eric Blake  <ebb9@byu.net>
48450
48451         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48452         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48453         Reported by Stepan Kasal.
48454
48455 2008-06-18  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48458         Reported by Eric Blake.
48459
48460 2008-06-18  Eric Blake  <ebb9@byu.net>
48461
48462         Work around cygwin 1.5.25 strsignal bug.
48463         * tests/test-strsignal.c: Allow for const char *.
48464         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48465
48466 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48467
48468         * users.txt: Update URL to article and add author/date
48469         information.
48470
48471 2008-06-17  Bruno Haible  <bruno@clisp.org>
48472
48473         New macro gl_DISABLE_THREADS.
48474         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48475         if the user did not pass --enable-threads or --disable-threads option.
48476         (gl_DISABLE_THREADS): New macro.
48477         Reported by Eric Blake <ebb9@byu.net>.
48478
48479 2008-06-17  Bruno Haible  <bruno@clisp.org>
48480
48481         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48482         when the macro ignores it.
48483         Based on a patch by Eric Blake <ebb9@byu.net>.
48484
48485 2008-06-17  Bruno Haible  <bruno@clisp.org>
48486
48487         * modules/tls (License): Change to LGPLv2+.
48488         Reported by Eric Blake.
48489
48490 2008-06-17  Eric Blake  <ebb9@byu.net>
48491
48492         Simplify c-stack prerequisites.
48493         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48494         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48495         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48496         check.
48497         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48498         <sys/resource.h>.
48499
48500         Move c-stack test into testsuite.
48501         * modules/c-stack-tests: New file.
48502         * lib/c-stack.c [DEBUG]: Move test program...
48503         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48504         fail test if sigaltstack is lacking.
48505         * tests/test-c-stack.sh: New driver file.
48506
48507 2008-06-16  Eric Blake  <ebb9@byu.net>
48508
48509         Use raise module consistently.
48510         * modules/fatal-signal (Depends-on): Add raise.
48511         * modules/sigprocmask (Depends-on): Likewise.
48512         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48513         * lib/sigprocmask.c (sigprocmask): Likewise.
48514         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48515         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48516
48517         Fix compliance bug in sigpending.
48518         * lib/sigprocmask.c (sigpending): Return pending array via
48519         parameter, not return value.
48520
48521 2008-06-14  Eric Blake  <ebb9@byu.net>
48522
48523         Improve obstack-printf test code.
48524         * tests/test-obstack-printf.c (test_function): Fix comment, and
48525         simplify usage of obstack_* in macros.  Add a test for coverage.
48526         Reported by Bruno Haible.
48527
48528 2008-06-14  Bruno Haible  <bruno@clisp.org>
48529
48530         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48531         array size as a constant, not as a const variable.
48532         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48533         AC_USE_SYSTEM_EXTENSIONS.
48534         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48535         Test whether the obstack_printf function actually exists.
48536         * modules/obstack-printf (Depends-on): Add extensions.
48537         (Include): Remove obstack.h.
48538         * modules/obstack-printf-posix (Depends-on): Add extensions.
48539         (Include): Remove obstack.h.
48540
48541 2008-06-13  Eric Blake  <ebb9@byu.net>
48542
48543         Add obstack-printf and obstack-printf-posix modules.
48544         * modules/obstack-printf: New file.
48545         * modules/obstack-printf-posix: Likewise.
48546         * MODULES.html.sh (Misc): Mention them.
48547         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48548         Likewise.
48549         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48550         Likewise.
48551         * modules/stdio (Makefile.am): Accomodate new modules.
48552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48553         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48554         Declare.
48555         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48556         functions.
48557         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48558         (gl_REPLACE_OBSTACK_PRINTF): New macros
48559         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48560         * tests/test-obstack-printf.c: New file.
48561         * modules/obstack-printf-tests: Likewise.
48562         * modules/obstack-printf-posix-tests: Likewise.
48563
48564 2008-06-11  Bruno Haible  <bruno@clisp.org>
48565
48566         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48567         * lib/open.c: Include errno.h.
48568         (open): Fail when attempting to write to a file that has a trailing
48569         slash.
48570         * tests/test-open.c (main): Test against trailing slash bug.
48571         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48572
48573 2008-06-10  Bruno Haible  <bruno@clisp.org>
48574
48575         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48576         for $? to work inside the trap command, with various /bin/sh-s.
48577         * tests/test-vc-list-files-cvs.sh: Likewise.
48578
48579 2008-06-10  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/acl-internal.h: Don't include gettext.h here.
48582         * lib/set-mode-acl.c: Include gettext.h here.
48583         * lib/copy-acl.c: Likewise.
48584
48585 2008-06-10  Bruno Haible  <bruno@clisp.org>
48586
48587         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48588         * lib/wait-process.c (wait_subprocess): Likewise.
48589         * lib/execute.h (execute): Add termsigp argument.
48590         * lib/execute.c (execute): Likewise.
48591         * lib/csharpcomp.c (compile_csharp_using_pnet,
48592         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48593         * lib/csharpexec.c (execute_csharp_using_pnet,
48594         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48595         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48596         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48597         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48598         is_jikes_present): Update.
48599         * lib/javaexec.c (execute_java_class): Update.
48600         * lib/javaversion.c (execute_and_read_line): Update.
48601         * NEWS: Document the changes.
48602         Reported by Eric Blake.
48603
48604 2008-06-10  Eric Blake  <ebb9@byu.net>
48605
48606         Add missing include.
48607         * tests/test-strstr.c (includes): Add <signal.h>.
48608         * tests/test-strcasestr.c (includes): Likewise.
48609         * tests/test-memmem.c (includes): Likewise.
48610
48611 2008-06-10  Bruno Haible  <bruno@clisp.org>
48612
48613         * lib/wait-process.c (wait_subprocess): Add an assertion.
48614
48615 2008-06-10  Bruno Haible  <bruno@clisp.org>
48616
48617         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48618
48619 2008-06-10  Bruno Haible  <bruno@clisp.org>
48620
48621         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48622         using alarm().
48623         * tests/test-strcasestr.c (main): Likewise.
48624         * tests/test-strstr.c (main): Likewise.
48625
48626 2008-06-09  Bruno Haible  <bruno@clisp.org>
48627
48628         Work around the Solaris 10 ACE ACLs ABI change.
48629         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48630         declare if ACL_NO_TRIVIAL is present.
48631         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48632         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48633         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48634         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48635         define if ACL_NO_TRIVIAL is present.
48636         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48637         and use the current ABI.
48638         (file_has_acl): Use same #if condition as elsewhere.
48639         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48640         in use, and use the current ABI.
48641         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48642         Reported by Jim Meyering.
48643
48644 2008-06-09  Eric Blake  <ebb9@byu.net>
48645
48646         Work around environments that (stupidly) ignore SIGALRM.
48647         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48648         before using alarm().
48649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48651         Reported by Ian Beckwith <ianb@erislabs.net>.
48652
48653         Produce autobuild blurb earlier in log.
48654         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48655
48656 2008-06-09  Jim Meyering  <meyering@redhat.com>
48657         and OndÅ™ej Vašík  <ovasik@redhat.com>
48658
48659         utimens.c: correct kernel bug work-around
48660         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48661         failure, not success, and the kernel bug we're trying to work
48662         around affects not just the utimensat call, but also the fallback
48663         futimens call.
48664         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48665         not success.
48666         [HAVE_FUTIMENS]: Use the same work-around, here.
48667
48668 2008-06-09  Jim Meyering  <meyering@redhat.com>
48669
48670         add more guards around definition of ACE_-related code
48671         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48672         ALLOW and ACE_OWNER are also defined.
48673
48674 2008-06-08  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/acl-internal.h: Add me as co-author.
48677         * lib/file-has-acl.c: Likewise.
48678         * lib/set-mode-acl.c: Likewise.
48679         * lib/copy-acl.c: Likewise.
48680
48681 2008-06-08  Bruno Haible  <bruno@clisp.org>
48682
48683         Add support for AIX ACLs.
48684         * lib/acl-internal.h (acl_nontrivial): New declaration.
48685         * lib/file-has-acl.c (acl_nontrivial): New function.
48686         (file_has_acl): Add implementation using AIX 4 ACL API.
48687         * lib/set-mode-acl.c (qset_acl): Likewise.
48688         * lib/copy-acl.c (qcopy_acl): Likewise.
48689
48690 2008-06-08  Bruno Haible  <bruno@clisp.org>
48691
48692         Add support for HP-UX ACLs.
48693         * lib/acl-internal.h (acl_nontrivial): New declaration.
48694         * lib/file-has-acl.c (acl_nontrivial): New function.
48695         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48696         * lib/set-mode-acl.c (qset_acl): Likewise.
48697         * lib/copy-acl.c (qcopy_acl): Likewise.
48698
48699 2008-06-08  Bruno Haible  <bruno@clisp.org>
48700
48701         Add support for Cygwin ACLs.
48702         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48703         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48704         the chmod_or_fchmod call.
48705         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48706
48707 2008-06-08  Bruno Haible  <bruno@clisp.org>
48708
48709         Fix bug with setuid modes in Solaris 10+ code.
48710         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48711         succeeded, when the mode contains some special bits.
48712
48713 2008-06-08  Bruno Haible  <bruno@clisp.org>
48714
48715         Add support for Solaris 7..10 ACLs.
48716         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48717         declarations.
48718         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48719         functions.
48720         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48721         * lib/set-mode-acl.c (qset_acl): Likewise.
48722         * lib/copy-acl.c (qcopy_acl): Likewise.
48723
48724 2008-06-08  Bruno Haible  <bruno@clisp.org>
48725
48726         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48727         declaration.
48728         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48729         (acl_access_nontrivial): Remove MacOS X case.
48730         (file_has_acl): Use acl_extended_nontrivial.
48731         * lib/copy-acl.c (qcopy_acl): Likewise.
48732
48733 2008-06-08  Bruno Haible  <bruno@clisp.org>
48734
48735         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48736
48737 2008-06-08  Jim Meyering  <meyering@redhat.com>
48738
48739         * modules/acl (Maintainer): Add Bruno Haible.
48740
48741 2008-06-07  Bruno Haible  <bruno@clisp.org>
48742
48743         Improve support for Tru64 ACLs.
48744         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48745         ACL on OSF/1.
48746
48747 2008-06-07  Bruno Haible  <bruno@clisp.org>
48748
48749         Add support for MacOS X ACLs.
48750         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48751         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48752         * lib/set-mode-acl.c (qset_acl): Likewise.
48753         * lib/copy-acl.c (qcopy_acl): Likewise.
48754
48755 2008-06-07  Bruno Haible  <bruno@clisp.org>
48756
48757         Fix memory leak introduced on 2008-05-22.
48758         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48759         use.
48760
48761 2008-06-07  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48764         to construct an empty ACL.
48765
48766 2008-06-07  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48769         precisely.
48770         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48771
48772 2008-06-07  Bruno Haible  <bruno@clisp.org>
48773
48774         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48775         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48776
48777 2008-06-07  Bruno Haible  <bruno@clisp.org>
48778
48779         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48780         regardless of POSIX.
48781         * doc/posix-functions/_longjmp.texi: Likewise.
48782         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48783         SystemV platform in this case.
48784
48785 2008-06-06  Eric Blake  <ebb9@byu.net>
48786
48787         Document abort() bugs.
48788         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48789
48790         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48791         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48792         sigsetjmp.
48793         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48794         siglongjmp, but only as a macro.
48795         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48796         is obsolete.
48797         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48798
48799         Tweak documentation to cover cygwin argz bugs.
48800         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48801         argz bug fix; no code change needed since no cygwin releases
48802         occurred between the last fix and the bug being tested.
48803         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48804         module and recently fixed cygwin bugs.
48805         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48806         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48807         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48808         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48809         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48810         Likewise.
48811         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48812         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48813         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48814         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48815         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48816         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48817         Likewise.
48818
48819         Avoid gcc warning on cygwin.
48820         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48821         !ACL_NO_TRIVIAL]: Avoid unused variable.
48822
48823 2008-06-05  Eric Blake  <ebb9@byu.net>
48824
48825         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48826         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48827         git-version-gen fails to come up with a version.
48828         Reported by Simon Josefsson.
48829
48830 2008-06-05  Jim Meyering  <meyering@redhat.com>
48831             Paul Eggert  <eggert@cs.ucla.edu>
48832
48833         utimens.c: work around a probable Linux kernel bug
48834         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48835         appears to be a kernel bug that causes utimensat to return 280
48836         instead of 0, indicating success.
48837
48838 2008-06-04  Bruno Haible  <bruno@clisp.org>
48839
48840         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48841         2008-06-01 commit.
48842
48843 2008-06-04  Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48846         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48847         (file_has_acl): Use it. Save errno afterwards.
48848         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48849
48850 2008-06-03  Bruno Haible  <bruno@clisp.org>
48851
48852         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48853         draft code. Simplify #ifs.
48854         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48855         Put Solaris code after POSIX-draft code. Fix comments regarding
48856         Solaris 10, HP-UX. Mention Cygwin.
48857         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48858
48859 2008-06-03  Eric Blake  <ebb9@byu.net>
48860
48861         Provide fallback for older kernels.
48862         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48863         Provide runtime fallback if kernel lacks support.
48864         Reported by Mike Frysinger.
48865
48866 2008-06-02  Bruno Haible  <bruno@clisp.org>
48867
48868         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48869         it exists.
48870
48871 2008-06-02  Bruno Haible  <bruno@clisp.org>
48872
48873         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48874         * lib/copy-acl.c (qcopy_acl): Update comment.
48875
48876 2008-06-02  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48879         like ACL APIs.
48880
48881 2008-06-02  Bruno Haible  <bruno@clisp.org>
48882
48883         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48884         * tests/test-set-mode-acl.sh: Likewise.
48885         * tests/test-copy-acl.sh: Likewise.
48886         * tests/test-copy-file.sh: Likewise.
48887
48888 2008-06-02  Bruno Haible  <bruno@clisp.org>
48889
48890         * tests/test-file-has-acl.sh: Remove unused code.
48891
48892 2008-06-01  Bruno Haible  <bruno@clisp.org>
48893
48894         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48895         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48896         messages.
48897         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48898
48899 2008-06-01  Bruno Haible  <bruno@clisp.org>
48900
48901         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48902         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48903         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48904         APIs.
48905         * modules/acl-tests (configure.ac): Remove tests now contained in
48906         m4/acl.m4.
48907
48908 2008-06-02  Jim Meyering  <meyering@redhat.com>
48909
48910         announce-gen: use a better key-server host name
48911         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48912         it may be more consistently reliable.  Suggested by Werner Koch
48913         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48914
48915 2008-06-01  Bruno Haible  <bruno@clisp.org>
48916
48917         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48918         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48919
48920 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48921
48922         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48923
48924 2008-06-01  Bruno Haible  <bruno@clisp.org>
48925
48926         New ACL tests.
48927         * tests/test-file-has-acl.sh: New file.
48928         * tests/test-file-has-acl.c: New file.
48929         * tests/test-set-mode-acl.sh: New file.
48930         * tests/test-set-mode-acl.c: New file.
48931         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48932         * tests/test-copy-acl.c: New file.
48933         * modules/acl-tests: New file, based on modules/copy-file-tests.
48934         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48935         (Depends-on): Add acl-tests.
48936         (configure.ac): Remove checks.
48937         (Makefile.am): Don't create test-sameacls program here any more.
48938
48939 2008-06-01  Bruno Haible  <bruno@clisp.org>
48940
48941         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48942         * tests/test-sameacls.c: Include progname.h.
48943         (main): Invoke set_program_name. Portability fixes for MacOS X,
48944         Solaris, HP-UX.
48945
48946 2008-06-01  Bruno Haible  <bruno@clisp.org>
48947
48948         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48949         function.
48950         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48951
48952 2008-06-01  Bruno Haible  <bruno@clisp.org>
48953
48954         * modules/rpmatch (Depends-on): Add strdup.
48955
48956 2008-06-01  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/pipe.c: Include unistd-safer.h.
48959         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48960         * modules/pipe (Depends-on): Add unistd-safer.
48961
48962 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48963
48964         * modules/autobuild (configure.ac): Call AB_INIT.
48965
48966 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48967
48968         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48969         Suggested by Bruno Haible <bruno@clisp.org>.
48970
48971 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48972
48973         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48974         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48975         <bruno@clisp.org>.
48976
48977 2008-05-29  Eric Blake  <ebb9@byu.net>
48978
48979         Prefer new POSIX 200x interfaces over futimesat.
48980         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48981         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48982         when available.
48983         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48984
48985 2008-05-28  Bruno Haible  <bruno@clisp.org>
48986
48987         * modules/stpcpy (License): Change to LGPLv2+.
48988         Requested by David Lutterkort <dlutter@redhat.com>.
48989
48990 2008-05-27  Bruno Haible  <bruno@clisp.org>
48991
48992         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48993         current mingw.
48994         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48995
48996 2008-05-27  Bruno Haible  <bruno@clisp.org>
48997
48998         * modules/iconv_open (Link): New section, from module 'iconv'.
48999         * modules/striconv (Link): Likewise.
49000         * modules/striconveh (Link): Likewise.
49001         * modules/xstriconv (Link): Likewise.
49002         * modules/unicodeio (Link): Likewise.
49003         * modules/propername (Link): Likewise.
49004         Reported by Jim Meyering.
49005
49006 2008-05-26  Jim Meyering  <meyering@redhat.com>
49007
49008         sha256: do not artificially restrict buffer length to be < 2^32
49009         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49010         uint32_t to size_t.
49011         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49012         to match.
49013
49014         avoid unaligned access errors, e.g., on sparc
49015         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49016         direct access through a possibly-unaligned uint64* pointer.
49017         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49018         direct access through a possibly-unaligned uint32* pointer.
49019         Prompted by this patch from Tom "spot" Callaway:
49020         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49021
49022         sha512.c: fix typo in comment
49023         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49024
49025 2008-05-25  Bruno Haible  <bruno@clisp.org>
49026
49027         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49028         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49029         (Makefile.am): Update lib_SOURCES.
49030
49031 2008-05-25  Bruno Haible  <bruno@clisp.org>
49032
49033         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49034
49035 2008-05-25  Jim Meyering  <meyering@redhat.com>
49036
49037         useless-if-before-free: freed expr may have white-space differences
49038         * build-aux/useless-if-before-free: Recognize cases in which the
49039         freed expression differs from the tested one in embedded white
49040         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49041         $1 was used, so we can't make any regexp shy.  Improved tests now
49042         detect this.
49043
49044         useless-if-before-free: accept white space in the expression.
49045         * build-aux/useless-if-before-free: For now, any white space
49046         in the expression must be identical in the free argument.
49047
49048         useless-if-before-free: efficiency tweak
49049         * build-aux/useless-if-before-free: Make the expression-matching
49050         regexp "shy".
49051         Make the *outer* regexp shy, not the expr-matching one.
49052
49053         update code-in-comment to accept cast of free arg
49054         * build-aux/useless-if-before-free: Update regexp.
49055
49056 2008-05-25  Bruno Haible  <bruno@clisp.org>
49057
49058         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49059         * modules/copy-file-tests (Files, Makefile.am): Update.
49060         * tests/test-copy-file.c (func_test_copy): Update.
49061
49062 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49063
49064         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49065
49066 2008-05-23  Bruno Haible  <bruno@clisp.org>
49067
49068         Improve support for ACLs on OSF/1.
49069         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49070         Remove fallback for unknown flavors of ACLs.
49071
49072 2008-05-22  Bruno Haible  <bruno@clisp.org>
49073
49074         Add support for ACLs on OSF/1.
49075         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49076         replacements.
49077         (acl_free_text): New macro fallback.
49078         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49079         acl_free.
49080         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49081         acl_free_text function. Require AC_C_INLINE.
49082
49083 2008-05-22  Bruno Haible  <bruno@clisp.org>
49084
49085         Make copy_acl work on MacOS X 10.5.
49086         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49087         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49088         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49089         If MODE_INSIDE_ACL, don't assume that every system has the same text
49090         representation for ACLs as FreeBSD.
49091         * lib/copy-acl.c (copy_acl): Add support for platforms with
49092         !MODE_INSIDE_ACL.
49093         * lib/file-has-acl.c (file_has_acl): Likewise.
49094         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49095         FreeBSD, MacOS X, or IRIX, respectively.
49096
49097 2008-05-22  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/acl.h: Don't include <sys/acl.h>.
49100         (GETACLCNT): Move fallback to lib/acl-internal.h.
49101         * lib/acl-internal.h: Include <sys/acl.h> here.
49102         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49103
49104 2008-05-22  Bruno Haible  <bruno@clisp.org>
49105
49106         Split off copy_acl function to separate file.
49107         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49108         * lib/acl.c (copy_acl): Moved function to separate file.
49109         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49110         * modules/acl (Files): Add lib/copy-acl.c.
49111         (Makefiles.am): Augment lib_SOURCES.
49112
49113 2008-05-22  Bruno Haible  <bruno@clisp.org>
49114
49115         * modules/copy-file-tests: New file.
49116         * tests/test-copy-file.sh: New file.
49117         * tests/test-copy-file.c: New file.
49118         * tests/test-copy-file-sameacls.c: New file.
49119
49120 2008-05-22  Eric Blake  <ebb9@byu.net>
49121
49122         Avoid gcc warning.
49123         * tests/test-memcmp.c (main): Pass NULL indirectly.
49124
49125 2008-05-21  Bruno Haible  <bruno@clisp.org>
49126
49127         Add reference doc about ACLs.
49128         * doc/acl-resources.txt: New file.
49129         * doc/acl-cygwin.txt: New file.
49130
49131 2008-05-21  Bruno Haible  <bruno@clisp.org>
49132
49133         Avoid one more warning from gcc.
49134         * lib/vasnprintf.c (IF_LINT): Update comments.
49135         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49136
49137 2008-05-21  Jim Meyering  <meyering@redhat.com>
49138
49139         avoid a warning from gcc
49140         * lib/vasnprintf.c (IF_LINT): Define.
49141         (scale10_round_decimal_long_double):
49142         Use it to avoid a "may be used uninitialized" warning.
49143         (scale10_round_decimal_double): Likewise.
49144
49145 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49146
49147         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49148         declared.
49149
49150 2008-05-20  Bruno Haible  <bruno@clisp.org>
49151
49152         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49153         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49154
49155 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49156
49157         * modules/memcmp-tests: New file.
49158         * tests/test-memcmp.c: New file.
49159
49160 2008-05-19  Bruno Haible  <bruno@clisp.org>
49161
49162         * modules/propername (Notice, configure.ac): Put quoted "..." into
49163         --keyword option.
49164         * lib/propername.h: Update comments accordingly.
49165         Reported by Eric Blake.
49166
49167 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49168
49169         * modules/getpass-gnu (Depends-on): Add fseeko.
49170
49171 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49172
49173         * modules/base64-tests: New file.
49174
49175 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49176
49177         * lib/base64.c (base64_decode_ctx): If a decode context structure
49178         was passed in use it to ignore newlines.  If a context structure
49179         was _not_ passed in, continue to treat newlines as garbage (this
49180         is the historical behavior).  Formerly base64_decode.
49181         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49182         takes a decode context structure.
49183         * lib/base64.h (base64_decode): Macro for four-argument calls.
49184         (base64_decode_alloc): Likewise.
49185         * lib/base64.c (base64_decode_ctx): If a decode context structure
49186         was passed in use it to ignore newlines.  If a context structure
49187         was _not_ passed in, continue to treat newlines as garbage (this
49188         is the historical behavior).  Formerly base64_decode.
49189         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49190         takes a decode context structure.
49191         * lib/base64.h (base64_decode): Macro for four-argument calls.
49192         (base64_decode_alloc): Likewise.
49193
49194 2008-05-19  Jim Meyering  <meyering@redhat.com>
49195
49196         avoid a warning from gcc
49197         * lib/trim.c (IF_LINT): Define.
49198         (trim2): Use it to avoid a "may be used uninitialized" warning.
49199
49200         Fix doc typo.
49201         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49202
49203 2008-05-19  Bruno Haible  <bruno@clisp.org>
49204
49205         * doc/glibc-functions/getpass.texi: Document limits of other
49206         implementations.
49207
49208 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49209             Bruno Haible <bruno@clisp.org>
49210
49211         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49212
49213 2008-05-18  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/propername: New file, from GNU gettext.
49216         * lib/propername.h: New file, from GNU gettext.
49217         * lib/propername.c: New file, from GNU gettext.
49218         * MODULES.html.sh (Internationalization functions): Add propername.
49219
49220 2008-05-16  Jim Meyering  <meyering@redhat.com>
49221             Bruno Haible  <bruno@clisp.org>
49222
49223         Avoid some warnings from "gcc -Wshadow".
49224         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49225
49226 2008-05-15  Eric Blake  <ebb9@byu.net>
49227
49228         Extend previous patch to cygwin 1.7.0.
49229         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49230         fast implementation in cygwin >= 1.7.0.
49231         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49233
49234 2008-05-15  Bruno Haible  <bruno@clisp.org>
49235
49236         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49237         implementation in glibc >= 2.9.
49238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49240
49241 2008-05-15  Bruno Haible  <bruno@clisp.org>
49242
49243         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49244         (Unicode string functions): Add unilbrk/*.
49245         Reported by Karl Berry.
49246
49247 2008-05-15  Eric Blake  <ebb9@byu.net>
49248
49249         Fix violation of <stdbool.h> replacement in regex.
49250         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49251         * lib/regexec.c (re_search_internal): Likewise.
49252         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49253
49254 2008-05-15  Jim Meyering  <meyering@redhat.com>
49255
49256         avoid distracting test output when git or cvs is not found
49257         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49258         * tests/test-vc-list-files-git.sh: Likewise.
49259
49260 2008-05-15  Eric Blake  <ebb9@byu.net>
49261
49262         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49263         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49264         glibc version.
49265         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49266         * doc/posix-functions/strstr.texi (strstr): Likewise.
49267         * lib/str-two-way.h (MAX): Sychronize with glibc.
49268
49269 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49270
49271         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49272         opr.ctx_type.
49273         (calc_first): Initialize constraint field.
49274         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49275         Fix grammar.
49276         (duplicate_node): Merge constraint field for all node types.
49277         (calc_eclosure_iter): Look at constraint field for all node types.
49278         * lib/regex_internal.c (create_cd_newstate): Don't look at
49279         opr.ctx_type.
49280
49281 2008-05-14  Bruno Haible  <bruno@clisp.org>
49282
49283         Help GCC to do better code generation.
49284         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49285         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49286         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49287         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49288         Declare with attribute 'malloc' if supported.
49289
49290 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49291
49292         use "echo STR|wc -c" rather than unportable "expr length STR"
49293         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49294         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49295
49296 2008-05-14  Jim Meyering  <meyering@redhat.com>
49297
49298         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49299         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49300         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49301         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49302         via Collin Lasse.
49303
49304 2008-05-14  Eric Blake  <ebb9@byu.net>
49305
49306         Avoid quadratic growth in gl_LIBSOURCES.
49307         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49308         Suggested by Bruno Haible.
49309
49310         Test xmemdup0.
49311         * modules/xmemdup0-tests: New file.
49312         * tests/test-xmemdup0.c: Likewise.
49313
49314 2008-05-13  Eric Blake  <ebb9@byu.net>
49315
49316         Split xmemdup0 into its own module.
49317         * modules/xmemdup0: New file.
49318         * lib/xmemdup0.h: Likewise.
49319         * lib/xmemdup0.c: Likewise.
49320         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49321         * lib/xalloc.h (xmemdup0): Remove.
49322         * lib/xmalloc.c (xmemdup0): Likewise.
49323
49324 2008-05-13  Eric Blake  <ebb9@byu.net>
49325             Bruno Haible  <bruno@clisp.org>
49326
49327         Reduce number of forks required during autoconf.
49328         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49329         and gl_LIBSOURCES_DIR.
49330         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49331         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49332         m4_syscmd per file.
49333         <m4_foreach_w>: Move...
49334         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49335
49336 2008-05-13  Eric Blake  <ebb9@byu.net>
49337
49338         * gnulib-tool: Fix various comment typos.
49339
49340 2008-05-12  Bruno Haible  <bruno@clisp.org>
49341
49342         Tailor the linebreaking algorithm.
49343         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49344
49345 2008-05-12  Bruno Haible  <bruno@clisp.org>
49346
49347         Update to Unicode 5.0.0.
49348         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49349         LBP_JV, LBP_JT. Redistribute values.
49350         (unilbrk_table): Change size.
49351         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49352         Unicode TR#14 rev. 22.
49353         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49354         LBP_JV, LBP_JT. Redistribute values.
49355         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49356         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49357         Update.
49358         * lib/unilbrk/lbrkprop1.h: Regenerated.
49359         * lib/unilbrk/lbrkprop2.h: Regenerated.
49360         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49361         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49362         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49363         Likewise.
49364         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49365         Likewise.
49366         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49367         result.
49368         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49369         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49370         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49371         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49372         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49373         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49374
49375 2008-05-11  Bruno Haible  <bruno@clisp.org>
49376
49377         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49378
49379 2008-05-11  Bruno Haible  <bruno@clisp.org>
49380
49381         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49382         * modules/unilbrk/gen-lbrk: New file.
49383
49384 2008-05-11  Bruno Haible  <bruno@clisp.org>
49385
49386         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49387         * m4/sha512.m4 (gl_SHA512): Likewise.
49388
49389 2008-05-11  Jim Meyering  <meyering@redhat.com>
49390
49391         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49392         * modules/crypto/sha256: New file.
49393         * modules/crypto/sha512: Likewise.
49394         * lib/sha256.c: Likewise.
49395         * lib/sha256.h: Likewise.
49396         * lib/sha512.c: Likewise.
49397         * lib/sha512.h: Likewise.
49398         * lib/u64.h: Likewise.
49399         * m4/sha256.m4: Likewise.
49400         * m4/sha512.m4: Likewise.
49401         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49402
49403 2008-05-10  Bruno Haible  <bruno@clisp.org>
49404
49405         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49406         (Input/Output <stdio.h>): Add xprintf.
49407         (Signal handling <signal.h>): Add strsignal.
49408         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49409         (Core language properties): Add func.
49410         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49411         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49412         strings.
49413         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49414         (Input/output): New section.
49415         (File system functions): Add openat-die, stat-macros.
49416         (Networking functions): Add sockets.
49417         (Unicode string functions): Add unictype/*.
49418         (Support for building libraries and executables): Add gperf.
49419         (Support for building documentation): Add agpl-3.0.
49420         (Misc): Add nocrash.
49421
49422 2008-05-10  Bruno Haible  <bruno@clisp.org>
49423
49424         * modules/unictype/gen-ctype: New file.
49425
49426 2008-05-10  Jim Meyering  <meyering@redhat.com>
49427
49428         Make chdir-safer.c more efficient on a system with no symlinks.
49429         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49430         also if ELOOP is zero.  Suggested by Bruno Haible.
49431
49432         Make chdir-safer.c slightly safer.
49433         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49434         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49435
49436         Avoid compile failure on systems without ELOOP (like mingw).
49437         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49438         Reported by Bruno Haible.
49439
49440 2008-05-10  Bruno Haible  <bruno@clisp.org>
49441
49442         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49443         (is_utf8_encoding): Use a case-insensitive comparison.
49444         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49445         streq.
49446
49447 2008-05-10  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49450         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49451         * lib/unilbrk/ulc-common.h (iconv_string_length,
49452         iconv_string_keeping_offsets): Remove declarations.
49453         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49454         Don't include <iconv.h>, streq.h, xsize.h.
49455         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49456         conversion.
49457         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49458         <iconv.h>, streq.h, xsize.h.
49459         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49460         conversion.
49461         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49462         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49463         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49464         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49465
49466 2008-05-10  Bruno Haible  <bruno@clisp.org>
49467
49468         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49469         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49470
49471         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49472         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49473
49474         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49475         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49476
49477         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49478         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49479
49480         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49481         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49482
49483         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49484         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49485
49486         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49487         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49488
49489         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49490         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49491
49492 2008-05-10  Bruno Haible  <bruno@clisp.org>
49493
49494         Split up 'linebreak' module.
49495         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49496         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49497         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49498         modifications.
49499         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49500         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49501         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49502         lib/linebreak.c.
49503         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49504         lib/linebreak.c.
49505         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49506         lib/linebreak.c.
49507         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49508         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49509         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49510         lib/linebreak.c.
49511         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49512         lib/linebreak.c.
49513         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49514         lib/linebreak.c.
49515         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49516         lib/linebreak.c.
49517         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49518         lib/linebreak.c.
49519         * modules/unilbrk/base: New file.
49520         * modules/unilbrk/tables: New file.
49521         * modules/unilbrk/u8-possible-linebreaks: New file.
49522         * modules/unilbrk/u16-possible-linebreaks: New file.
49523         * modules/unilbrk/u32-possible-linebreaks: New file.
49524         * modules/unilbrk/ulc-common: New file.
49525         * modules/unilbrk/ulc-possible-linebreaks: New file.
49526         * modules/unilbrk/u8-width-linebreaks: New file.
49527         * modules/unilbrk/u16-width-linebreaks: New file.
49528         * modules/unilbrk/u32-width-linebreaks: New file.
49529         * modules/unilbrk/ulc-width-linebreaks: New file.
49530         * lib/linebreak.h: Remove file.
49531         * lib/linebreak.c: Remove file.
49532         * m4/linebreak.m4: Remove file.
49533         * modules/linebreak: Remove file.
49534         * NEWS: Mention the changes.
49535
49536 2008-05-09  Eric Blake  <ebb9@byu.net>
49537
49538         Add xmemdup0.
49539         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49540         implementation.
49541         * lib/xmalloc.c (xmemdup0): New C implementation.
49542
49543 2008-05-08  Bruno Haible  <bruno@clisp.org>
49544
49545         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49546
49547 2008-05-07  Eric Blake  <ebb9@byu.net>
49548
49549         Support cross-compilation of <wctype.h>.
49550         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49551         AC_CACHE_CHECK.
49552
49553 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49554
49555         * build-aux/vc-list-files: Add support for bzr.
49556
49557 2008-05-03  Jim Meyering  <meyering@redhat.com>
49558
49559         avoid failed assertion with tight malloc
49560         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49561
49562 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49563
49564         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49565         are needed from arpa/inet.h.
49566         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49567         Reported by Bruno Haible.
49568
49569 2008-05-02  Jim Meyering  <meyering@redhat.com>
49570
49571         avoid compilation error on FreeBSD 6
49572         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49573
49574 2008-05-01  Jim Meyering  <meyering@redhat.com>
49575
49576         useless-if-before-free: correct --help's exit status description
49577         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49578         for one or more matches, etc.  Reported by Bruno Haible.
49579
49580         vc-list-files: make the stand-alone gnulib test work
49581         * modules/vc-list-files-tests (configure.ac):
49582         Define and AC_SUBST abs_aux_dir.
49583         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49584         $(abs_top_srcdir) to each script and having each of them
49585         duplicate the work of setting PATH, set PATH here, using
49586         the new variable, abs_aux_dir instead.
49587         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49588         * tests/test-vc-list-files-git.sh: Likewise.
49589         Reported by Bruno Haible.
49590
49591 2008-05-01  Bruno Haible  <bruno@clisp.org>
49592
49593         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49594         reallocation. Rename 'done' to 'found_delimiter'.
49595
49596 2008-05-01  Jim Meyering  <meyering@redhat.com>
49597
49598         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49599         * build-aux/vc-list-files: Use `...`, not $(...).
49600
49601 2008-04-30  Jim Meyering  <meyering@redhat.com>
49602
49603         add tests for vc-list-files
49604         * modules/vc-list-files-tests: New module.
49605         * tests/test-vc-list-files-cvs.sh: New file.
49606         * tests/test-vc-list-files-git.sh: New file.
49607
49608         avoid a warning from gcc
49609         * lib/getndelim2.c (IF_LINT): Define.
49610         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49611
49612         vc-list-files: work properly with build-aux/cvsu, too
49613         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49614         to all cvs-based clauses.
49615
49616         vc-list-files: work properly in the CVS+awk case, too
49617         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49618
49619         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49620         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49621         take more than one file argument, so .  Add quotes, just in case $dir
49622         ever contains a shell meta-character.  Prompted by Soren Hansen in
49623         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49624
49625 2008-04-29  Eric Blake  <ebb9@byu.net>
49626
49627         Optimize getndelim2 to use block operations when possible.
49628         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49629         freadseek, and memchr2.
49630         * lib/getndelim2.c (getndelim2): Use them for block reads.
49631
49632 2008-04-29  Bruno Haible  <bruno@clisp.org>
49633
49634         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49635         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49636         * modules/inet_ntop (Depends-on): Add extensions.
49637         * modules/inet_pton (Depends-on): Likewise.
49638         Reported by Simon Josefsson.
49639
49640 2008-04-29  Jim Meyering  <meyering@redhat.com>
49641
49642         When the is more than one match in a block, match all of them.
49643         * build-aux/useless-if-before-free: Iterate through each block
49644         until there are no more matches.
49645
49646         Fix broken useless-if-before-free script.
49647         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49648         the expression to match cast of argument to free-like function.
49649
49650 2008-04-29  Eric Blake  <ebb9@byu.net>
49651
49652         Use new header.
49653         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49654
49655 2008-04-29  Jim Meyering  <meyering@redhat.com>
49656
49657         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49658         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49659         by gnulib to exist and to declare e.g., inet_ntop.
49660         Don't include "inet_ntop.h", now removed.
49661
49662         * m4/arpa_inet_h.m4: Remove trailing blanks.
49663
49664 2008-04-29  Eric Blake  <ebb9@byu.net>
49665
49666         Silence valgrind on safe reads beyond potential array bounds.
49667         * lib/rawmemchr.valgrind: New file.
49668         * lib/strchrnul.valgrind: Likewise.
49669         * modules/rawmemchr (Files): Distribute new file.
49670         * modules/strchrnul (Files): Likewise.
49671         Suggested by Bruno Haible.
49672
49673 2008-04-29  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49676         (inet_ntop, inet_pton): Change portability warning's wording.
49677         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49678         Invoke gl_CHECK_NEXT_HEADERS.
49679         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49680         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49681         set ARPA_INET_H.
49682         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49683         * modules/arpa_inet (Description): No longer only for systems that
49684         lack it.
49685         (Depends-on): Add include_next.
49686         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49687         HAVE_ARPA_INET_H.
49688
49689 2008-04-29  Jim Meyering  <meyering@redhat.com>
49690
49691         * modules/mkdir (License): Re-license as LGPLv2+.
49692
49693 2008-04-29  Bruno Haible  <bruno@clisp.org>
49694
49695         * modules/rawmemchr (Maintainer): Set to Eric.
49696         * modules/strchrnul (Maintainer): Likewise.
49697
49698 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49699
49700         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49701         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49702
49703         * modules/arpa_inet (arpa/inet.h): Use them.
49704
49705 2008-04-28  Eric Blake  <ebb9@byu.net>
49706
49707         Test getndelim2.
49708         * modules/getndelim2-tests: New file.
49709         * tests/test-getndelim2.c: Likewise.
49710         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49711         stream.
49712         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49713
49714         * MODULES.html.sh: Document new module.
49715
49716 2008-04-20  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/c-stack.c (die): Use raise.
49719         * modules/c-stack (Depends-on): Add raise.
49720
49721 2008-04-28  Bruno Haible  <bruno@clisp.org>
49722
49723         Expect rpmatch to be declared.
49724         * lib/yesno.c (rpmatch): Remove declaration.
49725
49726         Declare rpmatch.
49727         * lib/stdlib.in.h (rpmatch): New declaration.
49728         * lib/rpmatch.c: Include <stdlib.h> first.
49729         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49730         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49732         HAVE_RPMATCH.
49733         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49735         (Include): Set to <stdlib.h>.
49736         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49737         HAVE_RPMATCH.
49738         * NEWS: Document the change.
49739
49740 2008-04-28  Bruno Haible  <bruno@clisp.org>
49741
49742         Change rpmatch to use nl_langinfo when appropriate.
49743         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49744         (N_): New macro.
49745         (localized_pattern): New function/macro.
49746         (try): Remove match, nomatch arguments. Copy the pattern into safe
49747         memory before caching it.
49748         (rpmatch): Use localized_pattern. Add translator comments.
49749         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49750         Suggested by Eric Blake.
49751         * modules/rpmatch (Depends-on): Add stdbool.
49752
49753 2008-04-28  Eric Blake  <ebb9@byu.net>
49754
49755         Add rawmemchr module, matching glibc.
49756         * modules/string (Makefile.am): New indicator.
49757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49758         * lib/string.in.h (rawmemchr): Declare when appropriate.
49759         * modules/rawmemchr: New file.
49760         * m4/rawmemchr.m4: Likewise.
49761         * lib/rawmemchr.c: Likewise.
49762         * modules/rawmemchr-tests: Likewise.
49763         * tests/test-rawmemchr.c: Likewise.
49764         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49765         module.
49766         * modules/strchrnul (Depends-on): Add rawmemchr.
49767         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49768
49769         Whitespace cleanup.
49770         * tests/test-strchrnul.c: Reindent.
49771         * lib/strchrnul.c: Likewise.
49772
49773         Optimize and test strchrnul.
49774         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49775         * modules/strchrnul-tests: New file.
49776         * tests/test-strchrnul.c: Likewise.
49777
49778         Remove intprops dependency.
49779         * modules/memchr (Depends-on): Remove intprops.
49780         * modules/memrchr (Depends-on): Likewise.
49781         * modules/memchr2 (Depends-on): Likewise.
49782         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49783         * lib/memrchr.c (__memrchr): Likewise.
49784         * lib/memrchr2.c (memchr2): Likewise.
49785         Reported by Simon Josefsson.
49786
49787 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49788
49789         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49790         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49791
49792 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49793
49794         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49795
49796         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49797
49798         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49799
49800         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49801         declarations.
49802         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49803
49804         * m4/inet_pton.m4: Don't check for header files.
49805
49806         * m4/inet_ntop.m4: Don't check for header files.
49807
49808 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49809
49810         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49811         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49812         trigger for cygwin).
49813         Reported by Bruno Haible  <bruno@clisp.org>.
49814
49815 2008-04-28  Bruno Haible  <bruno@clisp.org>
49816
49817         * doc/posix-functions/strdup.texi: Mention mingw problem.
49818
49819 2008-04-27  Bruno Haible  <bruno@clisp.org>
49820
49821         * modules/stat-time-tests (Depends-on): Add sleep.
49822         * tests/test-stat-time.c (force_unlink): New function.
49823         (cleanup): Use it.
49824         (test_mtime): Remove the ctime related tests.
49825         (test_ctime): New function, containing the ctime related tests.
49826         (main): Call test_ctime, except on native Windows platforms.
49827
49828 2008-04-27  Bruno Haible  <bruno@clisp.org>
49829
49830         * lib/rpmatch.c (rpmatch): Add some comments.
49831         Reported by James Youngman <jay@gnu.org>.
49832
49833 2008-04-27  Bruno Haible  <bruno@clisp.org>
49834
49835         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49836         quiet NaNs.
49837
49838 2008-04-27  Bruno Haible  <bruno@clisp.org>
49839
49840         Make test-yesno.sh work on mingw.
49841         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49842         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49843         (main): Set stdin to binary mode.
49844         * modules/yesno-tests (Depends-on): Add binary-io.
49845
49846 2008-04-27  Bruno Haible  <bruno@clisp.org>
49847
49848         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49849         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49850         argument that lie outside the IEEE 854 domain.
49851         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49852         (gl_ISFINITE): Use it.
49853         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49854
49855 2008-04-27  Bruno Haible  <bruno@clisp.org>
49856
49857         Allow local renaming in config.h.
49858         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49859
49860 2008-04-27  Bruno Haible  <bruno@clisp.org>
49861
49862         * lib/memchr.c (__memchr): Change type of 'i'.
49863         * lib/memchr2.c (memchr2): Likewise.
49864
49865 2008-04-26  Eric Blake  <ebb9@byu.net>
49866         and Bruno Haible  <bruno@clisp.org>
49867
49868         Optimize and test memrchr.
49869         * modules/memrchr (Depends-on): Add intprops.
49870         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49871         * modules/memrchr-tests: New file.
49872         * tests/test-memrchr.c: New file.
49873
49874 2008-04-26  Bruno Haible  <bruno@clisp.org>
49875
49876         Add tentative support for DragonFly BSD.
49877         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49878         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49879         fp.
49880         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49881         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49882         * lib/fpurge.c (fpurge): Likewise.
49883         * lib/freadable.c (freaadable): Likewise.
49884         * lib/freadahead.c (freadahead): Likewise.
49885         * lib/freading.c (freading): Likewise.
49886         * lib/freadptr.c (freadptr): Likewise.
49887         * lib/freadseek.c (freadptrinc): Likewise.
49888         * lib/fseeko.c (fseeko): Likewise.
49889         * lib/fseterr.c (fseterr): Likewise.
49890         * lib/fwritable.c (fwritable): Likewise.
49891         * lib/fwriting.c (fwriting): Likewise.
49892
49893 2008-04-26  Bruno Haible  <bruno@clisp.org>
49894
49895         * lib/stdio-impl.h: New file.
49896         * lib/fbufmode.c: Include stdio-impl.h.
49897         (fbufmode): Use fp_, remove redundant #defines.
49898         * lib/fflush.c: Include stdio-impl.h.
49899         (clear_ungetc_buffer): Remove redundant #defines.
49900         * lib/fpurge.c: Include stdio-impl.h.
49901         (fpurge): Remove redundant #defines.
49902         * lib/freadable.c: Include stdio-impl.h.
49903         (freadable): Remove redundant #defines.
49904         * lib/freadahead.c: Include stdio-impl.h.
49905         (freadahead): Remove redundant #defines.
49906         * lib/freading.c: Include stdio-impl.h.
49907         (freading): Remove redundant #defines.
49908         * lib/freadptr.c: Include stdio-impl.h.
49909         (freadptr): Remove redundant #defines.
49910         * lib/freadseek.c: Include stdio-impl.h.
49911         (freadptrinc): Remove redundant #defines.
49912         * lib/fseeko.c: Include stdio-impl.h.
49913         (rpl_fseeko): Remove redundant #defines.
49914         * lib/fseterr.c: Include stdio-impl.h.
49915         (fseterr): Remove redundant #defines.
49916         * lib/fwritable.c: Include stdio-impl.h.
49917         (fwritable: Remove redundant #defines.
49918         * lib/fwriting.c: Include stdio-impl.h.
49919         (fwriting): Remove redundant #defines.
49920         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49921         * modules/fflush (Files): Likewise.
49922         * modules/fpurge (Files): Likewise.
49923         * modules/freadable (Files): Likewise.
49924         * modules/freadahead (Files): Likewise.
49925         * modules/freading (Files): Likewise.
49926         * modules/freadptr (Files): Likewise.
49927         * modules/freadseek (Files): Likewise.
49928         * modules/fseeko (Files): Likewise.
49929         * modules/fseterr (Files): Likewise.
49930         * modules/fwritable (Files): Likewise.
49931         * modules/fwriting (Files): Likewise.
49932
49933 2008-04-26  Bruno Haible  <bruno@clisp.org>
49934
49935         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49936         restore_seek_optimization, update_fpos_cache): New functions, extracted
49937         from rpl_fflush.
49938         (rpl_fflush): Use them.
49939         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49940         (gl_REPLACE_FFLUSH): Use it.
49941
49942 2008-04-26  Bruno Haible  <bruno@clisp.org>
49943
49944         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49945         on Solaris.
49946         * tests/test-xstrtoimax.sh: Likewise.
49947         * tests/test-xstrtoumax.sh: Likewise.
49948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49949
49950 2008-04-26  Bruno Haible  <bruno@clisp.org>
49951
49952         * modules/memchr-tests: New file.
49953         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49954
49955 2008-04-26  Eric Blake  <ebb9@byu.net>
49956             Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/memchr.c: Include intprops.h.
49959         (__memchr): Optimize parallel detection of matching bytes. Rename local
49960         variables. Add explanatory comments.
49961
49962 2008-04-26  Bruno Haible  <bruno@clisp.org>
49963
49964         Fix module 'memchr', broken since 2000-10-28.
49965         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49966
49967 2008-04-26  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49970         comments.
49971
49972 2008-04-25  Eric Blake  <ebb9@byu.net>
49973
49974         Use native fstatat on cygwin 1.7.0.
49975         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49976         first.
49977
49978 2008-04-23  Eric Blake  <ebb9@byu.net>
49979
49980         Improve memchr2 performance.
49981         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49982         NUL bytes.
49983         * modules/memchr2 (Depends-on): Use intprops.h.
49984
49985 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49986
49987         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49988         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49989         <blp@cs.stanford.edu>.
49990
49991 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49992
49993         * lib/arpa_inet.in.h: New file.
49994
49995         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49996         (Makefile.am): Sed in substitute header file.
49997
49998         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49999         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50000
50001         * modules/inet_ntop (configure.ac): Use
50002         gl_ARPA_INET_MODULE_INDICATOR.
50003
50004         * modules/inet_pton (configure.ac): Use
50005         gl_ARPA_INET_MODULE_INDICATOR.
50006
50007 2008-04-22  Jim Meyering  <meyering@redhat.com>
50008
50009         * modules/verify (License): Re-license as LGPLv2+.
50010
50011 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50012
50013         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50014         parameter to void* as per POSIX standard (MinGW uses char*).
50015
50016 2008-04-21  Bruno Haible  <bruno@clisp.org>
50017
50018         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50019         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50020         Define to replacements if REPLACE_ISWCNTRL is 1.
50021         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50022         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50023         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50024         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50025         what it fixes.
50026         * doc/posix-functions/iswalpha.texi: Likewise.
50027         * doc/posix-functions/iswblank.texi: Likewise.
50028         * doc/posix-functions/iswcntrl.texi: Likewise.
50029         * doc/posix-functions/iswdigit.texi: Likewise.
50030         * doc/posix-functions/iswgraph.texi: Likewise.
50031         * doc/posix-functions/iswlower.texi: Likewise.
50032         * doc/posix-functions/iswprint.texi: Likewise.
50033         * doc/posix-functions/iswpunct.texi: Likewise.
50034         * doc/posix-functions/iswspace.texi: Likewise.
50035         * doc/posix-functions/iswupper.texi: Likewise.
50036         * doc/posix-functions/iswxdigit.texi: Likewise.
50037         Reported by Alain Guibert.
50038
50039 2008-04-21  Bruno Haible  <bruno@clisp.org>
50040
50041         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50042         Patch by Alain Guibert.
50043
50044 2008-04-21  Bruno Haible  <bruno@clisp.org>
50045
50046         Fix test failures on mingw.
50047         * tests/test-xstrtol.c (print_no_progname): New function.
50048         (main): Install it in error_print_progname hook.
50049         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50050         * tests/test-xstrtoimax.sh: Likewise.
50051         * tests/test-xstrtoumax.sh: Likewise.
50052
50053 2008-04-21  Bruno Haible  <bruno@clisp.org>
50054
50055         Fix test failure on mingw.
50056         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50057
50058 2008-04-21  Bruno Haible  <bruno@clisp.org>
50059
50060         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50061         Actually assign a value.
50062
50063 2008-04-20  Bruno Haible  <bruno@clisp.org>
50064
50065         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50066         take 2.
50067         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50068         'canonicalize-lgpl' module is also used.
50069         * lib/canonicalize-lgpl.c: Undo last change.
50070         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50071
50072 2008-04-20  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50075         config.h. Provide _mkdir based fallback for mingw.
50076         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50077         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50078         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50079         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50080         rather than defining mkdir in config.h.
50081         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50082         (gl_SYS_STAT_H_DEFAULTS): New macro.
50083         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50084         HAVE_IO_H any more.
50085         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50086         HAVE_DECL_MKDIR and HAVE_IO_H.
50087
50088 2008-04-20  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/isapipe.c: Port to native Windows platforms.
50091
50092 2008-04-20  Bruno Haible  <bruno@clisp.org>
50093
50094         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50095
50096 2008-04-21  Eric Blake  <ebb9@byu.net>
50097
50098         Work around preprocessors that don't handle UINTMAX_MAX.
50099         * lib/memchr2.c (memchr2): Avoid embedded #if.
50100         Reported by Alain Guibert, fix suggested by Bruno Haible.
50101
50102 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50103
50104         * doc/posix-functions/strftime.texi (strftime): Explain better
50105         Windows incompatibility.  Suggested by Micah Cowan
50106         <micah@cowan.name>.
50107
50108 2008-04-20  Bruno Haible  <bruno@clisp.org>
50109
50110         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50111         unistr/u8-mblen.
50112
50113 2008-04-20  Bruno Haible  <bruno@clisp.org>
50114
50115         Fix test failure on platforms with non-GNU iconv.
50116         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50117         (U_TO_U8): Use it, rather than u16_to_u8.
50118         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50119         units at the end of the input string.
50120         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50121
50122 2008-04-20  Bruno Haible  <bruno@clisp.org>
50123
50124         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50125         when the resulting length is 0.
50126         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50127
50128 2008-04-20  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50131         works.
50132         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50133
50134 2008-04-20  Bruno Haible  <bruno@clisp.org>
50135
50136         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50137         * modules/tsearch-tests (configure.ac): Test for initstate function.
50138
50139 2008-04-20  Bruno Haible  <bruno@clisp.org>
50140
50141         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50142         for nlink_t if missing.
50143         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50144
50145 2008-04-19  Bruno Haible  <bruno@clisp.org>
50146
50147         Work around snprintf bug on Linux libc5.
50148         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50150         gl_SNPRINTF_SIZE1.
50151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50152         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50153         that test failed.
50154         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50155         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50156         * modules/snprintf (Files): Add m4/printf.m4.
50157         * modules/vsnprintf (Files): Likewise.
50158         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50159         * doc/posix-functions/vsnprintf.texi: Likewise.
50160
50161 2008-04-19  Bruno Haible  <bruno@clisp.org>
50162
50163         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50164         from 0.0058 to less than 10^-7.
50165
50166 2008-04-19  Bruno Haible  <bruno@clisp.org>
50167
50168         Fix rounding when a precision is given.
50169         * lib/vasnprintf.c (is_borderline): New function.
50170         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50171         9...9x.
50172         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50173         %e, %g.
50174         * tests/test-vasprintf-posix.c (test_function): Likewise.
50175         * tests/test-snprintf-posix.h (test_function): Likewise.
50176         * tests/test-sprintf-posix.h (test_function): Likewise.
50177         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50178         * tests/test-printf-posix.h (test_function): Likewise.
50179         * tests/test-printf-posix.output: Update.
50180         Reported by John Darrington <john@darrington.wattle.id.au> via
50181         Ben Pfaff <blp@cs.stanford.edu>.
50182
50183 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50184
50185         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50186         Suggested by Bruno Haible <bruno@clisp.org>.
50187
50188 2008-04-17  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50191         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50192         implementation.
50193         Patch by Bruce Merry <bmerry@gmail.com>.
50194
50195 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50196
50197         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50198         doesn't work under Windows.
50199
50200 2008-04-16  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50203         New macros.
50204         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50205         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50206         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50207         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50208         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50209         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50210         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50211         macros.
50212         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50213         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50214         Northern Sotho, Uighur.
50215
50216 2008-04-16  Bruno Haible  <bruno@clisp.org>
50217
50218         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50219         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50220         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50221         Reported by Daniel Bergström <daniel@octocode.com>.
50222
50223 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50224             Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50227         function.
50228         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50229         New functions, mostly extracted from gl_locale_name_default.
50230         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50231
50232 2008-04-16  Eric Blake  <ebb9@byu.net>
50233
50234         Adjust strtod detection to catch glibc 2.7 bug.
50235         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50236         Reported by John Gatewood Ham.
50237
50238 2008-04-16  Bruno Haible  <bruno@clisp.org>
50239
50240         Add tentative support for Linux libc5.
50241         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50242         * lib/fpurge.c (fpurge): Likewise.
50243         * lib/freadable.c (freadable): Likewise.
50244         * lib/freadahead.c (freadahead): Likewise.
50245         * lib/freading.c (freading): Likewise.
50246         * lib/freadptr.c (freadptr): Likewise.
50247         * lib/freadseek.c (freadptrinc): Likewise.
50248         * lib/fseeko.c (rpl_fseeko): Likewise.
50249         * lib/fseterr.c (fseterr): Likewise.
50250         * lib/fwritable.c (fwritable): Likewise.
50251         * lib/fwriting.c (fwriting): Likewise.
50252         Reported by Alain Guibert <alguibert+bts@free.fr>.
50253
50254 2008-04-15  Bruno Haible  <bruno@clisp.org>
50255
50256         * modules/mathl (configure.ac): Define module indicator.
50257
50258 2008-04-15  Bruno Haible  <bruno@clisp.org>
50259
50260         * lib/logl.c (logl): Remove unused variables.
50261
50262 2008-04-15  Bruno Haible  <bruno@clisp.org>
50263
50264         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50265         fails.
50266
50267 2008-04-15  Bruno Haible  <bruno@clisp.org>
50268
50269         * lib/trim.c (trim2): Fix argument of isspace() macro.
50270
50271 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50272
50273         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50274         to 0.
50275         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50276
50277 2008-04-14  Bruno Haible  <bruno@clisp.org>
50278
50279         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50280         AC_LANG_PROGRAM argument.
50281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50282         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50284         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50285         * m4/math_h.m4 (gl_MATH_H): Likewise.
50286         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50288         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50289         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50290         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50291         * m4/regex.m4 (gl_REGEX): Likewise.
50292         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50293         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50295         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50297         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50300
50301 2008-04-14  Jim Meyering  <meyering@redhat.com>
50302
50303         test-strtod: fix typos: s/abs/fabs/
50304         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50305
50306 2008-04-13  Bruno Haible  <bruno@clisp.org>
50307
50308         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50309         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50310         module is also used and while not building the reloc-wrapper.
50311
50312 2008-04-13  Bruno Haible  <bruno@clisp.org>
50313
50314         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50315
50316 2008-04-13  Bruno Haible  <bruno@clisp.org>
50317
50318         Fix AIX compilation failure introduced on 2008-04-02.
50319         * tests/test-frexp.c (exp): Undefine before redefining.
50320         * tests/test-frexpl.c (exp): Likewise.
50321
50322 2008-04-13  Bruno Haible  <bruno@clisp.org>
50323
50324         Work around a HP-UX stdio bug.
50325         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50326         * tests/test-ftello.c (main): Likewise.
50327         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50328         * doc/posix-functions/ftello.texi: Likewise.
50329
50330 2008-04-13  Bruno Haible  <bruno@clisp.org>
50331
50332         Make test-signbit pass on HP-UX/hppa.
50333         * tests/test-signbit.c (minus_zerol): New variable.
50334         (test_signbitl): Use it.
50335
50336 2008-04-13  Bruno Haible  <bruno@clisp.org>
50337
50338         Make truncl work on OSF/1 4.0.
50339         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50340         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50341         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50343         HAVE_DECL_TRUNCL.
50344         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50345         HAVE_DECL_TRUNCL.
50346         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50347
50348 2008-04-13  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50351
50352 2008-04-13  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50355         expression, so as to avoid HP-UX 11 cc compiler bug.
50356
50357 2008-04-13  Bruno Haible  <bruno@clisp.org>
50358
50359         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50360
50361 2008-04-13  Bruno Haible  <bruno@clisp.org>
50362
50363         * lib/git-merge-changelog.c: Remove empty declaration outside of
50364         functions.
50365
50366 2008-04-13  Bruno Haible  <bruno@clisp.org>
50367
50368         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50369
50370 2008-04-13  Bruno Haible  <bruno@clisp.org>
50371
50372         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50373         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50374         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50375         also if it exists but lacks definitions of the SHUT_* macros.
50376         * modules/sys_socket (Description): Update.
50377         Reported by Elbert Pol <e.pol@chello.nl>.
50378
50379 2008-04-13  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/localcharset.c (OS2): Don't redefine if already defined.
50382         Reported by Elbert Pol <e.pol@chello.nl>.
50383
50384 2008-04-13  Bruno Haible  <bruno@clisp.org>
50385
50386         * lib/binary-io.h [__EMX__]: Include <io.h>.
50387         Reported by Elbert Pol <e.pol@chello.nl>.
50388
50389 2008-04-12  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/fpucw.h: Enable the definitions also for x86_64.
50392         Needed for NetBSD/x86_64.
50393         Reported by Thomas Klausner <tk@giga.or.at>.
50394
50395 2008-04-12  Bruno Haible  <bruno@clisp.org>
50396
50397         * tests/test-strtod.c: Include isnand.h.
50398         (main): Use isnand instead of isnan.
50399         Reported by Jim Meyering.
50400
50401 2008-04-12  Bruno Haible  <bruno@clisp.org>
50402
50403         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50404         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50405
50406 2008-04-12  Jim Meyering  <meyering@redhat.com>
50407
50408         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50409
50410 2008-04-12  Bruno Haible  <bruno@clisp.org>
50411
50412         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50413         Reported by Elbert Pol <e.pol@chello.nl>.
50414
50415 2008-04-12  Eric Blake  <ebb9@byu.net>
50416
50417         Work around Solaris 10 math.h bug.
50418         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50419         (gl_MATH_H_DEFAULTS): Set up default.
50420         * modules/math (Makefile.am): Replace new indicators.
50421         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50422         * tests/test-math.c (main): Test this.
50423         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50424         * doc/posix-headers/math.texi (math.h): Mention bug.
50425         Reported by Nelson H. F. Beebe and Jim Meyering.
50426
50427 2008-04-11  Bruno Haible  <bruno@clisp.org>
50428
50429         Adapt to future versions of Apple GCC.
50430         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50431         Reported by Peter O'Gorman <peter@pogma.com>.
50432
50433 2008-04-11  Bruno Haible  <bruno@clisp.org>
50434
50435         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50436
50437 2008-04-11  Bruno Haible  <bruno@clisp.org>
50438
50439         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50440
50441         * modules/getaddrinfo-tests (Makefile.am): Define
50442         test_getaddrinfo_LDADD.
50443
50444 2008-04-11  Bruno Haible  <bruno@clisp.org>
50445
50446         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50447         (init): Fix syntax error.
50448         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50449         is declared.
50450
50451 2008-04-11  Bruno Haible  <bruno@clisp.org>
50452
50453         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50454         * modules/glob (Depends-on): Add stdbool.
50455
50456 2008-04-11  Bruno Haible  <bruno@clisp.org>
50457
50458         * lib/trim.c: Include <string.h>.
50459
50460 2008-04-11  Eric Blake  <ebb9@byu.net>
50461
50462         Avoid compile failure on OS/2.
50463         * lib/regex_internal.h (internal_function): Disable optimization
50464         on OS/2 (__EMX__), where it caused compiler error.
50465         Reported by Elbert Pol.
50466
50467 2008-04-11  Bruno Haible  <bruno@clisp.org>
50468
50469         Flush the standard error stream before aborting. Needed on mingw.
50470         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50471         * tests/test-array_list.c (ASSERT): Likewise.
50472         * tests/test-array_oset.c (ASSERT): Likewise.
50473         * tests/test-avltree_list.c (ASSERT): Likewise.
50474         * tests/test-avltree_oset.c (ASSERT): Likewise.
50475         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50476         * tests/test-binary-io.c (ASSERT): Likewise.
50477         * tests/test-byteswap.c (ASSERT): Likewise.
50478         * tests/test-c-ctype.c (ASSERT): Likewise.
50479         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50480         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50481         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50482         * tests/test-c-strstr.c (ASSERT): Likewise.
50483         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50484         * tests/test-canonicalize.c (ASSERT): Likewise.
50485         * tests/test-carray_list.c (ASSERT): Likewise.
50486         * tests/test-ceilf1.c (ASSERT): Likewise.
50487         * tests/test-ceilf2.c (ASSERT): Likewise.
50488         * tests/test-ceill.c (ASSERT): Likewise.
50489         * tests/test-count-one-bits.c (ASSERT): Likewise.
50490         * tests/test-fbufmode.c (ASSERT): Likewise.
50491         * tests/test-fflush2.c (ASSERT): Likewise.
50492         * tests/test-floorf1.c (ASSERT): Likewise.
50493         * tests/test-floorf2.c (ASSERT): Likewise.
50494         * tests/test-floorl.c (ASSERT): Likewise.
50495         * tests/test-fopen.c (ASSERT): Likewise.
50496         * tests/test-fpending.c (ASSERT): Likewise.
50497         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50498         * tests/test-fpurge.c (ASSERT): Likewise.
50499         * tests/test-freadable.c (ASSERT): Likewise.
50500         * tests/test-freadahead.c (ASSERT): Likewise.
50501         * tests/test-freading.c (ASSERT): Likewise.
50502         * tests/test-freadptr.c (ASSERT): Likewise.
50503         * tests/test-freadptr2.c (ASSERT): Likewise.
50504         * tests/test-freadseek.c (ASSERT): Likewise.
50505         * tests/test-freopen.c (ASSERT): Likewise.
50506         * tests/test-frexp.c (ASSERT): Likewise.
50507         * tests/test-frexpl.c (ASSERT): Likewise.
50508         * tests/test-fseek.c (ASSERT): Likewise.
50509         * tests/test-fseeko.c (ASSERT): Likewise.
50510         * tests/test-fstrcmp.c (ASSERT): Likewise.
50511         * tests/test-ftell.c (ASSERT): Likewise.
50512         * tests/test-ftello.c (ASSERT): Likewise.
50513         * tests/test-func.c (ASSERT): Likewise.
50514         * tests/test-fwritable.c (ASSERT): Likewise.
50515         * tests/test-fwriting.c (ASSERT): Likewise.
50516         * tests/test-getdelim.c (ASSERT): Likewise.
50517         * tests/test-getline.c (ASSERT): Likewise.
50518         * tests/test-i-ring.c (ASSERT): Likewise.
50519         * tests/test-iconv-utf.c (ASSERT): Likewise.
50520         * tests/test-iconv.c (ASSERT): Likewise.
50521         * tests/test-isfinite.c (ASSERT): Likewise.
50522         * tests/test-isnand.c (ASSERT): Likewise.
50523         * tests/test-isnanf.c (ASSERT): Likewise.
50524         * tests/test-isnanl.h (ASSERT): Likewise.
50525         * tests/test-ldexpl.c (ASSERT): Likewise.
50526         * tests/test-linked_list.c (ASSERT): Likewise.
50527         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50528         * tests/test-localename.c (ASSERT): Likewise.
50529         * tests/test-lseek.c (ASSERT): Likewise.
50530         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50531         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50532         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50533         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50534         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50535         * tests/test-mbschr.c (ASSERT): Likewise.
50536         * tests/test-mbscspn.c (ASSERT): Likewise.
50537         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50538         * tests/test-mbspbrk.c (ASSERT): Likewise.
50539         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50540         * tests/test-mbsrchr.c (ASSERT): Likewise.
50541         * tests/test-mbsspn.c (ASSERT): Likewise.
50542         * tests/test-mbsstr1.c (ASSERT): Likewise.
50543         * tests/test-mbsstr2.c (ASSERT): Likewise.
50544         * tests/test-mbsstr3.c (ASSERT): Likewise.
50545         * tests/test-memchr2.c (ASSERT): Likewise.
50546         * tests/test-memmem.c (ASSERT): Likewise.
50547         * tests/test-open.c (ASSERT): Likewise.
50548         * tests/test-printf-frexp.c (ASSERT): Likewise.
50549         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50550         * tests/test-printf-posix.c (ASSERT): Likewise.
50551         * tests/test-quotearg.c (ASSERT): Likewise.
50552         * tests/test-rbtree_list.c (ASSERT): Likewise.
50553         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50554         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50555         * tests/test-round1.c (ASSERT): Likewise.
50556         * tests/test-roundf1.c (ASSERT): Likewise.
50557         * tests/test-roundl.c (ASSERT): Likewise.
50558         * tests/test-signbit.c (ASSERT): Likewise.
50559         * tests/test-sleep.c (ASSERT): Likewise.
50560         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50561         * tests/test-snprintf.c (ASSERT): Likewise.
50562         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50563         * tests/test-stat-time.c (ASSERT): Likewise.
50564         * tests/test-strcasestr.c (ASSERT): Likewise.
50565         * tests/test-strerror.c (ASSERT): Likewise.
50566         * tests/test-striconv.c (ASSERT): Likewise.
50567         * tests/test-striconveh.c (ASSERT): Likewise.
50568         * tests/test-striconveha.c (ASSERT): Likewise.
50569         * tests/test-strsignal.c (ASSERT): Likewise.
50570         * tests/test-strstr.c (ASSERT): Likewise.
50571         * tests/test-strtod.c (ASSERT): Likewise.
50572         * tests/test-trunc1.c (ASSERT): Likewise.
50573         * tests/test-trunc2.c (ASSERT): Likewise.
50574         * tests/test-truncf1.c (ASSERT): Likewise.
50575         * tests/test-truncf2.c (ASSERT): Likewise.
50576         * tests/test-truncl.c (ASSERT): Likewise.
50577         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50578         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50579         * tests/test-vasnprintf.c (ASSERT): Likewise.
50580         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50581         * tests/test-vasprintf.c (ASSERT): Likewise.
50582         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50583         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50584         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50585         * tests/test-vsnprintf.c (ASSERT): Likewise.
50586         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50587         * tests/test-wcwidth.c (ASSERT): Likewise.
50588         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50589         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50590         * tests/test-xvasprintf.c (ASSERT): Likewise.
50591         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50592         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50593         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50594         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50595         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50596         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50597         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50598         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50599         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50600         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50601         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50602         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50603         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50604         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50605         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50606         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50607         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50608         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50609         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50610         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50611         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50612         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50613         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50614         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50615         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50616         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50617         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50618         * tests/unictype/test-combining.c (ASSERT): Likewise.
50619         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50620         * tests/unictype/test-digit.c (ASSERT): Likewise.
50621         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50622         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50623         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50624         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50625         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50626         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50627         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50628         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50629         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50630         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50631         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50632         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50633         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50634         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50635         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50636         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50637         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50638         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50639         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50640         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50641         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50642         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50643         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50644         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50645         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50646         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50647         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50648         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50649         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50650         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50651         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50652         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50653         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50654         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50655         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50656         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50657         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50658         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50659         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50660         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50661         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50662         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50663         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50664         Reported by Eric Blake.
50665
50666 2008-04-11  Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/wchar.in.h: Tweak comment.
50669
50670 2008-04-11  Bruno Haible  <bruno@clisp.org>
50671
50672         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50673         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50674         gl_COMMON.
50675         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50676
50677 2008-04-11  Bruno Haible  <bruno@clisp.org>
50678
50679         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50680
50681 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50682
50683         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50684         of attempting to use non-existing /dev/*random.  Based on patch
50685         from Adam Strzelecki <ono@java.pl> in
50686         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50687
50688 2008-04-08  Bruno Haible  <bruno@clisp.org>
50689
50690         Add tentative support for emx+gcc.
50691         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50692         * lib/fpurge.c (fpurge): Likewise.
50693         * lib/freadable.c (freadable): Likewise.
50694         * lib/freadahead.c (freadahead): Likewise.
50695         * lib/freading.c (freading): Likewise.
50696         * lib/freadptr.c (freadptr): Likewise.
50697         * lib/freadseek.c (freadptrinc): Likewise.
50698         * lib/fseeko.c (rpl_fseeko): Likewise.
50699         * lib/fseterr.c (fseterr): Likewise.
50700         * lib/fwritable.c (fwritable): Likewise.
50701         * lib/fwriting.c (fwriting): Likewise.
50702         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50703
50704 2008-04-09  Eric Blake  <ebb9@byu.net>
50705
50706         Avoid some autoconf warnings.
50707         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50708         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50709         * m4/afs.m4 (gl_AFS): Likewise.
50710         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50711         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50713         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50714         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50715         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50716         (AC_CHECK_DECLS_ONCE): Likewise.
50717         Rename file...
50718         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50719         gnulib-tool requires autoconf 2.59 or better.
50720         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50721
50722 2008-04-08  Eric Blake  <ebb9@byu.net>
50723
50724         Use 'git describe --match' if present (added in git 1.5.5).
50725         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50726         if possible.
50727
50728 2008-04-08  Bruno Haible  <bruno@clisp.org>
50729
50730         Add tentative support for OpenServer.
50731         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50732         _ptr, _cnt.
50733         * lib/fpurge.c (fpurge): Likewise.
50734         * lib/freadable.c (freadable): Likewise.
50735         * lib/freadahead.c (freadahead): Likewise.
50736         * lib/freading.c (freading): Likewise.
50737         * lib/freadptr.c (freadptr): Likewise.
50738         * lib/freadseek.c (freadptrinc): Likewise.
50739         * lib/fseeko.c (rpl_fseeko): Likewise.
50740         * lib/fseterr.c (fseterr): Likewise.
50741         * lib/fwritable.c (fwritable): Likewise.
50742         * lib/fwriting.c (fwriting): Likewise.
50743         Reported by Roger Cornelius <rac@tenzing.org> and
50744         Brian K. White <brian@aljex.com>.
50745
50746 2008-04-06  Jim Meyering  <meyering@redhat.com>
50747
50748         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50749
50750 2008-04-06  Bruno Haible  <bruno@clisp.org>
50751
50752         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50753         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50754         * tests/test-printf-posix.sh: Likewise.
50755         * tests/test-vfprintf-posix.sh: Likewise.
50756         * tests/test-vprintf-posix.sh: Likewise.
50757         * tests/test-xprintf-posix.sh: Likewise.
50758
50759 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50760
50761         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50762         hide error from 'ls', needed on OS/2.
50763         Report by Elbert Pol <elbert.pol@gmail.com>.
50764
50765 2008-04-04  Eric Blake  <ebb9@byu.net>
50766
50767         Make test-fseeko.c failures meaningful.
50768         * tests/test-fseeko.c: Print line number on failure.
50769         * tests/test-fseek.c: Likewise.
50770         Reported by Nelson H. F. Beebe.
50771
50772         Improve strtod bug detection check.
50773         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50774         required for Solaris 10.
50775         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50776
50777 2008-04-04  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50780         by m4/setenv.m4.
50781
50782 2008-04-03  Eric Blake  <ebb9@byu.net>
50783
50784         Ensure sane .version contents.
50785         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50786         version string.
50787         * build-aux/git-version-gen: Improve documentation.
50788
50789         Make GNU make output nicer.
50790         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50791         MAKECMDGOALS to enforce message for all command line targets.  Set
50792         srcdir for use in maint.mk.
50793
50794         Another maintainer tweak.
50795         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50796         a target that regenerates version.
50797
50798 2008-04-03  Jim Meyering  <meyering@redhat.com>
50799
50800         vc-list-files: don't cause coreutils "make po-check" failure
50801         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50802
50803 2008-04-03  Eric Blake  <ebb9@byu.net>
50804
50805         Allow VPATH usage of vc-list-files.
50806         * build-aux/vc-list-files (scriptversion): Add timestamp.
50807         (options): Add --help, --version, -C.
50808         (CVS): Support installed cvsu.
50809
50810 2008-04-02  Bruno Haible  <bruno@clisp.org>
50811
50812         Avoid some "statement with no effect" warnings from gcc.
50813         * tests/test-wctype.c (main): Explicitly ignore unused values.
50814         Reported by Jim Meyering.
50815
50816 2008-04-02  Jim Meyering  <meyering@redhat.com>
50817
50818         Avoid some warnings from "gcc -Wshadow".
50819         * tests/test-frexp.c (exp): Define to a different identifier.
50820         * tests/test-frexpl.c (exp): Likewise.
50821
50822 2008-04-03  Jim Meyering  <meyering@redhat.com>
50823
50824         bootstrap: remove dangling *.[ch] symlinks from lib
50825         * build-aux/bootstrap [dangling symlink removal]: Move find's
50826         -depth option to precede all others, to avoid a warning.
50827         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50828
50829 2008-04-02  Bruno Haible  <bruno@clisp.org>
50830
50831         Avoid some warnings from "gcc -Wshadow".
50832         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50833         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50834         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50835         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50836         Reported by Jim Meyering.
50837
50838 2008-04-01  Bruno Haible  <bruno@clisp.org>
50839
50840         Fix test to work on IRIX 6.5 with cc.
50841         * tests/test-math.c (numeric_equal): New function.
50842         (main): Use it.
50843
50844 2008-04-01  Bruno Haible  <bruno@clisp.org>
50845
50846         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50847
50848 2008-04-01  Bruno Haible  <bruno@clisp.org>
50849
50850         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50851         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50852         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50853         (Depends-on): Remove math.
50854
50855         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50856         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50857         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50858         (Depends-on): Remove math.
50859
50860         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50861         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50862         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50863         (Depends-on): Remove math.
50864         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50865         (Depends-on): Remove math.
50866
50867         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50868         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50869         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50870         (Depends-on): Remove math.
50871         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50872         (Depends-on): Remove math.
50873
50874         * tests/test-round1.c: Include nan.h.
50875         (main): Use NaNd instead of NAN.
50876         * modules/round-tests (Files): Add tests/nan.h.
50877
50878         * tests/test-trunc1.c: Include nan.h.
50879         (main): Use NaNd instead of NAN.
50880         * modules/trunc-tests (Files): Add tests/nan.h.
50881
50882         * tests/test-roundf1.c: Include nan.h.
50883         (main): Use NaNf instead of NAN.
50884         * modules/roundf-tests (Files): Add tests/nan.h.
50885
50886         * tests/test-truncf1.c: Include nan.h.
50887         (main): Use NaNf instead of NAN.
50888         * modules/truncf-tests (Files): Add tests/nan.h.
50889
50890         * tests/test-ceilf1.c: Include nan.h.
50891         (main): Use NaNf instead of NAN.
50892         * modules/ceilf-tests (Files): Add tests/nan.h.
50893
50894         * tests/test-floorf1.c: Include nan.h.
50895         (main): Use NaNf instead of NAN.
50896         * modules/floorf-tests (Files): Add tests/nan.h.
50897
50898         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50899         (main): Use NaNf instead of NAN.
50900         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50901
50902         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50903         (main): Use NaNd instead of NAN.
50904         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50905
50906         * tests/test-frexp.c: Include nan.h.
50907         (main): Use NaNd instead of NAN.
50908         * modules/frexp-tests (Files): Add tests/nan.h.
50909
50910         * lib/isnan.c: Don't include <math.h>.
50911         (FUNC): Don't use NAN macro.
50912         * modules/isnand-nolibm (Depends-on): Remove math.
50913         * modules/isnanf-nolibm (Depends-on): Remove math.
50914         * modules/isnanl (Depends-on): Remove math.
50915         * modules/isnanl-nolibm (Depends-on): Remove math.
50916
50917         * tests/nan.h: New file.
50918
50919 2008-04-01  Eric Blake  <ebb9@byu.net>
50920
50921         Fix typos.
50922         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50923         values to be the right type.
50924
50925         For now, cater to gnulib strtod inaccuracies.
50926         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50927         fractional results.  While not as nice from a QoI perspective, it
50928         is a quicker patch than correctly implementing decimal to binary
50929         rounding.
50930
50931 2008-03-31  Eric Blake  <ebb9@byu.net>
50932
50933         Guarantee a definition of NAN.
50934         * lib/math.in.h (NAN): Define if missing.
50935         * tests/test-math.c (main): Test it.
50936         * doc/posix-headers/math.texi (math.h): Document this.
50937         * lib/isnan.c (rpl_isnand): Use it.
50938         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50939         * tests/test-floorf1.c (NaN): Likewise.
50940         * tests/test-frexp.c (NaN): Likewise.
50941         * tests/test-isnand.c (NaN): Likewise.
50942         * tests/test-isnanf.c (NaN): Likewise.
50943         * tests/test-round1.c (NaN): Likewise.
50944         * tests/test-roundf1.c (NaN): Likewise.
50945         * tests/test-snprintf-posix.h (NaN): Likewise.
50946         * tests/test-sprintf-posix.h (NaN): Likewise.
50947         * tests/test-trunc1.c (NaN): Likewise.
50948         * tests/test-truncf1.c (NaN): Likewise.
50949         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50950         * tests/test-vasprintf-posix.c (NaN): Likewise.
50951         * modules/isnand-nolibm (Depends-on): Add math.
50952         * modules/isnanf-nolibm (Depends-on): Likewise.
50953         * modules/isnanl (Depends-on): Likewise.
50954         * modules/isnanl-nolibm (Depends-on): Likewise.
50955         * modules/snprintf-posix-tests (Depends-on): Likewise.
50956         * modules/sprintf-posix-tests (Depends-on): Likewise.
50957         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50958         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50959         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50960         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50961
50962 2008-03-31  Bruno Haible  <bruno@clisp.org>
50963
50964         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50965         * doc/posix-functions/strtod.texi: Likewise.
50966
50967 2008-03-31  Bruno Haible  <bruno@clisp.org>
50968
50969         * tests/test-strtod.c (main): Don't use C99 syntax.
50970
50971 2008-03-31  Bruno Haible  <bruno@clisp.org>
50972
50973         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50974         Reported by Eric Blake.
50975
50976 2008-03-31  Jim Meyering  <meyering@redhat.com>
50977
50978         Don't compare actual signbit return values.
50979         * tests/test-strtod.c (main): Rather, compare only their
50980         zero/non-zero nature.
50981
50982 2008-03-31  Eric Blake  <ebb9@byu.net>
50983
50984         More strtod documentation.
50985         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50986         failures as distinct bugs.
50987
50988 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50989
50990         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50991         Problem reported by Erik Benada in
50992         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50993
50994 2008-03-30  Bruno Haible  <bruno@clisp.org>
50995
50996         * tests/test-strtod.c: Add comments about which assertion fails on which
50997         platform.
50998         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50999
51000 2008-03-30  Eric Blake  <ebb9@byu.net>
51001
51002         Test signbit behavior on zeros.
51003         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51004         (test_signbitd, test_signbitl): Likewise.
51005
51006         More strtod touchups.
51007         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51008         sign of negative underflow, for now.  Use .5, not .1.
51009         * doc/posix-functions/strtod.texi (strtod): Mention these
51010         limitations.
51011         Reported by Jim Meyering.
51012
51013 2008-03-30  Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51016         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51017
51018 2008-03-30  Bruno Haible  <bruno@clisp.org>
51019
51020         Avoid failure when attempting to return empty iconv results on some
51021         platforms.
51022         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51023         allocation, don't report ENOMEM when the resulting string is empty.
51024
51025 2008-03-30  Bruno Haible  <bruno@clisp.org>
51026
51027         Fix buffer overrun.
51028         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51029         Don't consider the width for tmp_length. Check count against tmp_length
51030         before doing the padding. Ensure enough allocation during padding.
51031
51032 2008-03-30  Eric Blake  <ebb9@byu.net>
51033
51034         strtod touchups.
51035         * lib/strtod.c (strtod): Avoid compiler warnings.
51036         Reported by Jim Meyering.
51037
51038 2008-03-30  Bruno Haible  <bruno@clisp.org>
51039
51040         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51041         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51042         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51043         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51044         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51045         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51046         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51047         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51048
51049         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51050         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51051         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51052         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51053         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51054         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51055         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51056         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51057
51058         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51059         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51060         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51061         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51062         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51063         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51064         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51065         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51066
51067         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51068         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51069
51070         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51071         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51072
51073         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51074         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51075
51076         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51077         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51078         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51079
51080         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51081         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51082         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51083
51084         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51086         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51087
51088         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51090         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51091
51092         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51093         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51095         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51096         (Depends-on): Add EOVERFLOW.
51097         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51098         (Depends-on): Add EOVERFLOW.
51099         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51100         (Depends-on): Add EOVERFLOW.
51101         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51102         (Depends-on): Add EOVERFLOW.
51103         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51104         (Depends-on): Add EOVERFLOW.
51105         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51106         (Depends-on): Add EOVERFLOW.
51107         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51108         (Depends-on): Add EOVERFLOW.
51109         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51110         (Depends-on): Add EOVERFLOW.
51111
51112         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51113         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51114         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51115
51116         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51118         * modules/snprintf (Depends-on): Add EOVERFLOW.
51119
51120         * lib/poll.c (EOVERFLOW): Remove fallback.
51121         * modules/poll (Depends-on): Add EOVERFLOW.
51122
51123         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51124         * modules/getugroups (Depends-on): Add EOVERFLOW.
51125
51126         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51127         * modules/getdelim (Depends-on): Add EOVERFLOW.
51128
51129         * lib/ftell.c (EOVERFLOW): Remove fallback.
51130         * modules/ftell (Depends-on): Add EOVERFLOW.
51131
51132         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51133         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51134         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51135
51136         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51137
51138         * modules/EOVERFLOW-tests: New file.
51139         * tests/test-EOVERFLOW.c: New file.
51140
51141         * modules/EOVERFLOW: New file.
51142         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51143
51144 2008-03-30  Bruno Haible  <bruno@clisp.org>
51145
51146         Fix bug introduced on 2007-06-10.
51147         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51148         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51149
51150 2008-03-30  Bruno Haible  <bruno@clisp.org>
51151
51152         Improve freadseek's efficiency after ungetc.
51153         * lib/freadseek.c: Include freadahead.h.
51154         (freadptrinc): New function, extracted from freadseek.
51155         (freadseek): Use it in a loop. Use freadahead to determine the number
51156         of loop iterations.
51157         * modules/freadseek (Depends-on): Add freadahead.
51158         (configure.ac): Require AC_C_INLINE.
51159
51160 2008-03-30  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/freadseek.c (freadseek): Don't ignore the return value of
51163         freadptr.
51164
51165 2008-03-29  Eric Blake  <ebb9@byu.net>
51166
51167         Add hex float support.
51168         * modules/strtod (Depends-on): Add c-ctype.
51169         (Link): Mention POW_LIB.
51170         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51171         whitespace between 'e' and exponent.
51172         * tests/test-strtod.c (main): Enable hex float tests.
51173         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51174         now provides.
51175
51176         Document various strtod bugs, with some fixes.
51177         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51178         "-0x", "inf", "nan", and hex constants.
51179         * doc/posix-functions/atof.texi (atof): Likewise.
51180         * modules/stdlib (Makefile.am): Support strtod.
51181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51182         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51183         detect additional strtod bugs.
51184         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51185         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51186         bool where appropriate.  Parse 'inf' and 'nan'.
51187         * tests/test-strtod.c: New file.
51188         * modules/strtod (Depends-on): Add stdbool, stdlib.
51189         (configure.ac): Turn on module indicator.
51190         * modules/strtod-tests: New module.
51191
51192 2008-03-29  Eric Blake  <ebb9@byu.net>
51193
51194         Fix ftell on mingw.
51195         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51196         * modules/ftell-tests (Depends-on): Add binary-io.
51197         * modules/ftello-tests (Depends-on): Likewise.
51198         * tests/test-ftell.c (main): Enhance test to cover behavior after
51199         ungetc.  Enforce binary mode.
51200         * tests/test-ftello.c (main): Likewise.
51201
51202         Pass test-freadseek on cygwin.
51203         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51204         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51205         ungetc buffer.
51206
51207         * tests/test-fflush2.c (main): Fix typo.
51208
51209 2008-03-29  Bruno Haible  <bruno@clisp.org>
51210
51211         * tests/test-fflush2.c (main): Temporarily disable the contents of
51212         this test.
51213         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51214         Reported by Eric Blake.
51215
51216 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51217
51218         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51219         (GC_SHA224_DIGEST_SIZE): Add.
51220
51221         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51222         (gc_hash_digest_length): Likewise.
51223         (gc_hash_buffer): Likewise.
51224
51225 2008-03-25  Bruno Haible  <bruno@clisp.org>
51226
51227         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51228         detail which gettext release to use.
51229         Reported by Simon Josefsson.
51230
51231 2008-03-26  Jim Meyering  <meyering@redhat.com>
51232
51233         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51234         * modules/gnumakefile (clean-GNUmakefile): Also, use
51235         test ... && ... || : syntax rather than if-then ... fi.
51236
51237         gnumakefile: Don't double-quote-expand $(VPATH) value.
51238         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51239
51240 2008-03-24  Eric Blake  <ebb9@byu.net>
51241
51242         Alter GNUmakefile to install into top directory.
51243         * modules/maintainer-makefile: Split, and add dependency...
51244         * modules/gnumakefile: to this new module.
51245         * build-aux/GNUmakefile: Move...
51246         * top/GNUmakefile: ...here.
51247         * build-aux/maint.mk: Move...
51248         * top/maint.mk: ...here.
51249         * MODULES.html.sh (Support for maintaining...): Document new
51250         module.
51251
51252 2008-03-23  Bruno Haible  <bruno@clisp.org>
51253
51254         * gnulib-tool: New options --vc-files, --no-vc-files.
51255         (func_usage): Document them.
51256         (vc_files): New variable.
51257         (func_import): Consider vc_files.
51258         (func_create_testdir): Set vc_files to empty.
51259         Suggested by Jim Meyering and Karl Berry.
51260
51261 2008-03-23  Bruno Haible  <bruno@clisp.org>
51262
51263         Fix regex compilation error on HP-UX 11.
51264         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51265         * modules/regex (Files): Add m4/mbstate_t.m4.
51266         Reported by Ton Voon <ton.voon@altinity.com>.
51267
51268 2008-03-23  Bruno Haible  <bruno@clisp.org>
51269
51270         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51271
51272 2008-03-23  Eric Blake  <ebb9@byu.net>
51273             Bruno Haible  <bruno@clisp.org>
51274
51275         Install files from top/ in the destination directory.
51276         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51277         augmentation also for the files from top/.
51278         (func_import, func_create_testdir): Rewrite file names:
51279         top/filename -> filename.
51280
51281 2008-03-23  Bruno Haible  <bruno@clisp.org>
51282
51283         Tweak "gnulib --version" output.
51284         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51285
51286 2008-03-23  Bruno Haible  <bruno@clisp.org>
51287
51288         Tweak "gnulib --version" output.
51289         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51290         rather than contents of ChangeLog, when possible.
51291
51292 2008-03-21  Eric Blake  <ebb9@byu.net>
51293
51294         More --version tweaks.
51295         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51296         date of last ChangeLog entry.
51297
51298 2008-03-21  Jim Meyering  <meyering@redhat.com>
51299
51300         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51301
51302 2008-03-20  Eric Blake  <ebb9@byu.net>
51303
51304         VPATH fix.
51305         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51306
51307 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51308
51309         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51310         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51311
51312 2008-03-20  Eric Blake  <ebb9@byu.net>
51313
51314         Sync GNUmakefile with coreutils.
51315         * build-aux/GNUmakefile (have-Makefile): Rename...
51316         (_have-Makefile): ...to this, for namespace consideration.
51317         (GNUmakefile.cfg): Include, if present.
51318         (_autoreconf): Define a default.
51319         (_is-dist-target): New rule for rebuilds to pick up intra-release
51320         version.
51321         (maint-cfg.mk): Rename...
51322         (cfg.mk): ...to this.
51323
51324 2008-03-18  Jim Meyering  <meyering@redhat.com>
51325
51326         New script and module: mktempd
51327         * MODULES.html.sh (maint+release support): Add mktempd.
51328         * build-aux/mktempd: New file.
51329         * modules/mktempd: New file.
51330
51331 2008-03-15  Jim Meyering  <meyering@redhat.com>
51332
51333         Undo last change.
51334         * lib/sha1.c, lib/md5.c: 63 != ~63.
51335         Reported by Andreas Schwab.
51336
51337         sha1.c, md5.c: Hoist a redundant expression.
51338         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51339         "ctx->buflen" only once, before calling *_process_block.
51340         * lib/md5.c (md5_process_bytes): Likewise.
51341
51342 2008-03-14  Eric Blake  <ebb9@byu.net>
51343
51344         Bump copyright year in files generated by gnulib-tool.
51345         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51346         gnulib-tool, rather than hard-coding it.
51347
51348         Fix 'gnulib-tool --version' output to work with git.
51349         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51350         (startup): ...here.
51351         (func_version): Use it to invoke git-version-gen, rather than
51352         relying on CVS keyword expansion.  Modernize wording.
51353         (cvsdatestamp, last_checkin_date, version): Kill unused
51354         variables.
51355
51356 2008-03-12  Jim Meyering  <meyering@redhat.com>
51357
51358         Recognize optional cast of the argument to free.
51359         * build-aux/useless-if-before-free: Update regexps.
51360
51361         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51362
51363 2008-03-11  Bruno Haible  <bruno@clisp.org>
51364
51365         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51366         by a single package.
51367         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51368         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51369         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51370         Reported by Sam Steingold <sds@gnu.org>.
51371
51372 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51373
51374         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51375         repositories.
51376
51377 2008-03-11  Bruno Haible  <bruno@clisp.org>
51378
51379         Avoid conflicts between local macro definitions.
51380         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51381         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51382
51383 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51384             Bruno Haible  <bruno@clisp.org>
51385
51386         Make va_copy work with some version of xlc on AIX 5.1.
51387         * lib/stdarg.in.h: New file.
51388         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51389         On AIX, use a <stdarg.h> file substitute.
51390         * modules/stdarg (Files): Add lib/stdarg.in.h.
51391         (Depends-on): Add include_next.
51392         (Makefile.am): Build a stdarg.h substitute if requested.
51393         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51394
51395 2008-03-10  Bruno Haible  <bruno@clisp.org>
51396
51397         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51399         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51400
51401 2008-03-10  Bruno Haible  <bruno@clisp.org>
51402
51403         * modules/stdlib (Depends-on): Add include_next, remove
51404         absolute-header.
51405
51406 2008-03-09  Bruno Haible  <bruno@clisp.org>
51407
51408         * lib/freadahead.h (freadahead): Document more precisely.
51409         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51410         the sum of both buffer sizes.
51411         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51412         * NEWS: Document the change.
51413
51414 2008-03-09  Bruno Haible  <bruno@clisp.org>
51415
51416         Extend freadptr to return also the buffer size.
51417         * lib/freadptr.h (freadptr): Add sizep argument.
51418         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51419         (freadptr): Add sizep argument. Determine buffer size like freadahead
51420         does.
51421         * tests/test-freadptr.c: Don't include freadahead.h.
51422         (main): Adapt for new calling convention of freadptr.
51423         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51424         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51425         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51426         tests/test-freadptr2.sh.
51427         (Depends): Remove freadahead.
51428         (TESTS): Add test-freadptr2.sh.
51429         (check_PROGRAMS): Add test-freadptr2.
51430
51431 2008-03-09  Bruno Haible  <bruno@clisp.org>
51432
51433         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51434         Report and solution by Simon Josefsson.
51435
51436 2008-03-06  Bruno Haible  <bruno@clisp.org>
51437
51438         Make fflush after ungetc work on BSD platforms.
51439         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51440         * tests/test-fflush2.c: New file.
51441         * tests/test-fflush2.sh: New file.
51442         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51443         tests/test-fflush2.c.
51444         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51445         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51446
51447 2008-03-06  Eric Blake  <ebb9@byu.net>
51448
51449         Likewise for ftello.
51450         * modules/ftello (Dependencies): Add extensions.
51451         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51452
51453 2008-03-06  Bruno Haible  <bruno@clisp.org>
51454
51455         * modules/fseeko (Dependencies): Add extensions.
51456         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51457         Needed on glibc systems.
51458
51459 2008-03-06  Bruno Haible  <bruno@clisp.org>
51460
51461         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51462         email address.
51463         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51464
51465 2008-03-06  Bruno Haible  <bruno@clisp.org>
51466
51467         * users.txt: Add libgnupdf.
51468
51469 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51470
51471         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51472         (Header File Substitutes, Function Substitutes,
51473         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51474         (Build robot for gnulib): Fix typo.
51475
51476 2008-03-06  Bruno Haible  <bruno@clisp.org>
51477
51478         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51479         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51480
51481 2008-03-06  Bruno Haible  <bruno@clisp.org>
51482
51483         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51484         * doc/gnulib.texi: Include it.
51485
51486 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51487
51488         * modules/func (License): Change license to unlimited; there was
51489         no LGPL parts in the module anyway.
51490
51491 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51492
51493         * modules/__func__: Renamed to modules/func.
51494         * modules/__func__-tests: Renamed to modules/func-tests.
51495         * tests/test-__func__.c: Renamed to tests/test-func.c.
51496         * m4/__func__.m4: Renamed to m4/func.m4.
51497         * doc/gnulib.texi (__func__): Section renamed to func.
51498         Suggested by Eric Blake <ebb9@byu.net>.
51499
51500 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51501
51502         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51503         about __func__.  Make example self-contained.  Suggested by Eric
51504         Blake <ebb9@byu.net>.
51505
51506         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51507         Suggested by Eric Blake <ebb9@byu.net>.
51508
51509 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51510
51511         * modules/__func__: New file.
51512         * modules/__func__-tests: New file.
51513         * tests/test-__func__.c: New file.
51514         * m4/__func__.m4: New file.
51515         * doc/gnulib.texi (__func__): Document __func__ module.
51516
51517 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51518
51519         * modules/byteswap (License): Re-license as LGPLv2+.
51520
51521 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51522
51523         * doc/Makefile: Add pdf target.
51524
51525 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51526
51527         * modules/inline (License): Use 'unlimited', since there are only
51528         *.m4 files in this module.
51529
51530 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51531             Bruno Haible  <bruno@clisp.org>
51532
51533         Add support for HP C 7.1 on OpenVMS 8.3.
51534         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51535
51536 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51537
51538         Update VMS specifics.
51539         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51540
51541 2008-03-02  Jim Meyering  <meyering@redhat.com>
51542
51543         Remove the last dependency on the "free" module.
51544         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51545         Reported by Bob Proulx.
51546
51547         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51548
51549         Remove useless "if" tests before free.  Deprecate "free" module.
51550         * doc/posix-functions/free.texi: Mention that this
51551         module is no longer useful.
51552         * modules/free (Notice): Say this module is obsolete.
51553         * modules/readutmp (Depends-on): Remove free.
51554         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51555         * lib/putenv.c (putenv): Likewise.
51556         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51557         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51558         * tests/test-c-strcasestr.c (main): Likewise.
51559         * tests/test-c-strstr.c (main): Likewise.
51560         * tests/test-mbscasestr1.c (main): Likewise.
51561         * tests/test-mbscasestr2.c (main): Likewise.
51562         * tests/test-mbsstr1.c (main): Likewise.
51563         * tests/test-mbsstr2.c (main): Likewise.
51564         * tests/test-memmem.c (main): Likewise.
51565         * tests/test-strcasestr.c (main): Likewise.
51566         * tests/test-striconv.c (main): Likewise.
51567         * tests/test-striconveh.c (main): Likewise.
51568         * tests/test-striconveha.c (main): Likewise.
51569         * tests/test-strstr.c (main): Likewise.
51570
51571         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51572
51573         bootstrap: sync from coreutils again
51574         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51575
51576 2008-03-01  Jim Meyering  <meyering@redhat.com>
51577
51578         bootstrap: sync from coreutils
51579         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51580         also when the target doesn't exist.
51581
51582 2008-03-01  Eric Blake  <ebb9@byu.net>
51583
51584         Fix bugs in last patch.
51585         * lib/memchr2.c (memchr2): Fix typo.
51586         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51587         extension.
51588         Reported by Bruce Korb.
51589
51590         New module 'memchr2'.
51591         * modules/memchr2: New file.
51592         * modules/memchr2-tests: Likewise.
51593         * lib/memchr2.h: Likewise.
51594         * lib/memchr2.c: Likewise, based on memchr.c.
51595         * tests/test-memchr2.c: New test.
51596         * MODULES.html.sh (String handling): Add memchr2.
51597
51598 2008-02-29  Bruno Haible  <bruno@clisp.org>
51599
51600         * modules/freadseek-tests: New file.
51601         * tests/test-freadseek.sh: New file.
51602         * tests/test-freadseek.c: New file.
51603
51604         New module 'freadseek'.
51605         * modules/freadseek: New file.
51606         * lib/freadseek.h: New file.
51607         * lib/freadseek.c: New file.
51608         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51609
51610 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51611
51612         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51613         wydawca.
51614
51615         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51616         program_invocation_name and program_invocation_short_name are
51617         present.
51618
51619 2008-02-28  Bruno Haible  <bruno@clisp.org>
51620
51621         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51622         * tests/test-freadptr.sh: Also test non-seekable stdin.
51623
51624 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51625
51626         * build-aux/bootstrap (source_base, m4_base)
51627         (doc_base, tests_base): New variables.
51628         (gnulib_tool_options): Do not hardcode base directories, use
51629         the above variables instead.
51630
51631 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51632
51633         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51634
51635 2008-02-28  Bruno Haible  <bruno@clisp.org>
51636
51637         * modules/freadptr-tests: New file.
51638         * tests/test-freadptr.sh: New file.
51639         * tests/test-freadptr.c: New file.
51640
51641         New module 'freadptr'.
51642         * modules/freadptr: New file.
51643         * lib/freadptr.h: New file.
51644         * lib/freadptr.c: New file.
51645         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51646
51647 2008-02-26  Karl Berry  <karl@freefriends.org>
51648
51649         Sync from Libtool:
51650         * libltdl/argz.c (argz_add, argz_count): New functions.
51651         * libltdl/argz.in.h: Declare them.
51652         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51653
51654 2008-02-22  Bruno Haible  <bruno@clisp.org>
51655
51656         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51657         is a pointer type.  Needed for HP-UX 10.
51658         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51659         * doc/posix-functions/gmtime_r.texi: Likewise.
51660         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51661
51662 2008-02-24  Bruno Haible  <bruno@clisp.org>
51663
51664         * modules/environ-tests: New file.
51665         * tests/test-environ.c: New file.
51666
51667         New module 'environ'.
51668         * modules/environ: New file.
51669         * lib/unistd.in.h (environ): New declaration.
51670         * m4/environ.m4: New file.
51671         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51672         after use.
51673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51674         HAVE_DECL_ENVIRON.
51675         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51676         HAVE_DECL_ENVIRON.
51677         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51678         wrong claim that 'environ' is missing on some systems.
51679         * modules/execute (Depends-on): Add environ.
51680         * lib/execute.c (environ): Remove fallback declaration.
51681         * modules/pipe (Depends-on): Add environ.
51682         * lib/pipe.c (environ): Remove fallback declaration.
51683         * modules/setenv (Depends-on): Add environ.
51684         * lib/setenv.c (environ): Remove fallback declaration.
51685         * modules/unsetenv (Depends-on): Add environ.
51686         * lib/unsetenv.c (environ): Remove fallback declaration.
51687         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51688         m4/environ.m4.
51689         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51690         (gl_PREREQ_UNSETENV): Likewise.
51691
51692 2008-02-24  Bruno Haible  <bruno@clisp.org>
51693
51694         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51695
51696 2008-02-20  Bob Proulx  <bob@proulx.com>
51697
51698         Enable use of older two part flavor 'git describe'.
51699         * build-aux/git-version-gen: If using the older two part flavor of
51700         git version then recreate the third part now present in the
51701         newer three part flavor of git describe.
51702
51703 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51704
51705         * lib/fts.c (fts_build): Typo correction to comment.
51706
51707 2008-02-17  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51710         generating no-op conflicts.
51711
51712 2008-02-17  Bruno Haible  <bruno@clisp.org>
51713
51714         Speed up by 10%.
51715         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51716         result_entries, rather than an index-based loop.
51717
51718 2008-02-17  Bruno Haible  <bruno@clisp.org>
51719
51720         Speed up by 25%.
51721         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51722         'hashcode_cached'.
51723         (entry_create): New function.
51724         (entry_hashcode): Use the cached hashcode if possible.
51725         (read_changelog_file, try_split_merged_entry): Use entry_create.
51726
51727 2008-02-17  Bruno Haible  <bruno@clisp.org>
51728
51729         Speed up from O(n^2) to O(n) for long ChangeLog files.
51730         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51731         (read_changelog_file): Change implementation of entries_reversed list
51732         to rbtreehash.
51733         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51734
51735 2008-02-17  Bruno Haible  <bruno@clisp.org>
51736
51737         New option --split-merged-entry.
51738         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51739         (find_paragraph_end, try_split_merged_entry): New functions.
51740         (long_options): Add option --split-merged-entry.
51741         (usage): Document option --split-merged-entry.
51742         (main): Implement option --split-merged-entry.
51743         Reported by Eric Blake.
51744
51745 2008-02-17  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/git-merge-changelog.c: Include c-strstr.h.
51748         (main): Support the "git pull --rebase" situation.
51749         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51750         Reported by Eric Blake.
51751
51752 2008-02-16  Eric Blake  <ebb9@byu.net>
51753
51754         Avoid doubling \ in common case of "c-maybe" quoting style.
51755         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51756         eliding outer quotes.
51757         * lib/quotearg.h: Document this.
51758         * tests/test-quotearg.c (result_strings, inputs, results_g)
51759         (flag_results, locale_results): Test it by adding a new string to
51760         each test group.
51761         (compare_strings): Test new string.
51762
51763 2008-02-13  Eric Blake  <ebb9@byu.net>
51764
51765         Avoid trigraph quoting in default output.
51766         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51767         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51768         unless explicitly requested.
51769         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51770
51771 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51772
51773         Don't rely on signed integer overflowing to negative value.
51774         * lib/getugroups.c (getugroups): Include <limits.h>.
51775         Instead, compare against INT_MAX, and increment only if the test passes.
51776
51777 2008-02-13  Jim Meyering  <meyering@redhat.com>
51778         and Eric Blake  <ebb9@byu.net>
51779
51780         Avoid shadowing warning and compile errors on Linux.
51781         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51782         forwarding macros on Linux.
51783         (dcgettext): Define a stub, for Linux.
51784         (results_g, main): Avoid warnings.
51785
51786 2008-02-12  Eric Blake  <ebb9@byu.net>
51787
51788         Silence warning in last patch.
51789         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51790
51791         Quotearg part 4: add tests, fix c-maybe colon quoting.
51792         * lib/quotearg.h: Improve documentation.
51793         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51794         escapes when adding outer quotes.  When quoting trigraphs, use
51795         valid C notation.  When quoting NUL, omit extra characters if next
51796         character is not digit.  Alter prototype.
51797         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51798         callers.
51799         * modules/quotearg-tests: New module.
51800         * tests/test-quotearg.c: New test.
51801
51802 2008-02-07  Eric Blake  <ebb9@byu.net>
51803
51804         Quotearg part 3: add flag to control outer quote elision.
51805         * lib/quotearg.h (c_maybe_quoting_style): New style.
51806         (enum quoting_flags): Better documentation of flags.
51807         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51808         c-maybe style.
51809         (quotearg_buffer_restyled): Handle new flag to elide outer
51810         quotes.
51811
51812         Quotearg part 2: add flag that can control NUL elision.
51813         * lib/quotearg.h (set_quoting_flags): New prototype.
51814         * lib/quotearg.c (struct quoting_options): Add flag field.
51815         (set_quoting_flags): New function.
51816         (quotearg_buffer_restyled): Add flags parameter.
51817         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51818         (quotearg_n_options): Set the flag, since length cannot be
51819         returned.
51820         (quoting_options_from_style): Default flags correctly.
51821
51822         Quotearg part 1: more wrappers, restore quotearg_char state.
51823         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51824         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51825         (quotearg_colon_mem): New wrappers.
51826         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51827         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51828         functions.
51829         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51830         (quotearg_colon_mem): New functions.
51831
51832 2008-02-11  Bruno Haible  <bruno@clisp.org>
51833
51834         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51835         library in the current directory: it does not work with parallel make.
51836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51837
51838 2008-02-11  Bruno Haible  <bruno@clisp.org>
51839
51840         * .gitattributes: New file.
51841
51842 2008-02-11  Jim Meyering  <meyering@redhat.com>
51843
51844         useless-if-before-free: Fix reversed exit values.
51845         * build-aux/useless-if-before-free: Use correct values
51846         for EXIT_MATCH and EXIT_NO_MATCH.
51847
51848         * build-aux/useless-if-before-free: Close stdout carefully.
51849
51850 2008-02-10  Bruno Haible  <bruno@clisp.org>
51851
51852         New module 'git-merge-changelog'.
51853         * modules/git-merge-changelog: New file.
51854         * lib/git-merge-changelog.c: New file.
51855
51856 2008-02-10  Jim Meyering  <meyering@redhat.com>
51857
51858         useless-if-before-free: New option: --list (-l).
51859
51860         useless-if-before-free: Don't exit immediately upon open failure.
51861         * build-aux/useless-if-before-free: Exit 2 for errors.
51862         Upon failure to open a file, don't exit immediately.
51863         Rather, just warn and continue with any remaining files.
51864
51865 2008-02-10  Bruno Haible  <bruno@clisp.org>
51866
51867         New abstract list operation 'node_set_value'.
51868         * lib/gl_list.h (gl_list_node_set_value): New function.
51869         (struct gl_list_implementation): New field node_set_value.
51870         * lib/gl_list.c (gl_list_node_set_value): New function.
51871         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51872         (gl_array_list_implementation): Update.
51873         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51874         (gl_carray_list_implementation): Update.
51875         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51876         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51877         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51878         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51879         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51880         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51881         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51882         Update.
51883         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51884         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51885         (gl_sublist_list_implementation): Update.
51886
51887 2008-02-10  Bruno Haible  <bruno@clisp.org>
51888
51889         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51890         Needed when ELEMENT is #defined to 'some_type *'.
51891
51892 2008-02-10  Jim Meyering  <meyering@redhat.com>
51893
51894         New script and module: useless-if-before-free
51895         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51896         * build-aux/useless-if-before-free: New file.
51897         * modules/useless-if-before-free: New file.
51898
51899         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51900
51901         xstrtol_error: Fix typo.
51902         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51903         s/exit_failure/exit_status/.
51904
51905 2008-02-09  Jim Meyering  <meyering@redhat.com>
51906
51907         New script and module: gitlog-to-changelog
51908         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51909         * modules/gitlog-to-changelog: New file.
51910         * build-aux/gitlog-to-changelog: New file.
51911
51912 2008-02-08  Jim Meyering  <meyering@redhat.com>
51913
51914         Avoid two "parameter unused" warnings.
51915         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51916         Mark "st" as used.
51917
51918         Use "git COMMAND", not "git-COMMAND".
51919         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51920         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51921         * build-aux/git-version-gen: Use "git status", not "git-status".
51922
51923 2008-02-07  Bruno Haible  <bruno@clisp.org>
51924
51925         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51926         Avoids a crash on Windows Vista.
51927         Reported by Adam Strzelecki <ono@java.pl> via
51928         Simon Josefsson <simon@josefsson.org>.
51929
51930 2008-02-06  Bruno Haible  <bruno@clisp.org>
51931
51932         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51933         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51934         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51936         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51937         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51938         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51939         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51941         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51942         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51943         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51944         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51945         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51946         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51947         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51948         left-adjust flag.
51949         * tests/test-snprintf-posix.h (test_function): Likewise.
51950         * tests/test-sprintf-posix.h (test_function): Likewise.
51951         * tests/test-vasprintf-posix.c (test_function): Likewise.
51952         * doc/posix-functions/fprintf.texi: Update.
51953         * doc/posix-functions/printf.texi: Update.
51954         * doc/posix-functions/snprintf.texi: Update.
51955         * doc/posix-functions/sprintf.texi: Update.
51956         * doc/posix-functions/vfprintf.texi: Update.
51957         * doc/posix-functions/vprintf.texi: Update.
51958         * doc/posix-functions/vsnprintf.texi: Update.
51959         * doc/posix-functions/vsprintf.texi: Update.
51960         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51961
51962 2008-02-06  Bruno Haible  <bruno@clisp.org>
51963
51964         Fix bug introduced on 2008-01-26.
51965         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51966
51967 2008-02-06  Bruno Haible  <bruno@clisp.org>
51968
51969         Fix bug introduced on 2007-06-10.
51970         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51971         !NEED_PRINTF_FLAG_ZERO.
51972
51973 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51974
51975         getloadavg: use libperfstat on AIX5
51976         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51977
51978 2008-02-03  Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/diffseq.h: Add comments about required #includes.
51981         Reported by Michael Biggs <gnulib@doubleplum.net>.
51982
51983 2008-02-01  Bruno Haible  <bruno@clisp.org>
51984
51985         * users.txt: Add gnuit.
51986
51987 2008-01-31  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/md4.c (set_uint32): Mark as inline.
51990         * lib/md5.c (set_uint32): Likewise.
51991         * lib/sha1.c (set_uint32): Likewise.
51992         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51993         * m4/md5.m4 (gl_MD5): Likewise.
51994         * m4/sha1.m4 (gl_SHA1): Likewise.
51995
51996 2008-01-31  Jim Meyering  <meyering@redhat.com>
51997
51998         Use "sizeof VAR", rather than a literal "4".
51999         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52000         * lib/md4.c (md4_read_ctx): Likewise.
52001         * lib/sha1.c (sha1_read_ctx): Likewise.
52002
52003 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52004
52005         * tests/test-sha1.c: New file, based on test-md5.c.
52006
52007         * modules/crypto/sha1-tests: New file.
52008
52009 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52010
52011         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52012
52013 2008-01-31  Jim Meyering  <meyering@redhat.com>
52014
52015         Prefer "sizeof v" over the equivalent "4".
52016         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52017         * lib/md5.c (set_uint32): Likewise.
52018         * lib/sha1.c (set_uint32): Likewise.
52019
52020 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52021
52022         * lib/sha1.c (set_uint32): Mark function as static.
52023
52024 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52025
52026         md2: clarify comments to say that alignment is not required.
52027         * lib/md2.h: Remove warning about alignment in comment.
52028         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52029         never been required.
52030
52031 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52032
52033         md4: adapt alignment constraint fix from sha1.
52034         * lib/md4.c (set_uint32): New function, from sha1.c
52035         (md4_read_ctx): Use it.
52036         (md4_finish_ctx): Doc fix.
52037         * lib/md4.h: Doc fix.
52038
52039 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52040
52041         md5: adapt alignment constraint fix from sha1.
52042         * lib/md5.c (set_uint32): New function, from sha1.c
52043         (md5_read_ctx): Use it.
52044         (md5_finish_ctx): Doc fix.
52045         * lib/md5.h: Doc fix.
52046
52047 2008-01-30  Peter Palfrader  <weasel@debian.org>
52048
52049         sha1: remove the result buffer alignment constraint
52050         * lib/sha1.c (set_uint32): New function.
52051         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52052         constraint.
52053         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52054         * lib/sha1.h: Likewise.
52055
52056 2008-01-30  Andreas Schwab  <schwab@suse.de>
52057             Bruno Haible  <bruno@clisp.org>
52058
52059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52060         correct definition of LDBL_MIN_EXP.
52061
52062 2008-01-30  Karl Berry  <karl@gnu.org>
52063
52064         * config/srclist-update: try to preserve x bit on updates.
52065         * config/srclistvars.sh: update for karl.
52066
52067 2008-01-29  Jim Meyering  <meyering@redhat.com>
52068
52069         vasnprintf.c: Avoid warning about unused label
52070         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52071         "overflow" label definition and associated code with the
52072         same cpp condition that guards the sole use of that label.
52073
52074 2008-01-26  Bruno Haible  <bruno@clisp.org>
52075
52076         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52077         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52078         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52079         * lib/isnanl-nolibm.h (isnanl): Likewise.
52080         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52081
52082 2008-01-26  Bruno Haible  <bruno@clisp.org>
52083
52084         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52085         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52086
52087 2008-01-26  Bruno Haible  <bruno@clisp.org>
52088
52089         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52090         GCC >= 4.0 built-in.
52091         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52092
52093 2008-01-26  Bruno Haible  <bruno@clisp.org>
52094
52095         Rename isnan, applicable to 'double' only, to isnand.
52096         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52097         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52098         (configure.ac): Update.
52099         (Include): Replace "isnan.h" with "isnand.h".
52100         * m4/isnand.m4: Renamed from m4/isnan.m4.
52101         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52102         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52103         instead of isnan.c.
52104         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52105         instead of HAVE_ISNAN_IN_LIBC.
52106         (isnand): Renamed from isnan.
52107         * lib/isnand.c: New file.
52108         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52109         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52110         (Makefile.am): Update.
52111         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52112         Include isnand.h instead of isnan.h.
52113         (main): Test isnand instead of isnan.
52114         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52115         isnan-nolibm.
52116         * modules/frexp (Depends-on): Likewise.
52117         * modules/frexp-tests (Depends-on): Likewise.
52118         * modules/frexp-nolibm (Depends-on): Likewise.
52119         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52120         * modules/isfinite (Depends-on): Likewise.
52121         * modules/round-tests (Depends-on): Likewise.
52122         * modules/signbit (Depends-on): Likewise.
52123         * modules/signbit-tests (Depends-on): Likewise.
52124         * modules/snprintf-posix (Depends-on): Likewise.
52125         * modules/sprintf-posix (Depends-on): Likewise.
52126         * modules/trunc-tests (Depends-on): Likewise.
52127         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52128         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52129         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52130         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52131         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52132         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52133         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52134         * modules/vasnprintf-posix (Depends-on): Likewise.
52135         * modules/vasprintf-posix (Depends-on): Likewise.
52136         * modules/vfprintf-posix (Depends-on): Likewise.
52137         * modules/vsnprintf-posix (Depends-on): Likewise.
52138         * modules/vsprintf-posix (Depends-on): Likewise.
52139         * lib/frexp.c: Include isnand.h instead of isnan.h.
52140         (ISNAN): Set to isnand instead of isnan.
52141         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52142         (gl_isfinited): Use isnand instead of isnan.
52143         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52144         (gl_signbitd): Use isnand instead of isnan.
52145         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52146         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52147         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52148         (main): Use isnand instead of isnan.
52149         * tests/test-round1.c: Include isnand.h.
52150         (main): Use isnand instead of isnan.
52151         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52152         (ISNAN): Set to isnand instead of isnan.
52153         * tests/test-trunc1.c: Include isnand.h.
52154         (main): Use isnand instead of isnan.
52155         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52156         (equal): Use isnand instead of isnan.
52157         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52158         isnand-nolibm.
52159         * NEWS: Mention the change.
52160
52161 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52162             Bruno Haible  <bruno@clisp.org>
52163
52164         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52165         the GCC builtins for signbits are present and set
52166         REPLACE_SIGNBIT_USING_GCC if so.
52167         * lib/math.in.h (signbit): Define using GCC builtins if
52168         REPLACE_SIGNBIT_USING_GCC is set.
52169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52170         REPLACE_SIGNBIT_USING_GCC.
52171         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52172
52173 2008-01-25  Jim Meyering  <meyering@redhat.com>
52174
52175         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52176         * lib/poll.c: Include <config.h>, not "config.h".
52177         * tests/test-getaddrinfo.c: Likewise.
52178
52179 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52180
52181         * modules/sockets-tests: New file.
52182
52183 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52184
52185         * modules/sockets: New module, can be used to call WSA_Startup and
52186         WSA_Cleanup when needed.
52187
52188         * lib/sockets.h, lib/sockets.c: New files.
52189
52190         * m4/sockets.m4: New file.
52191
52192         * tests/test-sockets.c: New file.
52193
52194 2008-01-19  Bruno Haible  <bruno@clisp.org>
52195
52196         * doc/posix-headers: Renamed from doc/headers.
52197         * doc/posix-functions: Renamed from doc/functions.
52198         * doc/gnulib.texi: Update.
52199
52200 2008-01-19  Bruno Haible  <bruno@clisp.org>
52201
52202         * doc/glibc-functions/strcasestr.texi: Include contents of
52203         doc/functions/strcasestr.texi, fixing the list of platforms.
52204         * doc/functions/strcasestr.texi: Remove file.
52205
52206 2008-01-19  Bruno Haible  <bruno@clisp.org>
52207
52208         * doc/glibc-functions/memmem.texi: Include contents of
52209         doc/functions/memmem.texi.
52210         * doc/functions/memmem.texi: Remove file.
52211
52212 2008-01-18  Bruno Haible  <bruno@clisp.org>
52213
52214         * doc/glibc-functions/*.texi: New files.
52215         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52216         to use the new files.
52217
52218 2008-01-17  Bruno Haible  <bruno@clisp.org>
52219
52220         * tests/test-gethostname.c (main): Fix printf statement.
52221
52222 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52223
52224         * modules/gethostname-tests: New file.
52225
52226         * tests/test-gethostname.c: New file.
52227
52228 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52229
52230         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52231         used by the UNAME case.  Reported by Bruno Haible
52232         <bruno@clisp.org>.
52233
52234 2008-01-17  Eric Blake  <ebb9@byu.net>
52235
52236         Convert c-strcasestr to be more efficient.
52237         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52238         (Depends-on): Add c-strcase, remove malloca, strnlen.
52239         * tests/test-c-strcasestr.c (main): Enhance test.
52240         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52241
52242 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52243
52244         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52245         Use it in creating po/Makevars.
52246
52247 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52248
52249         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52250         Applications that requires it should initialize libgcrypt
52251         manually.
52252
52253 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52254
52255         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52256
52257 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52258
52259         Fix problem with getdate on mingw32 reported by Simon Josefsson
52260         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52261         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52262         tzname", when deciding whether to declare tzname.
52263         * lib/strftime.c (tzname): Likewise.
52264
52265 2008-01-15  Bruno Haible  <bruno@clisp.org>
52266
52267         Work around a MacOS X 10.5 bug in frexpl().
52268         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52269         * doc/functions/frexpl.texi: Document the bug.
52270         Reported by Elias Pipping <pipping@gentoo.org>.
52271
52272 2008-01-14  Eric Blake  <ebb9@byu.net>
52273
52274         Touch up previous patch.
52275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52276         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52277
52278         Convert strcasestr module to use Two-Way algorithm.
52279         * modules/strcasestr-simple: New module, based on the old
52280         strcasestr, but with Two-Way rather than KMP.
52281         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52282         * lib/string.in.h (rpl_strcasestr): Declare.
52283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52284         performance.
52285         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52286         * modules/string (Makefile.am): Support strcasestr.
52287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52288         * modules/strcasestr-tests (Depends-on): Check for alarm.
52289         * tests/test-strcasestr.c: Augment test.
52290         * lib/str-two-way.h: Clean up stray macro.
52291         * NEWS: Document new module.
52292         * MODULES.html.sh (string handling): Likewise.
52293         * doc/functions/strcasestr.texi: New file.
52294         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52295         here, since it is not a POSIX function.
52296
52297 2008-01-14  Colin Watson  <cjwatson@debian.org>
52298             Bruno Haible  <bruno@clisp.org>
52299
52300         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52301         works fine; if not, set REPLACE_STRSIGNAL.
52302         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52304         REPLACE_STRSIGNAL.
52305         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52306         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52307         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52308
52309 2008-01-14  Bruno Haible  <bruno@clisp.org>
52310
52311         * modules/strsignal (Include): Change to <string.h>.
52312
52313 2008-01-14  Colin Watson  <cjwatson@debian.org>
52314
52315         * modules/argp (Notice): Add a notice recommending to change
52316         XGETTEXT_OPTIONS.
52317         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52318
52319 2008-01-13  Colin Watson  <cjwatson@debian.org>
52320
52321         * modules/strsignal-tests: New file.
52322         * tests/test-strsignal.c: New file.
52323
52324         * lib/strsignal.c: New file, from glibc with modifications.
52325         * lib/siglist.h: New file, from glibc with modifications.
52326         * lib/string.in.h (strsignal): New declaration.
52327         * m4/strsignal.m4: New file.
52328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52329         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52330         * modules/strsignal: New file.
52331         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52332         HAVE_DECL_STRSIGNAL.
52333
52334 2008-01-13  Bruno Haible  <bruno@clisp.org>
52335
52336         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52337         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52338         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52339         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52340
52341 2008-01-13  Bruno Haible  <bruno@clisp.org>
52342
52343         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52344         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52345         * lib/argp.h (__attribute__): Likewise.
52346         * lib/c-stack.c (__attribute__): Likewise.
52347         * lib/error.h (__attribute__): Likewise.
52348         * lib/fts.c (__attribute__): Likewise.
52349         * lib/openat.h (__attribute__): Likewise.
52350         * lib/stdio.in.h (__attribute__): Likewise.
52351         * lib/string.in.h (__attribute__): Likewise.
52352         * lib/utimens.c (__attribute__): Likewise.
52353         * lib/vasnprintf.h (__attribute__): Likewise.
52354         * lib/xalloc.h (__attribute__): Likewise.
52355         * lib/xprintf.h (__attribute__): Likewise.
52356         * lib/xstrtol.h (__attribute__): Likewise.
52357         * lib/xvasprintf.h (__attribute__): Likewise.
52358
52359 2008-01-12  Bruno Haible  <bruno@clisp.org>
52360
52361         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52362         * doc/glibc-headers/a.out.texi: New file.
52363         * doc/glibc-headers/aliases.texi: New file.
52364         * doc/glibc-headers/alloca.texi: New file.
52365         * doc/glibc-headers/ar.texi: New file.
52366         * doc/glibc-headers/argp.texi: New file.
52367         * doc/glibc-headers/argz.texi: New file.
52368         * doc/glibc-headers/byteswap.texi: New file.
52369         * doc/glibc-headers/crypt.texi: New file.
52370         * doc/glibc-headers/endian.texi: New file.
52371         * doc/glibc-headers/envz.texi: New file.
52372         * doc/glibc-headers/err.texi: New file.
52373         * doc/glibc-headers/error.texi: New file.
52374         * doc/glibc-headers/execinfo.texi: New file.
52375         * doc/glibc-headers/fpu_control.texi: New file.
52376         * doc/glibc-headers/fstab.texi: New file.
52377         * doc/glibc-headers/fts.texi: New file.
52378         * doc/glibc-headers/getopt.texi: New file.
52379         * doc/glibc-headers/ieee754.texi: New file.
52380         * doc/glibc-headers/ifaddrs.texi: New file.
52381         * doc/glibc-headers/libintl.texi: New file.
52382         * doc/glibc-headers/mcheck.texi: New file.
52383         * doc/glibc-headers/mntent.texi: New file.
52384         * doc/glibc-headers/obstack.texi: New file.
52385         * doc/glibc-headers/paths.texi: New file.
52386         * doc/glibc-headers/printf.texi: New file.
52387         * doc/glibc-headers/pty.texi: New file.
52388         * doc/glibc-headers/resolv.texi: New file.
52389         * doc/glibc-headers/shadow.texi: New file.
52390         * doc/glibc-headers/sysexits.texi: New file.
52391         * doc/glibc-headers/ttyent.texi: New file.
52392
52393 2008-01-12  Jim Meyering  <meyering@redhat.com>
52394
52395         announce-gen: emit Gnulib's git-based version string.
52396         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52397         New option --gnulib-version=V, where V is expected to be
52398         the output of running git describe in the gnulib directory.
52399         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52400         not useful, and plan to stop publishing an xdelta file with each
52401         coreutils release.
52402
52403         * build-aux/announce-gen: Also check for lzma-compressed files.
52404
52405 2008-01-11  Bruno Haible  <bruno@clisp.org>
52406
52407         * tests/test-memmem.c (main): Increase maximum allowed time.
52408         * tests/test-strstr.c (main): Likewise.
52409
52410 2008-01-11  Bruno Haible  <bruno@clisp.org>
52411
52412         * doc/functions/memmem.texi: Add more precisions about platforms.
52413         * doc/functions/strstr.texi: Likewise.
52414
52415 2008-01-10  Eric Blake  <ebb9@byu.net>
52416
52417         * m4/strstr.m4: Delete cruft from copy-n-paste.
52418         Reported by Bruno Haible.
52419
52420 2008-01-10  Bruno Haible  <bruno@clisp.org>
52421
52422         Make c-strstr rely on strstr.
52423         * lib/c-strstr.c: Don't include str-kmp.h.
52424         (c_strstr): Define in terms of strstr.
52425         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52426         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52427
52428 2008-01-10  Bruno Haible  <bruno@clisp.org>
52429
52430         * doc/gnulib.texi (String Functions in C Locale): New section.
52431         * doc/c-ctype.texi: New file.
52432         * doc/c-strcase.texi: New file.
52433         * doc/c-strcaseeq.texi: New file.
52434         * doc/c-strcasestr.texi: New file.
52435         * doc/c-strstr.texi: New file.
52436         * doc/c-strtod.texi: New file.
52437         * doc/c-strtold.texi: New file.
52438
52439 2008-01-10  Eric Blake  <ebb9@byu.net>
52440
52441         * lib/relocatable.h: Fix a comment.
52442
52443 2008-01-10  Eric Blake  <ebb9@byu.net>
52444
52445         Share two-way algorithm.
52446         * lib/str-two-way.h: New file, merged from...
52447         * lib/memmem.c: ...here...
52448         * lib/strstr.c: ...and here.
52449         * modules/memmem (Files): Use it.
52450         * modules/strstr (Files): Likewise.
52451
52452         Avoid quadratic strstr implementations.
52453         * lib/strstr.c: New file.
52454         * m4/strstr.m4: Likewise.
52455         * modules/strstr: Likewise.
52456         * modules/strstr-tests: Likewise.
52457         * tests/test-strstr.c: Likewise.
52458         * lib/string.in.h (rpl_strstr): Declare.
52459         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52461         * modules/string (Makefile.am): Likewise.
52462         * MODULES.html.sh (string handling): Mention new module.
52463         * doc/functions/strstr.texi (strstr): Document the bug.
52464
52465 2008-01-10  Bruno Haible  <bruno@clisp.org>
52466
52467         * lib/relocatable.h (relocate): State whether result is freshly
52468         allocated or not.
52469         * lib/relocatable.c (relocate): Return a freshly allocated string
52470         instead of a pointer to a privately held string.
52471         Reported by Sylvain Beucler <beuc@gnu.org>.
52472
52473 2008-01-10  Colin Watson  <cjwatson@debian.org>
52474
52475         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52476         s/S_ISNLK/S_ISLNK/.
52477
52478 2008-01-09  Bruno Haible  <bruno@clisp.org>
52479
52480         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52481         and other files.
52482         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52483         if it's only a guess.
52484         * modules/memmem: Simplify by depending on memmem-simple.
52485
52486 2008-01-09  Bruno Haible  <bruno@clisp.org>
52487
52488         Work around OpenBSD 4.0 tdelete() bug.
52489         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52490         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52491         macros and don't redefine the enum values.
52492         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52493         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52494         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52495
52496 2008-01-09  Bruno Haible  <bruno@clisp.org>
52497
52498         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52499         (main): Don't perform the tests if setlocale did not install a UTF-8
52500         locale. Needed on OpenBSD 4.0.
52501         * modules/wcwidth-tests (Depends-on): Add localcharset.
52502
52503 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52504
52505         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52506         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52507         * NEWS: announce this.
52508         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52509
52510 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52511         and Eric Blake  <ebb9@byu.net>
52512
52513         Add memmem-simple module.
52514         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52515         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52516         * modules/memmem-simple: New file.
52517         * modules/memmem (Description): Tweak.
52518         * MODULES.html.sh (string handling): Mention new module.
52519         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52520         addressed by memmem-simple.
52521         * NEWS: Document the difference.
52522
52523 2008-01-09  Eric Blake  <ebb9@byu.net>
52524
52525         Give gcc some memmem optimization hints.
52526         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52527         (strcasestr): Declare as pure.
52528         * modules/memmem (Maintainer): Claim my implementation.
52529
52530 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52531
52532         Support AIX 6.1 and higher.
52533         * build-aux/config.libpath: Likewise.
52534         * build-aux/config.rpath: Likewise.
52535
52536 2008-01-08  Jim Meyering  <meyering@redhat.com>
52537             Bruno Haible  <bruno@clisp.org>
52538
52539         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52540         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52541         Reported by Peter Fales in
52542         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52543
52544 2008-01-08  Bruno Haible  <bruno@clisp.org>
52545
52546         * modules/unictype/category-of (Depends-on): Add
52547         unictype/category-none.
52548         * modules/unictype/category-and-tests (Depends-on): Add
52549         unictype/category-{L,N,Lu,Nd}.
52550         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52551         * modules/unictype/category-or-tests (Depends-on): Add
52552         unictype/category-{L,N}.
52553         * modules/unictype/category-name-tests (Depends-on): Add
52554         unictype/category-{Z,Nl}.
52555         Reported by Simon Josefsson.
52556
52557 2008-01-08  Bruno Haible  <bruno@clisp.org>
52558
52559         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52560         convention better.
52561         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52562         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52563         Reported by Peter Miller <millerp@canb.auug.org.au>.
52564
52565 2008-01-08  Eric Blake  <ebb9@byu.net>
52566
52567         Rewrite memmem to guarantee linear complexity without malloc.
52568         * lib/memmem.c (memmem): Use Two-Way rather than
52569         Knuth-Morris-Pratt, to allow O(1) space usage.
52570         (critical_factorization, two_way_short_needle)
52571         (two_way_long_needle): New functions.
52572         (knuth_morris_pratt): Delete.
52573         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52574         Add stdint.
52575         * tests/test-memmem.c (main): Add tests for periodic needle and
52576         sublinear performance.
52577         * doc/functions/memmem.texi (memmem): Document other deficiencies
52578         in cygwin and older glibc.
52579
52580 2008-01-08  Bruno Haible  <bruno@clisp.org>
52581
52582         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52583         augmentation.
52584
52585 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52586
52587         Add a configure time option: --disable-acl.
52588         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52589         AC_ARG_ENABLE(acl).
52590
52591 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52592
52593         * tests/test-localename.c: Don't include obsolete "setenv.h".
52594
52595         * modules/localename-tests (Depends-on): Need unsetenv.
52596
52597 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52598
52599         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52600
52601 2008-01-06  Colin Watson  <cjwatson@debian.org>
52602
52603         * users.txt: Add man-db.
52604
52605 2008-01-07  Bruno Haible  <bruno@clisp.org>
52606
52607         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52608         previous section name.
52609
52610 2008-01-07  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/progname.c (set_program_name): Don't strip off a leading
52613         "lt-" prefix outside a .libs directory.
52614         Suggested by Paul Eggert.
52615
52616 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52617             Bruno Haible  <bruno@clisp.org>
52618
52619         Improve memory cleanup in 'relocatable' module.
52620         * lib/relocatable.h (compute_curr_prefix): Change return type to
52621         'char *'.
52622         * lib/relocatable.c (compute_curr_prefix): Change return type to
52623         'char *'. Free curr_installdir after use.
52624         (relocate): Free curr_prefix_better after use.
52625         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52626
52627 2008-01-01  Bruno Haible  <bruno@clisp.org>
52628
52629         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52630         failure on older glibc systems.
52631         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52632
52633 2008-01-05  Eric Blake  <ebb9@byu.net>
52634
52635         Avoid quadratic system memmem.
52636         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52637         Reported by Ralf Wildenhues.
52638
52639         Fix memmem test for mingw.
52640         * modules/memmem-tests (configure.ac): Check for alarm.
52641         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52642         it.
52643         * doc/functions/memmem.texi: New file.
52644         * doc/gnulib.texi (Function Substitutes): Add memmem.
52645         Reported by Bruno Haible.
52646
52647 2008-01-04  Bruno Haible  <bruno@clisp.org>
52648
52649         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52650         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52651         gl_HEADER_STRING_H_DEFAULTS.
52652
52653 2008-01-04  Eric Blake  <ebb9@byu.net>
52654
52655         Shorten duration of memmem test.
52656         * tests/test-memmem.c (main): Use alarm to declare failure if test
52657         is taking too long.
52658         Reported by Ralf Wildenhues.
52659
52660 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52661
52662         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52663         string, needed by strerror.
52664
52665 2008-01-03  Colin Watson  <cjwatson@debian.org>
52666             Bruno Haible  <bruno@clisp.org>
52667
52668         * doc/gnulib-tool.texi (Localization): New section.
52669
52670 2008-01-02  Bruno Haible  <bruno@clisp.org>
52671
52672         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52673         variables to 'unsigned char *' type.
52674         Reported by Paul Eggert.
52675
52676 2008-01-02  Jim Meyering  <jim@meyering.net>
52677
52678         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52679
52680 2007-12-31  Jim Meyering  <jim@meyering.net>
52681
52682         Avoid use of private FTS type name.
52683         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52684
52685 2007-12-30  Karl Berry  <karl@gnu.org>
52686
52687         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52688         work around defect in Texinfo and/or the standalone Info browser.
52689
52690 2007-12-30  Bruno Haible  <bruno@clisp.org>
52691
52692         Unify 5 copies of the KMP code.
52693         * lib/str-kmp.h: New file.
52694         * lib/c-strcasestr.c: Include str-kmp.h.
52695         (knuth_morris_pratt): Remove function.
52696         (c_strcasestr): Update.
52697         * lib/c-strstr.c: Include str-kmp.h.
52698         (knuth_morris_pratt): Remove function.
52699         (c_strcasestr): Update.
52700         * lib/mbscasestr.c: Include str-kmp.h.
52701         (knuth_morris_pratt_unibyte): Remove function.
52702         * lib/mbsstr.c: Include str-kmp.h.
52703         (knuth_morris_pratt_unibyte): Remove function.
52704         * lib/strcasestr.c: Include str-kmp.h.
52705         (knuth_morris_pratt): Remove function.
52706         (strcasestr): Update.
52707         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52708         * modules/c-strstr (Files): Likewise.
52709         * modules/mbscasestr (Files): Likewise.
52710         * modules/mbsstr (Files): Likewise.
52711         * modules/strcasestr (Files): Likewise.
52712         Suggested by Paul Eggert.
52713
52714 2007-12-30  Bruno Haible  <bruno@clisp.org>
52715
52716         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52717         defined.
52718
52719 2007-12-30  Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/xmalloca.h: Include xalloc.h.
52722         (xnmalloca): New macro.
52723
52724 2007-12-30  Bruno Haible  <bruno@clisp.org>
52725
52726         * lib/malloca.h (nmalloca): New macro.
52727         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52728         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52729         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52730         knuth_morris_pratt_multibyte): Likewise.
52731         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52732         knuth_morris_pratt_multibyte): Likewise.
52733         * lib/memmem.c (knuth_morris_pratt): Likewise.
52734         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52735
52736 2007-12-25  Bruno Haible  <bruno@clisp.org>
52737
52738         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52739         * lib/glob.c: Don't include openat.h.
52740         (link_exists2_p): Add back the code that deals with the
52741         !GLOB_ALTDIRFUNC case.
52742         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52743         let it do the filename concatenation.
52744         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52745         * modules/glob (Depends-on): Remove openat.
52746
52747 2007-12-31  Bruno Haible  <bruno@clisp.org>
52748
52749         * modules/dirfd (License): Change to LGPLv2+.
52750         Approved by Jim Meyering.
52751
52752 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52753
52754         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52755         when multiplying M by sizeof (size_t).
52756
52757 2007-12-10  Martin Lambers  <marlam@marlam.de>
52758
52759         Override getpagesize on mingw.
52760         * lib/getpagesize.c: New file.
52761         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52762         * modules/getpagesize (Files): Add lib/getpagesize.c.
52763         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52765         REPLACE_GETPAGESIZE.
52766         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52767
52768 2007-12-25  Bruno Haible  <bruno@clisp.org>
52769
52770         * modules/localcharset (Notice): New field.
52771         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52772         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52773
52774 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52775             Bruno Haible  <bruno@clisp.org>
52776
52777         Avoid using the syntax symbol() in formatted documentation.
52778         * MODULES.html.sh (func_module): When replacing symbol() with a
52779         hyperlink, remove the parentheses. Show an error if some remain.
52780         Recognize and render the '...' syntax.
52781         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52782         Rework. Add paragraph about GCC's inlining.
52783         * doc/alloca.texi: Likewise.
52784         * doc/error.texi: Remove parentheses from symbol reference.
52785         * doc/gnulib-intro.texi: Likewise.
52786         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52787         * modules/fnmatch (Description): Reword to say "the ... function".
52788         * modules/full-read (Description): Likewise.
52789         * modules/full-write (Description): Likewise.
52790         * modules/safe-read (Description): Likewise.
52791         * modules/safe-write (Description): Likewise.
52792         * modules/strchrnul (Description): Likewise.
52793         * modules/trim (Description): Likewise.
52794         * modules/error (Description): Remove parentheses from symbol
52795         references.
52796         * modules/verror (Description): Likewise.
52797         Reported by Karl Berry.
52798
52799 2007-12-25  Bruno Haible  <bruno@clisp.org>
52800
52801         Fixup after 2007-10-16 commit.
52802         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52803
52804 2007-12-24  Bruno Haible  <bruno@clisp.org>
52805
52806         Make --enable-relocatable work with DESTDIR.
52807         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52808         to compute installdir from destprog.
52809         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52810         also set the RELOC_DESTDIR variable.
52811         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52812
52813 2007-12-24  Bruno Haible  <bruno@clisp.org>
52814
52815         Fix link error due to xalloc_die().
52816         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52817         of xreadlink.
52818         * lib/relocwrapper.c: Update comments.
52819         * build-aux/install-reloc: Remove xreadlink.c from file list.
52820         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52821         xreadlink.c.
52822         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52823
52824 2007-12-24  Bruno Haible  <bruno@clisp.org>
52825
52826         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52827         * lib/setenv.h: Remove file.
52828         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52829         lib/setenv.h.
52830         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52831         (Depends-on): Add stdlib.
52832         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52833         gl_FUNC_UNSETENV.
52834         (Include): Replace setenv.h with <stdlib.h>.
52835         * modules/unsetenv: New file.
52836         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52837         * lib/unsetenv.c: Include <stdlib.h> first.
52838         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52839         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52840         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52841         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52842         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52843         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52845         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52846         * doc/functions/unsetenv.texi: Update.
52847         * modules/xsetenv (Depends-on): Add unsetenv.
52848         * modules/getdate (Depends-on): Likewise.
52849         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52850         * lib/xsetenv.c: Don't include setenv.h.
52851         * lib/getdate.y: Likewise.
52852         * lib/relocwrapper.c: Likewise.
52853         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52854         (Depends-on): Add stdlib.
52855         * NEWS: Mention the changes.
52856         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52857
52858 2007-12-23  Bruno Haible  <bruno@clisp.org>
52859
52860         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52861         indentation.
52862
52863 2007-12-23  Bruno Haible  <bruno@clisp.org>
52864
52865         * lib/c-strcasestr.c: Add more comments.
52866         * lib/c-strstr.c: Likewise.
52867         * lib/mbscasestr.c: Likewise.
52868         * lib/mbsstr.c: Likewise.
52869         * lib/strcasestr.c: Likewise.
52870         * lib/memmem.c: Likewise.
52871
52872 2007-12-23  Bruno Haible  <bruno@clisp.org>
52873
52874         * tests/test-memmem.c: Include <string.h> first.
52875
52876 2007-12-22  Bruno Haible  <bruno@clisp.org>
52877
52878         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52879         the contents of $testsbase.
52880         Reported by Ralf Wildenhues.
52881
52882 2007-12-22  Bruno Haible  <bruno@clisp.org>
52883
52884         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52885         two variables local_ldadd_before, local_ldadd_last.
52886
52887 2007-12-20  Eric Blake  <ebb9@byu.net>
52888
52889         Work around circular library issue when cross-compiling.
52890         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52891         that progname.o does not need to pull in rpl_memcmp.
52892
52893 2007-12-19  Eric Blake  <ebb9@byu.net>
52894
52895         Fix memmem to avoid O(n^2) worst-case complexity.
52896         * lib/memmem.c (knuth_morris_pratt): New function.
52897         (memmem): Use it if first few naive iterations fail.
52898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52899         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52900         * modules/memchr (License): Likewise.
52901         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52902         malloca.
52903         * tests/test-memmem.c: Rewrite, borrowing ideas from
52904         test-mbsstr1.c; the old version wouldn't even compile!
52905         * modules/memmem-tests: New file.
52906         * lib/string.in.h (rpl_memmem): Add declaration.
52907         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52909         REPLACE_MEMMEM.
52910
52911 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52912
52913         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52914         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52915         before any system include files, and undef after them all.  This
52916         should fix a problem on VMS reported by John E. Malmberg in
52917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52918
52919 2007-12-17  Eric Blake  <ebb9@byu.net>
52920
52921         Revert addition of verify, for BSD/OS.
52922         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52923         can't handle large files, for the sake of obsolete platforms.
52924         * modules/fseeko (Depends-on): Remove verify.
52925         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52926         * doc/functions/ftello.texi (ftello): Likewise.
52927         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52928         Reported by Larry Jones.
52929
52930 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52931
52932         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52933         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52934
52935 2007-12-17  Jim Meyering  <meyering@redhat.com>
52936
52937         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52938         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52939         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52940         * modules/getcwd (Depends-on): Add openat.
52941         Reported by Petr Salinger.
52942
52943 2007-12-17  Bruno Haible  <bruno@clisp.org>
52944
52945         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52946         avoid a segmentation fault of the configure test on x86_64 systems.
52947
52948 2007-12-15  Jim Meyering  <meyering@redhat.com>
52949
52950         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52951
52952 2007-12-13  Eric Blake  <ebb9@byu.net>
52953
52954         Another fseek test.
52955         * tests/test-fseek.c (main): Also test ungetc handling.
52956         * tests/test-fseeko.c (main): Likewise.
52957         * modules/fseeko (Depends-on): Add verify.
52958         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52959         large.
52960         Reported by Larry Jones.
52961
52962         Fix fseeko on mingw.
52963         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52964         seek.
52965
52966         Beef up fseek tests.
52967         * tests/test-fseek.c (main): Also test eof handling.
52968         * tests/test-fseeko.c (main): Likewise.
52969         Reported by Larry Jones.
52970
52971 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52972
52973         Fix fseeko on BSD-based platforms.
52974         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52975         successful seek.
52976
52977 2007-12-12  Eric Blake  <ebb9@byu.net>
52978
52979         Allow circular dependency of separate libtests.a
52980         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52981         when use_libtests.
52982
52983 2007-12-11  Eric Blake  <ebb9@byu.net>
52984
52985         Fix bug with -0.0L in previous patch.
52986         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52987         * tests/test-isnan.c (main): Also test on zeroes.
52988         * tests/test-isnanf.c (main): Likewise.
52989         * tests/test-isnanl.h (main): Likewise.
52990
52991         Detect pseudo-denormals on x86 even when cross-compiling.
52992         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52993         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52994         invalid bit patterns that happen to satisfy ==.
52995
52996         Avoid link failures with separate libtests.a.
52997         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52998         last, to satisfy circular dependencies.
52999
53000 2007-12-11  Eric Blake  <ebb9@byu.net>
53001         and Bruno Haible  <bruno@clisp.org>
53002
53003         Fix OpenBSD 4.0 <float.h> handling of long double.
53004         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53005         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53006         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53007
53008 2007-12-11  Jim Meyering  <meyering@redhat.com>
53009
53010         * users.txt: Add libvirt.
53011
53012         Support versions of autoconf prior to 2.59c.
53013         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53014         if it is not already defined.
53015
53016 2007-12-09  Bruno Haible  <bruno@clisp.org>
53017
53018         Let 'gnulib-tool --import' collect sources needed for the tests in
53019         tests/ rather than in lib/.
53020         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53021         argument. If true, add rules to generate libtests.a, and put libtests.a
53022         into $(LDADD). Consider source files in subdirectories and set
53023         uses_subdirs.
53024         (func_emit_initmacro_start, func_emit_initmacro_end,
53025         func_emit_initmacro_done): Pass all arguments explicitly.
53026         (func_import): Determine two module lists main_modules,
53027         testsrelated_modules. Determine use_libtests. Determine two variables
53028         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53029         instead of just sed_transform_lib_file. Determine two variables
53030         main_files and testsrelated_files. Compute 'files' as the union of
53031         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53032         func_add_or_update. In the generated gnulib-comp.m4, collect the
53033         object files for tests/ in different variables than those for lib/.
53034         Substitute LIBTESTS_LIBDEPS.
53035         (func_create_testdir): Combine the uses_subdirs results from
53036         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53037
53038 2007-12-09  Bruno Haible  <bruno@clisp.org>
53039
53040         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53041         the build-aux directory.
53042
53043 2007-12-09  Bruno Haible  <bruno@clisp.org>
53044
53045         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53046         introduced on 2006-09-09.
53047
53048 2007-12-07  Jim Meyering  <meyering@redhat.com>
53049
53050         Let these macros work also with autoconf-2.59.
53051         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53052         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53053         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53054
53055 2007-12-06  Jim Meyering  <meyering@redhat.com>
53056
53057         Avoid a configure-time syntax error in gl_FUNC_ACL.
53058         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53059         function in each branch, before testing the cache variable.
53060
53061 2007-12-04  Eric Blake  <ebb9@byu.net>
53062
53063         Make scripts executable.
53064         * build-aux/config.guess: Add execute permissions.
53065         * build-aux/config.sub: Likewise.
53066         * build-aux/gendocs.sh: Likewise.
53067
53068         Fix frexp on mingw.
53069         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53070         cross-compiling.
53071         * doc/functions/frexp.texi (frexp): Document the bug.
53072
53073         Make cygwin fseeko check more reliable.
53074         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53075         version numbers, rather than unrelated feature check.
53076         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53077         * doc/functions/ftello.texi (ftello): Likewise.
53078         Reported by Bruno Haible.
53079
53080         * m4/strerror.m4: Bump version number.
53081
53082 2007-12-03  Bruno Haible  <bruno@clisp.org>
53083
53084         * doc/functions/mprotect.texi: Mention the mingw problem.
53085
53086 2007-12-03  Eric Blake  <ebb9@byu.net>
53087
53088         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53089         REPLACE_STRERROR is initialized before this macro.
53090
53091 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53092
53093         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53094         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53095         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53096         put -lsec in even for programs other than 'ls'.  This fixes a problem
53097         for gettext reported by Bruno Haible in
53098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53099         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53100         Add support for Solaris 10.  This isn't efficient, but should get the
53101         job done for now.
53102
53103 2007-12-03  James Youngman  <jay@gnu.org>
53104
53105         * doc/regexprops-generic.texi: change "an close-group" to "a
53106         close-group" and "illegal" to "not allowed".
53107
53108 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53109
53110         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53111         pr_byname.h. Needed for the rare case when the maintainer has done
53112         "make maintainer-clean" in the source directory and then attempts a
53113         build outside the source directory.
53114         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53115         scripts_byname.h.
53116
53117 2007-12-02  Martin Lambers <marlam@marlam.de>
53118             Bruno Haible  <bruno@clisp.org>
53119
53120         * lib/getpagesize.h: Remove file.
53121         * lib/unistd.in.h: Include declaration of getpagesize here.
53122         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53123         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53124         HAVE_SYS_PARAM_H.
53125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53126         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53127         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53128         (Depends-on): Add unistd.
53129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53130         (Include): Use <unistd.h> instead of getpagesize.h.
53131         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53132         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53133         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53134         gl_GETPAGESIZE invocation, already handled by module dependency.
53135         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53136
53137 2007-12-02  Bruno Haible  <bruno@clisp.org>
53138
53139         * modules/strings-tests: New file.
53140         * tests/test-strings.c: New file.
53141
53142         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53143         * lib/strings.in.h: New file.
53144         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53145         * m4/strings_h.m4: New file.
53146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53147         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53148         * modules/strings: New file.
53149         * modules/string (Makefile.am): Update.
53150         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53151         Reported by Karl Berry.
53152
53153 2007-12-01  Eric Blake  <ebb9@byu.net>
53154
53155         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53156         accomodate fix in cygwin 1.5.25.
53157
53158 2007-12-01  Jim Meyering  <meyering@redhat.com>
53159
53160         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53161         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53162         that would inhibit utf8-optimization of a regexp containing line-
53163         or buffer-anchors, e.g., `^', `$'.
53164
53165 2007-11-30  Bruno Haible  <bruno@clisp.org>
53166
53167         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53168         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53169         glthread_recursive_lock_init.
53170         * lib/lock.c (glthread_recursive_lock_init)
53171         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53172         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53173
53174 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53175
53176         New function qset_acl, like set_acl but with syscall semantics.
53177         * lib/acl.h (qset_acl): New decl.
53178         * lib/acl.c (qset_acl): New function.
53179         (set_acl): Use new function.  Use more-consistent diagnostics.
53180
53181 2007-11-28  Jim Meyering  <meyering@redhat.com>
53182
53183         * modules/physmem (License): Change from GPL to LGPLv2+.
53184
53185 2007-11-26  Bruno Haible  <bruno@clisp.org>
53186
53187         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53188         'long double' type has excess precision.
53189         Reported by Jim Meyering in
53190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53191
53192 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53193
53194         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53195         Sync from <http://gnu.org/licenses>.
53196         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53197         with license text from same location.
53198         * doc/maintain.texi, doc/standards.texi:  Sync from
53199         <http://savannah.gnu.org/projects/gnustandards>.
53200
53201 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53202         and Jim Meyering  <meyering@redhat.com>
53203
53204         Adjust getdate' grammar to accept a slightly more regular language.
53205         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53206         Before, the former was rejected.
53207         * lib/getdate.y (digits_to_date_time): New function, factored
53208         out of ...
53209         (number): ...here.  Just call digits_to_date_time.
53210         (hybrid): New non-terminal to handle an <unsigned number,
53211         signed relative offset> sequence consistently.
53212
53213 2007-11-18  Jim Meyering  <meyering@redhat.com>
53214
53215         Pull my changes from coreutils:
53216         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53217         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53218         use of $gnulib_tool_option_extras, so that it's separated from the
53219         preceding argument.
53220
53221         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53222         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53223         parent destination directories before copying a file into place.
53224
53225 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53226
53227         bootstrap: work also with 4-argument variant of AC_INIT
53228         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53229
53230 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         Port test-getaddrinfo to Solaris.
53233         Problem reported by Bruno Haible in
53234         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53235         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53236         explanation of setting 'hints'.
53237         Don't reject an implementation merely because it returns EAI_SERVICE.
53238         (EAI_SERVICE): Define to 0 if not defined.
53239
53240 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         The license of gnu-make and posix-shell is now "GPLed build tool".
53243         * modules/gnu-make (License): Likewise.
53244         * modules/posix-shell (License): Likewise.
53245
53246         New module posix-shell, for determining a POSIX shell
53247         or perhaps something that is close enough to a POSIX shell.
53248         * m4/posix-shell.m4: New file.
53249         * modules/posix-shell: New file.
53250
53251         * MODULES.html.sh: Mention new module.
53252
53253         New module gnu-make, for determining whether we're using GNU Make.
53254         * m4/gnu-make.m4: New file.
53255         * modules/gnu-make: New file.
53256         * MODULES.html.sh: Mention new module.
53257
53258 2007-11-14  Jim Meyering  <meyering@redhat.com>
53259
53260         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53261         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53262         use this macro to create a function _definition_.
53263         Remove useless "#undef ARGMATCH_DIE".
53264
53265 2007-11-14  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/config.charset: Update for OpenBSD 4.1.
53268         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53269
53270 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53271
53272         Document 64-bit #if problems in stdint.texi.
53273         * doc/headers/stdint.texi (stdint.h): Mention problems with
53274         64-bit-#if, and how to work around them.
53275
53276         Don't insist on 'long long int' support in the preprocessor.  It
53277         breaks too many things.  For example, PRIdMAX still uses a 'long
53278         long int' format with the latest Sun compiler, even though
53279         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53280         preprocessor problem.  This causes the latest coreutils to dump
53281         core on Solaris 10 sparc with the Sun C compiler.
53282         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53283         the troublesome expressions at configure-time, not at #if-time.
53284         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53285         preprocessor.
53286         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53287         compile-time C checks, done at 'configure'-time.
53288         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53289         * modules/inttypes (Makefile): Substitute the new symbols that
53290         gl_INTTYPES_H now generates.
53291         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53292
53293 2007-11-12  Bruno Haible  <bruno@clisp.org>
53294
53295         Tests for Unicode character classification functions.
53296
53297         * modules/unictype/bidicategory-byname-tests: New file.
53298         * modules/unictype/bidicategory-name-tests: New file.
53299         * modules/unictype/bidicategory-of-tests: New file.
53300         * modules/unictype/bidicategory-test-tests: New file.
53301         * modules/unictype/block-list-tests: New file.
53302         * modules/unictype/block-of-tests: New file.
53303         * modules/unictype/block-test-tests: New file.
53304         * modules/unictype/category-C-tests: New file.
53305         * modules/unictype/category-Cc-tests: New file.
53306         * modules/unictype/category-Cf-tests: New file.
53307         * modules/unictype/category-Cn-tests: New file.
53308         * modules/unictype/category-Co-tests: New file.
53309         * modules/unictype/category-Cs-tests: New file.
53310         * modules/unictype/category-L-tests: New file.
53311         * modules/unictype/category-Ll-tests: New file.
53312         * modules/unictype/category-Lm-tests: New file.
53313         * modules/unictype/category-Lo-tests: New file.
53314         * modules/unictype/category-Lt-tests: New file.
53315         * modules/unictype/category-Lu-tests: New file.
53316         * modules/unictype/category-M-tests: New file.
53317         * modules/unictype/category-Mc-tests: New file.
53318         * modules/unictype/category-Me-tests: New file.
53319         * modules/unictype/category-Mn-tests: New file.
53320         * modules/unictype/category-N-tests: New file.
53321         * modules/unictype/category-Nd-tests: New file.
53322         * modules/unictype/category-Nl-tests: New file.
53323         * modules/unictype/category-No-tests: New file.
53324         * modules/unictype/category-P-tests: New file.
53325         * modules/unictype/category-Pc-tests: New file.
53326         * modules/unictype/category-Pd-tests: New file.
53327         * modules/unictype/category-Pe-tests: New file.
53328         * modules/unictype/category-Pf-tests: New file.
53329         * modules/unictype/category-Pi-tests: New file.
53330         * modules/unictype/category-Po-tests: New file.
53331         * modules/unictype/category-Ps-tests: New file.
53332         * modules/unictype/category-S-tests: New file.
53333         * modules/unictype/category-Sc-tests: New file.
53334         * modules/unictype/category-Sk-tests: New file.
53335         * modules/unictype/category-Sm-tests: New file.
53336         * modules/unictype/category-So-tests: New file.
53337         * modules/unictype/category-Z-tests: New file.
53338         * modules/unictype/category-Zl-tests: New file.
53339         * modules/unictype/category-Zp-tests: New file.
53340         * modules/unictype/category-Zs-tests: New file.
53341         * modules/unictype/category-and-not-tests: New file.
53342         * modules/unictype/category-and-tests: New file.
53343         * modules/unictype/category-byname-tests: New file.
53344         * modules/unictype/category-name-tests: New file.
53345         * modules/unictype/category-none-tests: New file.
53346         * modules/unictype/category-of-tests: New file.
53347         * modules/unictype/category-or-tests: New file.
53348         * modules/unictype/category-test-withtable-tests: New file.
53349         * modules/unictype/combining-class-tests: New file.
53350         * modules/unictype/ctype-alnum-tests: New file.
53351         * modules/unictype/ctype-alpha-tests: New file.
53352         * modules/unictype/ctype-blank-tests: New file.
53353         * modules/unictype/ctype-cntrl-tests: New file.
53354         * modules/unictype/ctype-digit-tests: New file.
53355         * modules/unictype/ctype-graph-tests: New file.
53356         * modules/unictype/ctype-lower-tests: New file.
53357         * modules/unictype/ctype-print-tests: New file.
53358         * modules/unictype/ctype-punct-tests: New file.
53359         * modules/unictype/ctype-space-tests: New file.
53360         * modules/unictype/ctype-upper-tests: New file.
53361         * modules/unictype/ctype-xdigit-tests: New file.
53362         * modules/unictype/decimal-digit-tests: New file.
53363         * modules/unictype/digit-tests: New file.
53364         * modules/unictype/mirror-tests: New file.
53365         * modules/unictype/numeric-tests: New file.
53366         * modules/unictype/property-alphabetic-tests: New file.
53367         * modules/unictype/property-ascii-hex-digit-tests: New file.
53368         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53369         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53370         * modules/unictype/property-bidi-block-separator-tests: New file.
53371         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53372         * modules/unictype/property-bidi-common-separator-tests: New file.
53373         * modules/unictype/property-bidi-control-tests: New file.
53374         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53375         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53376         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53377         * modules/unictype/property-bidi-european-digit-tests: New file.
53378         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53379         * modules/unictype/property-bidi-left-to-right-tests: New file.
53380         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53381         * modules/unictype/property-bidi-other-neutral-tests: New file.
53382         * modules/unictype/property-bidi-pdf-tests: New file.
53383         * modules/unictype/property-bidi-segment-separator-tests: New file.
53384         * modules/unictype/property-bidi-whitespace-tests: New file.
53385         * modules/unictype/property-byname-tests: New file.
53386         * modules/unictype/property-combining-tests: New file.
53387         * modules/unictype/property-composite-tests: New file.
53388         * modules/unictype/property-currency-symbol-tests: New file.
53389         * modules/unictype/property-dash-tests: New file.
53390         * modules/unictype/property-decimal-digit-tests: New file.
53391         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53392         * modules/unictype/property-deprecated-tests: New file.
53393         * modules/unictype/property-diacritic-tests: New file.
53394         * modules/unictype/property-extender-tests: New file.
53395         * modules/unictype/property-format-control-tests: New file.
53396         * modules/unictype/property-grapheme-base-tests: New file.
53397         * modules/unictype/property-grapheme-extend-tests: New file.
53398         * modules/unictype/property-grapheme-link-tests: New file.
53399         * modules/unictype/property-hex-digit-tests: New file.
53400         * modules/unictype/property-hyphen-tests: New file.
53401         * modules/unictype/property-id-continue-tests: New file.
53402         * modules/unictype/property-id-start-tests: New file.
53403         * modules/unictype/property-ideographic-tests: New file.
53404         * modules/unictype/property-ids-binary-operator-tests: New file.
53405         * modules/unictype/property-ids-trinary-operator-tests: New file.
53406         * modules/unictype/property-ignorable-control-tests: New file.
53407         * modules/unictype/property-iso-control-tests: New file.
53408         * modules/unictype/property-join-control-tests: New file.
53409         * modules/unictype/property-left-of-pair-tests: New file.
53410         * modules/unictype/property-line-separator-tests: New file.
53411         * modules/unictype/property-logical-order-exception-tests: New file.
53412         * modules/unictype/property-lowercase-tests: New file.
53413         * modules/unictype/property-math-tests: New file.
53414         * modules/unictype/property-non-break-tests: New file.
53415         * modules/unictype/property-not-a-character-tests: New file.
53416         * modules/unictype/property-numeric-tests: New file.
53417         * modules/unictype/property-other-alphabetic-tests: New file.
53418         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53419         * modules/unictype/property-other-grapheme-extend-tests: New file.
53420         * modules/unictype/property-other-id-continue-tests: New file.
53421         * modules/unictype/property-other-id-start-tests: New file.
53422         * modules/unictype/property-other-lowercase-tests: New file.
53423         * modules/unictype/property-other-math-tests: New file.
53424         * modules/unictype/property-other-uppercase-tests: New file.
53425         * modules/unictype/property-paired-punctuation-tests: New file.
53426         * modules/unictype/property-paragraph-separator-tests: New file.
53427         * modules/unictype/property-pattern-syntax-tests: New file.
53428         * modules/unictype/property-pattern-white-space-tests: New file.
53429         * modules/unictype/property-private-use-tests: New file.
53430         * modules/unictype/property-punctuation-tests: New file.
53431         * modules/unictype/property-quotation-mark-tests: New file.
53432         * modules/unictype/property-radical-tests: New file.
53433         * modules/unictype/property-sentence-terminal-tests: New file.
53434         * modules/unictype/property-soft-dotted-tests: New file.
53435         * modules/unictype/property-space-tests: New file.
53436         * modules/unictype/property-terminal-punctuation-tests: New file.
53437         * modules/unictype/property-test-tests: New file.
53438         * modules/unictype/property-titlecase-tests: New file.
53439         * modules/unictype/property-unassigned-code-value-tests: New file.
53440         * modules/unictype/property-unified-ideograph-tests: New file.
53441         * modules/unictype/property-uppercase-tests: New file.
53442         * modules/unictype/property-variation-selector-tests: New file.
53443         * modules/unictype/property-white-space-tests: New file.
53444         * modules/unictype/property-xid-continue-tests: New file.
53445         * modules/unictype/property-xid-start-tests: New file.
53446         * modules/unictype/property-zero-width-tests: New file.
53447         * modules/unictype/scripts-tests: New file.
53448         * modules/unictype/syntax-c-ident-tests: New file.
53449         * modules/unictype/syntax-c-whitespace-tests: New file.
53450         * modules/unictype/syntax-java-ident-tests: New file.
53451         * modules/unictype/syntax-java-whitespace-tests: New file.
53452         * tests/unictype/test-bidi_byname.c: New file.
53453         * tests/unictype/test-bidi_name.c: New file.
53454         * tests/unictype/test-bidi_of.c: New file.
53455         * tests/unictype/test-bidi_test.c: New file.
53456         * tests/unictype/test-block_list.c: New file.
53457         * tests/unictype/test-block_of.c: New file.
53458         * tests/unictype/test-block_test.c: New file.
53459         * tests/unictype/test-categ_and.c: New file.
53460         * tests/unictype/test-categ_and_not.c: New file.
53461         * tests/unictype/test-categ_byname.c: New file.
53462         * tests/unictype/test-categ_name.c: New file.
53463         * tests/unictype/test-categ_none.c: New file.
53464         * tests/unictype/test-categ_of.c: New file.
53465         * tests/unictype/test-categ_or.c: New file.
53466         * tests/unictype/test-categ_test_withtable.c: New file.
53467         * tests/unictype/test-combining.c: New file.
53468         * tests/unictype/test-decdigit.c: New file.
53469         * tests/unictype/test-digit.c: New file.
53470         * tests/unictype/test-mirror.c: New file.
53471         * tests/unictype/test-numeric.c: New file.
53472         * tests/unictype/test-pr_byname.c: New file.
53473         * tests/unictype/test-pr_test.c: New file.
53474         * tests/unictype/test-predicate-part1.h: New file.
53475         * tests/unictype/test-predicate-part2.h: New file.
53476         * tests/unictype/test-scripts.c: New file.
53477         * tests/unictype/test-sy_c_ident.c: New file.
53478         * tests/unictype/test-sy_java_ident.c: New file.
53479
53480         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53481         for Unicode 5.0.0.
53482         * tests/unictype/test-categ_Cc.c: Likewise.
53483         * tests/unictype/test-categ_Cf.c: Likewise.
53484         * tests/unictype/test-categ_Cn.c: Likewise.
53485         * tests/unictype/test-categ_Co.c: Likewise.
53486         * tests/unictype/test-categ_Cs.c: Likewise.
53487         * tests/unictype/test-categ_L.c: Likewise.
53488         * tests/unictype/test-categ_Ll.c: Likewise.
53489         * tests/unictype/test-categ_Lm.c: Likewise.
53490         * tests/unictype/test-categ_Lo.c: Likewise.
53491         * tests/unictype/test-categ_Lt.c: Likewise.
53492         * tests/unictype/test-categ_Lu.c: Likewise.
53493         * tests/unictype/test-categ_M.c: Likewise.
53494         * tests/unictype/test-categ_Mc.c: Likewise.
53495         * tests/unictype/test-categ_Me.c: Likewise.
53496         * tests/unictype/test-categ_Mn.c: Likewise.
53497         * tests/unictype/test-categ_N.c: Likewise.
53498         * tests/unictype/test-categ_Nd.c: Likewise.
53499         * tests/unictype/test-categ_Nl.c: Likewise.
53500         * tests/unictype/test-categ_No.c: Likewise.
53501         * tests/unictype/test-categ_P.c: Likewise.
53502         * tests/unictype/test-categ_Pc.c: Likewise.
53503         * tests/unictype/test-categ_Pd.c: Likewise.
53504         * tests/unictype/test-categ_Pe.c: Likewise.
53505         * tests/unictype/test-categ_Pf.c: Likewise.
53506         * tests/unictype/test-categ_Pi.c: Likewise.
53507         * tests/unictype/test-categ_Po.c: Likewise.
53508         * tests/unictype/test-categ_Ps.c: Likewise.
53509         * tests/unictype/test-categ_S.c: Likewise.
53510         * tests/unictype/test-categ_Sc.c: Likewise.
53511         * tests/unictype/test-categ_Sk.c: Likewise.
53512         * tests/unictype/test-categ_Sm.c: Likewise.
53513         * tests/unictype/test-categ_So.c: Likewise.
53514         * tests/unictype/test-categ_Z.c: Likewise.
53515         * tests/unictype/test-categ_Zl.c: Likewise.
53516         * tests/unictype/test-categ_Zp.c: Likewise.
53517         * tests/unictype/test-categ_Zs.c: Likewise.
53518         * tests/unictype/test-ctype_alnum.c: Likewise.
53519         * tests/unictype/test-ctype_alpha.c: Likewise.
53520         * tests/unictype/test-ctype_blank.c: Likewise.
53521         * tests/unictype/test-ctype_cntrl.c: Likewise.
53522         * tests/unictype/test-ctype_digit.c: Likewise.
53523         * tests/unictype/test-ctype_graph.c: Likewise.
53524         * tests/unictype/test-ctype_lower.c: Likewise.
53525         * tests/unictype/test-ctype_print.c: Likewise.
53526         * tests/unictype/test-ctype_punct.c: Likewise.
53527         * tests/unictype/test-ctype_space.c: Likewise.
53528         * tests/unictype/test-ctype_upper.c: Likewise.
53529         * tests/unictype/test-ctype_xdigit.c: Likewise.
53530         * tests/unictype/test-decdigit.h: Likewise.
53531         * tests/unictype/test-digit.h: Likewise.
53532         * tests/unictype/test-numeric.h: Likewise.
53533         * tests/unictype/test-pr_alphabetic.c: Likewise.
53534         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53535         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53536         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53537         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53538         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53539         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53540         * tests/unictype/test-pr_bidi_control.c: Likewise.
53541         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53542         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53543         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53544         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53545         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53546         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53547         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53548         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53549         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53550         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53551         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53552         * tests/unictype/test-pr_combining.c: Likewise.
53553         * tests/unictype/test-pr_composite.c: Likewise.
53554         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53555         * tests/unictype/test-pr_dash.c: Likewise.
53556         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53557         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53558         * tests/unictype/test-pr_deprecated.c: Likewise.
53559         * tests/unictype/test-pr_diacritic.c: Likewise.
53560         * tests/unictype/test-pr_extender.c: Likewise.
53561         * tests/unictype/test-pr_format_control.c: Likewise.
53562         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53563         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53564         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53565         * tests/unictype/test-pr_hex_digit.c: Likewise.
53566         * tests/unictype/test-pr_hyphen.c: Likewise.
53567         * tests/unictype/test-pr_id_continue.c: Likewise.
53568         * tests/unictype/test-pr_id_start.c: Likewise.
53569         * tests/unictype/test-pr_ideographic.c: Likewise.
53570         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53571         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53572         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53573         * tests/unictype/test-pr_iso_control.c: Likewise.
53574         * tests/unictype/test-pr_join_control.c: Likewise.
53575         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53576         * tests/unictype/test-pr_line_separator.c: Likewise.
53577         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53578         * tests/unictype/test-pr_lowercase.c: Likewise.
53579         * tests/unictype/test-pr_math.c: Likewise.
53580         * tests/unictype/test-pr_non_break.c: Likewise.
53581         * tests/unictype/test-pr_not_a_character.c: Likewise.
53582         * tests/unictype/test-pr_numeric.c: Likewise.
53583         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53584         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53585         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53586         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53587         * tests/unictype/test-pr_other_id_start.c: Likewise.
53588         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53589         * tests/unictype/test-pr_other_math.c: Likewise.
53590         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53591         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53592         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53593         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53594         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53595         * tests/unictype/test-pr_private_use.c: Likewise.
53596         * tests/unictype/test-pr_punctuation.c: Likewise.
53597         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53598         * tests/unictype/test-pr_radical.c: Likewise.
53599         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53600         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53601         * tests/unictype/test-pr_space.c: Likewise.
53602         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53603         * tests/unictype/test-pr_titlecase.c: Likewise.
53604         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53605         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53606         * tests/unictype/test-pr_uppercase.c: Likewise.
53607         * tests/unictype/test-pr_variation_selector.c: Likewise.
53608         * tests/unictype/test-pr_white_space.c: Likewise.
53609         * tests/unictype/test-pr_xid_continue.c: Likewise.
53610         * tests/unictype/test-pr_xid_start.c: Likewise.
53611         * tests/unictype/test-pr_zero_width.c: Likewise.
53612         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53613         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53614
53615 2007-11-12  Bruno Haible  <bruno@clisp.org>
53616
53617         Unicode character classification functions.
53618         * lib/unictype.h: New file.
53619         * modules/unictype/base: New file.
53620         * modules/unictype/category-L: New file.
53621         * modules/unictype/category-Lu: New file.
53622         * modules/unictype/category-Ll: New file.
53623         * modules/unictype/category-Lt: New file.
53624         * modules/unictype/category-Lm: New file.
53625         * modules/unictype/category-Lo: New file.
53626         * modules/unictype/category-M: New file.
53627         * modules/unictype/category-Mn: New file.
53628         * modules/unictype/category-Mc: New file.
53629         * modules/unictype/category-Me: New file.
53630         * modules/unictype/category-N: New file.
53631         * modules/unictype/category-Nd: New file.
53632         * modules/unictype/category-Nl: New file.
53633         * modules/unictype/category-No: New file.
53634         * modules/unictype/category-P: New file.
53635         * modules/unictype/category-Pc: New file.
53636         * modules/unictype/category-Pd: New file.
53637         * modules/unictype/category-Ps: New file.
53638         * modules/unictype/category-Pe: New file.
53639         * modules/unictype/category-Pi: New file.
53640         * modules/unictype/category-Pf: New file.
53641         * modules/unictype/category-Po: New file.
53642         * modules/unictype/category-S: New file.
53643         * modules/unictype/category-Sm: New file.
53644         * modules/unictype/category-Sc: New file.
53645         * modules/unictype/category-Sk: New file.
53646         * modules/unictype/category-So: New file.
53647         * modules/unictype/category-Z: New file.
53648         * modules/unictype/category-Zs: New file.
53649         * modules/unictype/category-Zl: New file.
53650         * modules/unictype/category-Zp: New file.
53651         * modules/unictype/category-C: New file.
53652         * modules/unictype/category-Cc: New file.
53653         * modules/unictype/category-Cf: New file.
53654         * modules/unictype/category-Cs: New file.
53655         * modules/unictype/category-Co: New file.
53656         * modules/unictype/category-Cn: New file.
53657         * modules/unictype/category-or: New file.
53658         * modules/unictype/category-of: New file.
53659         * modules/unictype/category-test: New file.
53660         * modules/unictype/category-test-withtable: New file.
53661         * modules/unictype/category-byname: New file.
53662         * modules/unictype/category-none: New file.
53663         * modules/unictype/category-and: New file.
53664         * modules/unictype/category-and-not: New file.
53665         * modules/unictype/category-name: New file.
53666         * modules/unictype/combining-class: New file.
53667         * modules/unictype/category-all: New file.
53668         * modules/unictype/bidicategory-all: New file.
53669         * modules/unictype/bidicategory-byname: New file.
53670         * modules/unictype/bidicategory-name: New file.
53671         * modules/unictype/bidicategory-of: New file.
53672         * modules/unictype/bidicategory-test: New file.
53673         * modules/unictype/decimal-digit: New file.
53674         * modules/unictype/digit: New file.
53675         * modules/unictype/numeric: New file.
53676         * modules/unictype/mirror: New file.
53677         * modules/unictype/property-white-space: New file.
53678         * modules/unictype/property-alphabetic: New file.
53679         * modules/unictype/property-other-alphabetic: New file.
53680         * modules/unictype/property-not-a-character: New file.
53681         * modules/unictype/property-default-ignorable-code-point: New file.
53682         * modules/unictype/property-other-default-ignorable-code-point: New
53683         file.
53684         * modules/unictype/property-deprecated: New file.
53685         * modules/unictype/property-logical-order-exception: New file.
53686         * modules/unictype/property-variation-selector: New file.
53687         * modules/unictype/property-private-use: New file.
53688         * modules/unictype/property-unassigned-code-value: New file.
53689         * modules/unictype/property-uppercase: New file.
53690         * modules/unictype/property-other-uppercase: New file.
53691         * modules/unictype/property-lowercase: New file.
53692         * modules/unictype/property-other-lowercase: New file.
53693         * modules/unictype/property-titlecase: New file.
53694         * modules/unictype/property-soft-dotted: New file.
53695         * modules/unictype/property-id-start: New file.
53696         * modules/unictype/property-other-id-start: New file.
53697         * modules/unictype/property-id-continue: New file.
53698         * modules/unictype/property-other-id-continue: New file.
53699         * modules/unictype/property-xid-start: New file.
53700         * modules/unictype/property-xid-continue: New file.
53701         * modules/unictype/property-pattern-white-space: New file.
53702         * modules/unictype/property-pattern-syntax: New file.
53703         * modules/unictype/property-join-control: New file.
53704         * modules/unictype/property-grapheme-base: New file.
53705         * modules/unictype/property-grapheme-extend: New file.
53706         * modules/unictype/property-other-grapheme-extend: New file.
53707         * modules/unictype/property-grapheme-link: New file.
53708         * modules/unictype/property-bidi-control: New file.
53709         * modules/unictype/property-bidi-left-to-right: New file.
53710         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53711         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53712         * modules/unictype/property-bidi-european-digit: New file.
53713         * modules/unictype/property-bidi-eur-num-separator: New file.
53714         * modules/unictype/property-bidi-eur-num-terminator: New file.
53715         * modules/unictype/property-bidi-arabic-digit: New file.
53716         * modules/unictype/property-bidi-common-separator: New file.
53717         * modules/unictype/property-bidi-block-separator: New file.
53718         * modules/unictype/property-bidi-segment-separator: New file.
53719         * modules/unictype/property-bidi-whitespace: New file.
53720         * modules/unictype/property-bidi-non-spacing-mark: New file.
53721         * modules/unictype/property-bidi-boundary-neutral: New file.
53722         * modules/unictype/property-bidi-pdf: New file.
53723         * modules/unictype/property-bidi-embedding-or-override: New file.
53724         * modules/unictype/property-bidi-other-neutral: New file.
53725         * modules/unictype/property-hex-digit: New file.
53726         * modules/unictype/property-ascii-hex-digit: New file.
53727         * modules/unictype/property-ideographic: New file.
53728         * modules/unictype/property-unified-ideograph: New file.
53729         * modules/unictype/property-radical: New file.
53730         * modules/unictype/property-ids-binary-operator: New file.
53731         * modules/unictype/property-ids-trinary-operator: New file.
53732         * modules/unictype/property-zero-width: New file.
53733         * modules/unictype/property-space: New file.
53734         * modules/unictype/property-non-break: New file.
53735         * modules/unictype/property-iso-control: New file.
53736         * modules/unictype/property-format-control: New file.
53737         * modules/unictype/property-dash: New file.
53738         * modules/unictype/property-hyphen: New file.
53739         * modules/unictype/property-punctuation: New file.
53740         * modules/unictype/property-line-separator: New file.
53741         * modules/unictype/property-paragraph-separator: New file.
53742         * modules/unictype/property-quotation-mark: New file.
53743         * modules/unictype/property-sentence-terminal: New file.
53744         * modules/unictype/property-terminal-punctuation: New file.
53745         * modules/unictype/property-currency-symbol: New file.
53746         * modules/unictype/property-math: New file.
53747         * modules/unictype/property-other-math: New file.
53748         * modules/unictype/property-paired-punctuation: New file.
53749         * modules/unictype/property-left-of-pair: New file.
53750         * modules/unictype/property-combining: New file.
53751         * modules/unictype/property-composite: New file.
53752         * modules/unictype/property-decimal-digit: New file.
53753         * modules/unictype/property-numeric: New file.
53754         * modules/unictype/property-diacritic: New file.
53755         * modules/unictype/property-extender: New file.
53756         * modules/unictype/property-ignorable-control: New file.
53757         * modules/unictype/property-test: New file.
53758         * modules/unictype/property-byname: New file.
53759         * modules/unictype/property-all: New file.
53760         * modules/unictype/scripts: New file.
53761         * modules/unictype/scripts-all: New file.
53762         * modules/unictype/block-of: New file.
53763         * modules/unictype/block-test: New file.
53764         * modules/unictype/block-list: New file.
53765         * modules/unictype/block-all: New file.
53766         * modules/unictype/syntax-c-whitespace: New file.
53767         * modules/unictype/syntax-java-whitespace: New file.
53768         * modules/unictype/syntax-c-ident: New file.
53769         * modules/unictype/syntax-java-ident: New file.
53770         * modules/unictype/ctype-alnum: New file.
53771         * modules/unictype/ctype-alpha: New file.
53772         * modules/unictype/ctype-cntrl: New file.
53773         * modules/unictype/ctype-digit: New file.
53774         * modules/unictype/ctype-graph: New file.
53775         * modules/unictype/ctype-lower: New file.
53776         * modules/unictype/ctype-print: New file.
53777         * modules/unictype/ctype-punct: New file.
53778         * modules/unictype/ctype-space: New file.
53779         * modules/unictype/ctype-upper: New file.
53780         * modules/unictype/ctype-xdigit: New file.
53781         * modules/unictype/ctype-blank: New file.
53782         * lib/unictype/bidi_byname.c: New file.
53783         * lib/unictype/bidi_name.c: New file.
53784         * lib/unictype/bidi_of.c: New file.
53785         * lib/unictype/bidi_test.c: New file.
53786         * lib/unictype/bitmap.h: New file.
53787         * lib/unictype/block_test.c: New file.
53788         * lib/unictype/blocks.c: New file.
53789         * lib/unictype/categ_C.c: New file.
53790         * lib/unictype/categ_Cc.c: New file.
53791         * lib/unictype/categ_Cf.c: New file.
53792         * lib/unictype/categ_Cn.c: New file.
53793         * lib/unictype/categ_Co.c: New file.
53794         * lib/unictype/categ_Cs.c: New file.
53795         * lib/unictype/categ_L.c: New file.
53796         * lib/unictype/categ_Ll.c: New file.
53797         * lib/unictype/categ_Lm.c: New file.
53798         * lib/unictype/categ_Lo.c: New file.
53799         * lib/unictype/categ_Lt.c: New file.
53800         * lib/unictype/categ_Lu.c: New file.
53801         * lib/unictype/categ_M.c: New file.
53802         * lib/unictype/categ_Mc.c: New file.
53803         * lib/unictype/categ_Me.c: New file.
53804         * lib/unictype/categ_Mn.c: New file.
53805         * lib/unictype/categ_N.c: New file.
53806         * lib/unictype/categ_Nd.c: New file.
53807         * lib/unictype/categ_Nl.c: New file.
53808         * lib/unictype/categ_No.c: New file.
53809         * lib/unictype/categ_P.c: New file.
53810         * lib/unictype/categ_Pc.c: New file.
53811         * lib/unictype/categ_Pd.c: New file.
53812         * lib/unictype/categ_Pe.c: New file.
53813         * lib/unictype/categ_Pf.c: New file.
53814         * lib/unictype/categ_Pi.c: New file.
53815         * lib/unictype/categ_Po.c: New file.
53816         * lib/unictype/categ_Ps.c: New file.
53817         * lib/unictype/categ_S.c: New file.
53818         * lib/unictype/categ_Sc.c: New file.
53819         * lib/unictype/categ_Sk.c: New file.
53820         * lib/unictype/categ_Sm.c: New file.
53821         * lib/unictype/categ_So.c: New file.
53822         * lib/unictype/categ_Z.c: New file.
53823         * lib/unictype/categ_Zl.c: New file.
53824         * lib/unictype/categ_Zp.c: New file.
53825         * lib/unictype/categ_Zs.c: New file.
53826         * lib/unictype/categ_and.c: New file.
53827         * lib/unictype/categ_and_not.c: New file.
53828         * lib/unictype/categ_byname.c: New file.
53829         * lib/unictype/categ_name.c: New file.
53830         * lib/unictype/categ_none.c: New file.
53831         * lib/unictype/categ_of.c: New file.
53832         * lib/unictype/categ_or.c: New file.
53833         * lib/unictype/categ_test.c: New file.
53834         * lib/unictype/combining.c: New file.
53835         * lib/unictype/ctype_alnum.c: New file.
53836         * lib/unictype/ctype_alpha.c: New file.
53837         * lib/unictype/ctype_blank.c: New file.
53838         * lib/unictype/ctype_cntrl.c: New file.
53839         * lib/unictype/ctype_digit.c: New file.
53840         * lib/unictype/ctype_graph.c: New file.
53841         * lib/unictype/ctype_lower.c: New file.
53842         * lib/unictype/ctype_print.c: New file.
53843         * lib/unictype/ctype_punct.c: New file.
53844         * lib/unictype/ctype_space.c: New file.
53845         * lib/unictype/ctype_upper.c: New file.
53846         * lib/unictype/ctype_xdigit.c: New file.
53847         * lib/unictype/decdigit.c: New file.
53848         * lib/unictype/digit.c: New file.
53849         * lib/unictype/identsyntaxmap.h: New file.
53850         * lib/unictype/mirror.c: New file.
53851         * lib/unictype/numeric.c: New file.
53852         * lib/unictype/pr_alphabetic.c: New file.
53853         * lib/unictype/pr_ascii_hex_digit.c: New file.
53854         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53855         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53856         * lib/unictype/pr_bidi_block_separator.c: New file.
53857         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53858         * lib/unictype/pr_bidi_common_separator.c: New file.
53859         * lib/unictype/pr_bidi_control.c: New file.
53860         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53861         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53862         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53863         * lib/unictype/pr_bidi_european_digit.c: New file.
53864         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53865         * lib/unictype/pr_bidi_left_to_right.c: New file.
53866         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53867         * lib/unictype/pr_bidi_other_neutral.c: New file.
53868         * lib/unictype/pr_bidi_pdf.c: New file.
53869         * lib/unictype/pr_bidi_segment_separator.c: New file.
53870         * lib/unictype/pr_bidi_whitespace.c: New file.
53871         * lib/unictype/pr_byname.c: New file.
53872         * lib/unictype/pr_byname.gperf: New file.
53873         * lib/unictype/pr_combining.c: New file.
53874         * lib/unictype/pr_composite.c: New file.
53875         * lib/unictype/pr_currency_symbol.c: New file.
53876         * lib/unictype/pr_dash.c: New file.
53877         * lib/unictype/pr_decimal_digit.c: New file.
53878         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53879         * lib/unictype/pr_deprecated.c: New file.
53880         * lib/unictype/pr_diacritic.c: New file.
53881         * lib/unictype/pr_extender.c: New file.
53882         * lib/unictype/pr_format_control.c: New file.
53883         * lib/unictype/pr_grapheme_base.c: New file.
53884         * lib/unictype/pr_grapheme_extend.c: New file.
53885         * lib/unictype/pr_grapheme_link.c: New file.
53886         * lib/unictype/pr_hex_digit.c: New file.
53887         * lib/unictype/pr_hyphen.c: New file.
53888         * lib/unictype/pr_id_continue.c: New file.
53889         * lib/unictype/pr_id_start.c: New file.
53890         * lib/unictype/pr_ideographic.c: New file.
53891         * lib/unictype/pr_ids_binary_operator.c: New file.
53892         * lib/unictype/pr_ids_trinary_operator.c: New file.
53893         * lib/unictype/pr_ignorable_control.c: New file.
53894         * lib/unictype/pr_iso_control.c: New file.
53895         * lib/unictype/pr_join_control.c: New file.
53896         * lib/unictype/pr_left_of_pair.c: New file.
53897         * lib/unictype/pr_line_separator.c: New file.
53898         * lib/unictype/pr_logical_order_exception.c: New file.
53899         * lib/unictype/pr_lowercase.c: New file.
53900         * lib/unictype/pr_math.c: New file.
53901         * lib/unictype/pr_non_break.c: New file.
53902         * lib/unictype/pr_not_a_character.c: New file.
53903         * lib/unictype/pr_numeric.c: New file.
53904         * lib/unictype/pr_other_alphabetic.c: New file.
53905         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53906         * lib/unictype/pr_other_grapheme_extend.c: New file.
53907         * lib/unictype/pr_other_id_continue.c: New file.
53908         * lib/unictype/pr_other_id_start.c: New file.
53909         * lib/unictype/pr_other_lowercase.c: New file.
53910         * lib/unictype/pr_other_math.c: New file.
53911         * lib/unictype/pr_other_uppercase.c: New file.
53912         * lib/unictype/pr_paired_punctuation.c: New file.
53913         * lib/unictype/pr_paragraph_separator.c: New file.
53914         * lib/unictype/pr_pattern_syntax.c: New file.
53915         * lib/unictype/pr_pattern_white_space.c: New file.
53916         * lib/unictype/pr_private_use.c: New file.
53917         * lib/unictype/pr_punctuation.c: New file.
53918         * lib/unictype/pr_quotation_mark.c: New file.
53919         * lib/unictype/pr_radical.c: New file.
53920         * lib/unictype/pr_sentence_terminal.c: New file.
53921         * lib/unictype/pr_soft_dotted.c: New file.
53922         * lib/unictype/pr_space.c: New file.
53923         * lib/unictype/pr_terminal_punctuation.c: New file.
53924         * lib/unictype/pr_test.c: New file.
53925         * lib/unictype/pr_titlecase.c: New file.
53926         * lib/unictype/pr_unassigned_code_value.c: New file.
53927         * lib/unictype/pr_unified_ideograph.c: New file.
53928         * lib/unictype/pr_uppercase.c: New file.
53929         * lib/unictype/pr_variation_selector.c: New file.
53930         * lib/unictype/pr_white_space.c: New file.
53931         * lib/unictype/pr_xid_continue.c: New file.
53932         * lib/unictype/pr_xid_start.c: New file.
53933         * lib/unictype/pr_zero_width.c: New file.
53934         * lib/unictype/scripts.c: New file.
53935         * lib/unictype/sy_c_ident.c: New file.
53936         * lib/unictype/sy_c_whitespace.c: New file.
53937         * lib/unictype/sy_java_ident.c: New file.
53938         * lib/unictype/sy_java_whitespace.c: New file.
53939
53940         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53941         Unicode 5.0.0.
53942         * lib/unictype/blocks.h: Likewise.
53943         * lib/unictype/categ_C.h: Likewise.
53944         * lib/unictype/categ_Cc.h: Likewise.
53945         * lib/unictype/categ_Cf.h: Likewise.
53946         * lib/unictype/categ_Cn.h: Likewise.
53947         * lib/unictype/categ_Co.h: Likewise.
53948         * lib/unictype/categ_Cs.h: Likewise.
53949         * lib/unictype/categ_L.h: Likewise.
53950         * lib/unictype/categ_Ll.h: Likewise.
53951         * lib/unictype/categ_Lm.h: Likewise.
53952         * lib/unictype/categ_Lo.h: Likewise.
53953         * lib/unictype/categ_Lt.h: Likewise.
53954         * lib/unictype/categ_Lu.h: Likewise.
53955         * lib/unictype/categ_M.h: Likewise.
53956         * lib/unictype/categ_Mc.h: Likewise.
53957         * lib/unictype/categ_Me.h: Likewise.
53958         * lib/unictype/categ_Mn.h: Likewise.
53959         * lib/unictype/categ_N.h: Likewise.
53960         * lib/unictype/categ_Nd.h: Likewise.
53961         * lib/unictype/categ_Nl.h: Likewise.
53962         * lib/unictype/categ_No.h: Likewise.
53963         * lib/unictype/categ_P.h: Likewise.
53964         * lib/unictype/categ_Pc.h: Likewise.
53965         * lib/unictype/categ_Pd.h: Likewise.
53966         * lib/unictype/categ_Pe.h: Likewise.
53967         * lib/unictype/categ_Pf.h: Likewise.
53968         * lib/unictype/categ_Pi.h: Likewise.
53969         * lib/unictype/categ_Po.h: Likewise.
53970         * lib/unictype/categ_Ps.h: Likewise.
53971         * lib/unictype/categ_S.h: Likewise.
53972         * lib/unictype/categ_Sc.h: Likewise.
53973         * lib/unictype/categ_Sk.h: Likewise.
53974         * lib/unictype/categ_Sm.h: Likewise.
53975         * lib/unictype/categ_So.h: Likewise.
53976         * lib/unictype/categ_Z.h: Likewise.
53977         * lib/unictype/categ_Zl.h: Likewise.
53978         * lib/unictype/categ_Zp.h: Likewise.
53979         * lib/unictype/categ_Zs.h: Likewise.
53980         * lib/unictype/categ_of.h: Likewise.
53981         * lib/unictype/combining.h: Likewise.
53982         * lib/unictype/ctype_alnum.h: Likewise.
53983         * lib/unictype/ctype_alpha.h: Likewise.
53984         * lib/unictype/ctype_blank.h: Likewise.
53985         * lib/unictype/ctype_cntrl.h: Likewise.
53986         * lib/unictype/ctype_digit.h: Likewise.
53987         * lib/unictype/ctype_graph.h: Likewise.
53988         * lib/unictype/ctype_lower.h: Likewise.
53989         * lib/unictype/ctype_print.h: Likewise.
53990         * lib/unictype/ctype_punct.h: Likewise.
53991         * lib/unictype/ctype_space.h: Likewise.
53992         * lib/unictype/ctype_upper.h: Likewise.
53993         * lib/unictype/ctype_xdigit.h: Likewise.
53994         * lib/unictype/decdigit.h: Likewise.
53995         * lib/unictype/digit.h: Likewise.
53996         * lib/unictype/mirror.h: Likewise.
53997         * lib/unictype/numeric.h: Likewise.
53998         * lib/unictype/pr_alphabetic.h: Likewise.
53999         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54000         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54001         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54002         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54003         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54004         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54005         * lib/unictype/pr_bidi_control.h: Likewise.
54006         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54007         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54008         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54009         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54010         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54011         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54012         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54013         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54014         * lib/unictype/pr_bidi_pdf.h: Likewise.
54015         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54016         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54017         * lib/unictype/pr_combining.h: Likewise.
54018         * lib/unictype/pr_composite.h: Likewise.
54019         * lib/unictype/pr_currency_symbol.h: Likewise.
54020         * lib/unictype/pr_dash.h: Likewise.
54021         * lib/unictype/pr_decimal_digit.h: Likewise.
54022         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54023         * lib/unictype/pr_deprecated.h: Likewise.
54024         * lib/unictype/pr_diacritic.h: Likewise.
54025         * lib/unictype/pr_extender.h: Likewise.
54026         * lib/unictype/pr_format_control.h: Likewise.
54027         * lib/unictype/pr_grapheme_base.h: Likewise.
54028         * lib/unictype/pr_grapheme_extend.h: Likewise.
54029         * lib/unictype/pr_grapheme_link.h: Likewise.
54030         * lib/unictype/pr_hex_digit.h: Likewise.
54031         * lib/unictype/pr_hyphen.h: Likewise.
54032         * lib/unictype/pr_id_continue.h: Likewise.
54033         * lib/unictype/pr_id_start.h: Likewise.
54034         * lib/unictype/pr_ideographic.h: Likewise.
54035         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54036         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54037         * lib/unictype/pr_ignorable_control.h: Likewise.
54038         * lib/unictype/pr_iso_control.h: Likewise.
54039         * lib/unictype/pr_join_control.h: Likewise.
54040         * lib/unictype/pr_left_of_pair.h: Likewise.
54041         * lib/unictype/pr_line_separator.h: Likewise.
54042         * lib/unictype/pr_logical_order_exception.h: Likewise.
54043         * lib/unictype/pr_lowercase.h: Likewise.
54044         * lib/unictype/pr_math.h: Likewise.
54045         * lib/unictype/pr_non_break.h: Likewise.
54046         * lib/unictype/pr_not_a_character.h: Likewise.
54047         * lib/unictype/pr_numeric.h: Likewise.
54048         * lib/unictype/pr_other_alphabetic.h: Likewise.
54049         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54050         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54051         * lib/unictype/pr_other_id_continue.h: Likewise.
54052         * lib/unictype/pr_other_id_start.h: Likewise.
54053         * lib/unictype/pr_other_lowercase.h: Likewise.
54054         * lib/unictype/pr_other_math.h: Likewise.
54055         * lib/unictype/pr_other_uppercase.h: Likewise.
54056         * lib/unictype/pr_paired_punctuation.h: Likewise.
54057         * lib/unictype/pr_paragraph_separator.h: Likewise.
54058         * lib/unictype/pr_pattern_syntax.h: Likewise.
54059         * lib/unictype/pr_pattern_white_space.h: Likewise.
54060         * lib/unictype/pr_private_use.h: Likewise.
54061         * lib/unictype/pr_punctuation.h: Likewise.
54062         * lib/unictype/pr_quotation_mark.h: Likewise.
54063         * lib/unictype/pr_radical.h: Likewise.
54064         * lib/unictype/pr_sentence_terminal.h: Likewise.
54065         * lib/unictype/pr_soft_dotted.h: Likewise.
54066         * lib/unictype/pr_space.h: Likewise.
54067         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54068         * lib/unictype/pr_titlecase.h: Likewise.
54069         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54070         * lib/unictype/pr_unified_ideograph.h: Likewise.
54071         * lib/unictype/pr_uppercase.h: Likewise.
54072         * lib/unictype/pr_variation_selector.h: Likewise.
54073         * lib/unictype/pr_white_space.h: Likewise.
54074         * lib/unictype/pr_xid_continue.h: Likewise.
54075         * lib/unictype/pr_xid_start.h: Likewise.
54076         * lib/unictype/pr_zero_width.h: Likewise.
54077         * lib/unictype/scripts.h: Likewise.
54078         * lib/unictype/scripts_byname.gperf: Likewise.
54079         * lib/unictype/sy_c_ident.h: Likewise.
54080         * lib/unictype/sy_c_whitespace.h: Likewise.
54081         * lib/unictype/sy_java_ident.h: Likewise.
54082         * lib/unictype/sy_java_whitespace.h: Likewise.
54083
54084         * lib/unictype/Makefile: New file.
54085         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54086         glibc.
54087         * lib/unictype/3level.h: New file, copied from glibc.
54088         * lib/unictype/3levelbit.h: New file.
54089
54090 2007-11-11  Bruno Haible  <bruno@clisp.org>
54091
54092         * modules/gperf: New file.
54093         * modules/iconv_open (Depends-on): Add it.
54094         (Makefile.am): Remove the GPERF definition.
54095
54096 2007-11-11  Bruno Haible  <bruno@clisp.org>
54097
54098         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54099         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54100
54101 2007-11-11  Bruno Haible  <bruno@clisp.org>
54102
54103         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54104         (usage): Remove function.
54105
54106 2007-11-11  Bruno Haible  <bruno@clisp.org>
54107
54108         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54109         gl_FUNC_CEILF_LIBS.
54110         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54111         gl_FUNC_CEIL_LIBS.
54112         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54113         gl_FUNC_CEILL_LIBS.
54114         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54115         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54116         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54117
54118 2007-11-11  Bruno Haible  <bruno@clisp.org>
54119
54120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54121         roundf were declared but do not exist on functions.
54122         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54123         roundl were declared but do not exist on functions.
54124         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54125         HAVE_FLOORL_AND_CEILL, respectively.
54126         Needed for Sun C on Solaris 10.
54127
54128 2007-11-11  Bruno Haible  <bruno@clisp.org>
54129
54130         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54131         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54132         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54133         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54134         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54135         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54136         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54137         HAVE_DECL_ROUNDF.
54138         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54139         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54141         of HAVE_DECL_ROUND*.
54142         * modules/math (Makefile.am): Update.
54143
54144 2007-11-10  Bruno Haible  <bruno@clisp.org>
54145
54146         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54147         ptrdiff_t as m4/intl.m4.
54148
54149 2007-11-10  Jim Meyering  <meyering@redhat.com>
54150
54151         Avoid link failure for the argmatch test.
54152         * tests/test-argmatch.c (usage): Define function to avoid a link
54153         failure: argmatch_die requires a usage function.
54154
54155 2007-11-09  Bruno Haible  <bruno@clisp.org>
54156
54157         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54158         * doc/functions/vsnprintf.texi: Likewise.
54159         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54160         with a size argument < 2.
54161
54162 2007-11-09  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54165         buffer. Fixes an inefficiency introduced on 2007-11-03.
54166
54167 2007-11-09  Bruno Haible  <bruno@clisp.org>
54168
54169         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54170         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54171
54172 2007-11-08  Jim Meyering  <meyering@redhat.com>
54173
54174         Change cache variable name prefix "jm_" to "gl_" everywhere.
54175         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54176         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54177         * m4/uptime.m4: s/gl_/jm_/
54178
54179 2007-11-07  Bruno Haible  <bruno@clisp.org>
54180
54181         Update to GNU gettext 0.17.
54182         * m4/intl.m4: Update to GNU gettext 0.17.
54183         * m4/po.m4: Likewise.
54184         * modules/gettext (Files): Remove m4/ulonglong.m4.
54185         (configure.ac): Require gettext infrastructure from version 0.17.
54186
54187 2007-11-06  Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54190         symbolic values are not defined in a public header.
54191         * lib/freadable.c (freadable) [QNX]: Likewise.
54192         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54193         * lib/freading.c (freading) [QNX]: Likewise.
54194         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54195         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54196         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54197         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54198         Reported by Alain Magloire.
54199
54200         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54201
54202 2007-11-05  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54205         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54206         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54207         Reported by Eric Blake.
54208
54209 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54210             Bruno Haible  <bruno@clisp.org>
54211
54212         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54213         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54214         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54215         (malloc): Undefine also before including <stdlib.h>.
54216         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54217         Needed on OSF/1 4.0.
54218
54219 2007-11-05  Jim Meyering  <meyering@redhat.com>
54220
54221         git-version-gen: sync from coreutils.
54222         * build-aux/git-version-gen: Add comments.
54223         Change the first '-' to '.' in the snapshot version string,
54224         e.g., 6.9-377-08144 -> 6.9.377-08144
54225         Remove first parameter.
54226         Don't declare a version "-dirty" merely because a time
54227         stamp has changed.
54228
54229 2007-11-04  Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/lock.h: Protect all macro definitions containing an 'if'
54232         statement through a "do { ... } while (0)".
54233         * lib/tls.h: Likewise.
54234
54235 2007-11-04  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54238
54239 2007-11-04  Bruno Haible  <bruno@clisp.org>
54240
54241         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54242         * modules/fprintf-posix (Depends-on): Add nocrash.
54243         * modules/snprintf-posix (Depends-on): Likewise.
54244         * modules/sprintf-posix (Depends-on): Likewise.
54245         * modules/vasnprintf-posix (Depends-on): Likewise.
54246         * modules/vasprintf-posix (Depends-on): Likewise.
54247         * modules/vfprintf-posix (Depends-on): Likewise.
54248         * modules/vsnprintf-posix (Depends-on): Likewise.
54249         * modules/vsprintf-posix (Depends-on): Likewise.
54250         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54251         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54252         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54253         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54254         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54255         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54256         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54257
54258 2007-11-04  Bruno Haible  <bruno@clisp.org>
54259
54260         * modules/nocrash: New file.
54261         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54262         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54263
54264 2007-11-04  Bruno Haible  <bruno@clisp.org>
54265
54266         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54267         precision handling.
54268         * tests/test-vasprintf-posix.c (test_function): Likewise.
54269         * tests/test-snprintf-posix.h (test_function): Likewise.
54270         * tests/test-sprintf-posix.h (test_function): Likewise.
54271
54272         Fix *printf behaviour for large precisions on mingw and BeOS.
54273         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54274         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54276         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54278         gl_PRINTF_PRECISION and test its result. Invoke
54279         gl_PREREQ_VASNPRINTF_PRECISION.
54280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54287         * doc/functions/fprintf.texi: Update.
54288         * doc/functions/printf.texi: Update.
54289         * doc/functions/snprintf.texi: Update.
54290         * doc/functions/sprintf.texi: Update.
54291         * doc/functions/vfprintf.texi: Update.
54292         * doc/functions/vprintf.texi: Update.
54293         * doc/functions/vsnprintf.texi: Update.
54294         * doc/functions/vsprintf.texi: Update.
54295
54296 2007-11-04  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54299
54300 2007-11-04  Bruno Haible  <bruno@clisp.org>
54301
54302         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54303         Reported by Sylvain Beucler <beuc@gnu.org>.
54304
54305 2007-11-03  Bruno Haible  <bruno@clisp.org>
54306
54307         * tests/test-fprintf-posix2.sh: New file.
54308         * tests/test-fprintf-posix2.c: New file.
54309         * modules/fprintf-posix-tests (Files): Add them.
54310         (TESTS): Add test-fprintf-posix2.sh.
54311         (configure.ac): Check for getrlimit and setrlimit.
54312         (check_PROGRAMS): Add test-fprintf-posix2.
54313
54314         * tests/test-printf-posix2.sh: New file.
54315         * tests/test-printf-posix2.c: New file.
54316         * modules/printf-posix-tests (Files): Add them.
54317         (TESTS): Add test-printf-posix2.sh.
54318         (configure.ac): Check for getrlimit and setrlimit.
54319         (check_PROGRAMS): Add test-printf-posix2.
54320
54321         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54322         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54323         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54324         (decode_double): New function, copied from decode_long_double.
54325         (scale10_round_decimal_decoded): New function, extracted from
54326         scale10_round_decimal_long_double.
54327         (scale10_round_decimal_long_double): Use it.
54328         (scale10_round_decimal_double): New function.
54329         (floorlog10): New function.
54330         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54332         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54334         gl_PRINTF_ENOMEM and test its result. Invoke
54335         gl_PREREQ_VASNPRINTF_ENOMEM.
54336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54343         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54344         * modules/snprintf-posix (Depends-on): Likewise.
54345         * modules/sprintf-posix (Depends-on): Likewise.
54346         * modules/vasnprintf-posix (Depends-on): Likewise.
54347         * modules/vasprintf-posix (Depends-on): Likewise.
54348         * modules/vfprintf-posix (Depends-on): Likewise.
54349         * modules/vsnprintf-posix (Depends-on): Likewise.
54350         * modules/vsprintf-posix (Depends-on): Likewise.
54351         * doc/functions/fprintf.texi: Update.
54352         * doc/functions/printf.texi: Update.
54353         * doc/functions/snprintf.texi: Update.
54354         * doc/functions/sprintf.texi: Update.
54355         * doc/functions/vfprintf.texi: Update.
54356         * doc/functions/vprintf.texi: Update.
54357         * doc/functions/vsnprintf.texi: Update.
54358         * doc/functions/vsprintf.texi: Update.
54359
54360 2007-11-03  Bruno Haible  <bruno@clisp.org>
54361
54362         * modules/frexp-nolibm-tests: New file.
54363
54364         * modules/frexp-nolibm: New file.
54365         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54366
54367 2007-11-03  Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54370         value is C99 compliant.
54371         Needed for OSF/1 5.1.
54372
54373 2007-11-03  Bruno Haible  <bruno@clisp.org>
54374
54375         Fix out-of-memory handling of vasnprintf.
54376         * lib/printf-parse.c: Include <errno.h>.
54377         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54378         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54379         is already set.
54380
54381 2007-11-02  Eric Blake  <ebb9@byu.net>
54382
54383         Fix tests on cygwin.
54384         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54385
54386 2007-11-01  Bruno Haible  <bruno@clisp.org>
54387
54388         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54389         warning.
54390         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54391         needed for POSIX compatibility.
54392
54393 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54394
54395         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54396         for compatibility with GNU.
54397
54398 2007-11-01  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54401         (putenv): Renamed from rpl_putenv. Change argument type from
54402         'const char *' to 'char *'.
54403         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54404         of defining putenv in config.h, just set REPLACE_PUTENV.
54405         * modules/putenv (Depends-on): Add stdlib.
54406         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54407         (Include): Use <stdlib.h>.
54408         * lib/stdlib.in.h (putenv): New declaration.
54409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54410         REPLACE_PUTENV.
54411         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54412         REPLACE_PUTENV.
54413         Needed for MacOS X 10.5.0.
54414         Reported by Peter O'Gorman <peter@pogma.com>.
54415
54416 2007-11-01  Jim Meyering  <meyering@redhat.com>
54417
54418         Treat an empty date string exactly like "0".
54419         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54420         if the remaining date string (to be parsed) is empty, use "0".
54421         Reported by Mischa Molhoek and discussed in this thread:
54422         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54423
54424 2007-10-31  Bruno Haible  <bruno@clisp.org>
54425
54426         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54427         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54428         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54429         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54430         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54431         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54432
54433 2007-10-31  Bruno Haible  <bruno@clisp.org>
54434
54435         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54436         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54437         (AC_TYPE_LONG_LONG_INT): Use it.
54438         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54439         it as well.
54440         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54441         to m4/longlong.m4.
54442         * modules/stdint (Files): Remove m4/ulonglong.m4.
54443         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54444         m4/ulonglong.m4.
54445         * modules/strtoumax (Files): Likewise.
54446
54447 2007-10-30  Bruno Haible  <bruno@clisp.org>
54448
54449         * modules/xvasprintf-posix: New file.
54450         Suggested by Eric Blake.
54451
54452 2007-10-30  Bruno Haible  <bruno@clisp.org>
54453
54454         * modules/xprintf-posix-tests: New file.
54455         * tests/test-xprintf-posix.sh: New file.
54456         * tests/test-xprintf-posix.c: New file.
54457         * tests/test-xfprintf-posix.c: New file.
54458
54459         * modules/xprintf-posix: New file.
54460
54461 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54462
54463         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54464         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54465         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54466
54467 2007-10-29  Bruno Haible  <bruno@clisp.org>
54468
54469         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54470         contain the special marker '_cv_'.
54471         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54472         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54473         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54474         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54475         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54476         Reported by Ralf Wildenhues.
54477
54478 2007-10-29  Bruno Haible  <bruno@clisp.org>
54479
54480         * gnulib-tool (func_import): When --lgpl is not specified, set
54481         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54482         GPLv3.
54483         Reported by Simon Josefsson.
54484
54485 2007-10-28  Bruno Haible  <bruno@clisp.org>
54486
54487         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54488         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54489         HAVE_DECL_ISFINITE.
54490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54491         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54492         HAVE_DECL_ISFINITE.
54493
54494 2007-10-28  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54497         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54498
54499 2007-10-28  Bruno Haible  <bruno@clisp.org>
54500
54501         Fix link errors with Sun C 5.0 on Solaris 10.
54502         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54503         function is declared but not present in the compiler's libm.
54504         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54505         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54506         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54507         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54508         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54509         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54510         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54512         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54513         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54514         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54515         HAVE_DECL_FLOORL.
54516
54517 2007-10-28  Bruno Haible  <bruno@clisp.org>
54518
54519         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54520         gl_FUNC_FLOORL. Cache the result.
54521         (gl_FUNC_FLOORL): Use it.
54522         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54523         gl_FUNC_CEILL. Cache the result.
54524         (gl_FUNC_CEILL): Use it.
54525
54526         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54527         gl_FUNC_FLOOR. Cache the result.
54528         (gl_FUNC_FLOOR): Use it.
54529         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54530         gl_FUNC_CEIL. Cache the result.
54531         (gl_FUNC_CEIL): Use it.
54532
54533         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54534         gl_FUNC_FLOORF. Cache the result.
54535         (gl_FUNC_FLOORF): Use it.
54536         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54537         gl_FUNC_CEILF. Cache the result.
54538         (gl_FUNC_CEILF): Use it.
54539
54540 2007-10-28  Bruno Haible  <bruno@clisp.org>
54541
54542         * gnulib-tool: Allow specifying the LGPL version number through
54543         --lgpl=2 or --lgpl=3.
54544         (func_usage): Document --lgpl with argument.
54545         Handle --lgpl=... arguments.
54546         (func_import): Recognize also gl_LGPL calls with an argument. When
54547         --lgpl=2 is used and the module's license is just LGPL, report an
54548         error. Set sed_transform_lib_file according to the lgpl variable. In
54549         the generated files, use --lgpl or gl_LGPL invocations with argument,
54550         if necessary.
54551         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54552         an LGPv2+ license.
54553         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54554         gl_LGPL macro.
54555
54556 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54557             Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54560         (u16_uctomb_aux): Likewise.
54561         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54562         !HAVE_INLINE.
54563         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54564
54565 2007-10-28  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54568         Invoke AM_GETTEXT_OPTION if it exists.
54569         * modules/vasprintf: Likewise.
54570         * modules/verror: Likewise.
54571         * modules/xprintf: Likewise.
54572         * modules/xvasprintf: Likewise.
54573
54574 2007-10-27  Ben Pfaff  <blp@gnu.org>
54575
54576         * lib/math.in.h: Define isfinite macro and prototypes for
54577         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54578         implementations.
54579         * m4/math_h.m4: New substitutions for isfinite module.
54580         * lib/isfinite.c: New file.
54581         * m4/isfinite.m4: New file.
54582         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54583         * modules/isfinite: New file.
54584         * modules/isfinite-tests: New file.
54585         * tests/tests-isfinite.c: New file.
54586         * doc/functions/isfinite.texi: Mention isfinite module.
54587         * MODULES.html.sh: Mention new module.
54588
54589 2007-10-27  Ben Pfaff  <blp@gnu.org>
54590
54591         Ralf Wildenhues reported that Tru64 4.0D declares the round
54592         functions but does not have definitions.
54593         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54594         cannot be found in any library, set the output variable to
54595         "missing" instead of "".
54596         * m4/round.m4: Also use our substitute if we cannot find round in
54597         any library, even if it is declared.
54598         * m4/roundf.m4: Likewise for roundf.
54599         * m4/roundl.m4: Likewise for roundl.
54600         * lib/math.in.h: Undefine roundf, round, roundl before defining
54601         their replacements, to allow for hypothetical systems where these
54602         may be defined as macros but not available in libraries.
54603
54604 2007-10-27  Bruno Haible  <bruno@clisp.org>
54605
54606         * doc/gnulib.texi: Invoke @firstparagraphindent.
54607         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54608         changes in gnulib.
54609         (Source changes): New section.
54610
54611 2007-10-26  Bruno Haible  <bruno@clisp.org>
54612
54613         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54614         borrowed from autoconf.
54615
54616 2007-10-26  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54619         strerror returned the empty string. Needed on HP-UX 11.00.
54620
54621 2007-10-24  Micah Cowan  <micah@cowan.name>
54622
54623         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54624         * build-aux/bootstrap: Remove support for now-unnecessary option,
54625         --cvs-user, and envvars CVS_USER, CVS_RSH.
54626
54627 2007-10-24  Jim Meyering  <meyering@redhat.com>
54628
54629         Avoid diagnostics from sha1sum when there is no cached checksum.
54630         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54631         if the po.s1 file hasn't been created yet.
54632
54633         * build-aux/bootstrap: Sync from coreutils:
54634         2007-10-24  Jim Meyering  <meyering@redhat.com>
54635         Get gnulib from the git repository, not from an obsolete cvs one.
54636         * build-aux/bootstrap: Suggestion from Micah Cowan.
54637         2007-10-04  Jim Meyering  <jim@meyering.net>
54638         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54639         (update_po_files): Work also when there are no .po files in po/.
54640
54641 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54642
54643         * README: Append ".git" to git and cg examples.
54644         Problem reported by Benoit Sigoure.
54645
54646 2007-10-23  Micah Cowan  <micah@cowan.name>
54647
54648         * users.txt: Add wget.
54649
54650 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54651
54652         Fix linking of some unistdio tests on FreeBSD.
54653         * modules/unistdio/u16-vsnprintf-tests
54654         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54655         * modules/unistdio/u16-vsprintf-tests
54656         (test_u16_vsnprintf1_LDADD): Likewise.
54657         * modules/unistdio/u32-vsnprintf-tests
54658         (test_u32_vsnprintf1_LDADD): Likewise.
54659         * modules/unistdio/u32-vsprintf-tests
54660         (test_u32_vsprintf1_LDADD): Likewise.
54661         * modules/unistdio/u8-vsnprintf-tests
54662         (test_u8_vsnprintf1_LDADD): Likewise.
54663         * modules/unistdio/u8-vsprintf-tests
54664         (test_u8_vsprintf1_LDADD): Likewise.
54665         * modules/unistdio/ulc-vsnprintf-tests
54666         (test_ulc_vsnprintf1_LDADD): Likewise.
54667         * modules/unistdio/ulc-vsprintf-tests
54668         (test_ulc_vsprintf1_LDADD): Likewise.
54669
54670         Fix linking of some uniconv tests on FreeBSD.
54671         * modules/uniconv/u16-conv-from-enc-tests
54672         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54673         * modules/uniconv/u16-conv-to-enc-tests
54674         (test_u16_conv_to_enc_LDADD): Likewise.
54675         * modules/uniconv/u16-strconv-from-enc-tests
54676         (test_u16_strconv_from_enc_LDADD): Likewise.
54677         * modules/uniconv/u16-strconv-to-enc-tests
54678         (test_u16_strconv_to_enc_LDADD): Likewise.
54679         * modules/uniconv/u32-conv-from-enc-tests
54680         (test_u32_conv_from_enc_LDADD): Likewise.
54681         * modules/uniconv/u32-conv-to-enc-tests
54682         (test_u32_conv_to_enc_LDADD): Likewise.
54683         * modules/uniconv/u32-strconv-from-enc-tests
54684         (test_u32_strconv_from_enc_LDADD): Likewise.
54685         * modules/uniconv/u32-strconv-to-enc-tests
54686         (test_u32_strconv_to_enc_LDADD): Likewise.
54687         * modules/uniconv/u8-conv-from-enc-tests
54688         (test_u8_conv_from_enc_LDADD): Likewise.
54689         * modules/uniconv/u8-conv-to-enc-tests
54690         (test_u8_conv_to_enc_LDADD): Likewise.
54691         * modules/uniconv/u8-strconv-from-enc-tests
54692         (test_u8_strconv_from_enc_LDADD): Likewise.
54693         * modules/uniconv/u8-strconv-to-enc-tests
54694         (test_u8_strconv_to_enc_LDADD): Likewise.
54695
54696 2007-10-22  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54699         size.
54700
54701 2007-10-22  Eric Blake  <ebb9@byu.net>
54702
54703         Tweak x*printf documentation.
54704         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54705         variable name and comments.
54706         Suggested by Bruno Haible.
54707
54708 2007-10-22  Bruno Haible  <bruno@clisp.org>
54709
54710         * lib/acl.c (copy_acl): Fix file name in comment.
54711
54712 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54713
54714         Fix Tru64 problem with stdbool.h.
54715         * lib/stdbool.in.h (false, true):
54716         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54717         Don't declare as an enum in this situation; it runs afoul of Tru64.
54718         Problem reported by Steven M. Schweda in
54719         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54720
54721 2007-10-22  Eric Blake  <ebb9@byu.net>
54722
54723         Also wrap vf?printf.
54724         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54725         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54726         (xvprintf, xvfprintf): New functions.
54727
54728 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54729
54730         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54731         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54732
54733         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54734         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54735
54736 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54737
54738         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54739         by Bruno Haible.
54740
54741 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54742
54743         * lib/getloadavg.c
54744         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54745         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54746
54747         * tests/test-i-ring.c: Work for C89.
54748
54749 2007-10-22  Bruno Haible  <bruno@clisp.org>
54750
54751         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54752         -1u, in preprocessor expression, so that we don't test for the bug
54753         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54754         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54755
54756 2007-10-22  Eric Blake  <ebb9@byu.net>
54757
54758         * tests/test-yesno.sh: Silence stderr during test.
54759
54760 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54761
54762         * modules/crypto/gc-camellia: New file.
54763
54764         * m4/gc-camellia.m4: New file.
54765
54766         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54767
54768         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54769
54770 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54771
54772         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54773         --help to stdout.  Reported by sms@antinode.org (Steven
54774         M. Schweda).
54775
54776 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54777
54778         * users.txt: Fix link to libksba.
54779
54780 2007-10-21  Ben Pfaff  <blp@gnu.org>
54781
54782         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54783         round.c roundf implementation that depends on floorf and ceilf to
54784         be tested unconditionally.
54785
54786 2007-10-21  Ben Pfaff  <blp@gnu.org>
54787
54788         * m4/check-libm-func.m4: Removed.
54789         * m4/check-math-lib.m4: New file.
54790         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54791         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54792         definition and lack of AC_LIBOBJ([roundf]).
54793         * m4/roundl.m4: Ditto, and similarly for roundl.
54794         * modules/round: Reference new m4 file.
54795         * modules/roundf: Ditto.
54796         * modules/roundl: Ditto.
54797         * tests/test-round2.c (main): Use ROUND instead of round.
54798         Bug report from Bruno Haible.
54799
54800 2007-10-21  Bruno Haible  <bruno@clisp.org>
54801
54802         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54803         context.
54804
54805 2007-10-21  Bruno Haible  <bruno@clisp.org>
54806
54807         * tests/test-wcwidth.c (main): Allow negative result for some control
54808         characters.
54809
54810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54811         Needed on OSF/1 5.1.
54812
54813 2007-10-21  Bruno Haible  <bruno@clisp.org>
54814
54815         * tests/test-floorf1.c: Include isnanf.h.
54816         (main): Use isnanf() instead of isnan().
54817         * tests/test-ceilf1.c: Include isnanf.h.
54818         (main): Use isnanf() instead of isnan().
54819         * tests/test-truncf1.c: Include isnanf.h.
54820         (main): Use isnanf() instead of isnan().
54821         * tests/test-roundf1.c: Include isnanf.h.
54822         (main): Use isnanf() instead of isnan().
54823
54824 2007-10-21  Eric Blake  <ebb9@byu.net>
54825
54826         * users.txt: Update URL for m4.
54827
54828 2007-10-21  Bruno Haible  <bruno@clisp.org>
54829
54830         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54831
54832 2007-10-21  Bruno Haible  <bruno@clisp.org>
54833
54834         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54835         Git's management files if the CVS files are not present.
54836
54837 2007-10-20  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54840         gcc-3.4.x.
54841
54842 2007-10-20  Ben Pfaff  <blp@gnu.org>
54843
54844         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54845         implementations.
54846         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54847         * lib/round.c: New file.
54848         * lib/roundf.c: New file.
54849         * lib/roundl.c: New file.
54850         * m4/round.m4: New file.
54851         * m4/roundf.m4: New file.
54852         * m4/roundl.m4: New file.
54853         * m4/check-libm-func-m4: New file.
54854         * modules/math: Replace round, roundf, roundl related @VARS@ in
54855         math.in.h.
54856         * modules/round: New file.
54857         * modules/round-tests: New file.
54858         * modules/roundf: New file.
54859         * modules/roundf-tests: New file.
54860         * modules/roundl: New file.
54861         * modules/roundl-tests: New file.
54862         * tests/test-round1.c: New file.
54863         * tests/test-round2.c: New file.
54864         * tests/test-roundf1.c: New file.
54865         * tests/test-roundf2.c: New file.
54866         * tests/test-roundl.c: New file.
54867         * doc/functions/round.texi: Mention round module.
54868         * doc/functions/roundf.texi: Mention roundf module.
54869         * doc/functions/roundl.texi: Mention roundl module.
54870         * MODULES.html.sh: Mention new modules.
54871         Thanks to Bruno Haible for suggestions.
54872
54873 2007-10-20  Jim Meyering  <meyering@redhat.com>
54874
54875         * lib/xprintf.c: Include <config.h> unconditionally.
54876
54877         Change xprintf's license to GPL.
54878         * modules/xprintf (License): s/LGPL/GPL/, since this module
54879         depends on modules (exit and exitfail) which are GPL.
54880         Suggestion from Bruno Haible.
54881
54882         xprintf fixes.
54883         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54884         Use a clearer diagnostic.
54885         Patch from Bruno Haible.
54886
54887 2007-10-20  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54890         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54892
54893 2007-10-20  Bruno Haible  <bruno@clisp.org>
54894
54895         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54896         precision in the comparison result > x - 1 or similar.
54897         * tests/test-ceilf2.c (correct_result_p): Likewise.
54898         * tests/test-truncf2.c (correct_result_p): Likewise.
54899         * tests/test-trunc2.c (correct_result_p): Likewise.
54900         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54901
54902 2007-10-20  Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/ceil: New file.
54905         * m4/ceil.m4: New file.
54906         * doc/functions/ceil.texi: Mention the 'ceil' module.
54907
54908 2007-10-20  Bruno Haible  <bruno@clisp.org>
54909
54910         * modules/floor: New file.
54911         * m4/floor.m4: New file.
54912         * doc/functions/floor.texi: Mention the 'floor' module.
54913
54914 2007-10-20  Bruno Haible  <bruno@clisp.org>
54915
54916         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54917         of %a.
54918         * modules/floorf-tests (Depends-on): Likewise.
54919         * modules/truncf-tests (Depends-on): Likewise.
54920         * modules/trunc-tests (Depends-on): Likewise.
54921         Reported by Ben Pfaff.
54922
54923 2007-10-19  Jim Meyering  <meyering@redhat.com>
54924
54925         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54926         Don't bother testing specific errno values.  Just test ferror.
54927
54928         New module: xprintf
54929         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54930
54931 2007-10-19  Bruno Haible  <bruno@clisp.org>
54932
54933         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54934         syntax.
54935         * modules/javaexec (Makefile.am): Likewise.
54936         * modules/relocatable-prog (Makefile.am): Likewise.
54937         Suggested by Jim Meyering.
54938
54939 2007-10-18  Bruno Haible  <bruno@clisp.org>
54940
54941         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54942         Reported by Jim Meyering.
54943
54944 2007-10-18  Eric Blake  <ebb9@byu.net>
54945
54946         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54947
54948 2007-10-18  Bruno Haible  <bruno@clisp.org>
54949
54950         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54951         the format string into writable memory. Needed in Fortify conditions.
54952
54953 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54954             Bruno Haible  <bruno@clisp.org>
54955
54956         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54957         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54958         * modules/trim (Depends-on): Add mbchar.
54959         (configure.ac): Add gl_FUNC_MBRTOWC.
54960         (Makefile.am): Augment lib_SOURCES.
54961
54962 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54963
54964         Modify glob.c to use fstatat and dirfd, to simplify it.
54965         Suggested by Eric Blake.
54966         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54967         Don't include <stdbool.h>; not used.
54968         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54969         (link_exists_p): Simplify implementation, since we can now assume
54970         dirfd and fstatat.
54971         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54972
54973 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54974
54975         * gnulib-tool (func_get_dependencies): Fix sed script to
54976         match only tests.
54977
54978 2007-10-17  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54981         allow locale names without encoding suffix.
54982         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54983         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54984
54985 2007-10-16  Bruno Haible  <bruno@clisp.org>
54986
54987         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54988         * lib/getgroups.c (getgroups): Likewise.
54989         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54990
54991 2007-10-16  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54994         * modules/malloc-posix (License): Likewise.
54995         * modules/realloc-posix (License): Likewise.
54996         * modules/calloc-posix (License): Likewise.
54997         * modules/intprops (License): Change from GPL to LGPL, with
54998         Paul Eggert's approval.
54999
55000 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55001
55002         Merge glibc changes into lib/glob.c.
55003
55004         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55005         2007-10-15 04:59:03 UTC.  Here are the changes:
55006
55007         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55008
55009         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55010
55011         * lib/glob.c: Add some branch prediction throughout.
55012
55013         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55014
55015         [BZ #5103]
55016         * lib/glob.c (glob): Recognize patterns starting \/.
55017
55018         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55019
55020         [BZ #3996]
55021         * lib/glob.c (attribute_hidden): Define if not defined.
55022         (glob): Unescape dirname, filename or username when needed and not
55023         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55024         is NULL.  Handle unescaped [ in pattern without closing ].
55025         Don't pass GLOB_CHECK down to recursive glob for directories.
55026         (__glob_pattern_type): New function.
55027         (__glob_pattern_p): Implement using __glob_pattern_type.
55028         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55029         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55030         Remove unreachable code.
55031
55032         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55033
55034         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55035         explain why there are no leaks.
55036
55037         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55038
55039         [BZ #3253]
55040         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55041         time, rather allocate increasingly bigger arrays of pointers, if
55042         possible with alloca, if too large with malloc.
55043
55044 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55045
55046         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55047         Problem reported by H.Merijn Brand in
55048         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55049         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55050         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55051
55052 2007-10-15  Bruno Haible  <bruno@clisp.org>
55053
55054         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55055         with explicit rpl_ prefix.
55056         * lib/fopen.c (fopen): Likewise.
55057         * lib/freopen.c (freopen): Likewise.
55058         * lib/iconv.c (iconv): Likewise.
55059         * lib/iconv_close.c (iconv_close): Likewise.
55060
55061 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55062
55063         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55064
55065 2007-10-15  Bruno Haible  <bruno@clisp.org>
55066
55067         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55068         <stddef.h> instead of <stdlib.h> since we only need NULL.
55069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55070
55071 2007-10-15  Bruno Haible  <bruno@clisp.org>
55072
55073         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55074         Replace paragraph talking about LIBOBJS.
55075         Reported by Colin Watson <cjwatson@debian.org>.
55076
55077 2007-10-15  Bruno Haible  <bruno@clisp.org>
55078
55079         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55080         <stdlib.h> before using NULL.
55081
55082 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55083
55084         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55085         Reported by Albert Chin <china@thewrittenword.com>.
55086
55087 2007-10-14  Bruno Haible  <bruno@clisp.org>
55088
55089         * modules/iconv_open-utf-tests: New file.
55090         * tests/test-iconv-utf.c: New file.
55091
55092         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55093         * modules/iconv_open-utf: New file.
55094         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55095         (iconv, iconv_close): New declarations.
55096         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55097         be defined.
55098         (iconv_open): Add special handling of conversion between UTF-8 and
55099         UTF-{16,32}{BE,LE}.
55100         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55101         * lib/iconv_close.c: New file.
55102         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55103         gl_FUNC_ICONV_OPEN.
55104         (gl_FUNC_ICONV_OPEN): Use it.
55105         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55106         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55107         and REPLACE_ICONV_UTF.
55108         * modules/iconv_open (Depends-on): Add c-strcase.
55109         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55110         ICONV_CONST.
55111         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55112
55113 2007-10-13  Albert Chin  <china@thewrittenword.com>
55114             Bruno Haible  <bruno@clisp.org>
55115
55116         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55117         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55118
55119 2007-10-13  Bruno Haible  <bruno@clisp.org>
55120
55121         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55122         defined, use the ISO C99 inline semantics.
55123         * lib/argp.h (ARGP_EI): Likewise.
55124
55125 2007-10-13  Bruno Haible  <bruno@clisp.org>
55126
55127         Handle 'inline' change in gcc 4.3.0.
55128         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55129         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55130         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55131         argp_fmtstream_point): Disable 'extern' declaration if the function
55132         definition is going to be provided inline.
55133         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55134         semantics, not the ISO C99 inline semantics.
55135         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55136         'extern' declaration if the function definition is going to be provided
55137         inline.
55138         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55139         the GNU C inline semantics, not the ISO C99 inline semantics. With
55140         GCC 4.2, avoid a warning.
55141
55142 2007-10-13  Bruno Haible  <bruno@clisp.org>
55143
55144         * lib/freading.h (freading): Enable the use of __freading for
55145         glibc >= 2.7.
55146         * lib/freading.c (freading): Likewise.
55147
55148 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55151         "warning: C99 inline functions are not supported; using GNU89".
55152
55153 2007-10-12  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55156         of 2.
55157         * tests/test-ceilf2.c: New file.
55158         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55159
55160         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55161         * modules/ceilf-tests: Update.
55162
55163 2007-10-12  Bruno Haible  <bruno@clisp.org>
55164
55165         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55166         of 2.
55167         * tests/test-floorf2.c: New file.
55168         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55169
55170         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55171         * modules/floorf-tests: Update.
55172
55173 2007-10-12  Bruno Haible  <bruno@clisp.org>
55174
55175         * tests/test-trunc2.c: New file.
55176         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55177
55178         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55179         * modules/trunc-tests: Update.
55180
55181 2007-10-12  Bruno Haible  <bruno@clisp.org>
55182
55183         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55184         of 2.
55185         * tests/test-truncf2.c: New file.
55186         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55187
55188         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55189         * modules/truncf-tests: Update.
55190
55191 2007-10-11  Eric Blake  <ebb9@byu.net>
55192
55193         Don't claim strerror is broken on Interix.
55194         * doc/functions/strerror.texi (strerror): Known broken systems are
55195         now Solaris 8, and not Interix.
55196         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55197         Interix on cross-compile.
55198         Reported by Martin Koeppe in
55199         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55200
55201 2007-10-11  Bruno Haible  <bruno@clisp.org>
55202
55203         * modules/i-ring-tests: New file.
55204         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55205         instead of assert.
55206
55207 2007-10-11  Bruno Haible  <bruno@clisp.org>
55208
55209         * modules/filenamecat-tests: New file.
55210         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55211         * lib/filenamecat.c: Remove test code.
55212
55213 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55216
55217         * lib/strerror.c: Include <string.h> always, to test interface,
55218         and to remove the need for the dummy.
55219         Include intprops.h to compute width instead of doing it ourselves
55220         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55221         (strerror): Define it to return NULL if there's no system strerror.
55222         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55223         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55224         ancient pre-strerror Unix systems well any more.  Saying "unknown
55225         system error" is enough.
55226         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55227         simpler strerror.c implementation.
55228         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55229         Simplify the tests to reflect the simpler strerror implementation.
55230         * modules/strerror (Depends-on): Add intprops.
55231
55232 2007-10-09  Eric Blake  <ebb9@byu.net>
55233
55234         Silence test-fpending.
55235         * modules/fpending-tests (Files): Add wrapper script.
55236         * tests/test-fpending.sh: New file.
55237
55238 2007-10-09  Bruno Haible  <bruno@clisp.org>
55239
55240         * MODULES.html.sh (func_module): Don't create a hyperlink for
55241         function names like 'printf_frexp'.
55242         (Misc): Add crc, memxor.
55243         (Characteristics of floating types): New section.
55244         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55245         isnanf-nolibm, signbit, trunc, truncf, truncl.
55246         (Enhancements for ISO C 99 functions): New subsection Input/output.
55247         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55248         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55249         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55250         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55251         (Enhancements for POSIX:2001 functions): Add chdir-long.
55252         (File system functions): Add areadlink, chdir-safer, read-file.
55253         Remove cycle-check.
55254         (File system as inode set): New section.
55255         (Date and time): Add gethrxtime.
55256         (Multithreading): Add openmp.
55257         (Internationalization functions): Add localename.
55258         (Unicode string functions): Add unistr/u*-mbsnlen.
55259         (Support for maintaining and releasing projects): Add git-version-gen.
55260         (Lone files): Remove directories.
55261
55262 2007-10-08  Ben Pfaff  <blp@gnu.org>
55263
55264         * lib/xmalloca.h: Fix typo in comment.
55265
55266 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55267
55268         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55269         when avoiding problems with integer overflow.  Use a portable test
55270         instead.
55271
55272 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55273
55274         * modules/dummy (License): Change to LGPLv2+.
55275         * modules/float (License): Likewise
55276         * modules/realloc (License): Likewise
55277         * modules/stdlib (License): Likewise
55278
55279 2007-10-07  Bruno Haible  <bruno@clisp.org>
55280
55281         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55282         * floor.c (TWO_MANT_DIG): Likewise.
55283         * ceil.c (TWO_MANT_DIG): Likewise.
55284         Reported by Ben Pfaff.
55285
55286 2007-10-07  Bruno Haible  <bruno@clisp.org>
55287
55288         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55289         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55290         * lib/frexp.c (FUNC): Likewise.
55291         * lib/printf-frexp.h (printf_frexp): Likewise.
55292         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55293         * lib/printf-frexp.c (FUNC): Likewise.
55294         Suggested by Jim Meyering.
55295
55296 2007-10-07  Jim Meyering  <meyering@redhat.com>
55297
55298         Make xnanosleep's integer overflow test more robust.
55299         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55300         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55301
55302 2007-10-07  Bruno Haible  <bruno@clisp.org>
55303
55304         * NEWS: Mention the license change.
55305
55306         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55307         abbreviations in the modules files.
55308
55309         Change copyright notice from GPLv2+ to GPLv3+.
55310         * README: Change copyright notice.
55311         * MODULES.html.sh: Likewise.
55312         * build-aux/bootstrap.conf: Likewise.
55313         * build-aux/config.libpath: Likewise.
55314         * build-aux/csharpcomp.sh.in: Likewise.
55315         * build-aux/csharpexec.sh.in: Likewise.
55316         * build-aux/install-reloc: Likewise.
55317         * build-aux/javacomp.sh.in: Likewise.
55318         * build-aux/javaexec.sh.in: Likewise.
55319         * build-aux/ldd.sh.in: Likewise.
55320         * build-aux/reloc-ldflags: Likewise.
55321         * build-aux/relocatable.sh.in: Likewise.
55322         * build-aux/x-to-1.in: Likewise.
55323         * check-module: Likewise.
55324         * config/srclistvars.sh: Likewise.
55325         * gnulib-tool: Likewise.
55326         * lib/acl-internal.h: Likewise.
55327         * lib/acl.c: Likewise.
55328         * lib/acl.h: Likewise.
55329         * lib/acl_entries.c: Likewise.
55330         * lib/areadlink-with-size.c: Likewise.
55331         * lib/areadlink.c: Likewise.
55332         * lib/areadlink.h: Likewise.
55333         * lib/argmatch.c: Likewise.
55334         * lib/argmatch.h: Likewise.
55335         * lib/argp-ba.c: Likewise.
55336         * lib/argp-eexst.c: Likewise.
55337         * lib/argp-fmtstream.c: Likewise.
55338         * lib/argp-fmtstream.h: Likewise.
55339         * lib/argp-fs-xinl.c: Likewise.
55340         * lib/argp-help.c: Likewise.
55341         * lib/argp-namefrob.h: Likewise.
55342         * lib/argp-parse.c: Likewise.
55343         * lib/argp-pin.c: Likewise.
55344         * lib/argp-pv.c: Likewise.
55345         * lib/argp-pvh.c: Likewise.
55346         * lib/argp-xinl.c: Likewise.
55347         * lib/argp.h: Likewise.
55348         * lib/at-func.c: Likewise.
55349         * lib/atanl.c: Likewise.
55350         * lib/backupfile.c: Likewise.
55351         * lib/backupfile.h: Likewise.
55352         * lib/basename.c: Likewise.
55353         * lib/binary-io.h: Likewise.
55354         * lib/byteswap.in.h: Likewise.
55355         * lib/c-stack.c: Likewise.
55356         * lib/c-stack.h: Likewise.
55357         * lib/c-strcasestr.c: Likewise.
55358         * lib/c-strcasestr.h: Likewise.
55359         * lib/c-strstr.c: Likewise.
55360         * lib/c-strstr.h: Likewise.
55361         * lib/c-strtod.c: Likewise.
55362         * lib/calloc.c: Likewise.
55363         * lib/canon-host.c: Likewise.
55364         * lib/canon-host.h: Likewise.
55365         * lib/canonicalize-lgpl.c: Likewise.
55366         * lib/canonicalize.c: Likewise.
55367         * lib/canonicalize.h: Likewise.
55368         * lib/ceil.c: Likewise.
55369         * lib/ceilf.c: Likewise.
55370         * lib/ceill.c: Likewise.
55371         * lib/chdir-long.c: Likewise.
55372         * lib/chdir-long.h: Likewise.
55373         * lib/chdir-safer.c: Likewise.
55374         * lib/chdir-safer.h: Likewise.
55375         * lib/chown.c: Likewise.
55376         * lib/classpath.c: Likewise.
55377         * lib/classpath.h: Likewise.
55378         * lib/clean-temp.c: Likewise.
55379         * lib/clean-temp.h: Likewise.
55380         * lib/cloexec.c: Likewise.
55381         * lib/close-stream.c: Likewise.
55382         * lib/closein.c: Likewise.
55383         * lib/closein.h: Likewise.
55384         * lib/closeout.c: Likewise.
55385         * lib/closeout.h: Likewise.
55386         * lib/concat-filename.c: Likewise.
55387         * lib/copy-file.c: Likewise.
55388         * lib/copy-file.h: Likewise.
55389         * lib/count-one-bits.h: Likewise.
55390         * lib/crc.c: Likewise.
55391         * lib/crc.h: Likewise.
55392         * lib/creat-safer.c: Likewise.
55393         * lib/csharpcomp.c: Likewise.
55394         * lib/csharpcomp.h: Likewise.
55395         * lib/csharpexec.c: Likewise.
55396         * lib/csharpexec.h: Likewise.
55397         * lib/cycle-check.c: Likewise.
55398         * lib/cycle-check.h: Likewise.
55399         * lib/diacrit.c: Likewise.
55400         * lib/diacrit.h: Likewise.
55401         * lib/diffseq.h: Likewise.
55402         * lib/dirchownmod.c: Likewise.
55403         * lib/dirent.in.h: Likewise.
55404         * lib/dirfd.c: Likewise.
55405         * lib/dirfd.h: Likewise.
55406         * lib/dirname.c: Likewise.
55407         * lib/dirname.h: Likewise.
55408         * lib/dummy.c: Likewise.
55409         * lib/dup-safer.c: Likewise.
55410         * lib/dup2.c: Likewise.
55411         * lib/eealloc.h: Likewise.
55412         * lib/error.c: Likewise.
55413         * lib/error.h: Likewise.
55414         * lib/euidaccess.c: Likewise.
55415         * lib/exclude.c: Likewise.
55416         * lib/exclude.h: Likewise.
55417         * lib/execute.c: Likewise.
55418         * lib/execute.h: Likewise.
55419         * lib/exitfail.c: Likewise.
55420         * lib/exitfail.h: Likewise.
55421         * lib/expl.c: Likewise.
55422         * lib/fatal-signal.c: Likewise.
55423         * lib/fatal-signal.h: Likewise.
55424         * lib/fbufmode.c: Likewise.
55425         * lib/fbufmode.h: Likewise.
55426         * lib/fchdir.c: Likewise.
55427         * lib/fchmodat.c: Likewise.
55428         * lib/fchownat.c: Likewise.
55429         * lib/fcntl--.h: Likewise.
55430         * lib/fcntl-safer.h: Likewise.
55431         * lib/fcntl.in.h: Likewise.
55432         * lib/fd-safer.c: Likewise.
55433         * lib/fflush.c: Likewise.
55434         * lib/file-has-acl.c: Likewise.
55435         * lib/file-set.c: Likewise.
55436         * lib/file-type.c: Likewise.
55437         * lib/file-type.h: Likewise.
55438         * lib/fileblocks.c: Likewise.
55439         * lib/filemode.c: Likewise.
55440         * lib/filemode.h: Likewise.
55441         * lib/filename.h: Likewise.
55442         * lib/filenamecat.c: Likewise.
55443         * lib/filenamecat.h: Likewise.
55444         * lib/findprog.c: Likewise.
55445         * lib/findprog.h: Likewise.
55446         * lib/float.in.h: Likewise.
55447         * lib/floor.c: Likewise.
55448         * lib/floorf.c: Likewise.
55449         * lib/floorl.c: Likewise.
55450         * lib/fopen-safer.c: Likewise.
55451         * lib/fopen.c: Likewise.
55452         * lib/fpending.c: Likewise.
55453         * lib/fpending.h: Likewise.
55454         * lib/fprintf.c: Likewise.
55455         * lib/fprintftime.h: Likewise.
55456         * lib/fpucw.h: Likewise.
55457         * lib/fpurge.c: Likewise.
55458         * lib/fpurge.h: Likewise.
55459         * lib/freadable.c: Likewise.
55460         * lib/freadable.h: Likewise.
55461         * lib/freadahead.c: Likewise.
55462         * lib/freadahead.h: Likewise.
55463         * lib/freading.c: Likewise.
55464         * lib/freading.h: Likewise.
55465         * lib/free.c: Likewise.
55466         * lib/freopen.c: Likewise.
55467         * lib/frexp.c: Likewise.
55468         * lib/frexpl.c: Likewise.
55469         * lib/fseek.c: Likewise.
55470         * lib/fseterr.c: Likewise.
55471         * lib/fseterr.h: Likewise.
55472         * lib/fstatat.c: Likewise.
55473         * lib/fstrcmp.c: Likewise.
55474         * lib/fstrcmp.h: Likewise.
55475         * lib/fsusage.c: Likewise.
55476         * lib/fsusage.h: Likewise.
55477         * lib/ftell.c: Likewise.
55478         * lib/ftello.c: Likewise.
55479         * lib/fts-cycle.c: Likewise.
55480         * lib/fts.c: Likewise.
55481         * lib/fts_.h: Likewise.
55482         * lib/full-read.c: Likewise.
55483         * lib/full-read.h: Likewise.
55484         * lib/full-write.c: Likewise.
55485         * lib/full-write.h: Likewise.
55486         * lib/fwritable.c: Likewise.
55487         * lib/fwritable.h: Likewise.
55488         * lib/fwriteerror.c: Likewise.
55489         * lib/fwriteerror.h: Likewise.
55490         * lib/fwriting.c: Likewise.
55491         * lib/fwriting.h: Likewise.
55492         * lib/gcd.c: Likewise.
55493         * lib/gcd.h: Likewise.
55494         * lib/getcwd.c: Likewise.
55495         * lib/getdate.h: Likewise.
55496         * lib/getdate.y: Likewise.
55497         * lib/getdomainname.c: Likewise.
55498         * lib/getdomainname.h: Likewise.
55499         * lib/getgroups.c: Likewise.
55500         * lib/gethostname.c: Likewise.
55501         * lib/gethrxtime.c: Likewise.
55502         * lib/gethrxtime.h: Likewise.
55503         * lib/getloadavg.c: Likewise.
55504         * lib/getndelim2.c: Likewise.
55505         * lib/getndelim2.h: Likewise.
55506         * lib/getnline.c: Likewise.
55507         * lib/getnline.h: Likewise.
55508         * lib/getopt.c: Likewise.
55509         * lib/getopt.in.h: Likewise.
55510         * lib/getopt1.c: Likewise.
55511         * lib/getopt_int.h: Likewise.
55512         * lib/getpagesize.h: Likewise.
55513         * lib/getsubopt.c: Likewise.
55514         * lib/gettime.c: Likewise.
55515         * lib/getugroups.c: Likewise.
55516         * lib/getugroups.h: Likewise.
55517         * lib/getusershell.c: Likewise.
55518         * lib/gl_anyavltree_list1.h: Likewise.
55519         * lib/gl_anyavltree_list2.h: Likewise.
55520         * lib/gl_anyhash_list1.h: Likewise.
55521         * lib/gl_anyhash_list2.h: Likewise.
55522         * lib/gl_anylinked_list1.h: Likewise.
55523         * lib/gl_anylinked_list2.h: Likewise.
55524         * lib/gl_anyrbtree_list1.h: Likewise.
55525         * lib/gl_anyrbtree_list2.h: Likewise.
55526         * lib/gl_anytree_list1.h: Likewise.
55527         * lib/gl_anytree_list2.h: Likewise.
55528         * lib/gl_anytree_oset.h: Likewise.
55529         * lib/gl_anytreehash_list1.h: Likewise.
55530         * lib/gl_anytreehash_list2.h: Likewise.
55531         * lib/gl_array_list.c: Likewise.
55532         * lib/gl_array_list.h: Likewise.
55533         * lib/gl_array_oset.c: Likewise.
55534         * lib/gl_array_oset.h: Likewise.
55535         * lib/gl_avltree_list.c: Likewise.
55536         * lib/gl_avltree_list.h: Likewise.
55537         * lib/gl_avltree_oset.c: Likewise.
55538         * lib/gl_avltree_oset.h: Likewise.
55539         * lib/gl_avltreehash_list.c: Likewise.
55540         * lib/gl_avltreehash_list.h: Likewise.
55541         * lib/gl_carray_list.c: Likewise.
55542         * lib/gl_carray_list.h: Likewise.
55543         * lib/gl_linked_list.c: Likewise.
55544         * lib/gl_linked_list.h: Likewise.
55545         * lib/gl_linkedhash_list.c: Likewise.
55546         * lib/gl_linkedhash_list.h: Likewise.
55547         * lib/gl_list.c: Likewise.
55548         * lib/gl_list.h: Likewise.
55549         * lib/gl_oset.c: Likewise.
55550         * lib/gl_oset.h: Likewise.
55551         * lib/gl_rbtree_list.c: Likewise.
55552         * lib/gl_rbtree_list.h: Likewise.
55553         * lib/gl_rbtree_oset.c: Likewise.
55554         * lib/gl_rbtree_oset.h: Likewise.
55555         * lib/gl_rbtreehash_list.c: Likewise.
55556         * lib/gl_rbtreehash_list.h: Likewise.
55557         * lib/gl_sublist.c: Likewise.
55558         * lib/gl_sublist.h: Likewise.
55559         * lib/group-member.c: Likewise.
55560         * lib/group-member.h: Likewise.
55561         * lib/hard-locale.c: Likewise.
55562         * lib/hard-locale.h: Likewise.
55563         * lib/hash-pjw.c: Likewise.
55564         * lib/hash-pjw.h: Likewise.
55565         * lib/hash-triple.c: Likewise.
55566         * lib/hash.c: Likewise.
55567         * lib/hash.h: Likewise.
55568         * lib/human.c: Likewise.
55569         * lib/human.h: Likewise.
55570         * lib/i-ring.c: Likewise.
55571         * lib/i-ring.h: Likewise.
55572         * lib/idcache.c: Likewise.
55573         * lib/imaxabs.c: Likewise.
55574         * lib/imaxdiv.c: Likewise.
55575         * lib/inet_pton.c: Likewise.
55576         * lib/inet_pton.h: Likewise.
55577         * lib/intprops.h: Likewise.
55578         * lib/inttostr.c: Likewise.
55579         * lib/inttostr.h: Likewise.
55580         * lib/inttypes.in.h: Likewise.
55581         * lib/isapipe.c: Likewise.
55582         * lib/isdir.c: Likewise.
55583         * lib/isnan.c: Likewise.
55584         * lib/isnan.h: Likewise.
55585         * lib/isnanf.c: Likewise.
55586         * lib/isnanf.h: Likewise.
55587         * lib/isnanl-nolibm.h: Likewise.
55588         * lib/isnanl.c: Likewise.
55589         * lib/isnanl.h: Likewise.
55590         * lib/javacomp.c: Likewise.
55591         * lib/javacomp.h: Likewise.
55592         * lib/javaexec.c: Likewise.
55593         * lib/javaexec.h: Likewise.
55594         * lib/javaversion.c: Likewise.
55595         * lib/javaversion.h: Likewise.
55596         * lib/javaversion.java: Likewise.
55597         * lib/lbrkprop.h: Likewise.
55598         * lib/lchmod.h: Likewise.
55599         * lib/lchown.c: Likewise.
55600         * lib/ldexpl.c: Likewise.
55601         * lib/linebreak.c: Likewise.
55602         * lib/linebreak.h: Likewise.
55603         * lib/linebuffer.c: Likewise.
55604         * lib/linebuffer.h: Likewise.
55605         * lib/locale.in.h: Likewise.
55606         * lib/logl.c: Likewise.
55607         * lib/long-options.c: Likewise.
55608         * lib/long-options.h: Likewise.
55609         * lib/lstat.c: Likewise.
55610         * lib/lstat.h: Likewise.
55611         * lib/math.in.h: Likewise.
55612         * lib/mbchar.c: Likewise.
55613         * lib/mbchar.h: Likewise.
55614         * lib/mbfile.h: Likewise.
55615         * lib/mbiter.h: Likewise.
55616         * lib/mbscasecmp.c: Likewise.
55617         * lib/mbscasestr.c: Likewise.
55618         * lib/mbschr.c: Likewise.
55619         * lib/mbscspn.c: Likewise.
55620         * lib/mbslen.c: Likewise.
55621         * lib/mbsncasecmp.c: Likewise.
55622         * lib/mbsnlen.c: Likewise.
55623         * lib/mbspbrk.c: Likewise.
55624         * lib/mbspcasecmp.c: Likewise.
55625         * lib/mbsrchr.c: Likewise.
55626         * lib/mbssep.c: Likewise.
55627         * lib/mbsspn.c: Likewise.
55628         * lib/mbsstr.c: Likewise.
55629         * lib/mbstok_r.c: Likewise.
55630         * lib/mbswidth.c: Likewise.
55631         * lib/mbswidth.h: Likewise.
55632         * lib/mbuiter.h: Likewise.
55633         * lib/memcasecmp.c: Likewise.
55634         * lib/memcasecmp.h: Likewise.
55635         * lib/memchr.c: Likewise.
55636         * lib/memcmp.c: Likewise.
55637         * lib/memcoll.c: Likewise.
55638         * lib/memcoll.h: Likewise.
55639         * lib/memcpy.c: Likewise.
55640         * lib/memrchr.c: Likewise.
55641         * lib/mkancesdirs.c: Likewise.
55642         * lib/mkdir-p.c: Likewise.
55643         * lib/mkdir-p.h: Likewise.
55644         * lib/mkdir.c: Likewise.
55645         * lib/mkdirat.c: Likewise.
55646         * lib/mkdtemp.c: Likewise.
55647         * lib/mkstemp-safer.c: Likewise.
55648         * lib/mkstemp.c: Likewise.
55649         * lib/modechange.c: Likewise.
55650         * lib/modechange.h: Likewise.
55651         * lib/mountlist.c: Likewise.
55652         * lib/mountlist.h: Likewise.
55653         * lib/mpsort.c: Likewise.
55654         * lib/nanosleep.c: Likewise.
55655         * lib/obstack.c: Likewise.
55656         * lib/obstack.h: Likewise.
55657         * lib/open-safer.c: Likewise.
55658         * lib/open.c: Likewise.
55659         * lib/openat-die.c: Likewise.
55660         * lib/openat-priv.h: Likewise.
55661         * lib/openat-proc.c: Likewise.
55662         * lib/openat.c: Likewise.
55663         * lib/openat.h: Likewise.
55664         * lib/pagealign_alloc.c: Likewise.
55665         * lib/pagealign_alloc.h: Likewise.
55666         * lib/physmem.c: Likewise.
55667         * lib/physmem.h: Likewise.
55668         * lib/pipe-safer.c: Likewise.
55669         * lib/pipe.c: Likewise.
55670         * lib/pipe.h: Likewise.
55671         * lib/posixtm.c: Likewise.
55672         * lib/posixtm.h: Likewise.
55673         * lib/posixver.c: Likewise.
55674         * lib/printf-frexp.c: Likewise.
55675         * lib/printf-frexp.h: Likewise.
55676         * lib/printf-frexpl.c: Likewise.
55677         * lib/printf-frexpl.h: Likewise.
55678         * lib/printf.c: Likewise.
55679         * lib/progname.c: Likewise.
55680         * lib/progname.h: Likewise.
55681         * lib/progreloc.c: Likewise.
55682         * lib/putenv.c: Likewise.
55683         * lib/quote.c: Likewise.
55684         * lib/quote.h: Likewise.
55685         * lib/quotearg.c: Likewise.
55686         * lib/quotearg.h: Likewise.
55687         * lib/raise.c: Likewise.
55688         * lib/readline.c: Likewise.
55689         * lib/readline.h: Likewise.
55690         * lib/readlink.c: Likewise.
55691         * lib/readtokens.c: Likewise.
55692         * lib/readtokens.h: Likewise.
55693         * lib/readtokens0.c: Likewise.
55694         * lib/readtokens0.h: Likewise.
55695         * lib/readutmp.c: Likewise.
55696         * lib/readutmp.h: Likewise.
55697         * lib/realloc.c: Likewise.
55698         * lib/relocwrapper.c: Likewise.
55699         * lib/rename-dest-slash.c: Likewise.
55700         * lib/rename.c: Likewise.
55701         * lib/rmdir.c: Likewise.
55702         * lib/rpmatch.c: Likewise.
55703         * lib/safe-read.c: Likewise.
55704         * lib/safe-read.h: Likewise.
55705         * lib/safe-write.c: Likewise.
55706         * lib/safe-write.h: Likewise.
55707         * lib/same-inode.h: Likewise.
55708         * lib/same.c: Likewise.
55709         * lib/same.h: Likewise.
55710         * lib/save-cwd.c: Likewise.
55711         * lib/save-cwd.h: Likewise.
55712         * lib/savedir.c: Likewise.
55713         * lib/savedir.h: Likewise.
55714         * lib/savewd.c: Likewise.
55715         * lib/savewd.h: Likewise.
55716         * lib/search.in.h: Likewise.
55717         * lib/setenv.c: Likewise.
55718         * lib/setenv.h: Likewise.
55719         * lib/settime.c: Likewise.
55720         * lib/sh-quote.c: Likewise.
55721         * lib/sh-quote.h: Likewise.
55722         * lib/sig2str.c: Likewise.
55723         * lib/sig2str.h: Likewise.
55724         * lib/signal.in.h: Likewise.
55725         * lib/signbitd.c: Likewise.
55726         * lib/signbitf.c: Likewise.
55727         * lib/signbitl.c: Likewise.
55728         * lib/sigprocmask.c: Likewise.
55729         * lib/sincosl.c: Likewise.
55730         * lib/sleep.c: Likewise.
55731         * lib/sprintf.c: Likewise.
55732         * lib/sqrtl.c: Likewise.
55733         * lib/stat-time.h: Likewise.
55734         * lib/stdio--.h: Likewise.
55735         * lib/stdio-safer.h: Likewise.
55736         * lib/stdlib--.h: Likewise.
55737         * lib/stdlib-safer.h: Likewise.
55738         * lib/stdlib.in.h: Likewise.
55739         * lib/stpcpy.c: Likewise.
55740         * lib/stpncpy.c: Likewise.
55741         * lib/strchrnul.c: Likewise.
55742         * lib/strcspn.c: Likewise.
55743         * lib/strerror.c: Likewise.
55744         * lib/strftime.c: Likewise.
55745         * lib/strftime.h: Likewise.
55746         * lib/striconveh.c: Likewise.
55747         * lib/striconveh.h: Likewise.
55748         * lib/striconveha.c: Likewise.
55749         * lib/striconveha.h: Likewise.
55750         * lib/stripslash.c: Likewise.
55751         * lib/strnlen1.c: Likewise.
55752         * lib/strnlen1.h: Likewise.
55753         * lib/strtod.c: Likewise.
55754         * lib/strtoimax.c: Likewise.
55755         * lib/strtok_r.c: Likewise.
55756         * lib/strtol.c: Likewise.
55757         * lib/strtoll.c: Likewise.
55758         * lib/strtoul.c: Likewise.
55759         * lib/strtoull.c: Likewise.
55760         * lib/sysexits.in.h: Likewise.
55761         * lib/tempname.c: Likewise.
55762         * lib/tempname.h: Likewise.
55763         * lib/timespec.h: Likewise.
55764         * lib/tls.c: Likewise.
55765         * lib/tls.h: Likewise.
55766         * lib/tmpdir.c: Likewise.
55767         * lib/tmpdir.h: Likewise.
55768         * lib/tmpfile-safer.c: Likewise.
55769         * lib/tmpfile.c: Likewise.
55770         * lib/trigl.c: Likewise.
55771         * lib/trigl.h: Likewise.
55772         * lib/trim.c: Likewise.
55773         * lib/trim.h: Likewise.
55774         * lib/trunc.c: Likewise.
55775         * lib/truncf.c: Likewise.
55776         * lib/truncl.c: Likewise.
55777         * lib/tsearch.c: Likewise.
55778         * lib/unicodeio.c: Likewise.
55779         * lib/unicodeio.h: Likewise.
55780         * lib/unistd--.h: Likewise.
55781         * lib/unistd-safer.h: Likewise.
55782         * lib/unistdio/ulc-fprintf.c: Likewise.
55783         * lib/unistdio/ulc-vfprintf.c: Likewise.
55784         * lib/unlinkdir.c: Likewise.
55785         * lib/unlinkdir.h: Likewise.
55786         * lib/unlocked-io.h: Likewise.
55787         * lib/unsetenv.c: Likewise.
55788         * lib/userspec.c: Likewise.
55789         * lib/utime.c: Likewise.
55790         * lib/utimecmp.c: Likewise.
55791         * lib/utimecmp.h: Likewise.
55792         * lib/utimens.c: Likewise.
55793         * lib/verify.h: Likewise.
55794         * lib/verror.c: Likewise.
55795         * lib/verror.h: Likewise.
55796         * lib/version-etc-fsf.c: Likewise.
55797         * lib/version-etc.c: Likewise.
55798         * lib/version-etc.h: Likewise.
55799         * lib/vfprintf.c: Likewise.
55800         * lib/vprintf.c: Likewise.
55801         * lib/vsprintf.c: Likewise.
55802         * lib/w32spawn.h: Likewise.
55803         * lib/wait-process.c: Likewise.
55804         * lib/wait-process.h: Likewise.
55805         * lib/wcwidth.c: Likewise.
55806         * lib/write-any-file.c: Likewise.
55807         * lib/xalloc-die.c: Likewise.
55808         * lib/xalloc.h: Likewise.
55809         * lib/xasprintf.c: Likewise.
55810         * lib/xgetcwd.c: Likewise.
55811         * lib/xgetcwd.h: Likewise.
55812         * lib/xgetdomainname.c: Likewise.
55813         * lib/xgetdomainname.h: Likewise.
55814         * lib/xgethostname.c: Likewise.
55815         * lib/xmalloc.c: Likewise.
55816         * lib/xmalloca.c: Likewise.
55817         * lib/xmalloca.h: Likewise.
55818         * lib/xmemcoll.c: Likewise.
55819         * lib/xnanosleep.c: Likewise.
55820         * lib/xreadlink.c: Likewise.
55821         * lib/xreadlink.h: Likewise.
55822         * lib/xsetenv.c: Likewise.
55823         * lib/xsetenv.h: Likewise.
55824         * lib/xstriconv.c: Likewise.
55825         * lib/xstriconv.h: Likewise.
55826         * lib/xstrndup.c: Likewise.
55827         * lib/xstrndup.h: Likewise.
55828         * lib/xstrtod.c: Likewise.
55829         * lib/xstrtod.h: Likewise.
55830         * lib/xstrtol-error.c: Likewise.
55831         * lib/xstrtol.c: Likewise.
55832         * lib/xstrtol.h: Likewise.
55833         * lib/xtime.h: Likewise.
55834         * lib/xvasprintf.c: Likewise.
55835         * lib/xvasprintf.h: Likewise.
55836         * lib/yesno.c: Likewise.
55837         * lib/yesno.h: Likewise.
55838         * posix-modules: Likewise.
55839         * tests/test-alloca-opt.c: Likewise.
55840         * tests/test-arcfour.c: Likewise.
55841         * tests/test-arctwo.c: Likewise.
55842         * tests/test-argmatch.c: Likewise.
55843         * tests/test-argp-2.sh: Likewise.
55844         * tests/test-argp.c: Likewise.
55845         * tests/test-arpa_inet.c: Likewise.
55846         * tests/test-array_list.c: Likewise.
55847         * tests/test-array_oset.c: Likewise.
55848         * tests/test-atexit.c: Likewise.
55849         * tests/test-avltree_list.c: Likewise.
55850         * tests/test-avltree_oset.c: Likewise.
55851         * tests/test-avltreehash_list.c: Likewise.
55852         * tests/test-base64.c: Likewise.
55853         * tests/test-binary-io.c: Likewise.
55854         * tests/test-byteswap.c: Likewise.
55855         * tests/test-c-ctype.c: Likewise.
55856         * tests/test-c-strcasecmp.c: Likewise.
55857         * tests/test-c-strcasestr.c: Likewise.
55858         * tests/test-c-strncasecmp.c: Likewise.
55859         * tests/test-c-strstr.c: Likewise.
55860         * tests/test-canonicalize-lgpl.c: Likewise.
55861         * tests/test-canonicalize.c: Likewise.
55862         * tests/test-carray_list.c: Likewise.
55863         * tests/test-ceilf.c: Likewise.
55864         * tests/test-ceill.c: Likewise.
55865         * tests/test-count-one-bits.c: Likewise.
55866         * tests/test-crc.c: Likewise.
55867         * tests/test-dirname.c: Likewise.
55868         * tests/test-fbufmode.c: Likewise.
55869         * tests/test-fcntl.c: Likewise.
55870         * tests/test-fflush.c: Likewise.
55871         * tests/test-floorf.c: Likewise.
55872         * tests/test-floorl.c: Likewise.
55873         * tests/test-fopen.c: Likewise.
55874         * tests/test-fprintf-posix.c: Likewise.
55875         * tests/test-fprintf-posix.h: Likewise.
55876         * tests/test-fpurge.c: Likewise.
55877         * tests/test-freadable.c: Likewise.
55878         * tests/test-freadahead.c: Likewise.
55879         * tests/test-freading.c: Likewise.
55880         * tests/test-freopen.c: Likewise.
55881         * tests/test-frexp.c: Likewise.
55882         * tests/test-frexpl.c: Likewise.
55883         * tests/test-fseek.c: Likewise.
55884         * tests/test-fseeko.c: Likewise.
55885         * tests/test-fseterr.c: Likewise.
55886         * tests/test-fstrcmp.c: Likewise.
55887         * tests/test-ftell.c: Likewise.
55888         * tests/test-ftello.c: Likewise.
55889         * tests/test-fwritable.c: Likewise.
55890         * tests/test-fwriting.c: Likewise.
55891         * tests/test-getaddrinfo.c: Likewise.
55892         * tests/test-getpass.c: Likewise.
55893         * tests/test-gettimeofday.c: Likewise.
55894         * tests/test-hmac-md5.c: Likewise.
55895         * tests/test-hmac-sha1.c: Likewise.
55896         * tests/test-iconv.c: Likewise.
55897         * tests/test-iconvme.c: Likewise.
55898         * tests/test-inttypes.c: Likewise.
55899         * tests/test-isnan.c: Likewise.
55900         * tests/test-isnanf.c: Likewise.
55901         * tests/test-isnanl-nolibm.c: Likewise.
55902         * tests/test-isnanl.c: Likewise.
55903         * tests/test-isnanl.h: Likewise.
55904         * tests/test-ldexpl.c: Likewise.
55905         * tests/test-linked_list.c: Likewise.
55906         * tests/test-linkedhash_list.c: Likewise.
55907         * tests/test-locale.c: Likewise.
55908         * tests/test-localename.c: Likewise.
55909         * tests/test-lock.c: Likewise.
55910         * tests/test-lseek.c: Likewise.
55911         * tests/test-malloca.c: Likewise.
55912         * tests/test-math.c: Likewise.
55913         * tests/test-mbscasecmp.c: Likewise.
55914         * tests/test-mbscasestr1.c: Likewise.
55915         * tests/test-mbscasestr2.c: Likewise.
55916         * tests/test-mbscasestr3.c: Likewise.
55917         * tests/test-mbscasestr4.c: Likewise.
55918         * tests/test-mbschr.c: Likewise.
55919         * tests/test-mbscspn.c: Likewise.
55920         * tests/test-mbsncasecmp.c: Likewise.
55921         * tests/test-mbspbrk.c: Likewise.
55922         * tests/test-mbspcasecmp.c: Likewise.
55923         * tests/test-mbsrchr.c: Likewise.
55924         * tests/test-mbsspn.c: Likewise.
55925         * tests/test-mbsstr1.c: Likewise.
55926         * tests/test-mbsstr2.c: Likewise.
55927         * tests/test-mbsstr3.c: Likewise.
55928         * tests/test-md5.c: Likewise.
55929         * tests/test-memmem.c: Likewise.
55930         * tests/test-netinet_in.c: Likewise.
55931         * tests/test-open.c: Likewise.
55932         * tests/test-printf-frexp.c: Likewise.
55933         * tests/test-printf-frexpl.c: Likewise.
55934         * tests/test-printf-posix.c: Likewise.
55935         * tests/test-printf-posix.h: Likewise.
55936         * tests/test-rbtree_list.c: Likewise.
55937         * tests/test-rbtree_oset.c: Likewise.
55938         * tests/test-rbtreehash_list.c: Likewise.
55939         * tests/test-read-file.c: Likewise.
55940         * tests/test-rijndael.c: Likewise.
55941         * tests/test-search.c: Likewise.
55942         * tests/test-signbit.c: Likewise.
55943         * tests/test-sleep.c: Likewise.
55944         * tests/test-snprintf-posix.c: Likewise.
55945         * tests/test-snprintf-posix.h: Likewise.
55946         * tests/test-snprintf.c: Likewise.
55947         * tests/test-sprintf-posix.c: Likewise.
55948         * tests/test-sprintf-posix.h: Likewise.
55949         * tests/test-stat-time.c: Likewise.
55950         * tests/test-stdbool.c: Likewise.
55951         * tests/test-stdint.c: Likewise.
55952         * tests/test-stdio.c: Likewise.
55953         * tests/test-stdlib.c: Likewise.
55954         * tests/test-stpncpy.c: Likewise.
55955         * tests/test-strcasestr.c: Likewise.
55956         * tests/test-striconv.c: Likewise.
55957         * tests/test-striconveh.c: Likewise.
55958         * tests/test-striconveha.c: Likewise.
55959         * tests/test-string.c: Likewise.
55960         * tests/test-sys_select.c: Likewise.
55961         * tests/test-sys_socket.c: Likewise.
55962         * tests/test-sys_stat.c: Likewise.
55963         * tests/test-sys_time.c: Likewise.
55964         * tests/test-sysexits.c: Likewise.
55965         * tests/test-time.c: Likewise.
55966         * tests/test-tls.c: Likewise.
55967         * tests/test-trunc.c: Likewise.
55968         * tests/test-truncf.c: Likewise.
55969         * tests/test-truncl.c: Likewise.
55970         * tests/test-unistd.c: Likewise.
55971         * tests/test-vasnprintf-posix.c: Likewise.
55972         * tests/test-vasnprintf-posix2.c: Likewise.
55973         * tests/test-vasnprintf.c: Likewise.
55974         * tests/test-vasprintf-posix.c: Likewise.
55975         * tests/test-vasprintf.c: Likewise.
55976         * tests/test-verify.c: Likewise.
55977         * tests/test-vfprintf-posix.c: Likewise.
55978         * tests/test-vprintf-posix.c: Likewise.
55979         * tests/test-vsnprintf-posix.c: Likewise.
55980         * tests/test-vsnprintf.c: Likewise.
55981         * tests/test-vsprintf-posix.c: Likewise.
55982         * tests/test-wchar.c: Likewise.
55983         * tests/test-wctype.c: Likewise.
55984         * tests/test-wcwidth.c: Likewise.
55985         * tests/test-xstrtol.c: Likewise.
55986         * tests/test-xvasprintf.c: Likewise.
55987         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55988         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55989         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55990         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55991         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55992         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55993         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55994         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55995         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55996         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55997         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55998         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55999         * tests/uniname/test-uninames.c: Likewise.
56000         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56001         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56002         * tests/unistdio/test-u16-printf1.h: Likewise.
56003         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56004         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56005         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56006         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56007         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56008         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56009         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56010         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56011         * tests/unistdio/test-u32-printf1.h: Likewise.
56012         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56013         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56014         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56015         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56016         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56017         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56018         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56019         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56020         * tests/unistdio/test-u8-printf1.h: Likewise.
56021         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56022         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56023         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56024         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56025         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56026         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56027         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56028         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56029         * tests/unistdio/test-ulc-printf1.h: Likewise.
56030         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56031         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56032         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56033         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56034         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56035         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56036         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56037         * tests/uniwidth/test-u16-width.c: Likewise.
56038         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56039         * tests/uniwidth/test-u32-width.c: Likewise.
56040         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56041         * tests/uniwidth/test-u8-width.c: Likewise.
56042         * tests/uniwidth/test-uc_width.c: Likewise.
56043         * config/srclist-update: Likewise.
56044         (fixlicense): Update to GPLv3+.
56045
56046         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56047         * tests/test-tsearch.c: Change copyright notice.
56048
56049         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56050         * lib/c-strcaseeq.h: Change copyright notice.
56051         * lib/streq.h: Likewise.
56052         * lib/uniconv.h: Likewise.
56053         * lib/uniconv/u-conv-from-enc.h: Likewise.
56054         * lib/uniconv/u-conv-to-enc.h: Likewise.
56055         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56056         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56057         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56058         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56059         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56060         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56061         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56062         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56063         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56064         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56065         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56066         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56067         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56068         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56069         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56070         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56071         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56072         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56073         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56074         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56075         * lib/uniname.h: Likewise.
56076         * lib/uniname/uniname.c: Likewise.
56077         * lib/unistdio.h: Likewise.
56078         * lib/unistdio/u-asnprintf.h: Likewise.
56079         * lib/unistdio/u-asprintf.h: Likewise.
56080         * lib/unistdio/u-printf-args.c: Likewise.
56081         * lib/unistdio/u-printf-args.h: Likewise.
56082         * lib/unistdio/u-printf-parse.h: Likewise.
56083         * lib/unistdio/u-snprintf.h: Likewise.
56084         * lib/unistdio/u-sprintf.h: Likewise.
56085         * lib/unistdio/u-vasprintf.h: Likewise.
56086         * lib/unistdio/u-vsnprintf.h: Likewise.
56087         * lib/unistdio/u-vsprintf.h: Likewise.
56088         * lib/unistdio/u16-asnprintf.c: Likewise.
56089         * lib/unistdio/u16-asprintf.c: Likewise.
56090         * lib/unistdio/u16-printf-parse.c: Likewise.
56091         * lib/unistdio/u16-snprintf.c: Likewise.
56092         * lib/unistdio/u16-sprintf.c: Likewise.
56093         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56094         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56095         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56096         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56097         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56098         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56099         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56100         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56101         * lib/unistdio/u16-vasnprintf.c: Likewise.
56102         * lib/unistdio/u16-vasprintf.c: Likewise.
56103         * lib/unistdio/u16-vsnprintf.c: Likewise.
56104         * lib/unistdio/u16-vsprintf.c: Likewise.
56105         * lib/unistdio/u32-asnprintf.c: Likewise.
56106         * lib/unistdio/u32-asprintf.c: Likewise.
56107         * lib/unistdio/u32-printf-parse.c: Likewise.
56108         * lib/unistdio/u32-snprintf.c: Likewise.
56109         * lib/unistdio/u32-sprintf.c: Likewise.
56110         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56111         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56112         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56113         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56114         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56115         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56116         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56117         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56118         * lib/unistdio/u32-vasnprintf.c: Likewise.
56119         * lib/unistdio/u32-vasprintf.c: Likewise.
56120         * lib/unistdio/u32-vsnprintf.c: Likewise.
56121         * lib/unistdio/u32-vsprintf.c: Likewise.
56122         * lib/unistdio/u8-asnprintf.c: Likewise.
56123         * lib/unistdio/u8-asprintf.c: Likewise.
56124         * lib/unistdio/u8-printf-parse.c: Likewise.
56125         * lib/unistdio/u8-snprintf.c: Likewise.
56126         * lib/unistdio/u8-sprintf.c: Likewise.
56127         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56128         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56129         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56130         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56131         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56132         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56133         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56134         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56135         * lib/unistdio/u8-vasnprintf.c: Likewise.
56136         * lib/unistdio/u8-vasprintf.c: Likewise.
56137         * lib/unistdio/u8-vsnprintf.c: Likewise.
56138         * lib/unistdio/u8-vsprintf.c: Likewise.
56139         * lib/unistdio/ulc-asnprintf.c: Likewise.
56140         * lib/unistdio/ulc-asprintf.c: Likewise.
56141         * lib/unistdio/ulc-printf-parse.c: Likewise.
56142         * lib/unistdio/ulc-snprintf.c: Likewise.
56143         * lib/unistdio/ulc-sprintf.c: Likewise.
56144         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56145         * lib/unistdio/ulc-vasprintf.c: Likewise.
56146         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56147         * lib/unistdio/ulc-vsprintf.c: Likewise.
56148         * lib/unistr.h: Likewise.
56149         * lib/unistr/u-cpy-alloc.h: Likewise.
56150         * lib/unistr/u-cpy.h: Likewise.
56151         * lib/unistr/u-endswith.h: Likewise.
56152         * lib/unistr/u-move.h: Likewise.
56153         * lib/unistr/u-set.h: Likewise.
56154         * lib/unistr/u-startswith.h: Likewise.
56155         * lib/unistr/u-stpcpy.h: Likewise.
56156         * lib/unistr/u-stpncpy.h: Likewise.
56157         * lib/unistr/u-strcat.h: Likewise.
56158         * lib/unistr/u-strcpy.h: Likewise.
56159         * lib/unistr/u-strcspn.h: Likewise.
56160         * lib/unistr/u-strdup.h: Likewise.
56161         * lib/unistr/u-strlen.h: Likewise.
56162         * lib/unistr/u-strncat.h: Likewise.
56163         * lib/unistr/u-strncpy.h: Likewise.
56164         * lib/unistr/u-strnlen.h: Likewise.
56165         * lib/unistr/u-strpbrk.h: Likewise.
56166         * lib/unistr/u-strspn.h: Likewise.
56167         * lib/unistr/u-strstr.h: Likewise.
56168         * lib/unistr/u-strtok.h: Likewise.
56169         * lib/unistr/u16-check.c: Likewise.
56170         * lib/unistr/u16-chr.c: Likewise.
56171         * lib/unistr/u16-cmp.c: Likewise.
56172         * lib/unistr/u16-cpy-alloc.c: Likewise.
56173         * lib/unistr/u16-cpy.c: Likewise.
56174         * lib/unistr/u16-endswith.c: Likewise.
56175         * lib/unistr/u16-mblen.c: Likewise.
56176         * lib/unistr/u16-mbsnlen.c: Likewise.
56177         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56178         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56179         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56180         * lib/unistr/u16-mbtouc.c: Likewise.
56181         * lib/unistr/u16-mbtoucr.c: Likewise.
56182         * lib/unistr/u16-move.c: Likewise.
56183         * lib/unistr/u16-next.c: Likewise.
56184         * lib/unistr/u16-prev.c: Likewise.
56185         * lib/unistr/u16-set.c: Likewise.
56186         * lib/unistr/u16-startswith.c: Likewise.
56187         * lib/unistr/u16-stpcpy.c: Likewise.
56188         * lib/unistr/u16-stpncpy.c: Likewise.
56189         * lib/unistr/u16-strcat.c: Likewise.
56190         * lib/unistr/u16-strchr.c: Likewise.
56191         * lib/unistr/u16-strcmp.c: Likewise.
56192         * lib/unistr/u16-strcpy.c: Likewise.
56193         * lib/unistr/u16-strcspn.c: Likewise.
56194         * lib/unistr/u16-strdup.c: Likewise.
56195         * lib/unistr/u16-strlen.c: Likewise.
56196         * lib/unistr/u16-strmblen.c: Likewise.
56197         * lib/unistr/u16-strmbtouc.c: Likewise.
56198         * lib/unistr/u16-strncat.c: Likewise.
56199         * lib/unistr/u16-strncmp.c: Likewise.
56200         * lib/unistr/u16-strncpy.c: Likewise.
56201         * lib/unistr/u16-strnlen.c: Likewise.
56202         * lib/unistr/u16-strpbrk.c: Likewise.
56203         * lib/unistr/u16-strrchr.c: Likewise.
56204         * lib/unistr/u16-strspn.c: Likewise.
56205         * lib/unistr/u16-strstr.c: Likewise.
56206         * lib/unistr/u16-strtok.c: Likewise.
56207         * lib/unistr/u16-to-u32.c: Likewise.
56208         * lib/unistr/u16-to-u8.c: Likewise.
56209         * lib/unistr/u16-uctomb-aux.c: Likewise.
56210         * lib/unistr/u16-uctomb.c: Likewise.
56211         * lib/unistr/u32-check.c: Likewise.
56212         * lib/unistr/u32-chr.c: Likewise.
56213         * lib/unistr/u32-cmp.c: Likewise.
56214         * lib/unistr/u32-cpy-alloc.c: Likewise.
56215         * lib/unistr/u32-cpy.c: Likewise.
56216         * lib/unistr/u32-endswith.c: Likewise.
56217         * lib/unistr/u32-mblen.c: Likewise.
56218         * lib/unistr/u32-mbsnlen.c: Likewise.
56219         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56220         * lib/unistr/u32-mbtouc.c: Likewise.
56221         * lib/unistr/u32-mbtoucr.c: Likewise.
56222         * lib/unistr/u32-move.c: Likewise.
56223         * lib/unistr/u32-next.c: Likewise.
56224         * lib/unistr/u32-prev.c: Likewise.
56225         * lib/unistr/u32-set.c: Likewise.
56226         * lib/unistr/u32-startswith.c: Likewise.
56227         * lib/unistr/u32-stpcpy.c: Likewise.
56228         * lib/unistr/u32-stpncpy.c: Likewise.
56229         * lib/unistr/u32-strcat.c: Likewise.
56230         * lib/unistr/u32-strchr.c: Likewise.
56231         * lib/unistr/u32-strcmp.c: Likewise.
56232         * lib/unistr/u32-strcpy.c: Likewise.
56233         * lib/unistr/u32-strcspn.c: Likewise.
56234         * lib/unistr/u32-strdup.c: Likewise.
56235         * lib/unistr/u32-strlen.c: Likewise.
56236         * lib/unistr/u32-strmblen.c: Likewise.
56237         * lib/unistr/u32-strmbtouc.c: Likewise.
56238         * lib/unistr/u32-strncat.c: Likewise.
56239         * lib/unistr/u32-strncmp.c: Likewise.
56240         * lib/unistr/u32-strncpy.c: Likewise.
56241         * lib/unistr/u32-strnlen.c: Likewise.
56242         * lib/unistr/u32-strpbrk.c: Likewise.
56243         * lib/unistr/u32-strrchr.c: Likewise.
56244         * lib/unistr/u32-strspn.c: Likewise.
56245         * lib/unistr/u32-strstr.c: Likewise.
56246         * lib/unistr/u32-strtok.c: Likewise.
56247         * lib/unistr/u32-to-u16.c: Likewise.
56248         * lib/unistr/u32-to-u8.c: Likewise.
56249         * lib/unistr/u32-uctomb.c: Likewise.
56250         * lib/unistr/u8-check.c: Likewise.
56251         * lib/unistr/u8-chr.c: Likewise.
56252         * lib/unistr/u8-cmp.c: Likewise.
56253         * lib/unistr/u8-cpy-alloc.c: Likewise.
56254         * lib/unistr/u8-cpy.c: Likewise.
56255         * lib/unistr/u8-endswith.c: Likewise.
56256         * lib/unistr/u8-mblen.c: Likewise.
56257         * lib/unistr/u8-mbsnlen.c: Likewise.
56258         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56259         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56260         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56261         * lib/unistr/u8-mbtouc.c: Likewise.
56262         * lib/unistr/u8-mbtoucr.c: Likewise.
56263         * lib/unistr/u8-move.c: Likewise.
56264         * lib/unistr/u8-next.c: Likewise.
56265         * lib/unistr/u8-prev.c: Likewise.
56266         * lib/unistr/u8-set.c: Likewise.
56267         * lib/unistr/u8-startswith.c: Likewise.
56268         * lib/unistr/u8-stpcpy.c: Likewise.
56269         * lib/unistr/u8-stpncpy.c: Likewise.
56270         * lib/unistr/u8-strcat.c: Likewise.
56271         * lib/unistr/u8-strchr.c: Likewise.
56272         * lib/unistr/u8-strcmp.c: Likewise.
56273         * lib/unistr/u8-strcpy.c: Likewise.
56274         * lib/unistr/u8-strcspn.c: Likewise.
56275         * lib/unistr/u8-strdup.c: Likewise.
56276         * lib/unistr/u8-strlen.c: Likewise.
56277         * lib/unistr/u8-strmblen.c: Likewise.
56278         * lib/unistr/u8-strmbtouc.c: Likewise.
56279         * lib/unistr/u8-strncat.c: Likewise.
56280         * lib/unistr/u8-strncmp.c: Likewise.
56281         * lib/unistr/u8-strncpy.c: Likewise.
56282         * lib/unistr/u8-strnlen.c: Likewise.
56283         * lib/unistr/u8-strpbrk.c: Likewise.
56284         * lib/unistr/u8-strrchr.c: Likewise.
56285         * lib/unistr/u8-strspn.c: Likewise.
56286         * lib/unistr/u8-strstr.c: Likewise.
56287         * lib/unistr/u8-strtok.c: Likewise.
56288         * lib/unistr/u8-to-u16.c: Likewise.
56289         * lib/unistr/u8-to-u32.c: Likewise.
56290         * lib/unistr/u8-uctomb-aux.c: Likewise.
56291         * lib/unistr/u8-uctomb.c: Likewise.
56292         * lib/unitypes.h: Likewise.
56293         * lib/uniwidth.h: Likewise.
56294         * lib/uniwidth/cjk.h: Likewise.
56295         * lib/uniwidth/u16-strwidth.c: Likewise.
56296         * lib/uniwidth/u16-width.c: Likewise.
56297         * lib/uniwidth/u32-strwidth.c: Likewise.
56298         * lib/uniwidth/u32-width.c: Likewise.
56299         * lib/uniwidth/u8-strwidth.c: Likewise.
56300         * lib/uniwidth/u8-width.c: Likewise.
56301         * lib/uniwidth/width.c: Likewise.
56302
56303 2007-10-07  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56306         The file is still under LGPL (see modules/inttypes).
56307
56308 2007-10-06  Bruno Haible  <bruno@clisp.org>
56309
56310         * modules/trunc (Dependencies): Add 'extensions'.
56311         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56312         Reported by Ben Pfaff <blp@gnu.org>.
56313
56314 2007-10-06  Bruno Haible  <bruno@clisp.org>
56315
56316         * modules/freopen-tests: New file.
56317         * tests/test-freopen.c: New file.
56318
56319         * modules/fopen-tests: New file.
56320         * tests/test-fopen.c: New file.
56321
56322         * modules/fopen: New file.
56323         * lib/fopen.c: New file.
56324         * m4/fopen.m4: New file.
56325         * modules/freopen: New file.
56326         * lib/freopen.c: New file.
56327         * m4/freopen.m4: New file.
56328         * lib/stdio.in.h (fopen, freopen): New declarations.
56329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56330         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56331         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56332         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56333         * doc/functions/fopen.texi: Mention the 'fopen' module.
56334         * doc/functions/freopen.texi: Mention the 'freopen' module.
56335
56336 2007-10-06  Bruno Haible  <bruno@clisp.org>
56337
56338         * modules/open-tests: New file.
56339         * tests/test-open.c: New file.
56340
56341         * modules/open: New file.
56342         * lib/open.c: New file.
56343         * m4/open.m4: New file.
56344         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56345         lib/open.c does.
56346         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56347         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56348         macros.
56349         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56350         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56351         REPLACE_OPEN.
56352         * doc/functions/open.texi: Mention the 'open' module.
56353
56354 2007-10-04  Bruno Haible  <bruno@clisp.org>
56355
56356         * modules/ceill-tests: New file.
56357         * tests/test-ceill.c: New file.
56358
56359         * modules/ceill: New file.
56360         * lib/ceill.c: Replace entire file.
56361         * m4/ceill.m4: New file.
56362         * lib/math.in.h (ceill): Replace declaration.
56363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56364         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56365         * doc/functions/ceill.texi: Mention the 'ceill' module.
56366         * modules/mathl (Files): Remove lib/ceill.c.
56367         (Depends-on): Add ceill.
56368
56369 2007-10-04  Bruno Haible  <bruno@clisp.org>
56370
56371         * modules/ceilf-tests: New file.
56372         * tests/test-ceilf.c: New file.
56373
56374         * modules/ceilf: New file.
56375         * lib/ceil.c: New file.
56376         * lib/ceilf.c: New file.
56377         * m4/ceilf.m4: New file.
56378         * lib/math.in.h (ceilf): New declaration.
56379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56380         HAVE_DECL_CEILF.
56381         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56382         HAVE_DECL_CEILF.
56383         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56384
56385 2007-10-04  Bruno Haible  <bruno@clisp.org>
56386
56387         * modules/floorl-tests: New file.
56388         * tests/test-floorl.c: New file.
56389
56390         * modules/floorl: New file.
56391         * lib/floorl.c: Replace entire file.
56392         * m4/floorl.m4: New file.
56393         * lib/math.in.h (floorl): Replace declaration.
56394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56395         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56396         * doc/functions/floorl.texi: Mention the 'floorl' module.
56397         * modules/mathl (Files): Remove lib/floorl.c.
56398         (Depends-on): Add floorl.
56399
56400 2007-10-04  Bruno Haible  <bruno@clisp.org>
56401
56402         * modules/floorf-tests: New file.
56403         * tests/test-floorf.c: New file.
56404
56405         * modules/floorf: New file.
56406         * lib/floor.c: New file.
56407         * lib/floorf.c: New file.
56408         * m4/floorf.m4: New file.
56409         * lib/math.in.h (floorf): New declaration.
56410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56411         HAVE_DECL_FLOORF.
56412         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56413         HAVE_DECL_FLOORF.
56414         * doc/functions/floorf.texi: Mention the 'floorf' module.
56415
56416 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56417             Bruno Haible  <bruno@clisp.org>
56418
56419         Advertise for the Git server instead of the CVS server.
56420         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56421         repository instead of the CVS one.
56422         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56423         about all VCS systems generically.
56424         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56425
56426 2007-10-04  Bruno Haible  <bruno@clisp.org>
56427
56428         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56429         means.
56430         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56431
56432 2007-10-04  Bruno Haible  <bruno@clisp.org>
56433
56434         * modules/truncl-tests: New file.
56435         * tests/test-truncl.c: New file.
56436
56437         * modules/truncl: New file.
56438         * lib/truncl.c: New file.
56439         * m4/truncl.m4: New file.
56440         * lib/math.in.h (truncl): New declaration.
56441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56442         HAVE_DECL_TRUNCL.
56443         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56444         HAVE_DECL_TRUNCL.
56445         * doc/functions/truncl.texi: Mention the 'truncl' module.
56446
56447 2007-10-04  Bruno Haible  <bruno@clisp.org>
56448
56449         * modules/truncf-tests: New file.
56450         * tests/test-truncf.c: New file.
56451
56452         * modules/truncf: New file.
56453         * lib/trunc.c: Make paramerizable through USE_* macros.
56454         * lib/truncf.c: New file.
56455         * m4/truncf.m4: New file.
56456         * lib/math.in.h (truncf): New declaration.
56457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56458         HAVE_DECL_TRUNCF.
56459         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56460         HAVE_DECL_TRUNCF.
56461         * doc/functions/truncf.texi: Mention the 'truncf' module.
56462
56463 2007-10-03  Bruno Haible  <bruno@clisp.org>
56464
56465         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56466         augmentation also for tests modules.
56467         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56468         * modules/atexit-tests (Makefile.am): Likewise.
56469         * modules/binary-io-tests (Makefile.am): Likewise.
56470         * modules/c-strcase-tests (Makefile.am): Likewise.
56471         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56472         * modules/canonicalize-tests (Makefile.am): Likewise.
56473         * modules/closein-tests (Makefile.am): Likewise.
56474         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56475         * modules/freadahead-tests (Makefile.am): Likewise.
56476         * modules/fseek-tests (Makefile.am): Likewise.
56477         * modules/fseeko-tests (Makefile.am): Likewise.
56478         * modules/ftell-tests (Makefile.am): Likewise.
56479         * modules/ftello-tests (Makefile.am): Likewise.
56480         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56481         * modules/isnanl-tests (Makefile.am): Likewise.
56482         * modules/lseek-tests (Makefile.am): Likewise.
56483         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56484         * modules/mbscasestr-tests (Makefile.am): Likewise.
56485         * modules/mbschr-tests (Makefile.am): Likewise.
56486         * modules/mbscspn-tests (Makefile.am): Likewise.
56487         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56488         * modules/mbspbrk-tests (Makefile.am): Likewise.
56489         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56490         * modules/mbsrchr-tests (Makefile.am): Likewise.
56491         * modules/mbsspn-tests (Makefile.am): Likewise.
56492         * modules/mbsstr-tests (Makefile.am): Likewise.
56493         * modules/printf-posix-tests (Makefile.am): Likewise.
56494         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56495         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56496         * modules/tsearch-tests (Makefile.am): Likewise.
56497         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56498         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56499         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56500         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56501         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56502         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56503         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56504         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56505         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56506         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56507         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56508         * modules/xstrtol-tests (Makefile.am): Likewise.
56509         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56510         * modules/yesno-tests (Makefile.am): Likewise.
56511
56512 2007-10-03  Bruno Haible  <bruno@clisp.org>
56513
56514         * modules/trunc-tests: New file.
56515         * tests/test-trunc.c: New file.
56516
56517         * modules/trunc: New file.
56518         * lib/trunc.c: New file.
56519         * m4/trunc.m4: New file.
56520         * lib/math.in.h (trunc): New declaration.
56521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56522         HAVE_DECL_TRUNC.
56523         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56524         HAVE_DECL_TRUNC.
56525         * doc/functions/trunc.texi: Mention the 'trunc' module.
56526
56527 2007-10-03  Bruno Haible  <bruno@clisp.org>
56528
56529         * tests/test-fpending.c: New file, mostly copied
56530         from coreutils/lib/t-fpending.c.
56531         * modules/fpending-tests: New file.
56532
56533 2007-10-03  Bruno Haible  <bruno@clisp.org>
56534
56535         Port the stdio extensions to QNX (untested).
56536         * lib/fseterr.c (fseterr): Add support for QNX.
56537         * lib/fbufmode.c (fbufmode): Likewise.
56538         * lib/freadable.c (freadable): Likewise.
56539         * lib/fwritable.c (fwritable): Likewise.
56540         * lib/freading.c (freading): Likewise.
56541         * lib/fwriting.c (fwriting): Likewise.
56542         * lib/freadahead.c (freadahed): Likewise.
56543         * lib/fpurge.c (fpurge): Likewise.
56544         * lib/fseeko.c (rpl_fseeko): Likewise.
56545
56546 2007-10-03  Bruno Haible  <bruno@clisp.org>
56547             Jim Meyering  <jim@meyering.net>
56548             Eric Blake  <ebb9@byu.net>
56549
56550         * doc/relocatable.texi: Use @command instead of @program.
56551
56552 2007-10-02  Jim Meyering  <jim@meyering.net>
56553
56554         Perform one more "_.h" -> ".in.h" substitution.
56555         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56556         instead of unistd_.h here, too.
56557
56558 2007-10-01  Bruno Haible  <bruno@clisp.org>
56559
56560         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56561         Needed for the alloca-opt module.
56562
56563 2007-09-30  Bruno Haible  <bruno@clisp.org>
56564
56565         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56566         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56567         alloca_.h.
56568         * lib/argz.in.h: Renamed from lib/argz_.h.
56569         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56570         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56571         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56572         byteswap_.h.
56573         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56574         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56575         dirent_.h.
56576         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56577         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56578         fcntl_.h.
56579         * lib/float.in.h: Renamed from lib/float_.h.
56580         * modules/float (Files, Makefile.am): Use float.in.h instead of
56581         float_.h.
56582         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56583         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56584         fnmatch_.h.
56585         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56586         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56587         getopt_.h.
56588         * lib/glob.in.h: Renamed from lib/glob_.h.
56589         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56590         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56591         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56592         iconv_.h.
56593         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56594         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56595         inttypes_.h.
56596         * lib/locale.in.h: Renamed from lib/locale_.h.
56597         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56598         locale_.h.
56599         * lib/math.in.h: Renamed from lib/math_.h.
56600         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56601         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56602         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56603         of netinet_in_.h. Add dependency.
56604         * lib/poll.in.h: Renamed from lib/poll_.h.
56605         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56606         * lib/search.in.h: Renamed from lib/search_.h.
56607         * modules/search (Files, Makefile.am): Use search.in.h instead of
56608         search_.h.
56609         * lib/signal.in.h: Renamed from lib/signal_.h.
56610         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56611         _signal.h.
56612         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56613         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56614         stdbool_.h.
56615         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56616         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56617         stdint_.h.
56618         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56619         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56620         stdio_.h.
56621         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56622         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56623         stdlib_.h.
56624         * lib/string.in.h: Renamed from lib/string_.h.
56625         * modules/string (Files, Makefile.am): Use string.in.h instead of
56626         string_.h.
56627         * doc/gnulib-tool.texi (Initial import): Update.
56628         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56629         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56630         of sys_select_.h. Add dependency.
56631         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56632         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56633         of sys_socket_.h.
56634         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56635         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56636         sys_stat_.h.
56637         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56638         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56639         sys_time_.h.
56640         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56641         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56642         sysexits_.h.
56643         * lib/time.in.h: Renamed from lib/time_.h.
56644         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56645         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56646         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56647         unistd_.h.
56648         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56649         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56650         wchar_.h.
56651         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56652         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56653         wctype_.h.
56654         * build-aux/bootstrap (slurp): Update.
56655         * lib/.cppi-disable: Update.
56656
56657 2007-09-30  Bruno Haible  <bruno@clisp.org>
56658
56659         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56660         Needed on BeOS.
56661
56662 2007-09-30  Bruno Haible  <bruno@clisp.org>
56663
56664         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56665
56666 2007-09-29  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56669
56670 2007-09-29  Bruno Haible  <bruno@clisp.org>
56671
56672         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56673         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56674         * build-aux/install-reloc: Compile also areadlink.c.
56675         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56676
56677 2007-09-29  Bruno Haible  <bruno@clisp.org>
56678
56679         * gnulib-tool (func_emit_initmacro_done): Indentation.
56680
56681 2007-09-29  Bruno Haible  <bruno@clisp.org>
56682
56683         * README: Add CVS checkout update instructions.
56684         Info from Bob Proulx <bob@proulx.com>.
56685
56686 2007-09-28  Eric Blake  <ebb9@byu.net>
56687
56688         Provide move-if-change.
56689         * build-aux/move-if-change: New file, based on best practice
56690         rather than any canonical upstream location.
56691
56692 2007-09-28  Jim Meyering  <jim@meyering.net>
56693
56694         Fix canonicalize loop-detection corner case.
56695         Do not attempt to stat the symlink values stored via seen_triple.
56696         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56697         on linux-2.6.18, (but not 2.6.22).
56698         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56699         triple_compare.  The former compares dev,ino,filename, while the latter
56700         would actually stat dirname(filename) when dev and ino were equal.
56701         * lib/hash-triple.c: Install <string.h>.
56702         (STREQ): Define.
56703         (triple_compare_ino_str): New function.
56704         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56705
56706 2007-09-28  Eric Blake  <ebb9@byu.net>
56707
56708         Enforce that AC_REPLACE_FUNCS files exist.
56709         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56710         override check for typos.
56711
56712         Fix test-closein on Solaris 10.
56713         * tests/test-closein.c (main): Don't assume stdin can be inherited
56714         closed on all systems.
56715         * tests/test-closein.sh: Likewise.
56716         Reported by Piotr Tarnowski.
56717
56718 2007-09-28  Jim Meyering  <jim@meyering.net>
56719
56720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56721
56722 2007-09-27  Jim Meyering  <jim@meyering.net>
56723
56724         canonicalize: Avoid a false-positive cycle failure.
56725         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56726         Sort.  Remove cycle-check.
56727         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56728         not cycle-check.h.
56729         (seen_triple): New function.
56730         (canonicalize_filename_mode): Use it instead of cycle-check.
56731         * tests/test-canonicalize.c: Add a test for this bug.
56732         * tests/test-canonicalize.sh: Set up and run the test.
56733
56734         New module, file-set, from coreutils.
56735         * modules/file-set: Define it.
56736         * lib/file-set.c, lib/file-set.h: Implement.
56737
56738         New module, hash-triple, from coreutils.
56739         * modules/hash-triple: Define it.
56740         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56741
56742 2007-09-25  Eric Blake  <ebb9@byu.net>
56743
56744         Fix strerror on Interix.
56745         * lib/string_.h (strerror): Declare replacement.
56746         * doc/functions/strerror.texi (strerror): Document the Interix
56747         shortcoming.
56748         * modules/string (Makefile.am): Support new hooks.
56749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56750         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56751         gl_FUNC_STRERROR_SEPARATE.
56752         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56753         * lib/strerror.c (rpl_strerror): Provide replacement.
56754         * modules/strerror (Depends-on): Add string.
56755         (configure.ac): Detect use of module.
56756         * tests/test-strerror.c: New file.
56757         * modules/strerror-tests: New test module.
56758         * modules/argp (Depends-on): Add strerror.
56759         * modules/error (Depends-on): Likewise.
56760         Reported by Martin Koeppe.
56761
56762 2007-09-24  Bruno Haible  <bruno@clisp.org>
56763
56764         * README: Update git instructions.
56765
56766 2007-09-24  Eric Blake  <ebb9@byu.net>
56767
56768         Revert fpending breakage from 2007-09-08.
56769         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56770         __fpending.c.
56771
56772 2007-09-24  Jim Meyering  <jim@meyering.net>
56773
56774         filenamecat.c: Add a test.
56775         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56776         showing how the function works when DIR is the empty string.
56777
56778 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56779
56780         * tests/test-canonicalize.sh: Turn on executable bit.
56781
56782 2007-09-19  Eric Blake  <ebb9@byu.net>
56783
56784         * README: Update CVS instructions.
56785
56786 2007-09-18  Bruno Haible  <bruno@clisp.org>
56787
56788         * modules/areadlink: New file.
56789         * lib/areadlink.h (areadlink): New declaration.
56790         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56791
56792 2007-09-17  Jim Meyering  <jim@meyering.net>
56793
56794         * lib/savewd.c (ESTALE) [!defined]: Define.
56795         Reported to be required on Interix by Martin Koeppe.
56796
56797 2007-09-17  Bruno Haible  <bruno@clisp.org>
56798
56799         * gnulib-tool (func_version): Use $version.
56800
56801 2007-09-16  Bruno Haible  <bruno@clisp.org>
56802
56803         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56804         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56805         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56806         Reported by Greg Schafer <gschafer@zip.com.au>.
56807
56808 2007-09-15  Bruno Haible  <bruno@clisp.org>
56809
56810         * gnulib-tool (sed): Try a little harder to make bash understand the
56811         alias.
56812         Reported by Bruce Korb <bruce.korb@gmail.com>.
56813
56814 2007-09-13  Eric Blake  <ebb9@byu.net>
56815
56816         * ChangeLog: Remove conflict markers.
56817
56818 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56819
56820         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56821         Reported by Bruno Haible <bruno@clisp.org>.
56822
56823 2007-09-12  Bruno Haible  <bruno@clisp.org>
56824
56825         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56826         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56827         is not defined.
56828
56829 2007-09-12  Eric Blake  <ebb9@byu.net>
56830
56831         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56832         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56833         Autoconf definition.
56834         * modules/euidaccess (Depends-on): Add extensions, for
56835         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56836         * modules/fnmatch (Depends-on): Likewise.
56837         * modules/getaddrinfo (Depends-on): Likewise.
56838         * modules/getdelim (Depends-on): Likewise.
56839         * modules/getline (Depends-on): Likewise.
56840         * modules/getsubopt (Depends-on): Likewise.
56841         * modules/gettext (Depends-on): Likewise.
56842         * modules/group-member (Depends-on): Likewise.
56843         * modules/mbchar (Depends-on): Likewise.
56844         * modules/memmem (Depends-on): Likewise.
56845         * modules/mempcpy (Depends-on): Likewise.
56846         * modules/memrchr (Depends-on): Likewise.
56847         * modules/pagealign_alloc (Depends-on): Likewise.
56848         * modules/readutmp (Depends-on): Likewise.
56849         * modules/stpcpy (Depends-on): Likewise.
56850         * modules/stpncpy (Depends-on): Likewise.
56851         * modules/strchrnul (Depends-on): Likewise.
56852         * modules/strndup (Depends-on): Likewise.
56853         * modules/strsep (Depends-on): Likewise.
56854         * modules/strverscmp (Depends-on): Likewise.
56855         * modules/vasprintf (Depends-on): Likewise.
56856         * modules/wcwidth (Depends-on): Likewise.
56857         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56858         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56859         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56860         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56861         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56862         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56863         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56864         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56865         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56866         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56867         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56868         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56869         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56870         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56871         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56872         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56873         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56874         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56876         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56877         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56878         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56879         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56880         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56881         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56883         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56884         so that lock.m4 can be used in gettext without extensions module.
56885
56886 2007-09-11  Bruno Haible  <bruno@clisp.org>
56887
56888         * m4/isc-posix.m4: Remove file.
56889         Suggested by Eric Blake.
56890
56891 2007-09-11  Eric Blake  <ebb9@byu.net>
56892
56893         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56894
56895 2007-09-10  Bruno Haible  <bruno@clisp.org>
56896
56897         * posix-modules: Fix typo in error message.
56898         Reported by Matt <mkraai@beckman.com>.
56899
56900 2007-09-09  Bruno Haible  <bruno@clisp.org>
56901
56902         * doc/functions/getdelim.texi: Update list of platforms lacking the
56903         function.
56904         * doc/functions/getline.texi: Likewise.
56905
56906 2007-09-09  Jim Meyering  <jim@meyering.net>
56907
56908         * lib/hash.c (hash_initialize): Detect calloc failure.
56909         Reported by Bruno Haible.
56910
56911 2007-09-09  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56914         malloc or realloc fails.
56915
56916 2007-09-09  Bruno Haible  <bruno@clisp.org>
56917
56918         * modules/getcwd (Depends-on): Add malloc-posix.
56919         * modules/glob (Depends-on): Likewise.
56920         * modules/putenv (Depends-on): Likewise.
56921         * modules/strdup (Depends-on): Likewise.
56922         * modules/getdelim (Depends-on): Add realloc-posix.
56923         * modules/read-file (Depends-on): Likewise.
56924
56925 2007-09-09  Bruno Haible  <bruno@clisp.org>
56926
56927         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56928         (gl_FUNC_MALLOC_POSIX): Require it.
56929         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56930         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56931         * modules/realloc (Files): Add m4/malloc.m4.
56932         * modules/calloc (Files): Likewise.
56933
56934 2007-09-09  Bruno Haible  <bruno@clisp.org>
56935
56936         * modules/malloc-posix: New file.
56937         * modules/malloc (Depends-on): Add malloc-posix.
56938         * lib/malloc.c: Include errno.h.
56939         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56940         and a POSIX-compatible malloc into a single function. Set ENOMEM
56941         when returning NULL.
56942         * m4/malloc.m4: New file.
56943         * doc/functions/malloc.texi: Mention the malloc-posix module.
56944         * lib/stdlib_.h (malloc): New declaration.
56945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56946         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56947         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56948         and HAVE_MALLOC_POSIX.
56949
56950 2007-09-09  Bruno Haible  <bruno@clisp.org>
56951
56952         * modules/realloc-posix: New file.
56953         * modules/realloc (Depends-on): Add realloc-posix.
56954         * lib/realloc.c: Include errno.h.
56955         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56956         and a POSIX-compatible realloc into a single function. Set ENOMEM
56957         when returning NULL.
56958         * m4/realloc.m4: New file.
56959         * doc/functions/realloc.texi: Mention the realloc-posix module.
56960         * lib/stdlib_.h (realloc): New declaration.
56961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56962         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56963         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56964         and HAVE_REALLOC_POSIX.
56965
56966 2007-09-09  Bruno Haible  <bruno@clisp.org>
56967
56968         * modules/calloc-posix: New file.
56969         * modules/calloc (Depends-on): Add calloc-posix.
56970         * lib/calloc.c: Include errno.h.
56971         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56972         and a POSIX-compatible calloc into a single function. Set ENOMEM
56973         when returning NULL.
56974         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56975         * doc/functions/calloc.texi: Mention the calloc-posix module.
56976         * lib/stdlib_.h (calloc): New declaration.
56977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56978         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56979         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56980         and HAVE_CALLOC_POSIX.
56981
56982 2007-09-09  Bruno Haible  <bruno@clisp.org>
56983
56984         Allow for modules to show an arbitrary notice.
56985         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56986         * gnulib-tool: New option --extract-notice.
56987         (func_usage): Document it.
56988         (sed_extract_prog): Update.
56989         (func_get_notice): New function.
56990         (func_modules_notice): New function.
56991         (func_import, func_create_testdir): Invoke it.
56992         Suggested by Jim Meyering.
56993
56994 2007-09-09  Bruno Haible  <bruno@clisp.org>
56995
56996         * gnulib-tool: New options --verbose, --quiet.
56997         (func_usage): Document them.
56998         (verbose): New variable.
56999         (func_execute_command): New function.
57000         (func_import): Don't show the module list and the file list if
57001         $verbose < 0.
57002         (func_create_testdir): Likewise. Use func_execute_command.
57003         (func_create_megatestdir): Use func_execute_command.
57004
57005 2007-09-08  Bruno Haible  <bruno@clisp.org>
57006
57007         * gnulib-tool (func_import): Prefer rsync over wget when available,
57008         for fetching the PO files.
57009
57010 2007-09-08  Bruno Haible  <bruno@clisp.org>
57011
57012         * posix-modules: New file. Portions copied from gnulib-tool.
57013         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57014
57015 2007-09-08  Jim Meyering  <jim@meyering.net>
57016
57017         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57018         * lib/fpending.h: Rename from __fpending.h.
57019         * lib/fpending.c: Rename from __fpending.c.
57020         Include "fpending.h", not "__fpending.h".
57021         * lib/__fpending.h, lib/__fpending.c: Remove files.
57022         * modules/fpending (Files): Reflect new file names.
57023         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57024
57025 2007-09-08  Bruno Haible  <bruno@clisp.org>
57026
57027         * m4/inttypes-h.m4: Remove stub file.
57028
57029 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57030
57031         * doc/headers/stdint.texi: Discuss #include_next issue.
57032
57033 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57034
57035         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57036
57037 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57038
57039         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57040         in variable name.
57041
57042 2007-09-03  Jim Meyering  <jim@meyering.net>
57043
57044         New module: git-version-gen.
57045         * modules/git-version-gen: New file.
57046
57047         Import changes from coreutils for bootstrap script.
57048
57049         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57050
57051         bootstrap: uses rsync to download the .po files
57052         * build-aux/bootstrap (po_download_command_format): New global.
57053         (download_po_files): Use rsync.
57054         (update_po_files): Don't remove .po files after download,
57055         so future rsync runs can take advantage of the copies.
57056
57057         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57058
57059         Solve the unnecessary-.po-file-regeneration problem once and for all.
57060         * build-aux/bootstrap (download_po_files): New function, renamed from
57061         get_translations.  Now, downloads, but doesn't update LINGUAS.
57062         (update_po_files): New function.
57063
57064         bootstrap: Ignore more.
57065         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57066         uniwidth to e.g., lib/.gitignore.
57067         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57068
57069         * build-aux/bootstrap: New setting: vc_ignore.
57070         (insert_sorted_if_absent): Create $file if absent.
57071         Adapt to new, possibly empty, list: $vc_ignore.
57072
57073         bootstrap: generate more ignorable names
57074         * build-aux/bootstrap (slurp): When generating ignorable names,
57075         also map .sin to .sed, .gperf to .c, and .y to .c.
57076
57077 2007-09-03  Jim Meyering  <jim@meyering.net>
57078
57079         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57080         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57081
57082 2007-09-02  Bruno Haible  <bruno@clisp.org>
57083
57084         Fix mis-recognition of 'mcs' on QNX 6.
57085         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57086         output contains the string "Mono".
57087         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57088         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57089
57090 2007-09-01  Bruno Haible  <bruno@clisp.org>
57091
57092         Fix collision between uniwidth/* and linebreak modules.
57093         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57094         u32_width): Remove declarations.
57095         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57096         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57097         streq3, streq2, streq1, streq0): Remove functions.
57098         (STREQ): Remove macro.
57099         (is_cjk_encoding): Remove function.
57100         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57101         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57102         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57103         * NEWS: Document the change.
57104
57105 2007-09-01  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/streq.h: Add double-inclusion guard.
57108
57109 2007-09-01  Karl Berry  <karl@gnu.org>
57110
57111         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57112
57113 2007-08-28  Jim Meyering  <jim@meyering.net>
57114
57115         Rename mreadlink_with_size to areadlink_with_size.
57116         * NEWS: Document the change.
57117         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57118         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57119         * lib/mreadlink.h: Rename this to...
57120         * lib/areadlink.h: ...this.
57121         * modules/mreadlink-with-size: Rename this to...
57122         * modules/areadlink-with-size: ...this.
57123         * lib/canonicalize.c: Reflect the renaming.
57124         * modules/canonicalize: Likewise.
57125
57126 2007-08-26  Bruno Haible  <bruno@clisp.org>
57127
57128         * gnulib-tool (func_import): When deciding which files to remove,
57129         consider also dangling symbolic links.
57130         Reported by Eric Blake.
57131
57132 2007-08-26  Bruno Haible  <bruno@clisp.org>
57133
57134         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57135
57136 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57137
57138         * lib/readline.c: Don't include getline.h, the prototype is now
57139         found in stdio.h.
57140
57141 2007-08-23  Jim Meyering  <jim@meyering.net>
57142
57143         Getdelim touchup.
57144         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57145         around the funlockfile call, since funlockfile never sets errno.
57146         Don't set errno upon failed realloc.
57147
57148 2007-08-22  Eric Blake  <ebb9@byu.net>
57149
57150         Getline touchups.
57151         * lib/getdelim.c (getdelim): Revert regression that required *n to
57152         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57154         getdelim, rather than whether implementation is missing.
57155         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57156         * lib/stdio_.h (getline): Also declare if replacement is
57157         required.
57158         * doc/functions/getdelim.texi: New file.
57159         * doc/functions/getline.texi: Likewise.
57160         * doc/gnulib.texi (Function Substitutes): Add new files.
57161         Reported by Bruno Haible.
57162
57163 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57164
57165         * users.txt: Add Guile.
57166
57167 2007-08-22  Eric Blake  <ebb9@byu.net>
57168
57169         * tests/test-getdelim.c (main): Use remove, not unlink.
57170         * tests/test-getline.c (main): Likewise.
57171
57172         Move getline and getdelim into stdio.h, per POSIX 200x.
57173         * modules/getline (Files): Remove getline.h.
57174         (Depends-on): Add stdio.
57175         (configure.ac): Add module indicator.
57176         * modules/getdelim (Files): Remove getdelim.h.
57177         (Depends-on): Add stdio.
57178         (configure.ac): Add module indicator.
57179         * modules/stdio (Makefile.am): Work with new indicators.
57180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57181         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57182         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57183         * lib/getdelim.h: Delete.
57184         * lib/getline.h: Delete.
57185         * lib/stdio_.h (getdelim, getline): Declare.
57186         * modules/getdelim-tests: New module.
57187         * modules/getline-tests: Likewise.
57188         * tests/test-getdelim.c: New file.
57189         * tests/test-getline.c: Likewise.
57190         * NEWS: Document the change.
57191         * lib/getline.c: Update choice of header.
57192         * lib/csharpcomp.c: Likewise.
57193         * lib/getpass.c: Likewise.
57194         * lib/javacomp.c: Likewise.
57195         * lib/javaversion.c: Likewise.
57196         * lib/yesno.c: Likewise.
57197         * lib/getdelim.c: Likewise.
57198         (getdelim): Set errno on failure, and avoid memory leak.
57199
57200 2007-08-19  Bruno Haible  <bruno@clisp.org>
57201
57202         * modules/closein (Depends-on): Add freadahead.
57203         * lib/closein.c: Include freadahead.h.
57204         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57205         is zero.
57206
57207 2007-08-19  Bruno Haible  <bruno@clisp.org>
57208
57209         * modules/freadahead-tests: New file.
57210         * tests/test-freadahead.sh: New file.
57211         * tests/test-freadahead.c: New file.
57212
57213         * modules/freadahead: New file.
57214         * lib/freadahead.h: New file.
57215         * lib/freadahead.c: New file.
57216         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57217         fbufmode, fpurge, freadable, fwritable.
57218
57219 2007-08-19  Eric Blake  <ebb9@byu.net>
57220
57221         Test yesno in combination with closein.
57222         * lib/yesno.c (yesno): Document use of stdin.
57223         * modules/yesno-tests (Files): New module.
57224         * tests/test-yesno.c (main): New file.
57225         * tests/test-yesno.sh: Likewise.
57226
57227 2007-08-19  Bruno Haible  <bruno@clisp.org>
57228
57229         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57230         * lib/fseeko.c (rpl_fseeko): Likewise.
57231         * lib/fseterr.c (fseterr): Likewise.
57232
57233 2007-08-19  Bruno Haible  <bruno@clisp.org>
57234
57235         * tests/test-lseek.c (main): Disable a test for BeOS.
57236         * doc/functions/lseek.texi: Document the BeOS bug.
57237
57238 2007-08-19  Bruno Haible  <bruno@clisp.org>
57239             Eric Blake  <ebb9@byu.net>
57240
57241         * lib/lseek.c: Include <sys/stat.h>.
57242         (rpl_lseek): Add workaround code also for Unix platforms.
57243         Needed for BeOS.
57244         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57245         * doc/functions/lseek.texi: Document BeOS definiency.
57246
57247 2007-08-18  Bruno Haible  <bruno@clisp.org>
57248
57249         * modules/fstrcmp-tests: New file.
57250         * tests/test-fstrcmp.c: New file.
57251
57252 2007-08-18  Bruno Haible  <bruno@clisp.org>
57253
57254         * modules/fstrcmp: New file, from GNU gettext with modifications.
57255         * lib/fstrcmp.h: New file, from GNU gettext.
57256         * lib/fstrcmp.c: New file, from GNU gettext.
57257         * MODULES.html.sh (String handling): Add fstrcmp.
57258
57259 2007-08-18  Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57262         'bool'.
57263         (diag, compareseq): Remove const from the ctxt argument.
57264         (USE_HEURISTIC): Undefine at the end.
57265
57266 2007-08-18  Jim Meyering  <jim@meyering.net>
57267
57268         New file: lib/idcache.h
57269         * NEWS: Mention the addition.
57270         * modules/idcache (Files): Add lib/idcache.h
57271         * lib/idcache.c: Include "idcache.h".
57272         Don't include <sys/types.h>.
57273         Add a FIXME comment.
57274         Move file-scoped "static" declarations to the top.
57275         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57276
57277 2007-08-17  Bruno Haible  <bruno@clisp.org>
57278         and Paul Eggert  <eggert@cs.ucla.edu>
57279
57280         * MODULES.html.sh: Add diffseq.
57281         * modules/diffseq: New file.
57282         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57283         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57284
57285 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         Import changes from coreutils for bootstrap script.
57288
57289         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57290
57291         * build-aux/bootstrap (slurp): Work even in environments where
57292         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57293         current code does not slurp files whose names start with ".", and
57294         this looks like it might be a troublesome area.
57295
57296         2007-07-11  Jim Meyering  <jim@meyering.net>
57297
57298         If there's a GPL vN copyright comment, require that N == 3.
57299
57300         2007-07-08  Jim Meyering  <jim@meyering.net>
57301
57302         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57303         * build-aux/bootstrap (mam_template): Move definition out of loop.
57304
57305         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57306
57307         * build-aux/bootstrap (symlink_to_dir): Rename function from
57308         symlink_to_gnulib.  Add a directory parameter.  Update all
57309         callers.
57310         (cp_mark_as_generated): Also check for -- and link to -- files in
57311         gl/.
57312
57313         2007-07-08  Jim Meyering  <jim@meyering.net>
57314
57315         Adapt to deeper hierarchy in gnulib.
57316         * build-aux/bootstrap (symlink_to_dir): If the destination
57317         directory doesn't exist, create it. This is required at least for
57318         "lib/uniwidth/cjk.h".
57319
57320         2007-05-15  Jim Meyering  <jim@meyering.net>
57321
57322         * build-aux/bootstrap: Now that generated Makefile.am files
57323         are no longer under version control, they must be created at
57324         bootstrap time.
57325
57326 2007-08-14  Ben Pfaff  <blp@gnu.org>
57327
57328         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57329
57330 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57331
57332         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57333         given the changes below.
57334         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57335         even on hosts that have padding bits beyond the supported 64.
57336
57337 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57338
57339         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57340         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57341         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57342         depends on it.
57343         (xstrtol_error): Remove.
57344         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57345         but with a different signature.
57346         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57347         * lib/xstrtol-error.c: Include exitfail.h.
57348         (xstrtol_fatal): New function, with a different signature from the
57349         old xstrtol_error, so that the caller need not worry about passing
57350         in an exit status, or about storage management of the option argument.
57351         (xstrtol_error): Now a static function.  Redo signature to
57352         implement xstrtol_fatal.  Output the correct number of hyphens in
57353         front of the option so that the caller need not worry about
57354         storage management.
57355         (N_): New macro.
57356         (_): Remove; not used now.
57357         * modules/xstrtol: Depend on getopt.
57358         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57359         of old STRTOL_FATAL_ERROR macro.
57360         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57361         of test program.
57362         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57363         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57364
57365 2007-08-08  Eric Blake  <ebb9@byu.net>
57366
57367         * lib/xstrtol-error.c: Add missing include.
57368
57369         Move xstrtol messages into gnulib domain, when --pobase is used.
57370         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57371         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57372         * modules/xstrtol (Files): Distribute new file.
57373         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57374         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57375         * tests/test-xstrtol.c: ...into new file.
57376         * tests/test-xstrtoul.c: Also test xstrtoul.
57377         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57378         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57379         * tests/test-xstrtol.sh: Drive the tests.
57380         * tests/test-xstrtoimax.sh: Likewise.
57381         * tests/test-xstrtoumax.sh: Likewise.
57382         * modules/xstrtol-tests: New module.
57383         * modules/xstrtoimax-tests: Likewise.
57384         * modules/xstrtoumax-tests: Likewise.
57385
57386 2007-08-08  Jim Meyering  <jim@meyering.net>
57387
57388         New function: mfile_name_concat.
57389         * lib/filenamecat.c (mfile_name_concat): New function, just like
57390         file_name_concat, but return NULL upon failure rather than exiting
57391         with a diagnostic.
57392         * lib/filenamecat.h: Declare it.
57393
57394 2007-08-07  Bruno Haible  <bruno@clisp.org>
57395
57396         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57397         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57398         warning from gcc.
57399         Reported by Eric Blake.
57400
57401 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57402
57403         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57404         * modules/crypto/arcfour (License): Likewise.
57405         * modules/crypto/des-tests (License): Likewise.
57406         * modules/crypto/gc-arctwo-tests (License): Likewise.
57407         * modules/crypto/gc-des-tests (License): Likewise.
57408         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57409         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57410         * modules/crypto/gc-md2-tests (License): Likewise.
57411         * modules/crypto/gc-md4-tests (License): Likewise.
57412         * modules/crypto/gc-md5-tests (License): Likewise.
57413         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57414         * modules/crypto/gc-rijndael-tests (License): Likewise.
57415         * modules/crypto/gc-sha1-tests (License): Likewise.
57416         * modules/crypto/gc-tests (License): Likewise.
57417         * modules/crypto/hmac-md5 (License): Likewise.
57418         * modules/crypto/hmac-sha1 (License): Likewise.
57419         * modules/crypto/md2-tests (License): Likewise.
57420         * modules/crypto/md4-tests (License): Likewise.
57421         * modules/crypto/md5 (License): Likewise.
57422         * modules/crypto/rijndael (License): Likewise.
57423         * modules/crypto/sha1 (License): Likewise.
57424         * modules/memxor (License): Likewise.
57425
57426 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57427         and Bruno Haible  <bruno@clisp.org>
57428
57429         * NEWS: Describe interface changes to human, xstrtol.
57430         * lib/human.h: Include <xstrtol.h>.
57431         (human_options): Return enum strtol_error, not int.  Remove
57432         bool arg; take int * instead.
57433         * lib/human.c: Don't include "gettext.h".
57434         (_): Remove; no longer used.
57435         Don't include <xstrtol.h>, since human.h does it.
57436         (human_options): Adjust to abovementioned interface changes.
57437         Do not report error to stderr; that's now the caller's
57438         responsibility.
57439         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57440         interface change.
57441         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57442         Str, Argument_type_string.  All uses changed.  Put " argument"
57443         in diagnostics to make them clearer.  Change wording of suffix
57444         message for clarity.
57445         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57446         Argument_type_string.
57447         (STRTOL_FATAL_WARN): Remove; no longer used.
57448         * modules/human (Depends-on): Remove gettext-h.
57449
57450 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57451
57452         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57453
57454 2007-07-31  Bruno Haible  <bruno@clisp.org>
57455
57456         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57457         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57458         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57459
57460 2007-07-31  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57463         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57464
57465 2007-07-30  Bruno Haible  <bruno@clisp.org>
57466
57467         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57468         * modules/c-ctype (License): Likewise.
57469         * modules/c-strcase (License): Likewise.
57470         * modules/check-version (License): Likewise.
57471         * modules/iconv (License): Likewise.
57472         * modules/iconv_open (License): Likewise.
57473         * modules/read-file (License): Likewise.
57474         * modules/striconv (License): Likewise.
57475         * modules/strverscmp (License): Likewise.
57476         * modules/vasprintf (License): Likewise.
57477         * modules/crypto/des (License): Likewise.
57478         * modules/crypto/gc (License): Likewise.
57479         * modules/crypto/gc-arcfour (License): Likewise.
57480         * modules/crypto/gc-arctwo (License): Likewise.
57481         * modules/crypto/gc-des (License): Likewise.
57482         * modules/crypto/gc-hmac-md5 (License): Likewise.
57483         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57484         * modules/crypto/gc-md2 (License): Likewise.
57485         * modules/crypto/gc-md4 (License): Likewise.
57486         * modules/crypto/gc-md5 (License): Likewise.
57487         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57488         * modules/crypto/gc-random (License): Likewise.
57489         * modules/crypto/gc-rijndael (License): Likewise.
57490         * modules/crypto/gc-sha1 (License): Likewise.
57491         * modules/crypto/md2 (License): Likewise.
57492         * modules/crypto/md4 (License): Likewise.
57493
57494 2007-07-30  Jim Meyering  <jim@meyering.net>
57495
57496         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57497         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57498         it has valid stat data.  This bug would cause du not to count the
57499         sizes of inaccessible directories.
57500         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57501         in <http://bugzilla.redhat.com/250077>.
57502
57503 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57504             Bruno Haible  <bruno@clisp.org>
57505
57506         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57507         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57508         #include_next, gives a diagnostic about it, but reports no error in
57509         the exit code.
57510         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57511
57512 2007-07-24  Ben Pfaff  <blp@gnu.org>
57513
57514         Improve name: "count-one-bits" is better than "popcount".
57515         * MODULES.html.sh: Update name.
57516         * lib/popcount.h: Renamed lib/count-one-bits.h.
57517         (popcount): Renamed count_one_bits.
57518         (popcountl): Renamed count_one_bits_l.
57519         (popcountll): Renamed count_one_bits_ll.
57520         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57521         * modules/popcount: Renamed module/count-one-bits.
57522         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57523         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57524
57525 2007-07-23  Ben Pfaff  <blp@gnu.org>
57526
57527         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57528         better code generation, and add U to large constants to avoid
57529         warnings, in non-GCC case.
57530         Suggested by Bruno Haible.
57531
57532 2007-07-23  Ben Pfaff  <blp@gnu.org>
57533
57534         * lib/popcount.h: Use verify_true instead of if...abort.
57535         * modules/popcount: Depend on verify module.
57536         Suggested by Jim Meyering.
57537
57538 2007-07-23  Bruno Haible  <bruno@clisp.org>
57539
57540         * gnulib-tool (func_import): Create a .cvsignore file also when the
57541         directory is not yet in CVS but the toplevel directory is. When
57542         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57543         Reported by Karl Berry.
57544
57545 2007-07-22  Ben Pfaff  <blp@gnu.org>
57546
57547         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57548         case.
57549         Suggested by Eric Blake.
57550
57551 2007-07-22  Ben Pfaff  <blp@gnu.org>
57552
57553         New module: popcount.
57554         * MODULES.html.sh: Add popcount.
57555         * modules/popcount: New file.
57556         * modules/popcount-tests: New file.
57557         * tests/test-popcount.c: New file.
57558         * lib/popcount.h: New file.
57559         * m4/popcount.m4: New file.
57560
57561 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57562
57563         * build-aux/announce-gen: Update to GPLv3.
57564
57565         * build-aux/config.guess: Update from config.
57566
57567 2007-07-21  Bruno Haible  <bruno@clisp.org>
57568
57569         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57570         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57571
57572 2007-07-20  Jim Meyering  <jim@meyering.net>
57573
57574         * check-module: Diagnose a self-dependency.
57575
57576 2007-07-19  Bruno Haible  <bruno@clisp.org>
57577
57578         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57579         empty.
57580         Reported by Eric Blake.
57581
57582 2007-07-18  Bruno Haible  <bruno@clisp.org>
57583
57584         * gnulib-tool: New options --po-base, --po-domain.
57585         (func_usage): Document them.
57586         (pobase, po_domain): New variables.
57587         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57588         DEFAULT_TEXT_DOMAIN.
57589         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57590         (func_import): Consider pobase and po_domain. Create a po/ directory.
57591         (func_create_testdir): Set pobase and po_domain to empty.
57592         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57593         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57594
57595 2007-07-18  Bruno Haible  <bruno@clisp.org>
57596
57597         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57598         EXTRA_DIST augmentation for files in build-aux/.
57599
57600 2007-07-16  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57603         * modules/getdelim (License): Likewise.
57604
57605 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57606
57607         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57608         * modules/d-type (License): Likewise.
57609         * modules/extensions (License): Likewise.
57610         * modules/fnmatch (License): Likewise.
57611         * modules/fseeko (License): Likewise.
57612         * modules/getaddrinfo (License): Likewise.
57613         * modules/getline (License): Likewise.
57614         * modules/getlogin_r (License): Likewise.
57615         * modules/getpass (License): Likewise.
57616         * modules/gettimeofday (License): Likewise.
57617         * modules/glob (License): Likewise.
57618         * modules/inet_ntop (License): Likewise.
57619         * modules/malloc (License): Likewise.
57620         * modules/malloca (License): Likewise.
57621         * modules/memmem (License): Likewise.
57622         * modules/mempcpy (License): Likewise.
57623         * modules/memset (License): Likewise.
57624         * modules/minmax (License): Likewise.
57625         * modules/mktime (License): Likewise.
57626         * modules/netinet_in (License): Likewise.
57627         * modules/pathmax (License): Likewise.
57628         * modules/poll (License): Likewise.
57629         * modules/regex (License): Likewise.
57630         * modules/snprintf (License): Likewise.
57631         * modules/stdbool (License): Likewise.
57632         * modules/stdint (License): Likewise.
57633         * modules/stdio (License): Likewise.
57634         * modules/strcase (License): Likewise.
57635         * modules/strcasestr (License): Likewise.
57636         * modules/strdup (License): Likewise.
57637         * modules/string (License): Likewise.
57638         * modules/strndup (License): Likewise.
57639         * modules/strnlen (License): Likewise.
57640         * modules/strpbrk (License): Likewise.
57641         * modules/strptime (License): Likewise.
57642         * modules/strsep (License): Likewise.
57643         * modules/sys_select (License): Likewise.
57644         * modules/sys_socket (License): Likewise.
57645         * modules/sys_stat (License): Likewise.
57646         * modules/sys_time (License): Likewise.
57647         * modules/time (License): Likewise.
57648         * modules/time_r (License): Likewise.
57649         * modules/timegm (License): Likewise.
57650         * modules/unistd (License): Likewise.
57651         * modules/vsnprintf (License): Likewise.
57652         * modules/wctype (License): Likewise.
57653
57654 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57655
57656         * modules/argz (License): LGPLv2+.
57657
57658 2007-07-15  Karl Berry  <karl@gnu.org>
57659
57660         * doc/gnulib.texi: revise node structure per new fdl.texi.
57661
57662 2007-07-14  Bruno Haible  <bruno@clisp.org>
57663
57664         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57665         the output file.
57666         * lib/uniname/uninames.h: Regenerated.
57667
57668 2007-07-14  Karl Berry  <karl@gnu.org>
57669
57670         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57671         omitting sectioning and index commands.
57672
57673 2007-07-13  Bruno Haible  <bruno@clisp.org>
57674
57675         New gnulib-tool option --more-symlinks.
57676         * gnulib-tool (func_usage): Document --more-symlinks.
57677         (do_copyrights): New variable.
57678         Recognize option --more-symlinks.
57679         (func_import): Don't add a copyright notice transform to
57680         sed_transform_lib_file if do_copyrights is empty.
57681
57682 2007-07-13  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/vasnprintf.c (decimal_point_char): Define also if
57685         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57686         && !NEED_PRINTF_DIRECTIVE_A.
57687         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57688         Gary V. Vaughan <gary@gnu.org>.
57689
57690 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57691
57692         * lib/inttypes_.h: Undo previous change, since it was fixed
57693         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57694
57695 2007-07-13  Bruno Haible  <bruno@clisp.org>
57696
57697         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57698         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57699
57700 2007-07-13  Jim Meyering  <jim@meyering.net>
57701
57702         df: Don't fail for Tru64's "file-on-file mount".
57703         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57704         so we fall through and use statfs instead.  Details here:
57705         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57706         Reported by Albert Chin.
57707
57708 2007-07-13  Bruno Haible  <bruno@clisp.org>
57709
57710         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57711         * modules/configmake (License): Likewise.
57712         * modules/gettext (License): Likewise.
57713         * modules/gettext-h (License): Likewise.
57714         * modules/include_next (License): Likewise.
57715         * modules/link-warning (License): Likewise.
57716         * modules/localcharset (License): Likewise.
57717         * modules/localename (License): Likewise.
57718         * modules/lock (License): Likewise.
57719         * modules/relocatable-lib-lgpl (License): Likewise.
57720         * modules/size_max (License): Likewise.
57721         * modules/vasnprintf (License): Likewise.
57722         * modules/wchar (License): Likewise.
57723         * modules/xsize (License): Likewise.
57724
57725 2007-07-13  Bruno Haible  <bruno@clisp.org>
57726
57727         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57728         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57729
57730 2007-07-12  Bruno Haible  <bruno@clisp.org>
57731
57732         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57733         in the modules files.
57734
57735 2007-07-11  Karl Berry  <karl@gnu.org>
57736
57737         * MODULES.html.sh (func_module): use
57738          sed -e '\|^'"${includefile}"'$|d'
57739          instead of /.../d, to avoid errors on $includefile's containing /.
57740
57741 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57742
57743         * gnulib-tool (func_import): Avoid duplication of --avoid
57744         statements
57745         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57746         names to `_' in variable names.
57747
57748 2007-07-10  Eric Blake  <ebb9@byu.net>
57749
57750         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57751         * NEWS: Document this change.
57752
57753 2007-07-08  Bruno Haible  <bruno@clisp.org>
57754
57755         Update to Unicode 5.0.
57756         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57757         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57758         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57759         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57760         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57761         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57762         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57763         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57764         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57765         U+10A3F, U+1D242..U+1D244.
57766         (nonspacing_table_ind): Update.
57767         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57768         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57769
57770 2007-07-08  Bruno Haible  <bruno@clisp.org>
57771
57772         Update to Unicode 5.0.
57773         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57774         code transform. Extend the name index field of unicode_name_to_code and
57775         unicode_code_to_name from 16 to 24 bits.
57776         * lib/uniname/uniname.c (unicode_character_name,
57777         unicode_name_character): Add the range 0x12xxx to the code transform.
57778         * lib/uniname/uninames.h: Regenerated.
57779         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57780
57781 2007-07-07  Bruno Haible  <bruno@clisp.org>
57782
57783         * modules/wcwidth-tests: New file.
57784         * tests/test-wcwidth.c: New file.
57785
57786         Work around MacOS X wcwidth() bug.
57787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57788         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57789         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57790         original wcwidth in non-UTF-8 locales.
57791         * modules/wcwidth (Depends-on): Add localcharset, streq,
57792         uniwidth/width.
57793         * doc/functions/wcwidth.texi: Update.
57794
57795 2007-07-07  Bruno Haible  <bruno@clisp.org>
57796
57797         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57798         (wcwidth): New declaration.
57799         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57800         macros.
57801         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57802         here. Prepare for creating <wchar.h> unconditionally.
57803         * modules/wchar (Depends-on): Add link-warning.
57804         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57805         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57806         * lib/wcwidth.h: Remove file.
57807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57808         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57809         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57810         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57811         (Include): Replace wcwidth.h with <wchar.h>.
57812         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57813         * lib/mbchar.h: Don't include wcwidth.h.
57814         * lib/mbswidth.c: Likewise.
57815         * NEWS: Mention the change.
57816
57817 2007-07-07  Bruno Haible  <bruno@clisp.org>
57818
57819         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57820         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57821         definition with an external declaration.
57822         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57823         defined as a function. Remove AC_C_INLINE requirement.
57824         * modules/wcwidth (Files): Add lib/wcwidth.c.
57825         (Makefile.am): Remove redundant statement.
57826
57827 2007-07-07  Bruno Haible  <bruno@clisp.org>
57828
57829         * MODULES.html.sh (Unicode string functions): Add the new modules.
57830
57831         * tests/uniwidth/test-u32-strwidth.c: New file.
57832         * modules/uniwidth/u32-strwidth-tests: New file.
57833
57834         * lib/uniwidth/u32-strwidth.c: New file.
57835         * modules/uniwidth/u32-strwidth: New file.
57836
57837         * tests/uniwidth/test-u16-strwidth.c: New file.
57838         * modules/uniwidth/u16-strwidth-tests: New file.
57839
57840         * lib/uniwidth/u16-strwidth.c: New file.
57841         * modules/uniwidth/u16-strwidth: New file.
57842
57843         * tests/uniwidth/test-u8-strwidth.c: New file.
57844         * modules/uniwidth/u8-strwidth-tests: New file.
57845
57846         * lib/uniwidth/u8-strwidth.c: New file.
57847         * modules/uniwidth/u8-strwidth: New file.
57848
57849         * tests/uniwidth/test-u32-width.c: New file.
57850         * modules/uniwidth/u32-width-tests: New file.
57851
57852         * lib/uniwidth/u32-width.c: New file.
57853         * modules/uniwidth/u32-width: New file.
57854
57855         * tests/uniwidth/test-u16-width.c: New file.
57856         * modules/uniwidth/u16-width-tests: New file.
57857
57858         * lib/uniwidth/u16-width.c: New file.
57859         * modules/uniwidth/u16-width: New file.
57860
57861         * tests/uniwidth/test-u8-width.c: New file.
57862         * modules/uniwidth/u8-width-tests: New file.
57863
57864         * lib/uniwidth/u8-width.c: New file.
57865         * modules/uniwidth/u8-width: New file.
57866
57867         * tests/uniwidth/test-uc_width.c: New file.
57868         * modules/uniwidth/width-tests: New file.
57869
57870         * lib/uniwidth/width.c: New file, from GNU libiconv.
57871         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57872         * modules/uniwidth/width: New file.
57873
57874         * lib/uniwidth.h: New file, from GNU libiconv.
57875         * modules/uniwidth/base: New file.
57876
57877 2007-07-07  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/uniname.h: New file, from GNU gettext.
57880         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57881         * lib/uniname/uninames.h: New file, from GNU gettext.
57882         * lib/uniname/uniname.c: New file, from GNU gettext.
57883         * tests/uniname/test-uninames.sh: New file.
57884         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57885         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57886         * modules/uniname/base: New file.
57887         * modules/uniname/uniname: New file.
57888         * modules/uniname/uniname-tests: New file.
57889         * MODULES.html.sh (Unicode string functions): Add the new modules.
57890
57891 2007-07-06  Bruno Haible  <bruno@clisp.org>
57892
57893         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57894
57895 2007-07-06  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57898         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57899         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57900         include <sys/time.h>.
57901         Reported by Eric Blake.
57902
57903 2007-07-06  Eric Blake  <ebb9@byu.net>
57904
57905         Fix testing canonicalize on cygwin.
57906         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57907         Revert patch from 2007-06-19.
57908         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57909         canonicalize module is also in use.
57910         * tests/test-canonicalize.c: New file.
57911         * tests/test-canonicalize.sh: Likewise.
57912         * modules/canonicalize-tests: Likewise.
57913
57914 2007-07-06  Jim Meyering  <jim@meyering.net>
57915
57916         * lib/getugroups.c (getugroups): Detect getgrent failure.
57917         Adjust comment to reflect reality: this function may return -1.
57918
57919 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57920
57921         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57922         the new TP address.
57923         (usage): Fix typo
57924         (gnulib_mk): New variable.
57925
57926 2007-07-05  Jim Meyering  <jim@meyering.net>
57927
57928         Don't let endgrent clobber errno, no matter how improbable.
57929         * lib/getugroups.c (getugroups): Save and restore errno around
57930         endgrent call.
57931
57932         Close the group DB even when failing with 2^31 or more members.
57933         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57934
57935 2007-07-04  Jim Meyering  <jim@meyering.net>
57936
57937         * lib/getugroups.h: New file.
57938         * lib/getugroups.c: Include "getugroups.h".
57939         Remove uses of "register" keyword.
57940         Move local variable, "cp", down into scope where used.
57941         Give "username" parameter the "const" attribute.
57942         * modules/getugroups (Files): Add lib/getugroups.h
57943
57944 2007-07-04  Karl Berry  <karl@gnu.org>
57945
57946         * MODULES.html.sh (func_all_modules): Complete rename of
57947         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57948
57949 2007-07-02  Bruno Haible  <bruno@clisp.org>
57950
57951         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57952         mode, when inttypes.h comes from gnulib.
57953         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57954
57955 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57956
57957         * NEWS: Mention lgpl module name change.
57958
57959         * modules/lgpl-2.1: Renamed from lgpl.
57960
57961         * NEWS: Mention gpl module name change.
57962
57963         * modules/gpl-3.0: New file, based on gpl-2.0.
57964
57965         * modules/gpl-2.0: Renamed from gpl.
57966
57967         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57968         doc/gpl-2.0.texi.
57969
57970 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57971
57972         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57973         #define __STDC_LIMIT_MACROS temporarily while including
57974         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57975         Problem reported by Joel E. Denny in
57976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57977
57978 2007-07-01  Bruno Haible  <bruno@clisp.org>
57979
57980         * lib/unistdio.h: New file.
57981         * lib/unistdio/u-asnprintf.h: New file.
57982         * lib/unistdio/u-asprintf.h: New file.
57983         * lib/unistdio/u-printf-args.c: New file.
57984         * lib/unistdio/u-printf-args.h: New file.
57985         * lib/unistdio/u-printf-parse.h: New file.
57986         * lib/unistdio/u-snprintf.h: New file.
57987         * lib/unistdio/u-sprintf.h: New file.
57988         * lib/unistdio/u-vasprintf.h: New file.
57989         * lib/unistdio/u-vsnprintf.h: New file.
57990         * lib/unistdio/u-vsprintf.h: New file.
57991         * lib/unistdio/ulc-asnprintf.c: New file.
57992         * lib/unistdio/ulc-asprintf.c: New file.
57993         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57994         * lib/unistdio/ulc-printf-parse.c: New file.
57995         * lib/unistdio/ulc-snprintf.c: New file.
57996         * lib/unistdio/ulc-sprintf.c: New file.
57997         * lib/unistdio/ulc-vasnprintf.c: New file.
57998         * lib/unistdio/ulc-vasprintf.c: New file.
57999         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58000         * lib/unistdio/ulc-vsnprintf.c: New file.
58001         * lib/unistdio/ulc-vsprintf.c: New file.
58002         * lib/unistdio/u8-asnprintf.c: New file.
58003         * lib/unistdio/u8-asprintf.c: New file.
58004         * lib/unistdio/u8-printf-parse.c: New file.
58005         * lib/unistdio/u8-snprintf.c: New file.
58006         * lib/unistdio/u8-sprintf.c: New file.
58007         * lib/unistdio/u8-vasnprintf.c: New file.
58008         * lib/unistdio/u8-vasprintf.c: New file.
58009         * lib/unistdio/u8-vsnprintf.c: New file.
58010         * lib/unistdio/u8-vsprintf.c: New file.
58011         * lib/unistdio/u8-u8-asnprintf.c: New file.
58012         * lib/unistdio/u8-u8-asprintf.c: New file.
58013         * lib/unistdio/u8-u8-snprintf.c: New file.
58014         * lib/unistdio/u8-u8-sprintf.c: New file.
58015         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58016         * lib/unistdio/u8-u8-vasprintf.c: New file.
58017         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58018         * lib/unistdio/u8-u8-vsprintf.c: New file.
58019         * lib/unistdio/u16-asnprintf.c: New file.
58020         * lib/unistdio/u16-asprintf.c: New file.
58021         * lib/unistdio/u16-printf-parse.c: New file.
58022         * lib/unistdio/u16-snprintf.c: New file.
58023         * lib/unistdio/u16-sprintf.c: New file.
58024         * lib/unistdio/u16-vasnprintf.c: New file.
58025         * lib/unistdio/u16-vasprintf.c: New file.
58026         * lib/unistdio/u16-vsnprintf.c: New file.
58027         * lib/unistdio/u16-vsprintf.c: New file.
58028         * lib/unistdio/u16-u16-asnprintf.c: New file.
58029         * lib/unistdio/u16-u16-asprintf.c: New file.
58030         * lib/unistdio/u16-u16-snprintf.c: New file.
58031         * lib/unistdio/u16-u16-sprintf.c: New file.
58032         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58033         * lib/unistdio/u16-u16-vasprintf.c: New file.
58034         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58035         * lib/unistdio/u16-u16-vsprintf.c: New file.
58036         * lib/unistdio/u32-asnprintf.c: New file.
58037         * lib/unistdio/u32-asprintf.c: New file.
58038         * lib/unistdio/u32-printf-parse.c: New file.
58039         * lib/unistdio/u32-snprintf.c: New file.
58040         * lib/unistdio/u32-sprintf.c: New file.
58041         * lib/unistdio/u32-vasnprintf.c: New file.
58042         * lib/unistdio/u32-vasprintf.c: New file.
58043         * lib/unistdio/u32-vsnprintf.c: New file.
58044         * lib/unistdio/u32-vsprintf.c: New file.
58045         * lib/unistdio/u32-u32-asnprintf.c: New file.
58046         * lib/unistdio/u32-u32-asprintf.c: New file.
58047         * lib/unistdio/u32-u32-snprintf.c: New file.
58048         * lib/unistdio/u32-u32-sprintf.c: New file.
58049         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58050         * lib/unistdio/u32-u32-vasprintf.c: New file.
58051         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58052         * lib/unistdio/u32-u32-vsprintf.c: New file.
58053         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58054         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58055         * tests/unistdio/test-ulc-printf1.h: New file.
58056         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58057         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58058         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58059         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58060         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58061         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58062         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58063         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58064         * tests/unistdio/test-u8-asnprintf1.c: New file.
58065         * tests/unistdio/test-u8-asnprintf1.h: New file.
58066         * tests/unistdio/test-u8-printf1.h: New file.
58067         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58068         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58069         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58070         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58071         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58072         * tests/unistdio/test-u8-vasprintf1.c: New file.
58073         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58074         * tests/unistdio/test-u8-vsprintf1.c: New file.
58075         * tests/unistdio/test-u16-asnprintf1.c: New file.
58076         * tests/unistdio/test-u16-asnprintf1.h: New file.
58077         * tests/unistdio/test-u16-printf1.h: New file.
58078         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58079         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58080         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58081         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58082         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58083         * tests/unistdio/test-u16-vasprintf1.c: New file.
58084         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58085         * tests/unistdio/test-u16-vsprintf1.c: New file.
58086         * tests/unistdio/test-u32-asnprintf1.c: New file.
58087         * tests/unistdio/test-u32-asnprintf1.h: New file.
58088         * tests/unistdio/test-u32-printf1.h: New file.
58089         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58090         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58091         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58092         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58093         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58094         * tests/unistdio/test-u32-vasprintf1.c: New file.
58095         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58096         * tests/unistdio/test-u32-vsprintf1.c: New file.
58097         * modules/unistdio/base: New file.
58098         * modules/unistdio/u-printf-args: New file.
58099         * modules/unistdio/ulc-asnprintf: New file.
58100         * modules/unistdio/ulc-asprintf: New file.
58101         * modules/unistdio/ulc-fprintf: New file.
58102         * modules/unistdio/ulc-printf-parse: New file.
58103         * modules/unistdio/ulc-snprintf: New file.
58104         * modules/unistdio/ulc-sprintf: New file.
58105         * modules/unistdio/ulc-vasnprintf: New file.
58106         * modules/unistdio/ulc-vasprintf: New file.
58107         * modules/unistdio/ulc-vfprintf: New file.
58108         * modules/unistdio/ulc-vsnprintf: New file.
58109         * modules/unistdio/ulc-vsprintf: New file.
58110         * modules/unistdio/u8-asnprintf: New file.
58111         * modules/unistdio/u8-asprintf: New file.
58112         * modules/unistdio/u8-printf-parse: New file.
58113         * modules/unistdio/u8-snprintf: New file.
58114         * modules/unistdio/u8-sprintf: New file.
58115         * modules/unistdio/u8-vasnprintf: New file.
58116         * modules/unistdio/u8-vasprintf: New file.
58117         * modules/unistdio/u8-vsnprintf: New file.
58118         * modules/unistdio/u8-vsprintf: New file.
58119         * modules/unistdio/u8-u8-asnprintf: New file.
58120         * modules/unistdio/u8-u8-asprintf: New file.
58121         * modules/unistdio/u8-u8-snprintf: New file.
58122         * modules/unistdio/u8-u8-sprintf: New file.
58123         * modules/unistdio/u8-u8-vasnprintf: New file.
58124         * modules/unistdio/u8-u8-vasprintf: New file.
58125         * modules/unistdio/u8-u8-vsnprintf: New file.
58126         * modules/unistdio/u8-u8-vsprintf: New file.
58127         * modules/unistdio/u16-asnprintf: New file.
58128         * modules/unistdio/u16-asprintf: New file.
58129         * modules/unistdio/u16-printf-parse: New file.
58130         * modules/unistdio/u16-snprintf: New file.
58131         * modules/unistdio/u16-sprintf: New file.
58132         * modules/unistdio/u16-vasnprintf: New file.
58133         * modules/unistdio/u16-vasprintf: New file.
58134         * modules/unistdio/u16-vsnprintf: New file.
58135         * modules/unistdio/u16-vsprintf: New file.
58136         * modules/unistdio/u16-u16-asnprintf: New file.
58137         * modules/unistdio/u16-u16-asprintf: New file.
58138         * modules/unistdio/u16-u16-snprintf: New file.
58139         * modules/unistdio/u16-u16-sprintf: New file.
58140         * modules/unistdio/u16-u16-vasnprintf: New file.
58141         * modules/unistdio/u16-u16-vasprintf: New file.
58142         * modules/unistdio/u16-u16-vsnprintf: New file.
58143         * modules/unistdio/u16-u16-vsprintf: New file.
58144         * modules/unistdio/u32-asnprintf: New file.
58145         * modules/unistdio/u32-asprintf: New file.
58146         * modules/unistdio/u32-printf-parse: New file.
58147         * modules/unistdio/u32-snprintf: New file.
58148         * modules/unistdio/u32-sprintf: New file.
58149         * modules/unistdio/u32-vasnprintf: New file.
58150         * modules/unistdio/u32-vasprintf: New file.
58151         * modules/unistdio/u32-vsnprintf: New file.
58152         * modules/unistdio/u32-vsprintf: New file.
58153         * modules/unistdio/u32-u32-asnprintf: New file.
58154         * modules/unistdio/u32-u32-asprintf: New file.
58155         * modules/unistdio/u32-u32-snprintf: New file.
58156         * modules/unistdio/u32-u32-sprintf: New file.
58157         * modules/unistdio/u32-u32-vasnprintf: New file.
58158         * modules/unistdio/u32-u32-vasprintf: New file.
58159         * modules/unistdio/u32-u32-vsnprintf: New file.
58160         * modules/unistdio/u32-u32-vsprintf: New file.
58161         * modules/unistdio/ulc-asnprintf-tests: New file.
58162         * modules/unistdio/ulc-vasnprintf-tests: New file.
58163         * modules/unistdio/ulc-vasprintf-tests: New file.
58164         * modules/unistdio/ulc-vsnprintf-tests: New file.
58165         * modules/unistdio/ulc-vsprintf-tests: New file.
58166         * modules/unistdio/u8-asnprintf-tests: New file.
58167         * modules/unistdio/u8-vasnprintf-tests: New file.
58168         * modules/unistdio/u8-vasprintf-tests: New file.
58169         * modules/unistdio/u8-vsnprintf-tests: New file.
58170         * modules/unistdio/u8-vsprintf-tests: New file.
58171         * modules/unistdio/u16-asnprintf-tests: New file.
58172         * modules/unistdio/u16-vasnprintf-tests: New file.
58173         * modules/unistdio/u16-vasprintf-tests: New file.
58174         * modules/unistdio/u16-vsnprintf-tests: New file.
58175         * modules/unistdio/u16-vsprintf-tests: New file.
58176         * modules/unistdio/u32-asnprintf-tests: New file.
58177         * modules/unistdio/u32-vasnprintf-tests: New file.
58178         * modules/unistdio/u32-vasprintf-tests: New file.
58179         * modules/unistdio/u32-vsnprintf-tests: New file.
58180         * modules/unistdio/u32-vsprintf-tests: New file.
58181         * MODULES.html.sh (Unicode string functions): Add the new modules.
58182
58183 2007-07-01  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/sprintf.c (sprintf): Limit the available length estimation,
58186         to avoid address wraparound.
58187         * lib/vsprintf.c (vsprintf): Likewise.
58188         * modules/sprintf-posix (Dependencies): Add stdint.
58189         * modules/vsprintf-posix (Dependencies): Likewise.
58190
58191 2007-07-01  Bruno Haible  <bruno@clisp.org>
58192
58193         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58194         Windows PATH as well. Conservative double-quoting. Comments.
58195
58196 2007-07-01  Bruno Haible  <bruno@clisp.org>
58197             Eric Blake  <ebb9@byu.net>
58198             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58199
58200         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58201         empty components in $PATH, denoting '.'.
58202
58203 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58204
58205         * gnulib-tool: Fix indentation.
58206         (func_create_megatestdir): Likewise.
58207         Report by Bruno Haible.
58208
58209 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58210
58211         Sync from Automake.
58212         * build-aux/gnupload: Fix shell portability issues with for loops.
58213         Report by Karl Berry.
58214
58215 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58216
58217         * build-aux/maint.mk (POURL): Use translationproject.org.
58218
58219 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58220             Bruno Haible  <bruno@clisp.org>
58221
58222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58223         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58224         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58225         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58226         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58227
58228 2007-06-27  Bruno Haible  <bruno@clisp.org>
58229
58230         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58231         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58232
58233 2007-06-26  Karl Berry  <karl@gnu.org>
58234
58235         * MODULES.html.sh: remove xreadlink-with-size.
58236
58237 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58238
58239         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58240         method that I hope also handles the double-include problem noted
58241         by Bruno Haible in
58242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58243
58244 2007-06-23  Bruno Haible  <bruno@clisp.org>
58245
58246         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58247         Don't let the 'mostlyclean' target fail if the last subdirectory could
58248         not be removed.
58249         Reported by Karl Berry.
58250
58251 2007-06-23  Bruno Haible  <bruno@clisp.org>
58252
58253         * gnulib-tool (echo): Add a speedier workaround for ksh.
58254         * tests/test-echo.sh: Likewise.
58255
58256 2007-06-23  Bruno Haible  <bruno@clisp.org>
58257
58258         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58259         * tests/test-echo.sh: Likewise.
58260
58261 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58262
58263         * gnulib-tool (IFS): Initialize early, so we don't set it to
58264         empty later.
58265         (self_abspathname): Rewrite algorithm to set it, reindent.
58266         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58267         (func_create_megatestdir): Merge some sed scripts.
58268
58269 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58270
58271         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58272         exposed by Sun Studio 11 cc on Solaris 8.
58273
58274 2007-06-22  Bruno Haible  <bruno@clisp.org>
58275
58276         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58277         backslashes.
58278         * tests/test-echo.sh: New file.
58279
58280 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58281
58282         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58283         simplify `sed_replace_build_aux' scripts, they are portable but
58284         echoing them with `echo' is not.
58285         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58286
58287 2007-06-21  Karl Berry  <karl@gnu.org>
58288
58289         * config/srclist.txt: guess we can't handle the licenses via
58290         srclist at the moment.
58291
58292 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * MODULES.html.sh: Add include_next.
58295         * modules/include_next: New file.
58296
58297 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58298
58299         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58300         INCLUDE_NEXT.
58301         (gl_CHECK_NEXT_HEADERS): New macro.
58302         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58303         the obsolescent gl_ABSOLUTE_HEADER.
58304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58305         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58306         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58307         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58308         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58309         * m4/math_h.m4 (gl_MATH_H): Likewise.
58310         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58311         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58312         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58313         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58314         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58315         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58316         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58321         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58322         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58323         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58324         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58325         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58326         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58327         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58328         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58329         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58330         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58331         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58332         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58333         * lib/float_.h: Likewise.
58334         * lib/inttypes_.h: Likewise.
58335         * lib/math_.h: Likewise.
58336         * lib/search_.h: Likewise.
58337         * lib/signal_.h: Likewise.
58338         * lib/stdint_.h: Likewise.
58339         * lib/stdio_.h: Likewise.
58340         * lib/stdlib_.h: Likewise.
58341         * lib/string_.h: Likewise.
58342         * lib/sys_stat_.h: Likewise.
58343         * lib/sys_time_.h: Likewise.
58344         * lib/time_.h: Likewise.
58345         * lib/unistd_.h: Likewise.
58346         * lib/wchar_.h: Likewise.
58347         * lib/wctype_.h: Likewise.
58348         * lib/dirent_.h: Likewise.
58349         * lib/iconv_.h: Likewise.
58350         * lib/locale_.h: Likewise.
58351         * lib/netinet_in_.h: Likewise.
58352         * lib/sys_select_.h: Likewise.
58353         * lib/sys_socket_.h: Likewise.
58354         * lib/sysexits_.h: Likewise.
58355         * modules/fcntl (Depends-on): Depend on include_next, not
58356         absolute_header.
58357         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58358         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58359         * modules/fchdir: Likewise.
58360         * modules/float: Likewise.
58361         * modules/iconv_open: Likewise.
58362         * modules/inttypes: Likewise.
58363         * modules/locale: Likewise.
58364         * modules/math: Likewise.
58365         * modules/netinet_in: Likewise.
58366         * modules/search: Likewise.
58367         * modules/signal: Likewise.
58368         * modules/stdint: Likewise.
58369         * modules/stdio: Likewise.
58370         * modules/stdlib: Likewise.
58371         * modules/string: Likewise.
58372         * modules/sys_select: Likewise.
58373         * modules/sys_socket: Likewise.
58374         * modules/sys_stat: Likewise.
58375         * modules/sys_time: Likewise.
58376         * modules/sysexits: Likewise.
58377         * modules/time: Likewise.
58378         * modules/unistd: Likewise.
58379         * modules/wchar: Likewise.
58380         * modules/wctype: Likewise.
58381         * modules/sys_stat: Change maintainer to "all".
58382         * modules/unistd: Likewise.
58383
58384 2007-06-20  Karl Berry  <karl@gnu.org>
58385
58386         * config/srclist.txt: track www changes in license files.
58387
58388 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58389
58390         * build-aux/bootstrap: Remove stray dot.
58391         Make sure build_aux settings are honored when linking
58392         gnulib_extra_files.
58393
58394 2007-06-19  Eric Blake  <ebb9@byu.net>
58395
58396         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58397         Allow compilation on cygwin.
58398
58399 2007-06-19  Jim Meyering  <jim@meyering.net>
58400
58401         xreadlink-with-size: Remove module.  No longer used.
58402         Ex-callers now use xreadlink or mreadlink-with-size.
58403         * modules/xreadlink-with-size: Remove module.
58404         * lib/xreadlink-with-size.c: Remove file.
58405         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58406         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58407         just before the function definition *is* accurate.
58408
58409         Eliminate one way canonicalize_filename_mode could exit.
58410         * lib/canonicalize.c (canonicalize_filename_mode):
58411         Use mreadlink_with_size, not xreadlink_with_size.
58412
58413 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         Detect porting problems to FreeBSD/arm, which has time_t wider than
58416         long int.  Original problem reported for GNU diff by Xin Li in
58417         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58418         * modules/getdate (Depends-on): Add intprops, verify.
58419         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58420         is an integer type no wider than long int.
58421
58422 2007-06-18  Jim Meyering  <jim@meyering.net>
58423
58424         New module: mreadlink-with-size.
58425         * MODULES.html.sh: Add mreadlink-with-size.
58426         * modules/mreadlink-with-size: New module
58427         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58428         not xreadlink-with-size.
58429         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58430
58431 2007-06-16  Bruno Haible  <bruno@clisp.org>
58432
58433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58434         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58435         Reported by Gary V. Vaughan <gary@gnu.org>.
58436
58437 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58438
58439         Revamp lchown so that it lives in unistd.h where it belongs.
58440         * lib/lchown.h: Remove.
58441         * lib/dirchownmod.c: Don't include lib/lchown.h.
58442         * lib/fchownat.c: Likewise.
58443         * lib/openat.c: Likewise.
58444         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58445         does not follow symlinks.
58446         (EOPNOTSUPP): Define if not defined.
58447         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58448         is defined to 0.
58449         (lchown): New decl.
58450         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58451         Do not check for lchown decl.
58452         Set REPLACE_LCHOWN.
58453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58454         REPLACE_LCHOWN.
58455         * modules/chown: Make it clear it follows symlinks.
58456         * modules/lchown: Make it clear it doesn't follow symlinks.
58457         (Files): Remove lib/lchown.h
58458         (Depends-on): Add unistd.
58459         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58460         (Include): Include <unistd.h>, not "lchown.h".
58461         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58462         REPLACE_LCHOWN.
58463
58464 2007-06-15  Jim Meyering  <jim@meyering.net>
58465
58466         Change license (GPL to LGPL) of fsusage and dependents.
58467         * modules/fsusage (License): Change to LGPL.
58468         * modules/full-read (License): Likewise.
58469         * modules/full-write (License): Likewise.
58470         * modules/safe-read (License): Likewise.
58471         * modules/safe-write (License): Likewise.
58472
58473 2007-06-14  Ben Pfaff  <blp@gnu.org>
58474
58475         Missing part of allocsa -> malloca transition.
58476         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58477         gl_MALLOCA.
58478
58479 2007-06-12  Bruno Haible  <bruno@clisp.org>
58480
58481         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58482         to ia64, x86_64, i386.
58483         Reported by Eric Blake.
58484
58485 2007-06-12  Bruno Haible  <bruno@clisp.org>
58486
58487         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58488         cross-compiling to x86_64.
58489
58490 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58491
58492         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58493         glitch reported by Ralf Wildenhues in
58494         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58495
58496         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58497         Vin Shelton.
58498
58499 2007-06-11  Bruno Haible  <bruno@clisp.org>
58500
58501         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58502         replacement string.
58503         Reported by Eric Blake.
58504
58505 2007-06-10  Bruno Haible  <bruno@clisp.org>
58506
58507         Prepare vasnprintf code for use with Unicode strings.
58508         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58509         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58510         TYPE_U32_STRING.
58511         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58512         a_u32_string variants.
58513         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58514         * lib/printf-args.c: Don't include config.h and the specification
58515         header if PRINTF_FETCHARGS is already defined.
58516         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58517         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58518         TYPE_U16_STRING, TYPE_U32_STRING.
58519         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58520         u16_directive, u16_directives, u32_directive, u32_directives): New
58521         types.
58522         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58523         New declarations.
58524         * lib/printf-parse.c: Don't include config.h and the specification
58525         header if PRINTF_PARSE is already defined. Eliminate the set of
58526         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58527         them now. Include c-ctype.h.
58528         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58529         directive and CHAR_T_ONLY_ASCII.
58530         * lib/vasnprintf.c: Don't include config.h and the specification header
58531         if VASNPRINTF is already defined.
58532         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58533         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58534         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58535         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58536         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58537         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58538         code accordingly.
58539         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58540         pad_ourselves also in this case, with the 'c' and 's' directives, and
58541         with a different notion of "width".
58542         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58543
58544 2007-06-10  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/unistr/u32-mbsnlen: New file.
58547         * lib/unistr/u32-mbsnlen.c: New file.
58548
58549         * modules/unistr/u16-mbsnlen: New file.
58550         * lib/unistr/u16-mbsnlen.c: New file.
58551
58552         * modules/unistr/u8-mbsnlen: New file.
58553         * lib/unistr/u8-mbsnlen.c: New file.
58554
58555         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58556         declarations.
58557
58558 2007-06-10  Bruno Haible  <bruno@clisp.org>
58559
58560         * lib/string_.h (mbsnlen): New declaration.
58561         * lib/mbsnlen.c: New file.
58562         * m4/mbsnlen.m4: New file.
58563         * modules/mbsnlen: New file.
58564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58565         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58566         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58567
58568 2007-06-10  Bruno Haible  <bruno@clisp.org>
58569
58570         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58571
58572 2007-06-10  Bruno Haible  <bruno@clisp.org>
58573
58574         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58575         * lib/mbuiter.h: Likewise.
58576
58577 2007-06-10  Bruno Haible  <bruno@clisp.org>
58578
58579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58580         declaration.
58581
58582 2007-06-10  Karl Berry  <karl@gnu.org>
58583
58584         * config/srclist.txt: remove gettext entries, Bruno prefers
58585         to update individually.
58586
58587 2007-06-10  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58590         'maxlen'. Ensure only length + width bytes are allocated, not
58591         length + 1 + width.
58592
58593 2007-06-09  Bruno Haible  <bruno@clisp.org>
58594
58595         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58596         (CHAR_T): Remove macro.
58597         (VASNPRINTF): Update.
58598
58599 2007-06-09  Bruno Haible  <bruno@clisp.org>
58600
58601         * MODULES.html.sh (Unicode string functions): Add the new modules.
58602
58603         * modules/uniconv/u32-conv-to-enc: New file.
58604         * lib/uniconv/u32-conv-to-enc.c: New file.
58605         * modules/uniconv/u32-conv-to-enc-tests: New file.
58606         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58607
58608         * modules/uniconv/u16-conv-to-enc: New file.
58609         * lib/uniconv/u16-conv-to-enc.c: New file.
58610         * lib/uniconv/u-conv-to-enc.h: New file.
58611         * modules/uniconv/u16-conv-to-enc-tests: New file.
58612         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58613
58614         * modules/uniconv/u8-conv-to-enc: New file.
58615         * lib/uniconv/u8-conv-to-enc.c: New file.
58616         * modules/uniconv/u8-conv-to-enc-tests: New file.
58617         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58618
58619         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58620         u32_conv_to_encoding): New declarations.
58621
58622 2007-06-09  Bruno Haible  <bruno@clisp.org>
58623
58624         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58625
58626 2007-06-09  Bruno Haible  <bruno@clisp.org>
58627
58628         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58629         * modules/malloca: Renamed from modules/allocsa, updated.
58630         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58631         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58632         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58633         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58634         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58635         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58636         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58637         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58638         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58639         * modules/c-strcasestr (Depends-on): Update.
58640         * lib/c-strcasestr.c: Update.
58641         * modules/c-strstr (Depends-on): Update.
58642         * lib/c-strstr.c: Update.
58643         * modules/canonicalize-lgpl (Depends-on): Update.
58644         * lib/canonicalize-lgpl.c: Update.
58645         * modules/clean-temp (Depends-on): Update.
58646         * lib/clean-temp.c: Update.
58647         * modules/csharpcomp (Depends-on): Update.
58648         * lib/csharpcomp.c: Update.
58649         * modules/csharpexec (Depends-on): Update.
58650         * lib/csharpexec.c: Update.
58651         * modules/javacomp (Depends-on): Update.
58652         * lib/javacomp.c: Update.
58653         * modules/javaexec (Depends-on): Update.
58654         * lib/javaexec.c: Update.
58655         * modules/mbscasestr (Depends-on): Update.
58656         * lib/mbscasestr.c: Update.
58657         * modules/mbsstr (Depends-on): Update.
58658         * lib/mbsstr.c: Update.
58659         * modules/setenv (Depends-on): Update.
58660         * lib/setenv.c: Update.
58661         * modules/strcasestr (Depends-on): Update.
58662         * lib/strcasestr.c: Update.
58663         * modules/striconveha (Depends-on): Update.
58664         * lib/striconveha.c: Update.
58665         * modules/relocatable-prog-wrapper (Files): Update.
58666         * lib/relocwrapper.c: Update.
58667         * build-aux/install-reloc: Update.
58668         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58669
58670 2007-06-08  Bruno Haible  <bruno@clisp.org>
58671
58672         Port to uClibc.
58673         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58674         * lib/fpurge.c (fpurge): Likewise.
58675         * lib/freading.c (freading): Likewise.
58676         * lib/fseeko.c (rpl_fseeko): Likewise.
58677         * lib/fseterr.c (fseterr): Likewise.
58678         * lib/fwriting.c (fwriting): Likewise.
58679         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58680
58681 2007-06-08  Bruno Haible  <bruno@clisp.org>
58682
58683         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58684         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58685         * modules/gettext (Files): Add m4/intlmacosx.m4.
58686
58687 2007-06-07  Bruno Haible  <bruno@clisp.org>
58688
58689         * modules/localename-tests: New file.
58690         * tests/test-localename.c: New file.
58691
58692         New module 'localename'.
58693         * lib/localename.h: New file.
58694         * lib/localename.c: New file, from GNU gettext.
58695         * m4/localename.m4: New file.
58696         * modules/localename: New file.
58697
58698 2007-06-07  Bruno Haible  <bruno@clisp.org>
58699
58700         Work around the lack of <wchar.h> on some builds of uClibc.
58701         * doc/headers/wchar.texi: Update.
58702         * lib/wchar_.h: Include <wchar.h> only if it exists.
58703         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58704         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58705         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58706         doesn't exist.
58707         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58708         * modules/mbfile (Depends-on): Add wchar.
58709         * modules/mbiter (Depends-on): Likewise.
58710         * modules/mbuiter (Depends-on): Likewise.
58711         Reported by Simon Josefsson.
58712
58713 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         Work around problem reported by Steven M. Schweda in
58716         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58717         Tru64 5.1B with the Compaq compiler environment installed declares
58718         an 'isblank' function but does not define it in the C library.
58719         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58720         * lib/regex_internal.h (isblank): Likewise.
58721         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58722         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58723
58724 2007-06-05  Bruno Haible  <bruno@clisp.org>
58725
58726         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58727         ia64.
58728         * modules/printf-safe: New file.
58729         * modules/fprintf-posix (Depends-on): Add printf-safe.
58730         * modules/printf-posix (Depends-on): Likewise.
58731         * modules/snprintf-posix (Depends-on): Likewise.
58732         * modules/sprintf-posix (Depends-on): Likewise.
58733         * modules/vasnprintf-posix (Depends-on): Likewise.
58734         * modules/vasprintf-posix (Depends-on): Likewise.
58735         * modules/vfprintf-posix (Depends-on): Likewise.
58736         * modules/vprintf-posix (Depends-on): Likewise.
58737         * modules/vsnprintf-posix (Depends-on): Likewise.
58738         * modules/vsprintf-posix (Depends-on): Likewise.
58739         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58740         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58741         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58742         "no" on i386, x86_64, ia64.
58743         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58744         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58745         on i386, x86_64, ia64.
58746         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58747         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58748         on i386, x86_64, ia64.
58749         * tests/test-vasnprintf-posix.c: Include float.h.
58750         (LDBL80_WORDS): New macro.
58751         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58752         on i386, x86_64, ia64.
58753         * tests/test-vasprintf-posix.c: Include float.h.
58754         (LDBL80_WORDS): New macro.
58755         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58756         on i386, x86_64, ia64.
58757         * tests/test-snprintf-posix.c: Include float.h.
58758         * tests/test-sprintf-posix.c: Likewise.
58759         * tests/test-vsnprintf-posix.c: Likewise.
58760         * tests/test-vsprintf-posix.c: Likewise.
58761
58762 2007-06-05  Bruno Haible  <bruno@clisp.org>
58763
58764         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58765         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58766         non-IEEE numbers on i386, x86_64, ia64.
58767         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58768         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58769         * tests/test-isnanl.h: Include float.h.
58770         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58771
58772 2007-06-05  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58775         also the %a / %A. Handle the %a / %A code before this extra handling.
58776
58777 2007-06-05  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58780         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58781
58782 2007-06-05  Bruno Haible  <bruno@clisp.org>
58783
58784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58785         typo in variable name.
58786
58787 2007-06-05  Eric Blake  <ebb9@byu.net>
58788
58789         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58790         Reported by Simon Josefsson.
58791
58792 2007-06-04  Bruno Haible  <bruno@clisp.org>
58793
58794         Avoid test failures on some PowerPC platforms.
58795         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58796         Define differently for PowerPC.
58797         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58798         Reported by Gary V. Vaughan <gary@gnu.org>.
58799
58800 2007-06-02  Bruno Haible  <bruno@clisp.org>
58801
58802         Fix test-stdint failure on FreeBSD/ia64.
58803         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58804         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58805         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58806         * doc/headers/stdint.texi: Update.
58807
58808 2007-06-01  Bruno Haible  <bruno@clisp.org>
58809
58810         * tests/test-binary-io.c (main): Pass a third argument to open().
58811         Reported by Gary V. Vaughan <gary@gnu.org>.
58812
58813 2007-06-01  Bruno Haible  <bruno@clisp.org>
58814
58815         * doc/functions/frexpl.texi: Update for mingw.
58816
58817 2007-06-01  Bruno Haible  <bruno@clisp.org>
58818
58819         * tests/test-lseek.c (main): Disable test of errno for invalid third
58820         argument.
58821         * doc/functions/lseek.texi: Update.
58822         Reported by Gary V. Vaughan <gary@gnu.org>.
58823
58824 2007-05-28  Bruno Haible  <bruno@clisp.org>
58825
58826         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58827
58828 2007-05-31  Eric Blake  <ebb9@byu.net>
58829
58830         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58831         cross compiling.
58832
58833 2007-05-30  Eric Blake  <ebb9@byu.net>
58834         and Bruno Haible  <bruno@clisp.org>
58835
58836         Work around mingw test failures exposed by m4-1.4.9b.
58837         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58838         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58839         moment.
58840
58841 2007-05-30  Bruno Haible  <bruno@clisp.org>
58842
58843         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58844         assuming that they are closed. Needed on HP-UX 11.
58845
58846 2007-05-29  Bruno Haible  <bruno@clisp.org>
58847
58848         Fix a problem with #include_next.
58849         * lib/dirent_.h: Split the double-inclusion guard.
58850         * lib/fcntl_.h: Likewise.
58851         * lib/float_.h: Likewise.
58852         * lib/iconv_.h: Likewise.
58853         * lib/inttypes_.h: Likewise.
58854         * lib/locale_.h: Likewise.
58855         * lib/math_.h: Likewise.
58856         * lib/netinet_in_.h: Likewise.
58857         * lib/search_.h: Likewise.
58858         * lib/signal_.h: Likewise.
58859         * lib/stdint_.h: Likewise.
58860         * lib/stdio_.h: Likewise.
58861         * lib/stdlib_.h: Likewise.
58862         * lib/string_.h: Likewise.
58863         * lib/sys_select_.h: Likewise.
58864         * lib/sys_socket_.h: Likewise.
58865         * lib/sys_stat_.h: Likewise.
58866         * lib/sys_time_.h: Likewise.
58867         * lib/sysexits_.h: Likewise.
58868         * lib/time_.h: Likewise.
58869         * lib/unistd_.h: Likewise.
58870         * lib/wchar_.h: Likewise.
58871         * lib/wctype_.h: Likewise.
58872
58873 2007-05-29  Bruno Haible  <bruno@clisp.org>
58874
58875         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58876         for the moment.
58877
58878 2007-05-29  Bruno Haible  <bruno@clisp.org>
58879
58880         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58881         invocation.
58882         Reported by Eric Blake.
58883
58884 2007-05-29  Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58887         compiling case.
58888
58889 2007-05-29  Eric Blake  <ebb9@byu.net>
58890             Bruno Haible  <bruno@clisp.org>
58891
58892         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58893         cross compiles.
58894
58895 2007-05-28  Eric Blake  <ebb9@byu.net>
58896
58897         * modules/closein-tests (test_closein_LDADD): Support test on
58898         cygwin with libtool.
58899
58900 2007-05-28  Bruno Haible  <bruno@clisp.org>
58901
58902         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58903         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58904         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58905         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58906         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58907         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58908         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58909         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58910         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58911
58912 2007-05-28  Eric Blake  <ebb9@byu.net>
58913
58914         Unconditionally include <config.h> in unit tests.
58915         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58916         * tests/test-allocsa.c, tests/test-arcfour.c,
58917         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58918         tests/test-array_list.c, tests/test-array_oset.c,
58919         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58920         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58921         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58922         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58923         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58924         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58925         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58926         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58927         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58928         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58929         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58930         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58931         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58932         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58933         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58934         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58935         test-md5.c, test-memmem.c, test-printf-posix.c,
58936         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58937         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58938         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58939         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58940         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58941         test-vasnprintf-posix2.c, test-vasnprintf.c,
58942         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58943         test-vfprintf-posix.c, test-vprintf-posix.c,
58944         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58945         test-xvasprintf.c: Likewise.
58946
58947 2007-05-28  Bruno Haible  <bruno@clisp.org>
58948
58949         * gnulib-tool (func_import): Remember the --with-tests command-line
58950         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58951         Reported by Eric Blake.
58952
58953 2007-05-28  Bruno Haible  <bruno@clisp.org>
58954
58955         * modules/ftell-tests: New file.
58956         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58957         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58958
58959         * lib/ftell.c: New file.
58960         * modules/ftell: New file.
58961         * m4/ftell.m4: New file.
58962         * doc/functions/ftell.texi: Update.
58963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58964         REPLACE_FTELL.
58965         * lib/stdio_.h (rpl_ftell): New declaration.
58966         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58967         REPLACE_FTELL.
58968
58969 2007-05-28  Eric Blake  <ebb9@byu.net>
58970
58971         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58972
58973 2007-05-28  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/fseek-tests: New file.
58976         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58977         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58978
58979         * lib/fseek.c: New file.
58980         * modules/fseek: New file.
58981         * m4/fseek.m4: New file.
58982         * doc/functions/fseek.texi: Update.
58983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58984         REPLACE_FSEEK.
58985         * lib/stdio_.h (rpl_fseek): New declaration.
58986         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58987         REPLACE_FSEEK.
58988
58989 2007-05-28  Bruno Haible  <bruno@clisp.org>
58990
58991         * lib/stdio_.h (fflush): More comments.
58992
58993 2007-05-28  Bruno Haible  <bruno@clisp.org>
58994
58995         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58996         runtime test.
58997
58998 2007-05-28  Eric Blake  <ebb9@byu.net>
58999
59000         Improve lseek module.
59001         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59002         * lib/unistd_.h (lseek): Scale back link warning message.
59003         * tests/test-lseek.c: Beef up test.
59004         * tests/test-lseek.sh: Exercise more facets of lseek.
59005         Reported by Bruno Haible.
59006
59007 2007-05-28  Bruno Haible  <bruno@clisp.org>
59008
59009         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59010         to define.
59011
59012 2007-05-27  Bruno Haible  <bruno@clisp.org>
59013
59014         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59015
59016 2007-05-27  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/openmp: New file.
59019         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59020         Noah Misch.
59021
59022 2007-05-26  Bruno Haible  <bruno@clisp.org>
59023
59024         * modules/chdir-long (Depends-on): Add fchdir.
59025         * modules/chdir-safer (Depends-on): Likewise.
59026         * modules/fts (Depends-on): Likewise.
59027         * modules/fts-lgpl (Depends-on): Likewise.
59028         * modules/openat (Depends-on): Likewise.
59029         * modules/savewd (Depends-on): Likewise.
59030
59031 2007-05-24  Eric Blake  <ebb9@byu.net>
59032
59033         Fix lseek on mingw.
59034         * modules/lseek: New module.
59035         * m4/lseek.m4: New file.
59036         * lib/lseek.c: New file.
59037         * modules/lseek-tests: New file.
59038         * tests/test-lseek.c: New file.
59039         * tests/test-lseek.sh: New file.
59040         * MODULES.html.sh: Document lseek module.
59041         * modules/fflush (Depends-on): Add lseek, fseeko.
59042         * modules/fseeko (Depends-on): Likewise.
59043         * modules/ftello (Depends-on): Likewise.
59044         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59045         broken.
59046         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59047         broken.
59048         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59049         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59050         * lib/ftello.c (rpl_ftello): Likewise.
59051         * tests/test-fseeko.c (main): Test this.
59052         * tests/test-fseeko.sh: Likewise.
59053         * tests/test-ftello.c (main): Likewise.
59054         * tests/test-ftello.sh: Likewise.
59055         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59056         implies replacing fseek.
59057         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59058         HAVE_FTELLO.
59059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59060         * modules/unistd (Makefile.am): Likewise.
59061         * lib/unistd_.h (lseek): Declare a replacement.
59062         * doc/functions/lseek.texi (lseek): Document this fix.
59063         * doc/functions/fseek.texi (fseek): Likewise.
59064         * doc/functions/ftell.texi (ftell): Likewise.
59065
59066 2007-05-24  Bruno Haible  <bruno@clisp.org>
59067
59068         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59069         in the printed representation of a NaN.
59070         * tests/test-vasprintf-posix.c (test_function): Likewise.
59071         * tests/test-snprintf-posix.h (test_function): Likewise.
59072         * tests/test-sprintf-posix.h (test_function): Likewise.
59073         Reported by Eric Blake.
59074
59075 2007-05-23  Eric Blake  <ebb9@byu.net>
59076
59077         Fix fseeko/ftello on cygwin 1.5.24.
59078         * doc/functions/fseeko.texi (fseeko): Document the fix.
59079         * doc/functions/ftello.texi (ftello): Document the fix.
59080         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59081         * doc/functions/stdout.text (stdout): New file.
59082         * doc/functions/stderr.text (stderr): New file.
59083         * doc/gnulib.texi (Function Substitutes): Use new files.
59084         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59085         prior to 1.7.0.
59086         * tests/test-ftello.c (main): Likewise for ftello.
59087         * tests/test-fseeko.sh: New file.
59088         * tests/test-ftello.sh: New file.
59089         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59090         with seekable stdin.
59091         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59092         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59093         (gl_REPLACE_FSEEKO): New macro.
59094         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59095         * modules/fseeko (Files): Distribute fseeko.c.
59096         * modules/ftello (Files): Distribute ftello.c.
59097         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59098         mode.
59099         * lib/ftello.c (rpl_ftello): New file.
59100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59101         fseeko, ftello.
59102         (gl_STDIN_LARGE_OFFSET): New macro.
59103         * modules/stdio (Makefile.am): Perform the replacement.
59104         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59105
59106 2007-05-23  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59109         GNULIB_POSIXCHECK is defined.
59110
59111 2007-05-21  Bruno Haible  <bruno@clisp.org>
59112
59113         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59114         Check also the output for NaN arguments. When cross-compiling, guess
59115         no on IRIX.
59116         * lib/vasnprintf.c: Update comments.
59117         * tests/test-vasnprintf-posix.c (strisnan): New function.
59118         (test_function): Use it.
59119         * tests/test-vasprintf-posix.c (strisnan): New function.
59120         (test_function): Use it.
59121         * tests/test-snprintf-posix.h (strisnan): New function.
59122         (test_function): Use it.
59123         * tests/test-sprintf-posix.h (strisnan): New function.
59124         (test_function): Use it.
59125         Reported by Eric Blake.
59126
59127 2007-05-20  Bruno Haible  <bruno@clisp.org>
59128
59129         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59130         numbers that fails on BeOS.
59131         * doc/functions/frexpl.texi: Update.
59132
59133 2007-05-20  Jim Meyering  <jim@meyering.net>
59134
59135         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59136         forced upon us by glibc-2.6.
59137
59138 2007-05-20  Bruno Haible  <bruno@clisp.org>
59139
59140         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59141         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59142         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59143         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59144         NEED_PRINTF_INFINITE.
59145         (is_infinitel): New function.
59146         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59148         gl_PREREQ_VASNPRINTF_INFINITE.
59149         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59150         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59151         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59152         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59153         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59154         gl_PREREQ_VASNPRINTF_INFINITE.
59155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59162         * doc/functions/fprintf.texi: Update.
59163         * doc/functions/printf.texi: Update.
59164         * doc/functions/snprintf.texi: Update.
59165         * doc/functions/sprintf.texi: Update.
59166         * doc/functions/vfprintf.texi: Update.
59167         * doc/functions/vprintf.texi: Update.
59168         * doc/functions/vsnprintf.texi: Update.
59169         * doc/functions/vsprintf.texi: Update.
59170
59171 2007-05-20  Bruno Haible  <bruno@clisp.org>
59172
59173         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59174         was not found in libc.
59175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59176
59177 2007-05-20  Bruno Haible  <bruno@clisp.org>
59178
59179         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59180         printed as "-nan" instead of "nan".
59181         * tests/test-vasprintf-posix.c (test_function): Likewise.
59182         * tests/test-snprintf-posix.h (test_function): Likewise.
59183         * tests/test-sprintf-posix.h (test_function): Likewise.
59184         Needed for HP-UX 11.
59185
59186 2007-05-20  Jim Meyering  <jim@meyering.net>
59187
59188         Fix buggy test for the fchownat-deref bug.
59189         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59190         symlink required for the run-test.  Without it, this test would
59191         always declare that fchownat doesn't work, and client code would
59192         unnecessarily use the replacement function with fixed libc.
59193         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59194         Reported by Greg Schafer.
59195
59196 2007-05-19  Bruno Haible  <bruno@clisp.org>
59197
59198         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59199         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59200         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59201         Needed for IRIX 6.5 and Solaris 2.5.1.
59202
59203 2007-05-19  Bruno Haible  <bruno@clisp.org>
59204
59205         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59206         (test_function): Skip tests involving -0.0 on platforms where
59207         -0.0 = 0.0.
59208         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59209         (test_function): Skip tests involving -0.0 on platforms where
59210         -0.0 = 0.0.
59211         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59212         (test_function): Skip tests involving -0.0 on platforms where
59213         -0.0 = 0.0.
59214         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59215         (test_function): Skip tests involving -0.0 on platforms where
59216         -0.0 = 0.0.
59217         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59218         tests.
59219         * tests/test-printf-posix.h (test_function): Likewise.
59220         * tests/test-printf-posix.output: Remove all -0.0 related results.
59221         Needed for IRIX 6.5.
59222
59223 2007-05-19  Bruno Haible  <bruno@clisp.org>
59224
59225         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59226         printed as "nan0x7fffffff" instead of "nan".
59227         * tests/test-vasprintf-posix.c (test_function): Likewise.
59228         * tests/test-snprintf-posix.h (test_function): Likewise.
59229         * tests/test-sprintf-posix.h (test_function): Likewise.
59230         * tests/test-fprintf-posix.h (NaN): Remove macro.
59231         (test_function): Remove all NaN related tests.
59232         * tests/test-printf-posix.h (NaN): Remove macro.
59233         (test_function): Remove all NaN related tests.
59234         * tests/test-printf-posix.output: Remove all NaN related results.
59235         Needed for IRIX 6.5.
59236
59237 2007-05-19  Bruno Haible  <bruno@clisp.org>
59238
59239         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59241
59242 2007-05-19  Bruno Haible  <bruno@clisp.org>
59243
59244         * lib/float_.h: New file.
59245         * m4/float_h.m4: New file.
59246         * modules/float: New file.
59247         * modules/isnanl (Dependencies): Add float.
59248         * modules/isnanl-nolibm (Dependencies): Likewise.
59249         * modules/mathl (Dependencies): Likewise.
59250         * modules/printf-frexpl (Dependencies): Likewise.
59251         * modules/signbit (Dependencies): Likewise.
59252         * modules/vasnprintf (Dependencies): Likewise.
59253         * doc/headers/float.texi: Update.
59254
59255 2007-05-19  Jim Meyering  <jim@meyering.net>
59256
59257         * lib/utimens.c (gl_futimens): Rename from futimens,
59258         now that glibc-2.6 declares futimens.
59259         * lib/utimens.h: Likewise.
59260
59261 2007-05-19  Bruno Haible  <bruno@clisp.org>
59262
59263         Avoid test failures on mingw.
59264         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59265         * tests/test-printf-posix.sh: Likewise.
59266         * tests/test-vfprintf-posix.sh: Likewise.
59267         * tests/test-vprintf-posix.sh: Likewise.
59268
59269 2007-05-19  Bruno Haible  <bruno@clisp.org>
59270
59271         Fix *printf result for NaN, Inf, -0.0 on mingw.
59272         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59273         * lib/vasnprintf.c: Include math.h and isnan.h.
59274         (is_infinite_or_zero): New function.
59275         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59276         values in the %f, %F, %e, %E, %g, %G directives.
59277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59278         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59279         gl_PRINTF_INFINITE and test its result. Invoke
59280         gl_PREREQ_VASNPRINTF_INFINITE.
59281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59284         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59288         * doc/functions/fprintf.texi: Update.
59289         * doc/functions/printf.texi: Update.
59290         * doc/functions/snprintf.texi: Update.
59291         * doc/functions/sprintf.texi: Update.
59292         * doc/functions/vfprintf.texi: Update.
59293         * doc/functions/vprintf.texi: Update.
59294         * doc/functions/vsnprintf.texi: Update.
59295         * doc/functions/vsprintf.texi: Update.
59296
59297 2007-05-19  Bruno Haible  <bruno@clisp.org>
59298
59299         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59300         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59301         Instead of multiplying with 10^k, set extra_zeroes to k.
59302         (scale10_round_long_double): Remove function.
59303
59304 2007-05-18  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59307         introduced on 2007-05-06.
59308
59309 2007-05-18  Bruno Haible  <bruno@clisp.org>
59310
59311         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59312         %g directives.
59313         * tests/test-vasprintf-posix.c (test_function): Likewise.
59314         * tests/test-snprintf-posix.h (test_function): Likewise.
59315         * tests/test-sprintf-posix.h (test_function): Likewise.
59316
59317 2007-05-18  Bruno Haible  <bruno@clisp.org>
59318
59319         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59320         (strmatch): New function.
59321         (test_function): Test the %f directive on numbers of various exponents.
59322         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59323         (strmatch): New function.
59324         (test_function): Test the %f directive on numbers of various exponents.
59325         * tests/test-snprintf-posix.h (strmatch): New function.
59326         (test_function): Test the %f directive on numbers of various exponents.
59327         * tests/test-sprintf-posix.h (strmatch): New function.
59328         (test_function): Test the %f directive on numbers of various exponents.
59329         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59330         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59331         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59332         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59333
59334 2007-05-18  Bruno Haible  <bruno@clisp.org>
59335
59336         Add support for 'long double' number output.
59337         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59338         * lib/vasnprintf.c: Include math.h and float+.h.
59339         (mp_limb_t): New type.
59340         (GMP_LIMB_BITS): New macro.
59341         (mp_twolimb_t): New type.
59342         (GMP_TWOLIMB_BITS): New macro.
59343         (mpn_t): New type.
59344         (multiply, divide, convert_to_decimal, decode_long_double,
59345         scale10_round_long_double, scale10_round_decimal_long_double,
59346         floorlog10l): New functions.
59347         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59348         for the %f, %F, %e, %E, %g, %G directives.
59349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59350         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59351         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59352         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59357         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59359         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59360         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59361         * modules/snprintf-posix (Depends-on): Likewise.
59362         * modules/sprintf-posix (Depends-on): Likewise.
59363         * modules/vasnprintf-posix (Depends-on): Likewise.
59364         * modules/vasprintf-posix (Depends-on): Likewise.
59365         * modules/vfprintf-posix (Depends-on): Likewise.
59366         * modules/vsnprintf-posix (Depends-on): Likewise.
59367         * modules/vsprintf-posix (Depends-on): Likewise.
59368         * modules/vasnprintf (Files): Add lib/float+.h.
59369         * doc/functions/fprintf.texi: Update.
59370         * doc/functions/printf.texi: Update.
59371         * doc/functions/snprintf.texi: Update.
59372         * doc/functions/sprintf.texi: Update.
59373         * doc/functions/vfprintf.texi: Update.
59374         * doc/functions/vprintf.texi: Update.
59375         * doc/functions/vsnprintf.texi: Update.
59376         * doc/functions/vsprintf.texi: Update.
59377
59378 2007-05-18  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59381
59382 2007-05-18  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59385         for printing 64-bit integers. Needed for mingw.
59386
59387 2007-05-18  Bruno Haible  <bruno@clisp.org>
59388
59389         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59390         gl_FUNC_FREXPL_WORKS.
59391         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59392
59393 2007-05-18  Bruno Haible  <bruno@clisp.org>
59394
59395         * modules/frexpl-nolibm-tests: New file.
59396
59397         * modules/frexpl-nolibm: New file.
59398         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59399
59400 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59401
59402         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59403         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59404         GCC 4.2, which otherwise issues a lot of warnings.
59405         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59406         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59407         Likewise.
59408         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59409         * modules/iconv_open (iconv.h): Likewise.
59410         * modules/locale (locale.h): Likewise.
59411         * modules/netinet_in (netinet/in.h): Likewise.
59412         * modules/sys_select (sys_select.h): Likewise.
59413         * modules/sys_socket (sys/socket.h): Likewise.
59414         * modules/sys_stat (sys/stat.h): Likewise.
59415         * modules/sysexits (sysexits.h): Likewise.
59416         * modules/unistd (unistd.h): Likewise.
59417
59418 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59419
59420         * modules/closein-tests (Makefile.am): Distribute
59421         `test-closein.sh'.
59422
59423 2007-05-17  Bruno Haible  <bruno@clisp.org>
59424
59425         * tests/test-printf-posix.output: Renamed from
59426         tests/test-fprintf-posix.out.
59427         * modules/fprintf-posix-tests: Update.
59428         * modules/printf-posix-tests: Update.
59429         * modules/vfprintf-posix-tests: Update.
59430         * modules/vprintf-posix-tests: Update.
59431         * tests/test-fprintf-posix.sh: Update.
59432         * tests/test-printf-posix.sh: Update.
59433         * tests/test-vfprintf-posix.sh: Update.
59434         * tests/test-vprintf-posix.sh: Update.
59435         Reported by Ralf Wildenhues.
59436
59437 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59438
59439         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59440         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59441         GCC 4.2, which otherwise issues a lot of warnings.
59442         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59443         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59444         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59445         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59446         it should no longer be needed.
59447         * lib/string_.h: Likewise.
59448         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59449         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59450         * modules/inttypes (inttypes.h): Likewise.
59451         * modules/math (math.h): Likewise.
59452         * modules/search (search.h): Likewise.
59453         * modules/signal (signal.h): Likewise.
59454         * modules/stdint (stdint.h): Likewise.
59455         * modules/stdio (stdio.h): Likewise.
59456         * modules/stdlib (stdlib.h): Likewise.
59457         * modules/string (string.h): Likewise.
59458         * modules/sys_time (sys/time.h): Likewise.
59459         * modules/time (time.h): Likewise.
59460         * modules/wchar (wchar.h): Likewise.
59461         * modules/wctype (wtype.h): Likewise.
59462
59463 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59464
59465         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59466
59467 2007-05-13  Bruno Haible  <bruno@clisp.org>
59468
59469         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59470         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59471         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59472         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59473         (gl_PREREQ_STRTOK_R): Don't require it here.
59474
59475 2007-05-13  Bruno Haible  <bruno@clisp.org>
59476
59477         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59478         when used in C++ mode.
59479
59480 2007-05-12  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/linebuffer.h: Tweak doc.
59483         * lib/linebuffer.c: Likewise.
59484
59485 2007-05-12  James Youngman  <jay@gnu.org>
59486
59487         * lib/linebuffer.c (readlinebuffer_delim): New function,
59488         like readlinebuffer, but use a caller-specified delimiter.
59489         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59490         as the delimiter.
59491         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59492
59493 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59494
59495         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59496         * modules/openat (Files): Remove openat-die.c.
59497         (Depends-on): Add openat-die.
59498         * modules/openat-die: New module.
59499
59500 2007-05-06  Bruno Haible  <bruno@clisp.org>
59501
59502         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59503         Update with info about Cygwin.
59504         * doc/functions/fprintf.texi: Update.
59505         * doc/functions/printf.texi: Update.
59506         * doc/functions/snprintf.texi: Update.
59507         * doc/functions/sprintf.texi: Update.
59508         * doc/functions/vfprintf.texi: Update.
59509         * doc/functions/vprintf.texi: Update.
59510         * doc/functions/vsnprintf.texi: Update.
59511         * doc/functions/vsprintf.texi: Update.
59512         Reported by Eric Blake.
59513
59514 2007-05-06  Bruno Haible  <bruno@clisp.org>
59515
59516         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59517         padding ourselves for the floating-point directives.
59518         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59520         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59521         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59522         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59523         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59524         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59525         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59527         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59529         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59530         * tests/test-snprintf-posix.h (test_function): Also check the width
59531         and some flags in the %f directive.
59532         * tests/test-sprintf-posix.h (test_function): Likewise.
59533         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59534         * tests/test-vasprintf-posix.c (test_function): Likewise.
59535         * doc/functions/fprintf.texi: Update.
59536         * doc/functions/printf.texi: Update.
59537         * doc/functions/snprintf.texi: Update.
59538         * doc/functions/sprintf.texi: Update.
59539         * doc/functions/vfprintf.texi: Update.
59540         * doc/functions/vprintf.texi: Update.
59541         * doc/functions/vsnprintf.texi: Update.
59542         * doc/functions/vsprintf.texi: Update.
59543
59544 2007-05-06  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59547         pass the ' flag character to sprintf or snprintf.
59548         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59551         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59552         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59553         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59554         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59559         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59560         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59561         flag.
59562         * tests/test-sprintf-posix.h (test_function): Likewise.
59563         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59564         * tests/test-vasprintf-posix.c (test_function): Likewise.
59565         * doc/functions/fprintf.texi: Update.
59566         * doc/functions/printf.texi: Update.
59567         * doc/functions/snprintf.texi: Update.
59568         * doc/functions/sprintf.texi: Update.
59569         * doc/functions/vfprintf.texi: Update.
59570         * doc/functions/vprintf.texi: Update.
59571         * doc/functions/vsnprintf.texi: Update.
59572         * doc/functions/vsprintf.texi: Update.
59573
59574 2007-05-01  Bruno Haible  <bruno@clisp.org>
59575
59576         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59577
59578 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59581         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59582
59583 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59586         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59587         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59588
59589 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59590
59591         * lib/argp-help.c (struct hol_entry): New member `ord'.
59592         (HOL_ENTRY_PTRCMP): Use ord for comparison
59593         (hol_sort): Initialize ord.
59594
59595 2007-05-01  Bruno Haible  <bruno@clisp.org>
59596
59597         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59598         Reported by Eric Blake.
59599         * doc/gnulib.texi (Function Substitutes): Update.
59600
59601 2007-05-01  Bruno Haible  <bruno@clisp.org>
59602
59603         * doc/functions.texi: Remove file, now redundant through
59604         doc/functions/*.texi.
59605
59606 2007-05-01  Bruno Haible  <bruno@clisp.org>
59607
59608         * modules/argp (Depends-on): Add sleep.
59609
59610 2007-05-01  Bruno Haible  <bruno@clisp.org>
59611
59612         * modules/sleep-tests: New file.
59613         * tests/test-sleep.c: New file.
59614
59615         * modules/sleep: New file.
59616         * lib/sleep.c: New file.
59617         * m4/sleep.m4: New file.
59618         * lib/unistd_.h (sleep): New declaration.
59619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59620         HAVE_SLEEP.
59621         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59622         * doc/functions/sleep.texi: Document the sleep module.
59623
59624 2007-05-01  Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/sigprocmask.h: Remove file.
59627         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59628         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59629         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59630         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59631         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59632         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59633         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59634         HAVE_SIGSET_T as a shell variable.
59635         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59636         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59637         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59638         (Depends-on): Add signal. Remove verify.
59639         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59640         (Include): Mention <signal.h> instead of sigprocmask.h.
59641         * NEWS: Mention the change.
59642         * lib/fatal-signal.c: Don't include sigprocmask.h.
59643
59644 2007-05-01  Bruno Haible  <bruno@clisp.org>
59645
59646         * modules/signal: New file.
59647         * lib/signal_.h: New file.
59648         * m4/signal_h.m4: New file.
59649
59650 2007-05-01  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59653         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59654         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59655         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59656
59657 2007-05-01  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59660         configure time.
59661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59662         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59663         * modules/sys_stat (Makefile.am): Substitute their values into
59664         sys/stat.h.
59665
59666 2007-05-01  Bruno Haible  <bruno@clisp.org>
59667
59668         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59669         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59670         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59671
59672 2007-05-01  Bruno Haible  <bruno@clisp.org>
59673
59674         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59675         'assert' module here.
59676
59677 2007-05-01  Bruno Haible  <bruno@clisp.org>
59678
59679         * doc/functions/*.texi: New files.
59680         * doc/functions/google-ranking.txt: New file.
59681         * doc/gnulib.texi (Function Substitutes): New chapter.
59682         (ctime, inet_ntoa): Remove sections.
59683         * doc/ctime.texi: Remove file.
59684         * doc/inet_ntoa.texi: Remove file.
59685         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59686         dependencies.
59687         (%.info): New rule, specifying a --reference-limit.
59688
59689 2007-05-01  Bruno Haible  <bruno@clisp.org>
59690
59691         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59692
59693 2007-05-01  Bruno Haible  <bruno@clisp.org>
59694
59695         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59696         the portability of 'mkdir' to mingw systems.
59697
59698 2007-05-01  Bruno Haible  <bruno@clisp.org>
59699
59700         * doc/headers/google-ranking.txt: New file.
59701
59702 2007-04-30  Eric Blake  <ebb9@byu.net>
59703
59704         Prefer fseeko to fseek.
59705         * modules/getpass (Depends-on): Add fseeko.
59706         * lib/getpass.c (getpass): Use fseeko, not fseek.
59707
59708 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59709
59710         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59711         assumes the sorting is stable, while most qsort implementations
59712         are not.  Use argument addresses to ensure they never compare as
59713         equal.
59714
59715         * tests/test-argp-2.sh (usage-indent test): Fix output
59716         (func_compare): Restore diff options
59717         * tests/test-argp.c: Restore #include "progname.h"
59718
59719 2007-04-29  Bruno Haible  <bruno@clisp.org>
59720
59721         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59723         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59724         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59725         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59726         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59727         (TESTS, check_PROGRAMS): Add test-snprintf.
59728         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59729         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59730         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59731         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59732         assertions that fail on HP-UX, OSF/1, or IRIX.
59733         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59734
59735 2007-04-29  Bruno Haible  <bruno@clisp.org>
59736
59737         * MODULES.html.sh (posix_functions): Remove 'contents'.
59738
59739 2007-04-29  Karl Berry  <karl@gnu.org>
59740
59741         * config/srclist.txt (gendocs_template_min): new entry.
59742
59743 2007-04-29  Bruno Haible  <bruno@clisp.org>
59744
59745         Work around fpurge bug on BSD systems.
59746         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59747         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59748         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59749         fpurge to rpl_fpurge if the system already has this function.
59750         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59751         the case where the system already has this function. Correct invariants
59752         on BSD systems.
59753         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59754         BSD systems.
59755
59756 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59757
59758         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59759         proposed by Sven Verdoolaege.
59760
59761         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59762         options.
59763         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59764         (usage and help tests): Update
59765
59766 2007-04-29  Bruno Haible  <bruno@clisp.org>
59767
59768         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59769         Print more information in case of failure. Disable a test on BeOS.
59770
59771 2007-04-29  Bruno Haible  <bruno@clisp.org>
59772
59773         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59774         This helps debugging on systems on which no gdb is available.
59775
59776 2007-04-29  Bruno Haible  <bruno@clisp.org>
59777
59778         * lib/freading.h: Improve comments.
59779         * lib/fwriting.h: Likewise.
59780         * tests/test-freading.c (main): Don't check freading immediately after
59781         repositioning. Needed for glibc.
59782
59783 2007-04-29  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/freading.c (freading): Trivial simplification.
59786
59787 2007-04-28  Bruno Haible  <bruno@clisp.org>
59788
59789         * tests/test-fwriting.c (main): Also test the interaction between
59790         fflush and fwriting.
59791         * modules/fwriting-tests (Depends-on): Add fflush.
59792
59793         * tests/test-freading.c (main): Also test the interaction between
59794         fflush and freading.
59795         * modules/freading-tests (Depends-on): Add fflush.
59796
59797 2007-04-28  Bruno Haible  <bruno@clisp.org>
59798
59799         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59800         fseeko and ftello.
59801         Suggested by Eric Blake.
59802
59803 2007-04-28  Jim Meyering  <jim@meyering.net>
59804
59805         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59806         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59807         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59808
59809 2007-04-27  Eric Blake  <ebb9@byu.net>
59810
59811         * doc/headers/assert.texi (assert.h): Document assert module use.
59812
59813 2007-04-27  Bruno Haible  <bruno@clisp.org>
59814
59815         * doc/headers/*.texi: New files.
59816         * doc/gnulib.texi (Header File Substitutes): New chapter.
59817         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59818         dependencies.
59819         (standards.info ,standards.html, standards.dvi): Update dependencies.
59820         (mostlyclean, clean): New targets.
59821
59822 2007-04-27  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59825         * modules/sysexits (Files, Makefile.am): Update.
59826
59827         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59828         * modules/sys_socket (Files, Makefile.am): Update.
59829
59830         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59831         * modules/sys_stat (Files, Makefile.am): Update.
59832
59833 2007-04-27  Eric Blake  <ebb9@byu.net>
59834
59835         * lib/freading.h: Improve comments.
59836         * lib/fwriting.h: Likewise.
59837         * lib/fflush.c: Likewise.
59838
59839         Fix closein for mingw.
59840         * modules/closein-tests: Add tests for closein.
59841         * tests/test-closein.c: New file.
59842         * tests/test-closein.sh: Likewise.
59843         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59844         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59845
59846 2007-04-27  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59849         version is < 6.
59850         * lib/math_.h [__DECC]: Likewise.
59851         * lib/stdio_.h [__DECC]: Likewise.
59852         * lib/stdlib_.h [__DECC]: Likewise.
59853         * lib/string_.h [__DECC]: Likewise.
59854         * lib/time_.h [__DECC]: Likewise.
59855         * lib/wchar_.h [__DECC]: Likewise.
59856         * lib/wctype_.h [__DECC]: Likewise.
59857
59858 2007-04-27  Bruno Haible  <bruno@clisp.org>
59859
59860         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59861
59862 2007-04-27  Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/fflush.c: Add comments.
59865         * modules/fpurge-tests (Depends-on): Add fflush.
59866         * modules/freadable-tests (Depends-on): Likewise.
59867         * modules/fwritable-tests (Depends-on): Likewise.
59868
59869 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59870
59871         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59872         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59873         Report by Bruno Haible <bruno@clisp.org>.
59874
59875 2007-04-26  Eric Blake  <ebb9@byu.net>
59876
59877         Fix fflush on mingw.
59878         * modules/fflush (Depends-on): Add freading.
59879         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59880         but unread data.
59881
59882 2007-04-26  Eric Blake  <ebb9@byu.net>
59883         and Bruno Haible  <bruno@clisp.org>
59884
59885         Implement freading and fwriting.
59886         * lib/freading.c: New file.
59887         * lib/freading.h: Likewise.
59888         * m4/freading.m4: Likewise.
59889         * modules/freading: Likewise.
59890         * modules/freading-tests: Likewise.
59891         * tests/test-freading.c: Likewise.
59892         * lib/fwriting.c: New file.
59893         * lib/fwriting.h: Likewise.
59894         * m4/fwriting.m4: Likewise.
59895         * modules/fwriting: Likewise.
59896         * modules/fwriting-tests: Likewise.
59897         * tests/test-fwriting.c: Likewise.
59898         * MODULES.html.sh (File stream based Input/Output): Mention them.
59899
59900 2007-04-26  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59903         'long' when we assume it.
59904         Suggested by Eric Blake.
59905
59906 2007-04-26  Bruno Haible  <bruno@clisp.org>
59907
59908         Ensure fseeko, ftello are declared on glibc systems.
59909         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59910         * modules/fseeko (configure.ac-early): Likewise.
59911         * modules/ftello (configure.ac-early): Likewise.
59912         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59913         AC_FUNC_FSEEKO for this.
59914         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59915         (gl_CHECK_FSEEKO): Remove macro.
59916
59917 2007-04-26  Bruno Haible  <bruno@clisp.org>
59918
59919         * tests/test-fflush.c (main): Also check the ftell result after
59920         fflush and fseek/fseeko.
59921         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59922         file descriptor position cache in the stream.
59923         * lib/fseeko.c (rpl_fseeko): Likewise.
59924
59925 2007-04-26  Bruno Haible  <bruno@clisp.org>
59926
59927         * modules/fflush-tests (Depends-on): Add fseeko.
59928
59929 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59930             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59931
59932         * lib/argz_.h: ensure error_t definition is obtained in same
59933         mechanism system argz.h would have.
59934         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59935         argz facilities are known bad.  Err on the side of caution if
59936         cross-compiling.
59937
59938 2007-04-25  Eric Blake  <ebb9@byu.net>
59939
59940         * lib/fpurge.c (includes): Use stdlib.h for free.
59941         * tests/test-fflush.c (main): Also test fflush-fseeko.
59942
59943 2007-04-25  Bruno Haible  <bruno@clisp.org>
59944
59945         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59946         * lib/fseeko.c: New file.
59947         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59948         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59949         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59950         gl_FUNC_FSEEKO.
59951         (gl_FUNC_FSEEKO): Invoke it.
59952         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59953         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59954         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59955
59956 2007-04-25  Bruno Haible  <bruno@clisp.org>
59957
59958         * modules/fflush (Depends-on): Add ftello.
59959
59960 2007-04-25  Bruno Haible  <bruno@clisp.org>
59961
59962         * modules/ftello-tests: New file.
59963         * tests/test-ftello.c: New file.
59964
59965         * modules/ftello: New file.
59966         * m4/ftello.m4: New file.
59967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59968         HAVE_FTELLO.
59969         * lib/stdio_.h (ftello): New declaration.
59970         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59971         HAVE_FTELLO.
59972
59973 2007-04-25  Bruno Haible  <bruno@clisp.org>
59974
59975         * modules/fseeko-tests: New file.
59976         * tests/test-fseeko.c: New file.
59977
59978         * modules/fseeko: New file.
59979         * m4/fseeko.m4: New file.
59980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59981         HAVE_FSEEKO.
59982         * lib/stdio_.h (fseeko): New declaration.
59983         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59984         HAVE_FSEEKO.
59985
59986 2007-04-25  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59989
59990 2007-04-25  Bruno Haible  <bruno@clisp.org>
59991
59992         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59993         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59994         * tests/test-unistd.c: Likewise.
59995         * tests/test-fcntl.c: Likewise.
59996
59997 2007-04-23  Eric Blake  <ebb9@byu.net>
59998
59999         * lib/fflush.c: Fix missing include.
60000         Reported by Bruno Haible.
60001
60002 2007-04-23  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60005         Reported by Eric Blake.
60006
60007 2007-04-23  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60010
60011 2007-04-23  Bruno Haible  <bruno@clisp.org>
60012
60013         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60014
60015 2007-04-23  Bruno Haible  <bruno@clisp.org>
60016
60017         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60018         Needed on HP-UX 11.
60019
60020 2007-04-16  Eric Blake  <ebb9@byu.net>
60021
60022         Make fflush rely on fpurge.
60023         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60024         open coding all variants.
60025         * modules/fflush (Depends-on): Add fpurge and unistd.
60026         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60027         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60028
60029         Fix --with-tests compilation on cygwin.
60030         * modules/argmatch-tests (Makefile.am): List gnulib library first
60031         in LDADD.
60032         * modules/argp-tests (Makefile.am): Likewise.
60033         * modules/array-list-tests (Makefile.am): Likewise.
60034         * modules/array-oset-tests (Makefile.am): Likewise.
60035         * modules/avltree-list-tests (Makefile.am): Likewise.
60036         * modules/avltree-oset-tests (Makefile.am): Likewise.
60037         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60038         * modules/carray-list-tests (Makefile.am): Likewise.
60039         * modules/dirname-tests (Makefile.am): Likewise.
60040         * modules/frexp-tests (Makefile.am): Likewise.
60041         * modules/isnanl-tests (Makefile.am): Likewise.
60042         * modules/linked-list-tests (Makefile.am): Likewise.
60043         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60044         * modules/lock-tests (Makefile.am): Likewise.
60045         * modules/rbtree-list-tests (Makefile.am): Likewise.
60046         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60047         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60048         * modules/tls-tests (Makefile.am): Likewise.
60049         * modules/tsearch-tests (Makefile.am): Likewise.
60050         * modules/xvasprintf-tests (Makefile.am): Likewise.
60051
60052         Fix fpurge for cygwin.
60053         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60054         value.
60055         * modules/fpurge-tests (Depends-on): Clean up trash.
60056
60057 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60058
60059         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60060
60061         * m4/autobuild.m4: Re-indent.
60062
60063 2007-04-13  Bruno Haible  <bruno@clisp.org>
60064
60065         * modules/fpurge-tests: New file.
60066         * tests/test-fpurge.c: New file.
60067
60068         * modules/fpurge: New file.
60069         * lib/fpurge.h: New file.
60070         * lib/fpurge.c: New file.
60071         * m4/fpurge.m4: New file.
60072
60073 2007-04-13  Bruno Haible  <bruno@clisp.org>
60074
60075         * modules/fbufmode-tests: New file.
60076         * tests/test-fbufmode.c: New file.
60077
60078         * modules/fbufmode: New file.
60079         * lib/fbufmode.h: New file.
60080         * lib/fbufmode.c: New file.
60081         * m4/fbufmode.m4: New file.
60082
60083 2007-04-13  Bruno Haible  <bruno@clisp.org>
60084
60085         * modules/fwritable-tests: New file.
60086         * tests/test-fwritable.c: New file.
60087
60088         * modules/fwritable: New file.
60089         * lib/fwritable.h: New file.
60090         * lib/fwritable.c: New file.
60091         * m4/fwritable.m4: New file.
60092
60093 2007-04-13  Bruno Haible  <bruno@clisp.org>
60094
60095         * modules/freadable-tests: New file.
60096         * tests/test-freadable.c: New file.
60097
60098         * modules/freadable: New file.
60099         * lib/freadable.h: New file.
60100         * lib/freadable.c: New file.
60101         * m4/freadable.m4: New file.
60102
60103 2007-04-13  Bruno Haible  <bruno@clisp.org>
60104
60105         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60106         MOSTLYCLEANFILES.
60107
60108 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60111         gzip bootstrap.conf to avoid dragging in i18n machinery.
60112         (gnulib_tool_option): Use it.
60113
60114 2007-04-13  Bruno Haible  <bruno@clisp.org>
60115
60116         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60117         %F directives.
60118         * tests/test-vasprintf-posix.c (test_function): Likewise.
60119         * tests/test-snprintf-posix.h (test_function): Likewise.
60120         * tests/test-sprintf-posix.h (test_function): Likewise.
60121         * tests/test-fprintf-posix.h (test_function): Likewise.
60122         * tests/test-printf-posix.h (test_function): Likewise.
60123         * tests/test-fprintf-posix.out: Likewise.
60124
60125 2007-04-13  Bruno Haible  <bruno@clisp.org>
60126
60127         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60128         * modules/tls-tests (configure.ac): Likewise.
60129         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60130
60131 2007-04-13  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/tls.c (glthread_tls_get): Fix return type.
60134         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60135
60136 2007-04-12  Eric Blake  <ebb9@byu.net>
60137
60138         * modules/gettime (Depends-on): Remove gettime.
60139         Reported by Dmitry V. Levin.
60140
60141 2007-04-12  Bruno Haible  <bruno@clisp.org>
60142
60143         * modules/fflush (Include): Mention <stdio.h>.
60144         * modules/strtoimax (Include): Mention <inttypes.h>.
60145         * modules/strtoumax (Include): Likewise.
60146
60147 2007-04-12  Eric Blake  <ebb9@byu.net>
60148
60149         * .cvsignore: New file.
60150         * .gitignore: Likewise.
60151
60152 2007-04-12  Bruno Haible  <bruno@clisp.org>
60153
60154         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60155         not before, since $(LDADD) often contains libgnu.a.
60156         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60157         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60158         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60159         Needed on Cygwin.
60160
60161 2007-04-12  Eric Blake  <ebb9@byu.net>
60162
60163         Work around glibc's failure to flush stdin on fclose.
60164         * lib/closein.c (close_stdin): Flush stdin before closing.
60165
60166         Work around glibc's failure to reset seekable stdin on exit.
60167         * modules/closein: New module.
60168         * lib/closein.c: New file.
60169         * lib/closein.h: Likewise.
60170         * m4/closein.m4: Likewise.
60171         * MODULES.html.sh (File stream based Input/Output): Document it.
60172
60173 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60174
60175         * gnulib-tool: Rename generated 'autobuild' script to
60176         'do-autobuild' in --create-megatestdir output.
60177
60178         * doc/gnulib.texi (Build robot for gnulib): Fix.
60179
60180 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60181
60182         * modules/sysexits (Depends-on): Add absolute-header.
60183
60184 2007-04-12  Eric Blake  <ebb9@byu.net>
60185
60186         No need to preserve errno on success.
60187         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60188         Reported by Bruno Haible.
60189
60190 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60191
60192         * MODULES.html.sh (Support for maintaining and releasing
60193         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60194
60195 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60196
60197         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60198
60199 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60200
60201         * modules/autobuild: New module.
60202
60203         * m4/autobuild.m4: New file.
60204
60205 2007-04-11  Bruno Haible  <bruno@clisp.org>
60206
60207         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60208         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60212         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60213         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60215         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60216         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60217         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60218         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60219         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60221         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60222         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60224         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60225         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60227         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60228         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60230         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60231         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60232         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60233         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60234         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60235         Reported by Eric Blake.
60236
60237 2007-04-11  Bruno Haible  <bruno@clisp.org>
60238
60239         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60240
60241 2007-04-10  Bruno Haible  <bruno@clisp.org>
60242
60243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60244         for NaN and Infinity. Needed on FreeBSD 6.1.
60245         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60246         regarding results for "%010a" of Infinity and NaN.
60247         * tests/test-vasprintf-posix.c (test_function): Likewise.
60248         * tests/test-snprintf-posix.h (test_function): Likewise.
60249         * tests/test-sprintf-posix.h (test_function): Likewise.
60250         * tests/test-fprintf-posix.h (test_function): Likewise.
60251         * tests/test-printf-posix.h (test_function): Likewise.
60252         * tests/test-fprintf-posix.out: Likewise.
60253
60254 2007-04-10  Bruno Haible  <bruno@clisp.org>
60255
60256         * modules/locale-tests: New file.
60257         * tests/test-locale.c: New file.
60258
60259         * modules/locale: New file.
60260         * lib/locale_.h: New file.
60261         * m4/locale_h.m4: New file.
60262
60263 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60264             Bruno Haible  <bruno@clisp.org>
60265
60266         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60267         be determined, test for availability of the copysignf, copysign,
60268         copysignl functions.
60269         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60270         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60271         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60272
60273 2007-04-09  Eric Blake  <ebb9@byu.net>
60274
60275         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60276         * modules/stdio (Makefile.am): Support fflush.
60277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60278         * modules/fflush: New file.
60279         * lib/fflush.c: Likewise.
60280         * m4/fflush.m4: Likewise.
60281         * modules/fflush-tests: New test.
60282         * tests/test-fflush.c: Likewise.
60283         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60284
60285 2007-04-06  Bruno Haible  <bruno@clisp.org>
60286
60287         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60288         (VASNPRINTF): Use signbit for faster determination whether to print a
60289         minus sign.
60290         * modules/vasnprintf (Files): Remove lib/float+.h.
60291         * modules/fprintf-posix (Depends-on): Add signbit.
60292         * modules/snprintf-posix (Depends-on): Likewise.
60293         * modules/sprintf-posix (Depends-on): Likewise.
60294         * modules/vasnprintf-posix (Depends-on): Likewise.
60295         * modules/vasprintf-posix (Depends-on): Likewise.
60296         * modules/vfprintf-posix (Depends-on): Likewise.
60297         * modules/vsnprintf-posix (Depends-on): Likewise.
60298         * modules/vsprintf-posix (Depends-on): Likewise.
60299
60300 2007-04-06  Bruno Haible  <bruno@clisp.org>
60301
60302         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60303         * tests/test-frexpl.c (main): Likewise.
60304         * tests/test-ldexpl.c (main): Likewise.
60305         * modules/frexp-tests (Depends-on): Add signbit.
60306         * modules/frexpl-tests (Depdends-on): Likewise.
60307         * modules/ldexpl-tests (Depdends-on): Likewise.
60308
60309 2007-04-06  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/signbit-tests: New file.
60312         * tests/test-signbit.c: New file.
60313
60314         * modules/signbit: New file.
60315         * lib/signbitf.c: New file.
60316         * lib/signbitd.c: New file.
60317         * lib/signbitl.c: New file.
60318         * m4/signbit.m4: New file.
60319         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60320         (signbit): New macro.
60321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60322         REPLACE_SIGNBIT.
60323         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60324         REPLACE_FREXPL into math.h.
60325
60326 2007-04-06  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/isnanf-nolibm-tests: New file.
60329         * tests/test-isnanf.c: New file.
60330
60331         * modules/isnanf-nolibm: New file.
60332         * lib/isnanf.h: New file.
60333         * lib/isnanf.c: New file.
60334         * lib/isnan.c: Consider the USE_FLOAT macro.
60335         * m4/isnanf.m4: New file.
60336
60337 2007-04-06  Bruno Haible  <bruno@clisp.org>
60338
60339         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60340         (Link): New section.
60341
60342         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60343
60344 2007-04-06  Bruno Haible  <bruno@clisp.org>
60345
60346         Assume the 'long double' type.
60347         * m4/longdouble.m4: Remove file.
60348         * config/srclist.txt: Don't mention longdouble.m4.
60349         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60350         * lib/float+.h: Likewise.
60351         * lib/frexp.c: Likewise.
60352         * lib/printf-args.h: Likewise.
60353         * lib/printf-args.c: Likewise.
60354         * lib/printf-frexp.c: Likewise.
60355         * lib/printf-parse.c: Likewise.
60356         * lib/vasnprintf.c: Likewise.
60357         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60358         * m4/intl.m4: Likewise.
60359         * m4/isnanl.m4: Likewise.
60360         * m4/printf.m4: Likewise.
60361         * m4/printf-frexpl.m4: Likewise.
60362         * m4/vasnprintf.m4: Likewise.
60363         * modules/allocsa (Files): Remove m4/longdouble.m4.
60364         * modules/gettext (Files): Likewise.
60365         * modules/relocatable-prog-wrapper (Files): Likewise.
60366         * modules/vasnprintf (Files): Likewise.
60367         * modules/isnanl (Files): Likewise.
60368         (Include): Simplify.
60369         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60370         (Include): Simplify.
60371         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60372         (Include): Simplify.
60373         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60374         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60375         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60376         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60377         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60378         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60379         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60380         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60381         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60382         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60383         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60384         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60385         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60386         * tests/test-isnanl.c: Likewise.
60387         * tests/test-snprintf-posix.h: Likewise.
60388         * tests/test-sprintf-posix.h: Likewise.
60389         * tests/test-vasnprintf-posix.c: Likewise.
60390         * tests/test-vasnprintf-posix2.c: Likewise.
60391         * tests/test-vasprintf-posix.c: Likewise.
60392
60393 2007-04-06  Bruno Haible  <bruno@clisp.org>
60394
60395         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60396         * lib/math_.h [__DECC]: Include the overridden include file through
60397         #include_next, outside the double-inclusion guard.
60398         * lib/stdio_.h [__DECC]: Likewise.
60399         * lib/stdlib_.h [__DECC]: Likewise.
60400         * lib/string_.h [__DECC]: Likewise.
60401         * lib/time_.h [__DECC]: Likewise.
60402         * lib/wchar_.h [__DECC]: Likewise.
60403         * lib/wctype_.h [__DECC]: Likewise.
60404         * lib/inttypes_.h [__DECC]: Likewise.
60405         Reported by Albert Chin <china@thewrittenword.com> in
60406         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60407
60408 2007-04-04  Eric Blake  <ebb9@byu.net>
60409
60410         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60411         1.5.x.
60412
60413 2007-04-04  Bruno Haible  <bruno@clisp.org>
60414
60415         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60416         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60417
60418 2007-04-04  Bruno Haible  <bruno@clisp.org>
60419
60420         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60421         results for "%010a" of Infinity and NaN.
60422         * tests/test-vasprintf-posix.c (test_function): Likewise.
60423         * tests/test-snprintf-posix.h (test_function): Likewise.
60424         * tests/test-sprintf-posix.h (test_function): Likewise.
60425         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60426         * tests/test-printf-posix.h (test_function): Likewise.
60427         * tests/test-fprintf-posix.out: Update.
60428         Needed for FreeBSD 6.1.
60429
60430 2007-04-04  Bruno Haible  <bruno@clisp.org>
60431
60432         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60433         directly used by the gnulib modules nor by gnulib-tool.
60434
60435 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60436
60437         * DEPENDENCIES: Give overall description of version dependency
60438         desirability.  Use more-typical names for apps.
60439         Add shell, coreutils, diffutils, grep, tar, gzip.
60440
60441 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60442
60443         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60444
60445 2007-04-04  Karl Berry  <karl@gnu.org>
60446
60447         * MODULES.html.sh (func_module): missing '.
60448
60449 2007-04-03  Bruno Haible  <bruno@clisp.org>
60450
60451         * modules/argmatch-tests (Makefile.am): New variable
60452         test_argmatch_LDADD.
60453         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60454         * modules/array-list-tests (Makefile.am): New variable
60455         test_array_list_LDADD.
60456         * modules/array-oset-tests (Makefile.am): New variable
60457         test_array_oset_LDADD.
60458         * modules/avltree-list-tests (Makefile.am): New variable
60459         test_avltree_list_LDADD.
60460         * modules/avltree-oset-tests (Makefile.am): New variable
60461         test_avltree_oset_LDADD.
60462         * modules/avltreehash-list-tests (Makefile.am): New variable
60463         test_avltreehash_list_LDADD.
60464         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60465         test_canonicalize_lgpl_LDADD.
60466         * modules/carray-list-tests (Makefile.am): New variable
60467         test_carray_list_LDADD.
60468         * modules/dirname-tests (Makefile.am): New variable
60469         test_dirname_LDADD.
60470         * modules/linked-list-tests (Makefile.am): New variable
60471         test_linked_list_LDADD.
60472         * modules/linkedhash-list-tests (Makefile.am): New variable
60473         test_linkedhash_list_LDADD.
60474         * modules/rbtree-list-tests (Makefile.am): New variable
60475         test_rbtree_list_LDADD.
60476         * modules/rbtree-oset-tests (Makefile.am): New variable
60477         test_rbtree_oset_LDADD.
60478         * modules/rbtreehash-list-tests (Makefile.am): New variable
60479         test_rbtreehash_list_LDADD.
60480         * modules/xvasprintf-tests (Makefile.am): New variable
60481         test_xvasprintf_LDADD.
60482         Reported by Eric Blake.
60483
60484 2007-04-03  Eric Blake  <ebb9@byu.net>
60485
60486         * DEPENDENCIES: Weaken m4 requirements.
60487
60488 2007-04-03  Bruno Haible  <bruno@clisp.org>
60489
60490         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60491         * modules/isnanl-tests (configure.ac): Likewise.
60492
60493 2007-04-03  Ben Pfaff  <blp@gnu.org>
60494
60495         * modules/iconv_open: Add $(srcdir)/ to source directory
60496         references in Makefile fragments that call gperf, to fix VPATH
60497         builds.
60498
60499 2007-04-03  Bruno Haible  <bruno@clisp.org>
60500
60501         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60502         * lib/ldexpl.c: Undo last change.
60503
60504 2007-04-03  Bruno Haible  <bruno@clisp.org>
60505
60506         * modules/printf-frexpl (Depends-on): Undo last change.
60507         (Files): Add m4/ldexpl.m4.
60508
60509 2007-04-03  Bruno Haible  <bruno@clisp.org>
60510
60511         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60512         * modules/isnanl (Link): New section.
60513
60514         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60515         * modules/frexp (Link): New section.
60516
60517         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60518         * modules/frexpl (Link): New section.
60519
60520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60521         * modules/ldexpl (Link): New section.
60522
60523 2007-04-03  Bruno Haible  <bruno@clisp.org>
60524
60525         * modules/TEMPLATE-EXTENDED: New file.
60526         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60527
60528 2007-04-03  Bruno Haible  <bruno@clisp.org>
60529
60530         * DEPENDENCIES: New file.
60531         Suggested by Simon Josefsson.
60532
60533 2007-04-03  Bruno Haible  <bruno@clisp.org>
60534
60535         * doc/gnulib.texi: Escape @.
60536
60537 2007-04-03  James Youngman  <jay@gnu.org>
60538         and Paul Eggert  <eggert@cs.ucla.edu>
60539
60540         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60541         birthtime on all systems that have birthtime, not just those which
60542         use st_birthtimensec rather than st_birthtim.  Putting zero in
60543         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60544         that the birth time is not available for files on an NFS mount.
60545
60546 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60547
60548         * modules/memxor: Move back from crypto/, suggested by Bruno.
60549         * modules/crypto/hmac-sha1: Fix memxor dependency.
60550
60551         * modules/crypto/gc: Moved from ../.
60552
60553 2007-04-02  Eric Blake  <ebb9@byu.net>
60554
60555         * lib/ldexpl.c (includes): Avoid libm.
60556
60557         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60558
60559 2007-04-02  Bruno Haible  <bruno@clisp.org>
60560
60561         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60562         on IRIX.
60563
60564 2007-04-02  Bruno Haible  <bruno@clisp.org>
60565
60566         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60567         x86 or x86_64 platforms running MacOS X.
60568         Reported by Ryan Schmidt <@ryandesign.com>.
60569
60570 2007-04-02  Bruno Haible  <bruno@clisp.org>
60571
60572         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60573         i386.
60574
60575 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60576
60577         * modules/crypto/arcfour: Moved from ../.
60578         * modules/crypto/arcfour-tests: Moved from ../.
60579         * modules/crypto/arctwo: Moved from ../.
60580         * modules/crypto/arctwo-tests: Moved from ../.
60581         * modules/crypto/des: Moved from ../.
60582         * modules/crypto/des-tests: Moved from ../.
60583         * modules/crypto/gc-arcfour: Moved from ../.
60584         * modules/crypto/gc-arcfour-tests: Moved from ../.
60585         * modules/crypto/gc-arctwo: Moved from ../.
60586         * modules/crypto/gc-arctwo-tests: Moved from ../.
60587         * modules/crypto/gc-des: Moved from ../.
60588         * modules/crypto/gc-des-tests: Moved from ../.
60589         * modules/crypto/gc-hmac-md5: Moved from ../.
60590         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60591         * modules/crypto/gc-hmac-sha1: Moved from ../.
60592         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60593         * modules/crypto/gc-md2: Moved from ../.
60594         * modules/crypto/gc-md2-tests: Moved from ../.
60595         * modules/crypto/gc-md4: Moved from ../.
60596         * modules/crypto/gc-md4-tests: Moved from ../.
60597         * modules/crypto/gc-md5: Moved from ../.
60598         * modules/crypto/gc-md5-tests: Moved from ../.
60599         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60600         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60601         * modules/crypto/gc-random: Moved from ../.
60602         * modules/crypto/gc-rijndael: Moved from ../.
60603         * modules/crypto/gc-rijndael-tests: Moved from ../.
60604         * modules/crypto/gc-sha1: Moved from ../.
60605         * modules/crypto/gc-sha1-tests: Moved from ../.
60606         * modules/crypto/gc-tests: Moved from ../.
60607         * modules/crypto/hmac-md5: Moved from ../.
60608         * modules/crypto/hmac-md5-tests: Moved from ../.
60609         * modules/crypto/hmac-sha1: Moved from ../.
60610         * modules/crypto/hmac-sha1-tests: Moved from ../.
60611         * modules/crypto/md2: Moved from ../.
60612         * modules/crypto/md2-tests: Moved from ../.
60613         * modules/crypto/md4: Moved from ../.
60614         * modules/crypto/md4-tests: Moved from ../.
60615         * modules/crypto/md5: Moved from ../.
60616         * modules/crypto/md5-tests: Moved from ../.
60617         * modules/crypto/memxor: Moved from ../.
60618         * modules/crypto/rijndael: Moved from ../.
60619         * modules/crypto/rijndael-tests: Moved from ../.
60620         * modules/crypto/sha1: Moved from ../.
60621
60622 2007-03-30  James Youngman  <jay@gnu.org>
60623
60624         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60625         rename() to change the ctime of a file (because ctime is unaffected
60626         by rename on jfs2 on AIX 5.1).
60627         (main): Start by doing cleanup, in case a previous run failed leaving
60628         test files behind.
60629
60630 2007-03-31  Bruno Haible  <bruno@clisp.org>
60631
60632         Support old proprietary implementations of iconv.
60633         * modules/iconv_open: New file.
60634         * lib/iconv_.h: New file.
60635         * m4/iconv_h.m4: New file.
60636         * lib/iconv_open.c: New file.
60637         * lib/iconv_open-aix.gperf: New file.
60638         * lib/iconv_open-hpux.gperf: New file.
60639         * lib/iconv_open-irix.gperf: New file.
60640         * lib/iconv_open-osf.gperf: New file.
60641         * m4/iconv_open.m4: New file.
60642         * modules/linebreak (Depends-on): Add iconv_open.
60643         * modules/striconv (Depends-on): Likewise.
60644         * modules/striconveh (Depends-on): Likewise.
60645         * modules/unicodeio (Depends-on): Likewise.
60646         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60647         (iconv_t)(-1).
60648         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60649         conversion if cd is (iconv_t)(-1).
60650         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60651         is not possible.
60652
60653 2007-03-31  Bruno Haible  <bruno@clisp.org>
60654
60655         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60656         work on Solaris either. Protect also second use of "autodetect_jp".
60657
60658 2007-03-31  Bruno Haible  <bruno@clisp.org>
60659
60660         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60661         the function is not present.
60662
60663 2007-03-31  Bruno Haible  <bruno@clisp.org>
60664
60665         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60666         the function is not present.
60667
60668 2007-03-31  Bruno Haible  <bruno@clisp.org>
60669
60670         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60671         a bug in HP-UX iconv_open().
60672
60673 2007-03-31  Bruno Haible  <bruno@clisp.org>
60674
60675         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60676         (Mathematics <math.h>): New section, add fpieee.
60677         (Input/output <stdio.h>): Add fseterr.
60678         (Mathematics <math.h>): New section, add printf-frexp.
60679         (Container data structures): Add sublist.
60680         (Core language properties): Add fpucw, inline.
60681         (Functions for greatest-width integer types <inttypes.h>): Add
60682         imaxabs, imaxdiv, inttypes.
60683         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60684         isnanl-nolibm, ldexp.
60685         (Mathematics <math.h>): New section, add printf-frexpl.
60686         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60687         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60688         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60689         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60690         (Unicode string functions): Add unistr/u*-mbtoucr.
60691         (Java): Add javacomp-script, javaexec-script.
60692         (C#): Add csharpcomp-script, csharpexec-script.
60693         (Support for building libraries and executables): Add havelib,
60694         relocatable-*.
60695         (Support for maintaining and releasing projects): Renamed from
60696         'Support for maintaining and release projects'. Add announce-gen.
60697
60698 2007-03-31  Bruno Haible  <bruno@clisp.org>
60699
60700         * README: Talk primarily about git.
60701         (git and CVS): Renamed from CVS.
60702         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60703         gnulib is available through git.
60704         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60705
60706 2007-03-30  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60709         * lib/poll_.h: Likewise.
60710         * lib/stat_.h: Likewise.
60711         * lib/sys_time_.h: Likewise.
60712         * lib/sysexit_.h: Likewise.
60713         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60714         * lib/stdbool_.h: Likewise.
60715         * lib/byteswap_.h: Add double-inclusion guard.
60716
60717 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60718
60719         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60720
60721 2007-03-30  Karl Berry  <karl@gnu.org>
60722
60723         * config/srclist-update: double space after USA in the license
60724         substitution, since that's how it's usually (?) written.
60725
60726 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60729         reported by Bruno Haible.
60730
60731 2007-03-29  Bruno Haible  <bruno@clisp.org>
60732
60733         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60734         a bug in AIX iconv().
60735
60736 2007-03-29  Bruno Haible  <bruno@clisp.org>
60737
60738         * modules/ldexpl-tests: New file.
60739         * tests/test-ldexpl.c: New file.
60740
60741 2007-03-29  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/ldexpl.c: Include fpucw.h.
60744         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60745         multiplication.
60746         * modules/ldexpl (Depends-on): Add fpucw.
60747
60748 2007-03-29  Bruno Haible  <bruno@clisp.org>
60749
60750         * modules/ldexpl: New file.
60751         * m4/ldexpl.m4: New file.
60752         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60753         set.
60754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60755         REPLACE_LDEXPL.
60756         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60757         REPLACE_LDEXPL.
60758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60759         gl_FUNC_LDEXPL_WORKS.
60760         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60761         * modules/mathl (Files): Remove lib/ldexpl.c.
60762         (Depends-on): Add ldexpl.
60763
60764 2007-03-29  Bruno Haible  <bruno@clisp.org>
60765
60766         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60767
60768 2007-03-29  Bruno Haible  <bruno@clisp.org>
60769
60770         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60771         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60772         and possibly also HP-UX.
60773         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60774         work on AIX, IRIX, HP-UX, OSF/1.
60775         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60776         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60777         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60778         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60779         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60780         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60781
60782 2007-03-29  Bruno Haible  <bruno@clisp.org>
60783
60784         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60785
60786 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60787
60788         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60789         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60790
60791 2007-03-29  Eric Blake  <ebb9@byu.net>
60792
60793         * lib/acl-internal.h: Remove redundant include.
60794         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60795         Cygwin when a file is locked.
60796
60797 2007-03-29  Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60800         file.
60801         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60802
60803 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60806         try to remove a parent directory if the child couldn't be removed
60807         (except for the first rmdir, which could fail because the child
60808         doesn't exist).  Problem reported by Jeff Blaine in
60809         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60810
60811 2007-03-28  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/striconveh.c (utf8conv_carefully): New function.
60814         (mem_cd_iconveh_internal): Invoke it.
60815
60816 2007-03-28  Bruno Haible  <bruno@clisp.org>
60817
60818         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60819         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60820         input.
60821         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60822         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60823         unistr/u8-uctomb.
60824
60825 2007-03-28  Bruno Haible  <bruno@clisp.org>
60826
60827         * modules/unistr/u8-mbtoucr: New file.
60828         * lib/unistr/u8-mbtoucr.c: New file.
60829         * modules/unistr/u16-mbtoucr: New file.
60830         * lib/unistr/u16-mbtoucr.c: New file.
60831         * modules/unistr/u16-mbtoucr: New file.
60832         * lib/unistr/u16-mbtoucr.c: New file.
60833         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60834
60835 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60836             Bruno Haible  <bruno@clisp.org>
60837
60838         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60839         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60840         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60841
60842         * m4/stdio_h.m4: Add stubs for vasprintf too.
60843
60844         * modules/stdio: Support vasprintf in sed command.
60845
60846         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60847         vasprintf.h.  Add stdio module indicator.
60848
60849         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60850         vasprintf.h.
60851
60852         * lib/vasprintf.h: File removed.
60853
60854         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60855         * lib/vasprintf.c: Ditto.
60856         * lib/xvasprintf.c: Ditto.
60857         * tests/test-vasprintf-posix.c: Ditto.
60858         * tests/test-vasprintf.c: Ditto.
60859
60860 2007-03-27  Bruno Haible  <bruno@clisp.org>
60861
60862         Make vasnprintf multithread-safe.
60863         * lib/vasnprintf.c (decimal_point_char): New function.
60864         (VASNPRINTF): Use it.
60865         Suggested by Simon Josefsson.
60866
60867 2007-03-27  Eric Blake  <ebb9@byu.net>
60868
60869         Support sub-second birthtime on cygwin.
60870         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60871         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60872         (get_stat_birthtime): Also work with st_birthtim.
60873
60874 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60875
60876         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60877         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60878         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60879         (get_stat_birthtime_ns): Simplify compile-time tests.
60880         (get_stat_birthtime): Change the API to look like
60881         get_stat_mtime etc., except return a negative tv_nsec on error.
60882         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60883         Don't check for "spare" fields.
60884         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60885         or for struct stat.st_birthtime, as these tests aren't used.
60886         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60887
60888 2007-03-27  Bruno Haible  <bruno@clisp.org>
60889
60890         * lib/stat-time.h: Include <sys/stat.h>.
60891
60892 2007-03-27  James Youngman  <jay@gnu.org>
60893
60894         * lib/stat-time.h (get_stat_birthtime): New function for
60895           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60896         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60897           and its variants.
60898         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60899         * modules/stat-time-test: New file.
60900         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60901
60902 2007-03-26  Bruno Haible  <bruno@clisp.org>
60903
60904         Better support of signalling NaNs.
60905         * lib/atanl.c: Include isnanl.h.
60906         (atanl): Perform test for NaN at the beginning of the function and
60907         through a call to isnanl.
60908         * lib/cosl.c: Include isnanl.h.
60909         (cosl): Perform test for NaN at the beginning of the function and
60910         through a call to isnanl.
60911         * lib/ldexpl.c: Include isnanl.h.
60912         (ldexpl): Perform test for NaN through a call to isnanl.
60913         * lib/logl.c: Include isnanl.h.
60914         (logl): Perform test for NaN at the beginning of the function and
60915         through a call to isnanl.
60916         * lib/sinl.c: Include isnanl.h.
60917         (sinl): Perform test for NaN at the beginning of the function and
60918         through a call to isnanl.
60919         * lib/sqrtl.c: Include isnanl.h.
60920         (sqrtl): Perform test for NaN at the beginning of the function and
60921         through a call to isnanl.
60922         * lib/tanl.c: Include isnanl.h.
60923         (tanl): Perform test for NaN at the beginning of the function and
60924         through a call to isnanl.
60925         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60926         * modules/mathl (Depends-on): Add isnanl.
60927
60928 2007-03-26  Eric Blake  <ebb9@byu.net>
60929
60930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60931         regression in logic sense of previous patch.
60932
60933 2007-03-26  Bruno Haible  <bruno@clisp.org>
60934
60935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60936         unportable shell command "if ! ...".
60937         Reported by Ralf Wildenhues.
60938
60939 2007-03-25  Bruno Haible  <bruno@clisp.org>
60940
60941         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60942         <sysexits.h> file, and only add EX_CONFIG.
60943         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60944         absolute file name and whether it is sufficient. Substitute also
60945         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60946         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60947         ABSOLUTE_SYSEXITS_H into sysexits.h.
60948
60949 2007-03-25  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60952         hints is NULL.
60953
60954 2007-03-25  Bruno Haible  <bruno@clisp.org>
60955
60956         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60957         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60958
60959 2007-03-25  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/vasnprintf.c: Include langinfo.h.
60962         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60963         multithread-safe.
60964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60972         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60973         Reported by Simon Josefsson.
60974
60975 2007-03-25  Bruno Haible  <bruno@clisp.org>
60976
60977         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60978         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60979         * modules/vasnprintf (Depends-on): Add stdint.
60980
60981 2007-03-25  Bruno Haible  <bruno@clisp.org>
60982
60983         * modules/fpieee: New file.
60984         * m4/fpieee.m4: New file.
60985         * modules/isnan-nolibm (Depends-on): Add fpieee.
60986         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60987         * modules/isnanl (Depends-on): Add fpieee.
60988
60989 2007-03-25  Bruno Haible  <bruno@clisp.org>
60990
60991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60992
60993 2007-03-25  Bruno Haible  <bruno@clisp.org>
60994
60995         Avoid test failures on IRIX 6.5.
60996         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60997         (main): Use it.
60998         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60999         macros.
61000         (main): Use them.
61001
61002 2007-03-25  Bruno Haible  <bruno@clisp.org>
61003
61004         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61005         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61006         exists but doesn't work.
61007         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61008         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61010         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61011         math.h.
61012
61013 2007-03-25  Bruno Haible  <bruno@clisp.org>
61014
61015         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61016         returns inf. Needed on IRIX 6.5.
61017
61018 2007-03-25  Bruno Haible  <bruno@clisp.org>
61019
61020         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61021         (main): Use isnanl instead of x != x idiom.
61022         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61023
61024         * tests/test-frexp.c: Include isnan.h.
61025         (main): Use isnan instead of x != x idiom.
61026         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61027
61028 2007-03-25  Bruno Haible  <bruno@clisp.org>
61029
61030         * tests/test-frexp.c (NaN): New function/macro.
61031         (main): Use it instead of 0.0 / 0.0.
61032         * tests/test-isnan.c (NaN): New function/macro.
61033         (main): Use it instead of 0.0 / 0.0.
61034         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61035         (test_function): Use it instead of 0.0 / 0.0.
61036         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61037         (test_function): Use it instead of 0.0 / 0.0.
61038         * tests/test-snprintf-posix.h (NaN): New function/macro.
61039         (test_function): Use it instead of 0.0 / 0.0.
61040         * tests/test-sprintf-posix.h (NaN): New function/macro.
61041         (test_function): Use it instead of 0.0 / 0.0.
61042         * tests/test-fprintf-posix.h (NaN): New function/macro.
61043         (test_function): Use it instead of 0.0 / 0.0.
61044         * tests/test-printf-posix.h (NaN): New function/macro.
61045         (test_function): Use it instead of 0.0 / 0.0.
61046
61047         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61048
61049 2007-03-25  Bruno Haible  <bruno@clisp.org>
61050
61051         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61052
61053 2007-03-25  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/regexec.c (merge_state_with_log): Make static.
61056
61057 2007-03-25  Bruno Haible  <bruno@clisp.org>
61058
61059         * lib/trigl.c (kernel_rem_pio2): Make static.
61060
61061 2007-03-25  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/sincosl.c (sincosl_table): Make static.
61064
61065 2007-03-25  Bruno Haible  <bruno@clisp.org>
61066
61067         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61068         if the compiler does not support C99.
61069
61070 2007-03-25  Bruno Haible  <bruno@clisp.org>
61071
61072         * modules/time (Makefile.am): Ensure all rule action lines start with a
61073         tab.
61074
61075 2007-03-24  Bruno Haible  <bruno@clisp.org>
61076
61077         * modules/tsearch-tests: New file.
61078         * tests/test-tsearch.sh: New file.
61079         * tests/test-tsearch.c: New file, mostly copied from glibc.
61080
61081         * modules/search-tests: New file.
61082         * tests/test-search.c: New file.
61083
61084         * modules/search: New file.
61085         * lib/search_.h: New file, incorporating lib/tsearch.h.
61086         * m4/search_h.m4: New file.
61087         * lib/tsearch.h: Remove file.
61088         * lib/tsearch.c: Include search.h instead of tsearch.h.
61089         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61090         HAVE_TSEARCH.
61091         * modules/tsearch (Files): Remove lib/tsearch.h.
61092         (Depends-on): Add search.
61093         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61094         (Include): Change tsearch.h into search.h.
61095
61096 2007-03-24  Bruno Haible  <bruno@clisp.org>
61097
61098         * modules/fpucw: New file.
61099         * lib/fpucw.h: New file.
61100         * lib/frexp.c: Include fpucw.h.
61101         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61102         (FUNC): Use them.
61103         * lib/printf-frexp.c: Include fpucw.h.
61104         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61105         (FUNC): Use them.
61106         * lib/vasnprintf.c: Include fpucw.h.
61107         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61108         'long double' calculations.
61109         * tests/test-frexpl.c: Include fpucw.h.
61110         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61111         * tests/test-printf-frexpl.c: Include fpucw.h.
61112         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61113         * modules/frexpl (Depends-on): Add fpucw.
61114         * modules/printf-frexpl (Depends-on): Likewise.
61115         * modules/fprintf-posix (Depends-on): Likewise.
61116         * modules/snprintf-posix (Depends-on): Likewise.
61117         * modules/sprintf-posix (Depends-on): Likewise.
61118         * modules/vasnprintf-posix (Depends-on): Likewise.
61119         * modules/vasprintf-posix (Depends-on): Likewise.
61120         * modules/vfprintf-posix (Depends-on): Likewise.
61121         * modules/vsnprintf-posix (Depends-on): Likewise.
61122         * modules/vsprintf-posix (Depends-on): Likewise.
61123         * modules/frexpl-tests (Depends-on): Likewise.
61124         * modules/printf-frexpl-tests (Depends-on): Likewise.
61125
61126 2007-03-24  Bruno Haible  <bruno@clisp.org>
61127
61128         * lib/float+.h: New file.
61129         * lib/isnan.c: Include float+.h.
61130         (SIZE): New macro.
61131         (FUNC): Compare only SIZE bytes of the value.
61132         * lib/vasnprintf.c: Include float+.h.
61133         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61134         SIZEOF_LDBL or SIZEOF_DBL bytes.
61135         * modules/isnan-nolibm (Files): Add lib/float+.h.
61136         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61137         * modules/isnanl (Files): Add lib/float+.h.
61138         * modules/vasnprintf (Files): Add lib/float+.h.
61139
61140 2007-03-24  Bruno Haible  <bruno@clisp.org>
61141
61142         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61143         include isnanl-nolibm.h.
61144
61145 2007-03-24  Bruno Haible  <bruno@clisp.org>
61146
61147         * tests/test-read-file.c (main): Don't produce spurious output for
61148         expected situations. Make the test fail if it encountered unexpected
61149         results.
61150
61151 2007-03-24  Bruno Haible  <bruno@clisp.org>
61152
61153         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61154         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61155
61156 2007-03-24  Bruno Haible  <bruno@clisp.org>
61157
61158         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61159
61160 2007-03-24  Bruno Haible  <bruno@clisp.org>
61161
61162         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61163         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61164
61165         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61166         * modules/utf8-ucs4: Turn into a symbolic link to module
61167         unistr/u8-mbtouc.
61168
61169         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61170         utf8-ucs4-unsafe.
61171         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61172         unistr/u8-mbtouc-unsafe.
61173
61174         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61175         * modules/utf16-ucs4: Turn into a symbolic link to module
61176         unistr/u16-mbtouc.
61177
61178         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61179         utf16-ucs4-unsafe.
61180         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61181         unistr/u16-mbtouc-unsafe.
61182
61183         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61184         * modules/ucs4-utf8: Turn into a symbolic link to module
61185         unistr/u8-ubtomb.
61186
61187         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61188         * modules/ucs4-utf16: Turn into a symbolic link to module
61189         unistr/u16-ubtomb.
61190
61191 2007-03-24  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61194         Enable the function only if HAVE_INLINE.
61195         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61196         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61197         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61198         Enable the function only if HAVE_INLINE.
61199         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61200         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61201         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61202         Enable the function only if HAVE_INLINE.
61203         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61204         Enable the function only if HAVE_INLINE.
61205         * modules/utf8-ucs4: Update.
61206         * modules/utf8-ucs4-unsafe: Update.
61207         * modules/utf16-ucs4: Update.
61208         * modules/utf16-ucs4-unsafe: Update.
61209         * modules/ucs4-utf8: Update.
61210         * modules/ucs4-utf16: Update.
61211
61212 2007-03-24  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/utf8-ucs4.h: Remove file.
61215         * lib/utf8-ucs4-unsafe.h: Remove file.
61216         * lib/utf16-ucs4.h: Remove file.
61217         * lib/utf16-ucs4-unsafe.h: Remove file.
61218         * lib/ucs4-utf8.h: Remove file.
61219         * lib/ucs4-utf16.h: Remove file.
61220         * lib/unistr.h: Include their previous contents.
61221         * m4/utf-ucs4.m4: Remove file.
61222         * m4/ucs4-utf.m4: Remove file.
61223         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61224         (Depends-on): Add unistr/base.
61225         (configure.ac): Remove gl_UTF_UCS4.
61226         (Makefile.am): Update.
61227         (Include): Change to unistr.h.
61228         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61229         (Depends-on): Add unistr/base.
61230         (configure.ac): Remove gl_UTF_UCS4.
61231         (Makefile.am): Update.
61232         (Include): Change to unistr.h.
61233         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61234         (Depends-on): Add unistr/base.
61235         (configure.ac): Remove gl_UTF_UCS4.
61236         (Makefile.am): Update.
61237         (Include): Change to unistr.h.
61238         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61239         (Depends-on): Add unistr/base.
61240         (configure.ac): Remove gl_UTF_UCS4.
61241         (Makefile.am): Update.
61242         (Include): Change to unistr.h.
61243         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61244         (Depends-on): Add unistr/base.
61245         (configure.ac): Remove gl_UCS4_UTF.
61246         (Makefile.am): Update.
61247         (Include): Change to unistr.h.
61248         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61249         (Depends-on): Add unistr/base.
61250         (configure.ac): Remove gl_UCS4_UTF.
61251         (Makefile.am): Update.
61252         (Include): Change to unistr.h.
61253         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61254         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61255         utf8-ucs4-unsafe.h.
61256         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61257         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61258         utf16-ucs4-unsafe.h.
61259         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61260         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61261         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61262         * lib/unistr/u8-strchr.c: Likewise.
61263         * lib/unistr/u8-strrchr.c: Likewise.
61264         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61265         * lib/unistr/u16-strchr.c: Likewise.
61266         * lib/unistr/u16-strrchr.c: Likewise.
61267         * lib/striconveh.c: Update.
61268         * lib/linebreak.c: Update.
61269
61270 2007-03-24  Bruno Haible  <bruno@clisp.org>
61271
61272         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61273         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61274
61275 2007-03-22  Bruno Haible  <bruno@clisp.org>
61276
61277         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61278
61279 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * MODULES.html.sh (File system functions): New module write-any-file.
61282         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61283         * m4/write-any-file.m4: New files.
61284
61285 2007-03-23  Eric Blake  <ebb9@byu.net>
61286
61287         * gnulib-tool: Rearrange space-tab sequences, since some editors
61288         like to eat them.
61289
61290 2007-03-23  Eric Blake  <ebb9@byu.net>
61291
61292         * lib/version-etc.c (version_etc_va): Update license wording to
61293         be more concise.  Recommended by Richard Stallman.
61294
61295 2007-03-22  Bruno Haible  <bruno@clisp.org>
61296
61297         * lib/poll.c (MSG_PEEK): New fallback definition.
61298
61299 2007-03-22  Bruno Haible  <bruno@clisp.org>
61300
61301         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61302         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61303         (main): Update.
61304         Fixes a compilation error on BeOS.
61305
61306 2007-03-22  Bruno Haible  <bruno@clisp.org>
61307
61308         * modules/frexpl-tests: New file.
61309         * tests/test-frexpl.c: New file.
61310
61311         * modules/frexpl: New file.
61312         * m4/frexpl.m4: New file.
61313         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61314         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61316         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61317         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61318         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61319
61320 2007-03-22  Bruno Haible  <bruno@clisp.org>
61321
61322         * lib/frexpl.c: Share code with lib/frexp.c.
61323         * modules/mathl (Files): Add lib/frexp.c.
61324         (Depends-on): Add isnanl-nolibm.
61325
61326 2007-03-22  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/printf-frexp (Files): Add m4/frexp.m4.
61329         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61330         only if the found frexp function actually works.
61331
61332 2007-03-22  Bruno Haible  <bruno@clisp.org>
61333
61334         * lib/frexp.c: Remove older implementation that uses divisions.
61335
61336 2007-03-21  Bruno Haible  <bruno@clisp.org>
61337
61338         * modules/frexp-tests: New file.
61339         * tests/test-frexp.c: New file.
61340
61341         * modules/frexp: New file.
61342         * lib/frexp.c: New file.
61343         * m4/frexp.m4: New file.
61344         * lib/math_.h (frexp): New declaration.
61345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61346         REPLACE_FREXP.
61347         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61348
61349 2007-03-21  Bruno Haible  <bruno@clisp.org>
61350
61351         * modules/isnanl-tests: New file.
61352         * tests/test-isnanl.c: New file.
61353
61354         * modules/isnanl: New file.
61355         * lib/isnanl.h: New file.
61356         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61357         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61358         gl_FUNC_ISNANL_WORKS.
61359         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61360         New macros.
61361
61362 2007-03-21  Bruno Haible  <bruno@clisp.org>
61363
61364         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61365         lib/isnanl.h.
61366         (Include): Update.
61367         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61368         * lib/vasnprintf.c: Update.
61369         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61370         tests/test-isnanl.h, remove tests/test-isnanl.c.
61371         (Makefile.am): Update.
61372         * tests/test-isnanl-nolibm.c: New file.
61373         * tests/test-isnanl.h: New file.
61374         * tests/test-isnanl.c: Remove file.
61375
61376 2007-03-21  Jim Meyering  <jim@meyering.net>
61377
61378         When trying to open ".", treat ESTALE like EACCES.
61379         * lib/savewd.c (savewd_save): Resort to forking not just upon
61380         failure with EACCES, but also when errno is ESTALE.
61381
61382 2007-03-20  Bruno Haible  <bruno@clisp.org>
61383
61384         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61385         Needed on AIX 5.1. Reported by Matthew Woehlke.
61386
61387 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         Suggestions by Bruno Haible:
61390         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61391         our own.
61392         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61393         * modules/acl (Depends-on): Add gettext.
61394
61395 2007-03-19  Bruno Haible  <bruno@clisp.org>
61396
61397         * modules/iconvme: Remove file.
61398         * lib/iconvme.h: Remove file.
61399         * lib/iconvme.c: Remove file.
61400         * m4/iconvme.m4: Remove file.
61401
61402 2007-03-19  Bruno Haible  <bruno@clisp.org>
61403
61404         * doc/relocatable-maint.texi: Break long shell script line.
61405         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61406
61407 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61410         handle file_has_acl.
61411         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61412         * lib/acl.c: Move header inclusions and related macro defns into
61413         lib/acl-internal.h.
61414         (S_ISLNK): Remove defn, since that's now done for us.
61415         (file_has_acl): Move to lib/file-has-acl.c.
61416         Call acl_trivial if available.  This is the crucial part of the fix.
61417         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61418         shared within the library.  Rewrite a bit, partly to make it compatible
61419         with the GNU coding style.
61420         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61421         Remove unnecessary double-quotes.
61422         Don't test for acl_to_text; the build will catch that.
61423         Replace acl_entries if it doesn't exist and it is needed.
61424         Check for -lsec and acl_trivial (as used on Solaris 10).
61425         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61426         lib/file-has-acl.c.
61427         (Depends-on): Add sys_stat, for S_ISLNK.
61428
61429 2007-03-19  Ben Pfaff  <blp@gnu.org>
61430
61431         * doc/gnulib.texi: Fix typos.
61432         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61433
61434 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61435
61436         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61437         If size is zero here, buf must be zero.
61438
61439 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61440
61441         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61442         <bruno@clisp.org>.
61443
61444 2007-03-18  Bruno Haible  <bruno@clisp.org>
61445
61446         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61447         Suggested by Eric Blake.
61448
61449 2007-03-18  Ben Pfaff  <blp@gnu.org>
61450
61451         * doc/relocatable.texi: Recommend using as prefix a directory
61452         that does not exist and will never be created.  Based on
61453         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61454         and others.
61455
61456 2007-03-17  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/fchownat.c: Include lchown.h.
61459
61460 2007-03-17  Bruno Haible  <bruno@clisp.org>
61461
61462         Fix endless loop when the given allocated size was > INT_MAX.
61463         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61464         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61465         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61466         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61467         * lib/sprintf.c (sprintf): Likewise.
61468
61469 2007-03-17  Bruno Haible  <bruno@clisp.org>
61470
61471         * tests/test-argp-2.sh (func_compare): Output a context diff.
61472
61473 2007-03-17  Bruno Haible  <bruno@clisp.org>
61474
61475         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61476         locale's decimal-point character.
61477
61478 2007-03-17  Bruno Haible  <bruno@clisp.org>
61479
61480         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61481         before comparing it. Needed because on some platforms (e.g. x86) a
61482         'long double' occupies less bytes than sizeof (long double).
61483
61484 2007-03-17  Bruno Haible  <bruno@clisp.org>
61485
61486         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61487         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61488         * tests/test-getaddrinfo.c (simple): Likewise.
61489         * tests/test-read-file.c (main): Likewise.
61490
61491 2007-03-17  Bruno Haible  <bruno@clisp.org>
61492
61493         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61494
61495 2007-03-17  Bruno Haible  <bruno@clisp.org>
61496
61497         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61498         unused variable.
61499
61500 2007-03-17  Bruno Haible  <bruno@clisp.org>
61501
61502         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61503         * tests/test-c-strncasecmp.c: Likewise.
61504
61505 2007-03-17  Bruno Haible  <bruno@clisp.org>
61506
61507         * modules/stdlib (Depends-on): Add unistd.
61508         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61509         Needed for MacOS X 10.3.
61510
61511 2007-03-17  Bruno Haible  <bruno@clisp.org>
61512
61513         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61514
61515 2007-03-17  Bruno Haible  <bruno@clisp.org>
61516
61517         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61518
61519 2007-03-17  Bruno Haible  <bruno@clisp.org>
61520
61521         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61522         to reflect files copied from gnulib (with or without modifications).
61523         Suggested by Jim Meyering.
61524
61525 2007-03-17  Eric Blake  <ebb9@byu.net>
61526
61527         * NEWS: Document stdlib change from 2007-02-18.
61528
61529 2007-03-17  Jim Meyering  <jim@meyering.net>
61530
61531         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61532         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61533         someone uses a name containing shell meta-characters.
61534         Reported by Alfred M. Szmidt.
61535
61536         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61537
61538 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61539
61540         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61541         and copy gettext configuration files only if configure.ac contains
61542         a use of AM_GNU_GETTEXT_VERSION.
61543
61544 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61545
61546         * build-aux/bootstrap (gnulib_name): New variable.
61547         (gnulib_tool_options): Use it.
61548
61549 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61550
61551         * tests/test-des.c: Use new namespace.
61552
61553 2007-03-15  Bruno Haible  <bruno@clisp.org>
61554
61555         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61556         Reported by James Youngman <jay@gnu.org>.
61557
61558 2007-03-15  Bruno Haible  <bruno@clisp.org>
61559
61560         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61561         declared prototype. Needed with cc on OSF/1 5.1.
61562
61563 2007-03-15  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61566         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61567         (struct gl_list_implementation): Add dispose_fn argument to the
61568         'create_empty', 'create' methods.
61569         (struct gl_list_impl_base): Add field 'dispose_fn'.
61570         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61571         argument.
61572         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61573         dispose_fn argument.
61574         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61575         dispose_fn on the dropped values.
61576         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61577         dispose_fn argument.
61578         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61579         dropped values.
61580         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61581         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61582         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61583         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61584         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61585         argument.
61586         (gl_tree_list_free): Call dispose_fn on the dropped values.
61587         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61588         the dropped values.
61589         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61590         Add dispose_fn argument.
61591         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61592         Call dispose_fn on the dropped values.
61593         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61594         Add dispose_fn argument.
61595         (gl_sublist_create): Initialize the 'dispose_fn' field.
61596         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61597         * tests/test-array_list.c (main): Update.
61598         * tests/test-carray_list.c (main): Update.
61599         * tests/test-avltree_list.c (main): Update.
61600         * tests/test-rbtree_list.c (main): Update.
61601         * tests/test-avltreehash_list.c (main): Update.
61602         * tests/test-rbtreehash_list.c (main): Update.
61603         * tests/test-linked_list.c (main): Update.
61604         * tests/test-linkedhash_list.c (main): Update.
61605         * tests/test-array_oset.c (main): Update.
61606
61607 2007-03-15  Bruno Haible  <bruno@clisp.org>
61608
61609         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61610         (gl_oset_create_empty): Add dispose_fn argument.
61611         (struct gl_oset_implementation): Add dispose_fn argument to
61612         'create_empty' method.
61613         (struct gl_oset_impl_base): Add dispose_fn field.
61614         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61615         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61616         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61617         values.
61618         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61619         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61620         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61621         dropped value.
61622         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61623         dropped value.
61624         * tests/test-array_oset.c (main): Update.
61625         * tests/test-avltree_oset.c (main): Update.
61626         * tests/test-rbtree_oset.c (main): Update.
61627         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61628
61629 2007-03-13  Bruno Haible  <bruno@clisp.org>
61630
61631         * tests/test-stdbool.c (i): Update after last patch.
61632
61633 2007-03-12  Bruno Haible  <bruno@clisp.org>
61634
61635         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61636         the iswprint macro. Needed on Solaris 2.5.1.
61637
61638 2007-03-12  Bruno Haible  <bruno@clisp.org>
61639
61640         * tests/test-printf-frexp.c (main): Declare x as volatile.
61641
61642 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61643
61644         * doc/gnulib.texi (Build robot for gnulib): New section.
61645
61646 2007-03-12  Jim Meyering  <jim@meyering.net>
61647
61648         * build-aux/bootstrap: New file.
61649         * build-aux/bootstrap.conf: New file, from coreutils.
61650
61651 2007-03-11  Bruno Haible  <bruno@clisp.org>
61652
61653         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61654
61655 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61656
61657         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61658         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61659         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61660
61661 2007-03-11  Bruno Haible  <bruno@clisp.org>
61662
61663         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61664         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61665
61666 2007-03-11  Bruno Haible  <bruno@clisp.org>
61667
61668         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61669         formula. Needed for SunPRO C 5.0.
61670
61671 2007-03-11  Bruno Haible  <bruno@clisp.org>
61672
61673         * modules/long-options (Depends-on): Add getopt.
61674
61675 2007-03-11  Bruno Haible  <bruno@clisp.org>
61676
61677         * modules/modechange (Depends-on): Add stdbool.
61678
61679 2007-03-11  Bruno Haible  <bruno@clisp.org>
61680
61681         * modules/i-ring (Depends-on): Add stdbool.
61682
61683 2007-03-11  Bruno Haible  <bruno@clisp.org>
61684
61685         * modules/gc-des (Depends-on): Add stdbool.
61686
61687 2007-03-11  Bruno Haible  <bruno@clisp.org>
61688
61689         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61690
61691 2007-03-11  Bruno Haible  <bruno@clisp.org>
61692
61693         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61694
61695 2007-03-11  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61698
61699 2007-03-11  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/vasnprintf.c (sprintf): Undefine.
61702
61703 2007-03-11  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61706         initializers in SunPRO C and Compaq C compilers.
61707
61708 2007-03-11  Bruno Haible  <bruno@clisp.org>
61709
61710         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61711         decrementing code ANSI C compliant.
61712
61713 2007-03-11  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61716         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61717
61718 2007-03-11  Bruno Haible  <bruno@clisp.org>
61719
61720         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61721         <stdbool.h> substitute doesn't pass.
61722
61723 2007-03-11  Bruno Haible  <bruno@clisp.org>
61724
61725         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61726
61727 2007-03-11  Bruno Haible  <bruno@clisp.org>
61728
61729         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61730         script, for submission to autobuild.josefsson.org.
61731
61732 2007-03-10  Bruno Haible  <bruno@clisp.org>
61733
61734         * modules/canonicalize-lgpl-tests: New file.
61735         * tests/test-canonicalize-lgpl.sh: New file.
61736         * tests/test-canonicalize-lgpl.c: New file.
61737
61738         * modules/c-strcase-tests: New file.
61739         * tests/test-c-strcase.sh: New file.
61740         * tests/test-c-strcasecmp.c: New file.
61741         * tests/test-c-strncasecmp.c: New file.
61742
61743         * modules/atexit-tests: New file.
61744         * tests/test-atexit.sh: New file.
61745         * tests/test-atexit.c: New file.
61746
61747 2007-03-10  Bruno Haible  <bruno@clisp.org>
61748
61749         * tests/test-binary-io.sh: Use temporary filenames that are not so
61750         likely to clash with those of other tests (in a parallel make).
61751         * tests/test-binary-io.c: Likewise.
61752
61753 2007-03-10  Bruno Haible  <bruno@clisp.org>
61754
61755         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61756         fallback; use #error instead.
61757         Suggested by Simon Josefsson.
61758
61759 2007-03-10  Bruno Haible  <bruno@clisp.org>
61760
61761         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61762         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61763         first and the last.
61764
61765 2007-03-10  Bruno Haible  <bruno@clisp.org>
61766
61767         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61768
61769 2007-03-10  Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61772         "make distcheck".
61773         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61774         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61775         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61776
61777 2007-03-10  Bruno Haible  <bruno@clisp.org>
61778
61779         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61780         variable.
61781         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61782         variable.
61783
61784 2007-03-09  Eric Blake  <ebb9@byu.net>
61785         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61786
61787         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61788         types are not being provided by gnulib.
61789         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61790         types are supported.
61791
61792 2007-03-10  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/stdio_.h (__attribute__): New macro.
61795         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61796         vsprintf): Specify __attribute__ __format__ for GCC.
61797         Suggested by Eric Blake.
61798
61799 2007-03-09  Bruno Haible  <bruno@clisp.org>
61800
61801         * modules/printf-posix-tests: New file.
61802         * tests/test-printf-posix.sh: New file.
61803         * tests/test-printf-posix.c: New file.
61804
61805         * modules/printf-posix: New file.
61806         * lib/printf.c: New file.
61807         * m4/printf-posix-rpl.m4: New file.
61808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61809         REPLACE_PRINTF.
61810         * lib/stdio_.h (printf): New declaration.
61811         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61812         ____strfmon____): New macros.
61813         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61814         REPLACE_PRINTF.
61815
61816 2007-03-09  Bruno Haible  <bruno@clisp.org>
61817
61818         * tests/test-vasnprintf-posix2.sh: New file.
61819         * tests/test-vasnprintf-posix2.c: New file.
61820         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61821         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61822         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61823
61824         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61825         a locale dependent decimal point, rather than always '.'.
61826
61827 2007-03-09  Eric Blake  <ebb9@byu.net>
61828
61829         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61830         spite of platforms like Tandem/NSK that define it to -1.
61831
61832 2007-03-08  Bruno Haible  <bruno@clisp.org>
61833
61834         * modules/vprintf-posix-tests: New file.
61835         * tests/test-vprintf-posix.sh: New file.
61836         * tests/test-vprintf-posix.c: New file.
61837         * tests/test-printf-posix.h: New file.
61838
61839         * modules/vprintf-posix: New file.
61840         * lib/vprintf.c: New file.
61841         * m4/vprintf-posix.m4: New file.
61842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61843         REPLACE_VPRINTF.
61844         * lib/stdio_.h (vprintf): New declaration.
61845         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61846         REPLACE_VPRINTF.
61847
61848 2007-03-08  Bruno Haible  <bruno@clisp.org>
61849
61850         * modules/fprintf-posix-tests: New file.
61851         * tests/test-fprintf-posix.sh: New file.
61852         * tests/test-fprintf-posix.c: New file.
61853
61854         * modules/fprintf-posix: New file.
61855         * lib/fprintf.c: New file.
61856         * m4/fprintf-posix.m4: New file.
61857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61858         REPLACE_FPRINTF.
61859         * lib/stdio_.h (fprintf): New declaration.
61860         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61861         REPLACE_FPRINTF.
61862
61863 2007-03-08  Bruno Haible  <bruno@clisp.org>
61864
61865         * modules/vfprintf-posix-tests: New file.
61866         * tests/test-vfprintf-posix.sh: New file.
61867         * tests/test-vfprintf-posix.c: New file.
61868         * tests/test-fprintf-posix.h: New file.
61869         * tests/test-fprintf-posix.out: New file.
61870
61871         * modules/vfprintf-posix: New file.
61872         * lib/vfprintf.c: New file.
61873         * m4/vfprintf-posix.m4: New file.
61874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61875         REPLACE_VFPRINTF.
61876         * lib/stdio_.h (vfprintf): New declaration.
61877         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61878         REPLACE_VFPRINTF.
61879
61880 2007-03-08  Bruno Haible  <bruno@clisp.org>
61881
61882         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61883
61884 2007-03-08  Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61887         instead of 'expr' invocations.
61888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61890         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61893         Suggested by Paul Eggert.
61894
61895 2007-03-08  Bruno Haible  <bruno@clisp.org>
61896
61897         * modules/fseterr-tests: New file.
61898         * tests/test-fseterr.c: New file.
61899
61900         * modules/fseterr: New file.
61901         * lib/fseterr.h: New file.
61902         * lib/fseterr.c: New file.
61903
61904 2007-03-08  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61907         * lib/getopt_.h: Likewise.
61908         * lib/mbswidth.h: Likewise.
61909         * lib/setenv.h: Likewise.
61910         * lib/vasnprintf.h: Likewise.
61911         * lib/vasprintf.h: Likewise.
61912         * lib/verror.h: Likewise.
61913         * lib/xsetenv.h: Likewise.
61914         * lib/xvasprintf.h: Likewise.
61915
61916 2007-03-08  Jim Meyering  <jim@meyering.net>
61917
61918         * users.txt: Add parted.
61919
61920         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61921
61922 2007-03-07  Bruno Haible  <bruno@clisp.org>
61923
61924         * m4/printf.m4: Make the shell script snippets copy&pastable.
61925
61926 2007-03-02  Bruno Haible  <bruno@clisp.org>
61927
61928         * lib/netinet_in_.h: New file.
61929         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61930         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61931         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61932         (Depends-on): Add absolute-header.
61933         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61934         into netinet/in.h.
61935
61936 2007-03-03  Bruno Haible  <bruno@clisp.org>
61937
61938         * lib/sys_select_.h: New file.
61939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61940         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61941         * modules/sys_select (Files): Add lib/sys_select_.h.
61942         (Depends-on): Add absolute-header.
61943         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61944         into sys/select.h.
61945
61946 2007-03-02  Bruno Haible  <bruno@clisp.org>
61947
61948         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61949         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61950         values.
61951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61952         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61953         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61954         * modules/sys_socket (Depends-on): Add absolute-header.
61955         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61956         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61957         (Include): Remove requirement of inclusion of <sys/types.h>.
61958
61959 2007-03-02  Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/byteswap_.h (bswap_32): Fix formula.
61962
61963 2007-03-06  Bruno Haible  <bruno@clisp.org>
61964
61965         * modules/sprintf-posix-tests: New file.
61966         * tests/test-sprintf-posix.c: New file.
61967
61968         * modules/sprintf-posix: New file.
61969         * lib/sprintf.c: New file.
61970         * m4/sprintf-posix.m4: New file.
61971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61972         REPLACE_SPRINTF.
61973         * lib/stdio_.h (sprintf): New declaration.
61974         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61975         REPLACE_SPRINTF.
61976
61977 2007-03-06  Bruno Haible  <bruno@clisp.org>
61978
61979         * modules/vsprintf-posix-tests: New file.
61980         * tests/test-vsprintf-posix.c: New file.
61981         * tests/test-sprintf-posix.h: New file.
61982
61983         * modules/vsprintf-posix: New file.
61984         * lib/vsprintf.c: New file.
61985         * m4/vsprintf-posix.m4: New file.
61986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61987         REPLACE_VSPRINTF.
61988         * lib/stdio_.h (vsprintf): New declaration.
61989         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61990         REPLACE_VSPRINTF.
61991
61992 2007-03-06  Bruno Haible  <bruno@clisp.org>
61993
61994         * modules/vsnprintf (Depend-on): Remove minmax.
61995
61996 2007-03-06  Bruno Haible  <bruno@clisp.org>
61997
61998         * modules/snprintf-posix-tests: New file.
61999         * tests/test-snprintf-posix.c: New file.
62000
62001         * modules/snprintf-posix: New file.
62002         * m4/snprintf-posix.m4: New file.
62003         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62004         gl_FUNC_SNPRINTF.
62005         (gl_FUNC_SNPRINTF): Invoke it.
62006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62007         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62008         is set.
62009         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62010
62011 2007-03-06  Bruno Haible  <bruno@clisp.org>
62012
62013         * modules/vsnprintf-posix-tests: New file.
62014         * tests/test-vsnprintf-posix.c: New file.
62015         * tests/test-snprintf-posix.h: New file.
62016
62017         * modules/vsnprintf-posix: New file.
62018         * m4/vsnprintf-posix.m4: New file.
62019         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62020         gl_FUNC_VSNPRINTF.
62021         (gl_FUNC_VSNPRINTF): Invoke it.
62022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62023         * lib/stdio_.h (vsnprintf): Define as a replacement if
62024         REPLACE_VSNPRINTF is set.
62025         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62026
62027 2007-03-06  Bruno Haible  <bruno@clisp.org>
62028
62029         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62031
62032 2007-03-06  Bruno Haible  <bruno@clisp.org>
62033
62034         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62035         (asinl): Declare also if HAVE_DECL_ASINL is set.
62036         (atanl): Declare also if HAVE_DECL_ATANL is set.
62037         (ceill): Declare also if HAVE_DECL_CEILL is set.
62038         (cosl): Declare also if HAVE_DECL_COSL is set.
62039         (expl): Declare also if HAVE_DECL_EXPL is set.
62040         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62041         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62042         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62043         (logl): Declare also if HAVE_DECL_LOGL is set.
62044         (sinl): Declare also if HAVE_DECL_SINL is set.
62045         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62046         (tanl): Declare also if HAVE_DECL_TANL is set.
62047         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62050         declaration of frexpl, ldexpl.
62051         * modules/printf-frexpl (Depends-on): Add math.
62052         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62053
62054 2007-03-05  Bruno Haible  <bruno@clisp.org>
62055
62056         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62057         frexpl and ldexpl are declared.
62058         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62059
62060 2007-03-05  Bruno Haible  <bruno@clisp.org>
62061
62062         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62063         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62064
62065 2007-03-05  Bruno Haible  <bruno@clisp.org>
62066
62067         * lib/stdio_.h: Include <stddef.h>.
62068
62069 2007-03-05  Bruno Haible  <bruno@clisp.org>
62070
62071         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62072
62073 2007-03-05  Bruno Haible  <bruno@clisp.org>
62074
62075         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62076         NetBSD 4, from Ralf Wildenhues.
62077
62078 2007-03-04  Bruno Haible  <bruno@clisp.org>
62079
62080         * lib/vasprintf.h: Update #if logic for the case when the functions
62081         exist but are overridden.
62082
62083 2007-03-04  Bruno Haible  <bruno@clisp.org>
62084
62085         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62086         implementations: glibc-2.4 and MacOS X 10.3.
62087         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62088         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62089         * tests/test-vasprintf-posix.c (test_function): Likewise.
62090
62091 2007-03-04  Bruno Haible  <bruno@clisp.org>
62092
62093         * modules/vasprintf-posix-tests: New file.
62094         * tests/test-vasprintf-posix.c: New file.
62095
62096         * modules/vasprintf-posix: New file.
62097         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62098         defined.
62099         * m4/vasprintf-posix.m4: New file.
62100         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62101         gl_FUNC_VASPRINTF.
62102         (gl_FUNC_VASPRINTF): Invoke it.
62103         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62104         here.
62105         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62106
62107 2007-03-04  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62110         REPLACE_GETTIMEOFDAY.
62111         * modules/sys_time (Makefile.am): Likewise.
62112         * m4/sys_time_h.m4: Likewise.
62113         * m4/gettimeofday.m4: Likewise.
62114
62115 2007-03-04  Bruno Haible  <bruno@clisp.org>
62116
62117         * modules/vasnprintf-posix-tests: New file.
62118         * tests/test-vasnprintf-posix.c: New file.
62119
62120         * modules/vasnprintf-posix: New file.
62121         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62122         printf-frexpl.h.
62123         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62124         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62125         REPLACE_VASNPRINTF is defined.
62126         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62127         gl_FUNC_VASNPRINTF.
62128         (gl_FUNC_VASNPRINTF): Invoke it.
62129         * m4/vasnprintf-posix.m4: New file.
62130         * m4/printf.m4: New file.
62131
62132 2007-03-04  Bruno Haible  <bruno@clisp.org>
62133
62134         Compile progreloc.c only if --enable-relocatable is specified.
62135         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62136         if --enable-relocatable was specified.
62137         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62138         lib_SOURCES.
62139
62140 2007-03-04  Jim Meyering  <jim@meyering.net>
62141
62142         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62143         Use it consistently, rather than enumerating errno constants.
62144
62145 2007-03-04  Bruno Haible  <bruno@clisp.org>
62146
62147         * modules/xvasprintf-tests: New file.
62148         * tests/test-xvasprintf.c: New file.
62149
62150         * modules/vasprintf-tests: New file.
62151         * tests/test-vasprintf.c: New file.
62152
62153         * modules/vasnprintf-tests: New file.
62154         * tests/test-vasnprintf.c: New file.
62155
62156         * modules/vsnprintf-tests: New file.
62157         * tests/test-vsnprintf.c: New file.
62158
62159         * modules/snprintf-tests: New file.
62160         * tests/test-snprintf.c: New file.
62161
62162 2007-03-04  Bruno Haible  <bruno@clisp.org>
62163
62164         Compile relocatable.c only if --enable-relocatable is specified.
62165         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62166         gl_RELOCATABLE_LIBRARY.
62167         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62168         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62169         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62170         gl_RELOCATABLE_LIBRARY.
62171         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62172         (Makefile.am): Remove lib_SOURCES.
62173         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62174         gl_RELOCATABLE_LIBRARY.
62175         (Makefile.am): Remove lib_SOURCES.
62176         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62177         always.
62178         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62179         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62180
62181 2007-03-04  Bruno Haible  <bruno@clisp.org>
62182
62183         * modules/argmatch-tests: New file.
62184         * tests/test-argmatch.c: New file.
62185
62186         * tests/test-allocsa.c (main): Halve the number of loop runs.
62187
62188         * modules/alloca-opt-tests: New file.
62189         * tests/test-alloca-opt.c: New file.
62190
62191 2007-03-04  Jim Meyering  <jim@meyering.net>
62192
62193         Work around difference between Linux ACLs and Solaris 10 ZFS.
62194         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62195         for EINVAL.
62196
62197 2007-03-03  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/relocatable-prog (Depends-on): Add back progreloc's
62200         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62201
62202 2007-03-03  Bruno Haible  <bruno@clisp.org>
62203
62204         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62205         * modules/relocatable-lib: New file.
62206
62207 2007-03-03  Bruno Haible  <bruno@clisp.org>
62208
62209         * modules/relocatable-prog: Renamed from modules/relocatable.
62210         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62211
62212 2007-03-03  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62215         m4/relocatable-lib.m4.
62216         (Depends-on): Remove 'relocatable'.
62217         (configure.ac): Add gl_RELOCATABLE_NOP.
62218
62219 2007-03-03  Bruno Haible  <bruno@clisp.org>
62220
62221         * modules/relocatable-prog-wrapper: New file.
62222         * modules/relocatable (Depends-on): Add it. Remove all other
62223         dependencies except progname.
62224         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62225
62226         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62227         (gl_FUNC_STRERROR): Nop.
62228         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62229
62230         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62231         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62232
62233         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62234         (gl_FUNC_READLINK): Update.
62235
62236         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62237
62238 2007-03-03  Bruno Haible  <bruno@clisp.org>
62239
62240         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62241         * modules/xreadlink (Depends-on): Add unistd.
62242         * modules/xreadlink-with-size (Depends-on): Likewise.
62243
62244 2007-03-03  Bruno Haible  <bruno@clisp.org>
62245
62246         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62247         extracted from gt_FUNC_SETENV.
62248         (gt_FUNC_SETENV): Remove macro.
62249         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62250         remove gt_FUNC_SETENV.
62251
62252 2007-03-03  Bruno Haible  <bruno@clisp.org>
62253
62254         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62255         ENABLE_RELOCATABLE here.
62256         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62257
62258 2007-03-03  Bruno Haible  <bruno@clisp.org>
62259
62260         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62261         * tests/test-rbtreehash_list.c: Include progname.h.
62262         (main): Call set_program_name.
62263
62264         * modules/rbtree-oset-tests (Depends-on): Add progname.
62265         * tests/test-rbtree_oset.c: Include progname.h.
62266         (main): Call set_program_name.
62267
62268         * modules/rbtree-list-tests (Depends-on): Add progname.
62269         * tests/test-rbtree_list.c: Include progname.h.
62270         (main): Call set_program_name.
62271
62272         * modules/linked-list-tests (Depends-on): Add progname.
62273         * tests/test-linked_list.c: Include progname.h.
62274         (main): Call set_program_name.
62275
62276 2007-03-03  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62279         All uses of __restrict changed to _Restrict_.
62280         * lib/glob_.h (__restrict): Remove macro.
62281
62282 2007-03-02  Bruno Haible  <bruno@clisp.org>
62283
62284         * modules/gettext (configure.ac): Require gettext infrastructure
62285         from version 0.16.1.
62286
62287 2007-03-02  Bruno Haible  <bruno@clisp.org>
62288
62289         * modules/linkedhash-list-tests (Depends-on): Add progname.
62290         * tests/test-linkedhash_list.c: Include progname.h.
62291         (main): Call set_program_name.
62292
62293         * modules/carray-list-tests (Depends-on): Add progname.
62294         * tests/test-carray_list.c: Include progname.h.
62295         (main): Call set_program_name.
62296
62297         * modules/avltreehash-list-tests (Depends-on): Add progname.
62298         * tests/test-avltreehash_list.c: Include progname.h.
62299         (main): Call set_program_name.
62300
62301         * modules/avltree-oset-tests (Depends-on): Add progname.
62302         * tests/test-avltree_oset.c: Include progname.h.
62303         (main): Call set_program_name.
62304
62305         * modules/avltree-list-tests (Depends-on): Add progname.
62306         * tests/test-avltree_list.c: Include progname.h.
62307         (main): Call set_program_name.
62308
62309         * modules/array-oset-tests (Depends-on): Add progname.
62310         * tests/test-array_oset.c: Include progname.h.
62311         (main): Call set_program_name.
62312
62313         * modules/array-list-tests (Depends-on): Add progname.
62314         * tests/test-array_list.c: Include progname.h.
62315         (main): Call set_program_name.
62316
62317         * modules/argp-tests (Depends-on): Add progname.
62318         * tests/test-argp.c: Include argp.h first. Include progname.h.
62319         (main): Call set_program_name.
62320
62321 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         * doc/gnulib-tool.texi (Initial import): Reword description of
62324         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62325         limited effect even if defined after the first system include.
62326
62327 2007-03-01  Bruno Haible  <bruno@clisp.org>
62328
62329         * build-aux/config.libpath: Update to libtool-1.5.22.
62330         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62331
62332 2007-03-01  Bruno Haible  <bruno@clisp.org>
62333
62334         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62335         foo_CFLAGS.
62336         Reported by Ralf Wildenhues.
62337
62338 2007-03-01  Bruno Haible  <bruno@clisp.org>
62339
62340         * build-aux/install-reloc: Remove object files left over by some
62341         compilers.
62342         Reported by Ralf Wildenhues.
62343
62344 2007-03-01  Bruno Haible  <bruno@clisp.org>
62345
62346         * build-aux/install-reloc: Break long lines.
62347
62348 2007-03-01  Bruno Haible  <bruno@clisp.org>
62349
62350         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62351         Reported by Ralf Wildenhues.
62352
62353 2007-03-01  Bruno Haible  <bruno@clisp.org>
62354
62355         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62356         include ordering constraints.
62357
62358 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62359
62360         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62361         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62362         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62363         as another example.
62364         * lib/time_.h: Fix misspelling.
62365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62366         Require gl_HEADER_TIME_H_DEFAULTS.
62367         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62368         * m4/time_r.m4 (gl_TIME_R): Likewise.
62369         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62370
62371 2007-03-01  Bruno Haible  <bruno@clisp.org>
62372
62373         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62374         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62375
62376 2007-03-01  Jim Meyering  <jim@meyering.net>
62377
62378         * modules/xreadlink (Maintainer): Add my name.
62379         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62380
62381 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62382             Bruno Haible  <bruno@clisp.org>
62383
62384         * build-aux/install-reloc: Compile also c-ctype.c.
62385         * build-aux/relocatable.sh.in: New file.
62386         * doc/relocatable.texi: New file.
62387         * doc/relocatable-maint.texi: New file.
62388         * doc/gnulib.texi: Include relocatable-maint.texi.
62389         * lib/progreloc.c: Include unistd.h unconditionally.
62390         * lib/relocwrapper.c: Include unistd.h unconditionally.
62391         Include c-ctype.h.
62392         (add_dotbin): Use c_tolower.
62393         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62394         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62395         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62396         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62397         to m4/relocatable-lib.m4.
62398         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62399         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62400         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62401         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62402         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62403         * modules/relocatable: New file.
62404         * modules/relocatable-lib: New file.
62405         * modules/relocatable-script: New file.
62406
62407 2007-02-28  Bruno Haible  <bruno@clisp.org>
62408
62409         Import --enable-relocatable infrastructure.
62410         * build-aux/config.libpath: New file, from GNU gettext.
62411         * build-aux/install-reloc: New file, from GNU gettext.
62412         * build-aux/reloc-ldflags: New file, from GNU gettext.
62413         * lib/relocatable.h: New file, from GNU gettext.
62414         * lib/relocatable.c: New file, from GNU gettext.
62415         * lib/relocwrapper.c: New file, from GNU gettext.
62416         * m4/relocatable.m4: New file, from GNU gettext.
62417
62418 2007-02-28  Bruno Haible  <bruno@clisp.org>
62419
62420         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62421
62422         * modules/xreadlink: New file, from GNU gettext with modifications.
62423         * lib/xreadlink.c: New file, from GNU gettext.
62424         * lib/xreadlink.h: Add comments.
62425         (xreadlink): New declaration.
62426
62427         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62428         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62429         lib/xreadlink-with-size.c.
62430         (configure.ac): Remove gl_XREADLINK invocation.
62431         (Makefile.am): Augment lib_SOURCES.
62432         * m4/xreadlink.m4: Remove file.
62433         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62434         (xreadlink_with_size): Renamed from xreadink.
62435         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62436         * modules/canonicalize (Depends-on): Replace xreadlink with
62437         xreadlink-with-size.
62438         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62439
62440 2007-02-25  Jim Meyering  <jim@meyering.net>
62441
62442         * build-aux/announce-gen: When complaining about excess arguments,
62443         list them.
62444
62445 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * README: Document signed integer overflow situation more
62448         accurately.
62449
62450 2007-02-25  Bruno Haible  <bruno@clisp.org>
62451
62452         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62453         'a' or 'A' conversion.
62454
62455 2007-02-25  Bruno Haible  <bruno@clisp.org>
62456
62457         * modules/filename: Renamed from modules/pathname.
62458         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62459         lib/concatpath.c with lib/concat-filename.c.
62460         (Makefile.am): Update.
62461         (Include): Replace pathname.h with filename.h.
62462         * lib/filename.h: Renamed from lib/pathname.h.
62463         (concatenated_filename): Renamed from concatenated_pathname.
62464         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62465         (concatenated_filename): Renamed from concatenated_pathname.
62466         * lib/findprog.c: Include filename.h instead of pathname.h.
62467         (find_in_path): Update.
62468         * lib/javacomp.c: Include filename.h instead of pathname.h.
62469         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62470         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62471         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62472         is_oldgcj_14_13_usable, is_javac_usable): Update.
62473         * lib/javaexec.c: Include filename.h instead of pathname.h.
62474         (execute_java_class): Update.
62475         * modules/findprog: Update.
62476         * modules/javacomp: Update.
62477         * modules/javaexec: Update.
62478         * MODULES.html.sh (File system functions): Add 'filename', remove
62479         'pathname'.
62480
62481 2007-02-25  Bruno Haible  <bruno@clisp.org>
62482
62483         * modules/printf-frexpl-tests: New file.
62484         * tests/test-printf-frexpl.c: New file.
62485
62486         * modules/printf-frexpl: New file.
62487         * lib/printf-frexpl.h: New file.
62488         * lib/printf-frexpl.c: New file.
62489         * m4/printf-frexpl.m4: New file.
62490
62491 2007-02-25  Bruno Haible  <bruno@clisp.org>
62492
62493         * modules/printf-frexp-tests: New file.
62494         * tests/test-printf-frexp.c: New file.
62495
62496         * modules/printf-frexp: New file.
62497         * lib/printf-frexp.h: New file.
62498         * lib/printf-frexp.c: New file.
62499         * m4/printf-frexp.m4: New file.
62500
62501 2007-02-25  Bruno Haible  <bruno@clisp.org>
62502
62503         Assume automake >= 1.10 for the tests.
62504         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62505         * modules/arctwo-tests: Likewise.
62506         * modules/argp-tests: Likewise.
62507         * modules/avltree-list-tests: Likewise.
62508         * modules/avltree-oset-tests: Likewise.
62509         * modules/avltreehash-list-tests: Likewise.
62510         * modules/carray-list-tests: Likewise.
62511         * modules/crc-tests: Likewise.
62512         * modules/des-tests: Likewise.
62513         * modules/gc-arcfour-tests: Likewise.
62514         * modules/gc-arctwo-tests: Likewise.
62515         * modules/gc-des-tests: Likewise.
62516         * modules/gc-hmac-md5-tests: Likewise.
62517         * modules/gc-hmac-sha1-tests: Likewise.
62518         * modules/gc-md2-tests: Likewise.
62519         * modules/gc-md4-tests: Likewise.
62520         * modules/gc-md5-tests: Likewise.
62521         * modules/gc-pbkdf2-sha1-tests: Likewise.
62522         * modules/gc-rijndael-tests: Likewise.
62523         * modules/gc-sha1-tests: Likewise.
62524         * modules/gc-tests: Likewise.
62525         * modules/getaddrinfo-tests: Likewise.
62526         * modules/hmac-md5-tests: Likewise.
62527         * modules/hmac-sha1-tests: Likewise.
62528         * modules/linked-list-tests: Likewise.
62529         * modules/linkedhash-list-tests: Likewise.
62530         * modules/lock-tests: Likewise.
62531         * modules/md2-tests: Likewise.
62532         * modules/md4-tests: Likewise.
62533         * modules/md5-tests: Likewise.
62534         * modules/rbtree-list-tests: Likewise.
62535         * modules/rbtree-oset-tests: Likewise.
62536         * modules/rbtreehash-list-tests: Likewise.
62537         * modules/read-file-tests: Likewise.
62538         * modules/rijndael-tests: Likewise.
62539         * modules/stdint-tests: Likewise.
62540         * modules/tls-tests: Likewise.
62541
62542 2007-02-24  Bruno Haible  <bruno@clisp.org>
62543
62544         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62545         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62546         function; instead check whether isnan with a double argument links.
62547         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62548         function; instead check whether isnan with a 'long double' argument
62549         links.
62550         Reported by Eric Blake <ebb9@byu.net>.
62551
62552 2007-02-24  Bruno Haible  <bruno@clisp.org>
62553
62554         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62555         defined.
62556         * lib/isnanl.c: Remove all code. Just include isnan.c.
62557         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62558
62559 2007-02-25  Jim Meyering  <jim@meyering.net>
62560
62561         Avoid conflicting types for 'unsetenv' on FreeBSD.
62562         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62563         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62564         in stdlib.h.
62565
62566 2007-02-24  Bruno Haible  <bruno@clisp.org>
62567
62568         * modules/isnanl-nolibm-tests: New file.
62569         * tests/test-isnanl.c: New file.
62570
62571         * modules/isnanl-nolibm: New file.
62572         * lib/isnanl.h: New file.
62573         * lib/isnanl.c: New file.
62574         * m4/isnanl.m4: New file.
62575
62576 2007-02-24  Bruno Haible  <bruno@clisp.org>
62577
62578         * modules/isnan-nolibm-tests: New file.
62579         * tests/test-isnan.c: New file.
62580
62581         * modules/isnan-nolibm: New file.
62582         * lib/isnan.h: New file.
62583         * lib/isnan.c: New file.
62584         * m4/isnan.m4: New file.
62585
62586 2007-02-24  Bruno Haible  <bruno@clisp.org>
62587
62588         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62589         assume that an exponent fits in 20 bits.
62590
62591 2007-02-24  Jim Meyering  <jim@meyering.net>
62592
62593         * m4/regex.m4: Update the description of the configure-time option,
62594         --without-included-regex, to state accurately what the defaults are,
62595         and perhaps to give people an idea why using this option is risky.
62596
62597 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62598
62599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62600         loops on small arguments.  This attempts to avoid the problem
62601         Bruno Haible reported for AIX 4.3.2 in
62602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62603
62604 2007-02-23  Bruno Haible  <bruno@clisp.org>
62605
62606         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62607         Needed for help2man.
62608
62609 2007-02-23  Karl Berry  <karl@gnu.org>
62610
62611         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62612         exists, foo.h should be cvs-ignored, not committed.
62613
62614 2007-02-23  Eric Blake  <ebb9@byu.net>
62615
62616         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62617         * lib/stat-time.h (includes): Likewise.
62618         * lib/utimecmp.c (includes): Likewise.
62619         * lib/utimens.h (includes): Likewise.
62620         * lib/getdate.y (includes): Also include "timespec.h" for use
62621         internal to the module.
62622         * modules/utimens (Depends-on): Revert yesterday's patch.
62623         * modules/nanosleep (Depends-on): Add missing dependency.
62624
62625 2007-02-22  Bruno Haible  <bruno@clisp.org>
62626
62627         * lib/glob.c: Don't include getlogin_r.h.
62628
62629 2007-02-22  Jim Meyering  <jim@meyering.net>
62630
62631         * modules/utimens (Depends-on): Add timespec, required for
62632         utimens.h's inclusion of timespec.h.
62633
62634 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62635
62636         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62637         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62638         Schwab in
62639         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62640         I'll try to think of a better way to fix the Solaris problem.
62641
62642         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62643         like glibc; on Solaris 10, it fails with errno == EINVAL.
62644         POSIX says the behavior is unspecified if the first argument is NULL,
62645         so play it safe and never pass NULL to the system getcwd.
62646
62647 2007-02-21  Jim Meyering  <jim@meyering.net>
62648
62649         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62650         of gettimeofday.  It would conflict with the one now always
62651         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62652         an IRIX 6.5 build failure.
62653
62654 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62655
62656         Minor fixups to port to Solaris 10 with Sun C 5.8.
62657         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62658         * modules/getcwd (Depends-on): Add dirfd.
62659         * lib/putenv.c (putenv): #undef it.
62660         (rpl_putenv): New decl.
62661         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62662
62663 2007-02-20  Bruno Haible  <bruno@clisp.org>
62664
62665         * modules/stdio-tests: New file.
62666         * tests/test-stdio.c: New file.
62667
62668         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62669         (Depends-on): Add stdio.
62670         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62671         (Include): Use <stdio.h> instead of vsnprintf.h.
62672         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62673         HAVE_DECL_VSNPRINTF.
62674         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62675
62676         * modules/snprintf (Files): Remove lib/snprintf.h.
62677         (Depends-on): Add stdio.
62678         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62679         (Include): Use <stdio.h> instead of snprintf.h.
62680         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62681         HAVE_DECL_SNPRINTF.
62682         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62683         * lib/getaddrinfo.c: Likewise.
62684
62685         * modules/stdio: New file.
62686         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62687         * lib/snprintf.h: Remove file.
62688         * lib/vsnprintf.h: Remove file.
62689         * lib/.cppi-disable: Remove snprintf.h.
62690         * m4/stdio_h.m4: New file.
62691         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62692
62693 2007-02-20  Jim Meyering  <jim@meyering.net>
62694
62695         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62696         used by e.g., mingw.  From Bruno Haible.
62697
62698 2007-02-19  Bruno Haible  <bruno@clisp.org>
62699
62700         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62701         warnings.
62702         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62703
62704 2007-02-19  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62707         from mingw users.
62708
62709 2007-02-19  Bruno Haible  <bruno@clisp.org>
62710
62711         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62712         warnings.
62713         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62714
62715 2007-02-19  Jim Meyering  <jim@meyering.net>
62716
62717         Don't use FD after a successful "fdopendir (fd)".
62718         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62719         Reset it by calling dirfd on the just-obtained DIR*.
62720
62721         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62722         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62723
62724 2007-02-18  Bruno Haible  <bruno@clisp.org>
62725
62726         * lib/readlink.c: Include <unistd.h>.
62727         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62728         HAVE_READLINK.
62729         * modules/readlink (Depends-on): Add unistd.
62730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62731         (Include): Add <unistd.h>.
62732
62733         * lib/getlogin_r.h: Remove file.
62734         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62735         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62736         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62737         HAVE_DECL_GETLOGIN_R.
62738         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62740         (Include): Use <unistd.h> instead of getlogin_r.h.
62741
62742         * lib/getcwd.h: Remove file.
62743         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62744         * lib/xgetcwd.c: Likewise.
62745         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62746         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62747         * modules/getcwd (Files): Remove lib/getcwd.h.
62748         (Depends-on): Add unistd.
62749         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62750         (Include): Use <unistd.h> instad of getcwd.h.
62751
62752         * lib/ftruncate.c: Include <unistd.h> first.
62753         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62754         Set HAVE_FTRUNCATE.
62755         * modules/ftruncate (Depends-on): Add unistd.
62756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62757
62758         * lib/fchdir.c: Include <unistd.h> first.
62759         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62761         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62762         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62763         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62764
62765         * lib/dup2.c: Include <unistd.h> first.
62766         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62767         HAVE_DUP2.
62768         * modules/dup2 (Depends-on): Add unistd.
62769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62770
62771         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62772         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62773         REPLACE_CHOWN. Don't define chown as a macro here.
62774         * modules/chown (Depends-on): Add unistd.
62775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62776
62777         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62778         Add definition for GL_LINK_WARNING.
62779         (chown, dup2): New declarations.
62780         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62781         link warning.
62782         (ftruncate): New declaration.
62783         (getcwd): New declaration, taken from old getcwd.h.
62784         (getlogin_r): New declaration, taken from old getlogin_r.h.
62785         (readlink): New declaration.
62786         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62787         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62788         (gl_PREREQ_UNISTD): Remove macro.
62789         (gl_UNISTD_MODULE_INDICATOR): New macro.
62790         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62791         many new variables. Don't set UNISTD_H.
62792         * modules/unistd (Description): Change.
62793         (Depends-on): Add link-warning.
62794         (configure.ac): Update.
62795         (Makefile.am): Create unistd.h always. Substitute many new variables
62796         into it.
62797
62798 2007-02-18  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62801         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62802         HAVE_GETSUBOPT.
62803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62804         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62805         * lib/getsubopt.h: Remove file.
62806         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62807         (Depends-on): Add stdlib.
62808         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62809         (Includes): Use <stdlib.h> instead of getsubopt.h.
62810         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62811         Set HAVE_GETSUBOPT.
62812         * lib/getsubopt.c: Don't include getsubopt.h.
62813
62814 2007-02-18  Bruno Haible  <bruno@clisp.org>
62815
62816         * modules/fchdir (Depends-on): Add dup2.
62817
62818 2007-02-18  Bruno Haible  <bruno@clisp.org>
62819
62820         * lib/stdlib_.h: Handle glibc's special invocation convention
62821         specially.
62822
62823 2007-02-18  Bruno Haible  <bruno@clisp.org>
62824
62825         * modules/stdlib-tests: New file.
62826         * tests/test-stdlib.c: New file.
62827
62828         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62829         (Depends-on): Add stdlib.
62830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62831         (Includes): Use <stdlib.h> instead of mkstemp.h.
62832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62833         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62834         * lib/mkstemp.c: Don't include mkstemp.h.
62835         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62836         * lib/stdlib--.h: Don't include mkstemp.h.
62837
62838         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62839         (Depends-on): Add stdlib.
62840         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62841         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62842         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62843         HAVE_MKDTEMP.
62844         * lib/mkdtemp.c: Don't include mkdtemp.h.
62845         * lib/clean-temp.c: Don't include mkdtemp.h.
62846
62847         * modules/exit (Files): Remove lib/exit.h.
62848         (Depends-on): Add stdlib.
62849         (Makefile.am): Remove lib_SOURCES.
62850         (Include): Use <stdlib.h> instead of exit.h.
62851         * lib/argmatch.c: Don't include exit.h.
62852         * lib/execute.c: Likewise.
62853         * lib/pagealign_alloc.c: Likewise.
62854         * lib/pipe.c: Likewise.
62855         * lib/wait-process.c: Likewise.
62856         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62857         * lib/exitfail.c: Likewise.
62858         * lib/savewd.c: Likewise.
62859         * lib/xsetenv.c: Likewise.
62860
62861         * modules/stdlib: New file.
62862         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62863         and extra comments about mkstemp().
62864         * lib/exit.h: Remove file.
62865         * lib/mkdtemp.h: Remove file.
62866         * lib/mkstemp.h: Remove file.
62867         * m4/stdlib_h.m4: New file.
62868         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62869
62870 2007-02-18  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/math-tests: New file.
62873         * tests/test-math.c: New file.
62874
62875         * modules/math: New file.
62876         * modules/mathl (Files): Remove lib/mathl.h.
62877         (Depends-on): Add math.
62878         (Makefile.am): Don't mention mathl.h.
62879         (Include): Use <math.h> instead of mathl.h.
62880         * lib/math_.h: New file.
62881         * lib/mathl.h: Remove file.
62882         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62883         mathl.h.
62884         * lib/asinl.c: Likewise.
62885         * lib/atanl.c: Likewise.
62886         * lib/ceill.c: Likewise.
62887         * lib/cosl.c: Likewise.
62888         * lib/expl.c: Likewise.
62889         * lib/floorl.c: Likewise.
62890         * lib/frexpl.c: Likewise.
62891         * lib/ldexpl.c: Likewise.
62892         * lib/logl.c: Likewise.
62893         * lib/sincosl.c: Likewise.
62894         * lib/sinl.c: Likewise.
62895         * lib/sqrtl.c: Likewise.
62896         * lib/tanl.c: Likewise.
62897         * lib/trigl.c: Likewise.
62898         * m4/math_h.m4: New file.
62899         * MODULES.html.sh (Mathematics): Add math.
62900
62901 2007-02-17  Bruno Haible  <bruno@clisp.org>
62902
62903         * modules/wctype-tests: New file.
62904         * tests/test-wctype.c: New file.
62905
62906         * modules/wchar-tests: New file.
62907         * tests/test-wchar.c: New file.
62908
62909         * modules/unistd-tests: New file.
62910         * tests/test-unistd.c: New file.
62911
62912         * modules/time-tests: New file.
62913         * tests/test-time.c: New file.
62914
62915         * modules/sysexits-tests: New file.
62916         * tests/test-sysexits.c: New file.
62917
62918         * modules/sys_time-tests: New file.
62919         * tests/test-sys_time.c: New file.
62920
62921         * modules/sys_stat-tests: New file.
62922         * tests/test-sys_stat.c: New file.
62923
62924         * modules/sys_socket-tests: New file.
62925         * tests/test-sys_socket.c: New file.
62926
62927         * modules/sys_select-tests: New file.
62928         * tests/test-sys_select.c: New file.
62929
62930         * modules/string-tests: New file.
62931         * tests/test-string.c: New file.
62932
62933         * modules/stdbool-tests: New file.
62934         * tests/test-stdbool.c: New file.
62935
62936         * modules/netinet_in-tests: New file.
62937         * tests/test-netinet_in.c: New file.
62938
62939         * modules/inttypes-tests: New file.
62940         * tests/test-inttypes.c: New file.
62941
62942         * modules/fcntl-tests: New file.
62943         * tests/test-fcntl.c: New file.
62944
62945         * modules/byteswap-tests: New file.
62946         * tests/test-byteswap.c: New file.
62947
62948         * modules/arpa_inet-tests: New file.
62949         * tests/test-arpa_inet.c: New file.
62950
62951 2007-02-17  Bruno Haible  <bruno@clisp.org>
62952
62953         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62954         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62955         if the corresponding module is not enabled. Emit link warnings if
62956         the function is used nevertheless.
62957         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62958         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62959         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62960         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62961         * modules/inttypes (Depends-on): Add link-warning.
62962         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62963         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62964         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62965         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62966         * modules/imaxdiv (configure.ac): Likewise.
62967         * modules/strtoimax (configure.ac): Likewise.
62968         * modules/strtoumax (configure.ac): Likewise.
62969
62970 2007-02-17  Bruno Haible  <bruno@clisp.org>
62971
62972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62973         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62974         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62975         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62976
62977 2007-02-17  Bruno Haible  <bruno@clisp.org>
62978
62979         * modules/link-warning: New file.
62980         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62981         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62982         * modules/string (Depends-on): Add link-warning.
62983         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62984         string.h.
62985         * MODULES.html.sh (Support for building libraries and executables): Add
62986         link-warning.
62987
62988 2007-02-17  Bruno Haible  <bruno@clisp.org>
62989
62990         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62991         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62992         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62993         long lines.
62994
62995 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62996             Bruno Haible  <bruno@clisp.org>
62997
62998         * modules/tmpfile: New file.
62999         * lib/tmpfile.c: New file.
63000         * m4/tmpfile.m4: New file.
63001         * MODULES.html.sh (func_all_modules): New section "Input/output".
63002
63003 2007-02-15  Bruno Haible  <bruno@clisp.org>
63004
63005         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63006         (supports_delete_on_close): New function.
63007         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63008
63009 2007-02-14  Bruno Haible  <bruno@clisp.org>
63010
63011         * modules/mbspcasecmp-tests: New file.
63012         * tests/test-mbspcasecmp.sh: New file.
63013         * tests/test-mbspcasecmp.c: New file.
63014
63015         New module mbspcasecmp.
63016         * modules/mbspcasecmp: New file.
63017         * lib/mbspcasecmp.c: New file.
63018         * lib/string_.h (strncasecmp): Change warning message.
63019         (mbspcasecmp): New declaration.
63020         * m4/mbspcasecmp.m4: New file.
63021         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63022         GNULIB_MBSPCASECMP.
63023         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63024         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63025
63026 2007-02-14  Bruno Haible  <bruno@clisp.org>
63027
63028         * modules/mbsncasecmp-tests: New file.
63029         * tests/test-mbsncasecmp.sh: New file.
63030         * tests/test-mbsncasecmp.c: New file.
63031
63032         New module mbsncasecmp.
63033         * modules/mbsncasecmp: New file.
63034         * lib/mbsncasecmp.c: New file.
63035         * lib/string_.h (mbsncasecmp): New declaration.
63036         * m4/mbsncasecmp.m4: New file.
63037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63038         GNULIB_MBSNCASECMP.
63039         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63040         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63041
63042 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63043
63044         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63045         Verify that it doesn't overlap with our flags.
63046         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63047         do not have the desired effect in multibyte locales; instead, use
63048         mbscasecmp.
63049         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63050         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63051         we don't require GNU fnmatch ourselves (if our users require it, they
63052         should do so explicitly).
63053
63054         Fix regex code so it doesn't rely on strcasecmp.
63055         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63056         Otherwise, include gnulib's langinfo.h.
63057         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63058         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63059         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63060         * modules/regex (FILES): Remove m4/codeset.m4.
63061         (Depends-on): Add localcharset.  Remove strcase.
63062
63063 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63064
63065         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63066         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63067
63068 2007-02-13  Bruno Haible  <bruno@clisp.org>
63069
63070         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63071         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63072
63073 2007-02-12  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63076         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63077         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63078         time warning rather than a link error.
63079
63080 2007-02-12  Bruno Haible  <bruno@clisp.org>
63081
63082         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63083         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63084         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63085
63086 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63087
63088         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63089         args, not 2.
63090
63091 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63092
63093         New module 'time', so that apps can include <time.h> as per
63094         POSIX and GNU instead of separate include files like time_r.h
63095         and timegm.h.  This implementation tries out a simpler approach
63096         for replacing decls in standard include files (as compared to
63097         the string module), somewhat as an experiment.
63098
63099         * config/srclist.txt: Comment out mktime.c for now.
63100         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63101         since it doesn't apply any more.  Use generic wording instead.
63102         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63103         'time'.
63104         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63105         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63106         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63107         Don't include <sys/types.h>; no longer needed since we assume C89.
63108         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63109         * lib/strftime.c: Likewise.
63110         * lib/time_r.c: Likewise.
63111         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63112         * lib/nanosleep.c: Include <time.h> first, to check interface.
63113         * lib/strptime.c: Likewise.
63114         * lib/time_r.c: Likewise.
63115         * lib/timegm.c: Likewise.
63116         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63117         needed.
63118         * lib/timegm.c: Don't include timegm.h; no longer needed.
63119         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63120         time.h now handles any problems in that area.
63121         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63122         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63123         that time.h defines struct timespec.
63124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63125         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63126         handles that.
63127         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63128         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63129         needed.  Set REPLACE_LOCALTIME.
63130         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63131         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63132         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63133         nanosleep; time_h.m4 now does that.  Don't require
63134         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63135         module handles this now.
63136         * modules/getdate (Depends-on): Remove timespec.  Add time.
63137         * modules/nanosleep (Depends-on): Likewise.
63138         * modules/stat-time (Depends-on): Likewise.
63139         * modules/nanosleep (Include): Include time.h, not timespec.h.
63140         * modules/strptime (Files): Remove lib/strptime.h.
63141         (Depends-on): Add extensions, time.
63142         (Include): Include time.h, not strptime.h.
63143         * modules/time_r (Files): Remove lib/time_r.h.
63144         (Depends-on): Add time.
63145         (Include): Include time.h, not time_r.h.
63146         * modules/timegm: Likewise.
63147         * modules/timespec (Description): Now does timespec-related decls
63148         of our own, instead of struct timespec itself.
63149         (Depends-on): Add time; remove extensions.
63150         (Maintainer): Add self.
63151         * modules/utimecmp (Depends-on): Add time; remove timespec.
63152         * modules/utimens (Depends-on): Likewise.
63153         * modules/xnanosleep (Depends-on): Likewise.
63154
63155 2007-02-11  Bruno Haible  <bruno@clisp.org>
63156
63157         * lib/c-strstr.c: Include allocsa.h.
63158         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63159         * lib/c-strcasestr.c: Include allocsa.h.
63160         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63161         * lib/strcasestr.c: Include allocsa.h.
63162         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63163         * lib/mbsstr.c: Include allocsa.h.
63164         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63165         allocsa/freesa instead of malloc/free.
63166         * lib/mbscasestr.c: Include allocsa.h.
63167         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63168         allocsa/freesa instead of malloc/free.
63169         * modules/c-strstr (Depends-on): Add allocsa.
63170         * modules/c-strcasestr (Depends-on): Likewise.
63171         * modules/strcasestr (Depends-on): Likewise.
63172         * modules/mbsstr (Depends-on): Likewise.
63173         * modules/mbscasestr (Depends-on): Likewise.
63174
63175 2007-02-11  Bruno Haible  <bruno@clisp.org>
63176
63177         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63178
63179         * modules/mbsspn-tests: New file.
63180         * tests/test-mbsspn.sh: New file.
63181         * tests/test-mbsspn.c: New file.
63182
63183 2007-02-11  Bruno Haible  <bruno@clisp.org>
63184
63185         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63186
63187         * modules/mbspbrk-tests: New file.
63188         * tests/test-mbspbrk.sh: New file.
63189         * tests/test-mbspbrk.c: New file.
63190
63191 2007-02-11  Bruno Haible  <bruno@clisp.org>
63192
63193         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63194         unneeded cast.
63195
63196         * modules/mbscspn-tests: New file.
63197         * tests/test-mbscspn.sh: New file.
63198         * tests/test-mbscspn.c: New file.
63199
63200 2007-02-11  Bruno Haible  <bruno@clisp.org>
63201
63202         * modules/mbscasecmp-tests: New file.
63203         * tests/test-mbscasecmp.sh: New file.
63204         * tests/test-mbscasecmp.c: New file.
63205
63206 2007-02-11  Bruno Haible  <bruno@clisp.org>
63207
63208         Ensure O(n) worst-case complexity of mbscasestr.
63209         * lib/mbscasestr.c: Include stdbool.h.
63210         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63211         functions.
63212         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63213         the bookkeeping indicates that it's worth it.
63214         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63215
63216         * modules/mbscasestr-tests: New file.
63217         * tests/test-mbscasestr1.c: New file.
63218         * tests/test-mbscasestr2.sh: New file.
63219         * tests/test-mbscasestr2.c: New file.
63220         * tests/test-mbscasestr3.sh: New file.
63221         * tests/test-mbscasestr3.c: New file.
63222         * tests/test-mbscasestr4.sh: New file.
63223         * tests/test-mbscasestr4.c: New file.
63224         * m4/locale-tr.m4: New file.
63225
63226 2007-02-11  Bruno Haible  <bruno@clisp.org>
63227
63228         Ensure O(n) worst-case complexity of mbsstr.
63229         * lib/mbsstr.c: Include stdbool.h.
63230         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63231         functions.
63232         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63233         bookkeeping indicates that it's worth it.
63234         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63235
63236         * modules/mbsstr-tests: New file.
63237         * tests/test-mbsstr1.c: New file.
63238         * tests/test-mbsstr2.sh: New file.
63239         * tests/test-mbsstr2.c: New file.
63240         * tests/test-mbsstr3.sh: New file.
63241         * tests/test-mbsstr3.c: New file.
63242         * m4/locale-fr.m4: New file.
63243
63244 2007-02-11  Bruno Haible  <bruno@clisp.org>
63245
63246         * lib/mbsrchr.c (mbsrchr): Fix bug.
63247
63248         * modules/mbsrchr-tests: New file.
63249         * tests/test-mbsrchr.sh: New file.
63250         * tests/test-mbsrchr.c: New file.
63251
63252 2007-02-11  Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/mbschr.c (mbschr): Fix bug.
63255
63256         * modules/mbschr-tests: New file.
63257         * tests/test-mbschr.sh: New file.
63258         * tests/test-mbschr.c: New file.
63259         * m4/locale-zh.m4: New file.
63260
63261 2007-02-11  Bruno Haible  <bruno@clisp.org>
63262
63263         Support for copying multibyte string iterators.
63264         * lib/mbiter.h: Include <string.h>.
63265         (mbiter_multi_copy): New function.
63266         (mbi_copy): New macro.
63267         * lib/mbuiter.h: Include <string.h>.
63268         (mbuiter_multi_copy): New function.
63269         (mbui_copy): New macro.
63270
63271 2007-02-11  Bruno Haible  <bruno@clisp.org>
63272
63273         New module mbslen.
63274         * modules/mbslen: New file.
63275         * lib/mbslen.c: New file.
63276         * lib/string_.h (mbslen): New declaration.
63277         * m4/mbslen.m4: New file.
63278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63279         GNULIB_MBSLEN.
63280         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63281         * MODULES.html.sh (Internationalization functions): Add mbslen.
63282
63283 2007-02-11  Bruno Haible  <bruno@clisp.org>
63284
63285         Ensure O(n) worst-case complexity of strcasestr substitute.
63286         * lib/strcasestr.c: Include stdbool.h.
63287         (knuth_morris_pratt): New function.
63288         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63289         bookkeeping indicates that it's worth it.
63290         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63291
63292         * modules/strcasestr-tests: New file.
63293         * tests/test-strcasestr.c: New file.
63294
63295 2007-02-11  Bruno Haible  <bruno@clisp.org>
63296
63297         Ensure O(n) worst-case complexity of c_strcasestr.
63298         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63299         (knuth_morris_pratt): New function.
63300         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63301         the bookkeeping indicates that it's worth it.
63302         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63303
63304         * modules/c-strcasestr-tests: New file.
63305         * tests/test-c-strcasestr.c: New file.
63306
63307 2007-02-11  Bruno Haible  <bruno@clisp.org>
63308
63309         Ensure O(n) worst-case complexity of c_strstr.
63310         * lib/c-strstr.c: Include stdbool.h, string.h.
63311         (knuth_morris_pratt): New function.
63312         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63313         bookkeeping indicates that it's worth it.
63314         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63315
63316         * lib/c-strstr.c: Complete rewrite for maintainability.
63317
63318         * modules/c-strstr-tests: New file.
63319         * tests/test-c-strstr.c: New file.
63320
63321 2007-02-11  Bruno Haible  <bruno@clisp.org>
63322
63323         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63324         5.2.1 and earlier, whereby \055 was treated just like the range
63325         delimiter '-'.
63326         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63327
63328 2007-02-08  Bruno Haible  <bruno@clisp.org>
63329
63330         * modules/regex (Depends-on): Add stdbool.
63331         Reported by Dalibor Topic <robilad@kaffe.org>.
63332
63333 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63334
63335         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63336         Prefer returning from main to exiting from it.
63337         Remove unnecessary parens after sizeof.
63338
63339 2007-02-05  Bruno Haible  <bruno@clisp.org>
63340
63341         New module mbssep.
63342         * modules/mbssep: New file.
63343         * lib/mbssep.c: New file.
63344         * lib/string_.h (strsep): Add a conditional link warning.
63345         (mbssep): New declaration.
63346         * m4/mbssep.m4: New file.
63347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63348         GNULIB_MBSSEP.
63349         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63350         * MODULES.html.sh (Internationalization functions): Add mbssep.
63351
63352 2007-02-05  Bruno Haible  <bruno@clisp.org>
63353
63354         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63355         Optimize search in case of 1 delimiter.
63356
63357 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63358
63359         * lib/acl.h: Include sys/types.h before sys/acl.h.
63360
63361 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63362
63363         Merge upstream fix for glibc bugzilla #3957:
63364
63365         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63366
63367         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63368         bit for RE_HAT_LISTS_NOT_NEWLINE.
63369         (build_charclass_op): Remove bogus comment.
63370
63371 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63372
63373         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63374
63375 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63378         * lib/memmem.c [!defined _LIBC]: Include config.h.
63379
63380 2007-02-04  Bruno Haible  <bruno@clisp.org>
63381
63382         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63383         warning message.
63384
63385 2007-02-04  Bruno Haible  <bruno@clisp.org>
63386
63387         New module mbstok_r.
63388         * modules/mbstok_r: New file.
63389         * lib/mbstok_r.c: New file.
63390         * lib/string_.h (strtok_r): Change argument names to match the
63391         comments. Add a conditional link warning.
63392         (mbstok_r): New declaration.
63393         * m4/mbstok_r.m4: New file.
63394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63395         GNULIB_MBSTOK_R.
63396         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63397         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63398
63399 2007-02-04  Bruno Haible  <bruno@clisp.org>
63400
63401         New module mbsspn.
63402         * modules/mbsspn: New file.
63403         * lib/mbsspn.c: New file.
63404         * lib/string_.h (strspn): Add a conditional link warning.
63405         (mbsspn): New declaration.
63406         * m4/mbsspn.m4: New file.
63407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63408         GNULIB_MBSSPN.
63409         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63410         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63411
63412 2007-02-04  Bruno Haible  <bruno@clisp.org>
63413
63414         New module mbspbrk.
63415         * modules/mbspbrk: New file.
63416         * lib/mbspbrk.c: New file.
63417         * lib/string_.h (strpbrk): Add a conditional link warning.
63418         (mbspbrk): New declaration.
63419         * m4/mbspbrk.m4: New file.
63420         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63421         GNULIB_MBSPBRK.
63422         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63423         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63424
63425 2007-02-04  Bruno Haible  <bruno@clisp.org>
63426
63427         New module mbscspn.
63428         * modules/mbscspn: New file.
63429         * lib/mbscspn.c: New file.
63430         * lib/string_.h (strcspn): Add a conditional link warning.
63431         (mbscspn): New declaration.
63432         * m4/mbscspn.m4: New file.
63433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63434         GNULIB_MBSCSPN.
63435         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63436         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63437
63438 2007-02-04  Bruno Haible  <bruno@clisp.org>
63439
63440         New module mbscasestr, reduced goal of strcasestr.
63441         * modules/mbscasestr: New file.
63442         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63443         (mbscasestr): Renamed from strcasestr.
63444         * lib/strcasestr.c: Don't include mbuiter.h.
63445         (strcasestr): Remove support for multibyte locales.
63446         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63447         Change the conditional link warning.
63448         (mbscasestr): New declaration.
63449         * m4/mbscasestr.m4: New file.
63450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63451         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63452         REPLACE_STRCASESTR.
63453         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63455         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63456         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63457         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63458         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63459         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63460         (Depends-on): Remove mbuiter.
63461         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63462
63463 2007-02-04  Bruno Haible  <bruno@clisp.org>
63464
63465         Simplify handling of strncasecmp.
63466         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63467         the conditional link warning.
63468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63469         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63470         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63471         * modules/strcase (configure.ac): Don't invoke
63472         gl_STRING_MODULE_INDICATOR.
63473         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63474
63475 2007-02-04  Bruno Haible  <bruno@clisp.org>
63476
63477         New module mbscasecmp, reduced goal of strcasecmp.
63478         * modules/mbscasecmp: New file.
63479         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63480         (mbscasecmp): Renamed from strcasecmp.
63481         * lib/strcasecmp.c: Don't include mbuiter.h.
63482         (strcasecmp): Remove support for multibyte locales.
63483         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63484         Change the conditional link warning.
63485         (mbscasecmp): New declaration.
63486         * m4/mbscasecmp.m4: New file.
63487         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63488         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63489         REPLACE_STRCASECMP.
63490         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63492         GNULIB_MBSCASECMP.
63493         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63494         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63495         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63496         (Depends-on): Remove mbuiter.
63497         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63498
63499 2007-02-04  Bruno Haible  <bruno@clisp.org>
63500
63501         New module mbsstr. Remove module strstr.
63502         * modules/mbsstr: New file.
63503         * modules/strstr: Remove file.
63504         * lib/mbsstr.c: Renamed from lib/strstr.c.
63505         (mbsstr): Renamed from strstr.
63506         * lib/string_.h (strstr): Remove declaration. Change the conditional
63507         link warning.
63508         (mbsstr): New declaration.
63509         * m4/mbsstr.m4: New file.
63510         * m4/strstr.m4: Remove file.
63511         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63512         REPLACE_STRSTR.
63513         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63514         Don't initialize GNULIB_STRSTR.
63515         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63516         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63517         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63518         (Support for systems lacking ANSI C 89): Remove strstr.
63519
63520 2007-02-04  Bruno Haible  <bruno@clisp.org>
63521
63522         New module mbsrchr.
63523         * modules/mbsrchr: New file.
63524         * lib/mbsrchr.c: New file.
63525         * lib/string_.h (strrchr): Add a conditional link warning.
63526         (mbsrchr): New declaration.
63527         * m4/mbsrchr.m4: New file.
63528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63529         GNULIB_MBSRCHR.
63530         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63531         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63532
63533 2007-02-04  Bruno Haible  <bruno@clisp.org>
63534
63535         New module mbschr.
63536         * modules/mbschr: New file.
63537         * lib/mbschr.c: New file.
63538         * lib/string_.h (strchr): Add a conditional link warning.
63539         (mbschr): New declaration.
63540         * m4/mbschr.m4: New file.
63541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63542         GNULIB_MBSCHR.
63543         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63544         * MODULES.html.sh (Internationalization functions): Add mbschr.
63545
63546 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63547
63548         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63549
63550         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63551
63552 2007-02-04  Bruno Haible  <bruno@clisp.org>
63553
63554         New module description section 'configure.ac-early'.
63555         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63556         (func_get_autoconf_early_snippet): New function.
63557         (func_import, func_create_testdir): Use it. Remove special cases for
63558         modules 'extensions' and 'lock'.
63559         * modules/extensions (configure.ac-early): Require
63560         gl_USE_SYSTEM_EXTENSIONS.
63561         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63562
63563 2007-02-04  Bruno Haible  <bruno@clisp.org>
63564
63565         Make use of gcj-4.3's -fsource and -ftarget option.
63566         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63567         and if so try the options -fsource and -ftarget.
63568         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63569         source_version, ftarget_option, target_version arguments.
63570         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63571         (is_envjavac_oldgcj_14_14_usable): Renamed from
63572         is_envjavac_gcj_14_14_usable.
63573         (is_envjavac_oldgcj_14_13_usable): Renamed from
63574         is_envjavac_gcj_14_13_usable.
63575         (is_gcj_present): Update.
63576         (is_gcj_43, is_gcj43_usable): New functions.
63577         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63578         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63579         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63580         try the options -fsource and -ftarget.
63581
63582 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63583
63584         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63585         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63586         larger value.
63587
63588 2007-02-03  Jim Meyering  <jim@meyering.net>
63589
63590         Give tools a better chance to allocate space for very large buffers.
63591         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63592
63593         Make pwd and readlink work also when run with an unreadable parent dir
63594         on systems with openat support.
63595         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63596         provided getcwd function, even when we have openat support.
63597         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63598
63599 2007-02-02  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63602         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63603         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63604         portability problems if one of these functions is only used on specific
63605         platforms.
63606         Reported by Paul Eggert.
63607
63608 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63611         is causing more trouble than it's curing.
63612         * lib/regex_internal.h (__mempcpy): Remove.
63613         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63614         (and make the code a tad smaller to boot).
63615         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63616
63617 2007-02-02  Jim Meyering  <jim@meyering.net>
63618
63619         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63620         section, not in the Makefile.am: one.
63621
63622 2007-02-02  Eric Blake  <ebb9@byu.net>
63623
63624         * lib/strchrnul.c: Always include config.h first.
63625
63626         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63627         gnulib strstr is not necessary here.
63628
63629 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63630
63631         * m4/socklen.m4: Fix typo.
63632
63633 2007-02-02  Eric Blake  <ebb9@byu.net>
63634
63635         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63636         * modules/netinet_in (Makefile.am): Likewise.
63637
63638 2007-02-01  Bruno Haible  <bruno@clisp.org>
63639
63640         * lib/string_.h (GL_LINK_WARNING): New macro.
63641         (strcasecmp, strstr, strcasestr): If provided by the system,
63642         conditionally define as a macro that leads to a warning instead of to
63643         an error.
63644         (strncasecmp): Conditionally define as a macro that leads to a warning.
63645
63646 2007-02-01  Karl Berry  <karl@gnu.org>
63647
63648         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63649
63650 2007-02-01  Bruno Haible  <bruno@clisp.org>
63651
63652         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63653         renamings.
63654
63655 2007-02-01  Eric Blake  <ebb9@byu.net>
63656
63657         * modules/regex (Depends-on): Revert dependence on mempcpy.
63658         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63659         module's definition of mempcpy.
63660         Reported by Paul Eggert.
63661
63662 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63665         the symbol XYZ before redefining it.  This fixes a problem with
63666         programs that don't use XYZ, when compiled on systems that define
63667         XYZ to something else.
63668
63669 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63672         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63673         writeable to group or other and (2) is intended to have a special
63674         mode bit that is set or cleared.  In such a case, the directory
63675         should be neither group- nor other-writeable until the special
63676         mode bits are right.
63677
63678 2007-01-31  Eric Blake  <ebb9@byu.net>
63679
63680         * modules/mountlist (Depends-on): Add strstr.
63681
63682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63683         bug.
63684         * modules/string (Makefile.am): Remove redundant replacement.
63685         * modules/regex (Depends-on): Add mempcpy.
63686
63687 2007-01-31  Bruno Haible  <bruno@clisp.org>
63688
63689         New module description field 'Link'.
63690         * gnulib-tool (func_usage): Document --extract-link-directive.
63691         (sed_extract_prog): Recognize 'Link' directive.
63692         (func_get_link_directive): New function.
63693         (func_import): Show summary of link directives.
63694         Handle --extract-link-directive option.
63695         * modules/acl (Link): New section.
63696         * modules/clock-time (Link): New section.
63697         * modules/euidaccess (Link): New section.
63698         * modules/gettext (Link): New section.
63699         * modules/iconv (Link): New section.
63700         * modules/lock (Link): New section.
63701         * modules/nanosleep (Link): New section.
63702         * modules/readline (Link): New section.
63703
63704 2007-01-27  Bruno Haible  <bruno@clisp.org>
63705
63706         Enforce the use of gnulib modules for unportable <string.h> functions.
63707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63708         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63709         (gl_HEADER_STRING_H_BODY): Require it.
63710         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63711         the symbol XYZ to one that gives a link error.
63712         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63713         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63714         * modules/mempcpy (configure.ac): Likewise.
63715         * modules/memrchr (configure.ac): Likewise.
63716         * modules/stpcpy (configure.ac): Likewise.
63717         * modules/stpncpy (configure.ac): Likewise.
63718         * modules/strcase (configure.ac): Likewise.
63719         * modules/strcasestr (configure.ac): Likewise.
63720         * modules/strchrnul (configure.ac): Likewise.
63721         * modules/strdup (configure.ac): Likewise.
63722         * modules/strndup (configure.ac): Likewise.
63723         * modules/strnlen (configure.ac): Likewise.
63724         * modules/strpbrk (configure.ac): Likewise.
63725         * modules/strsep (configure.ac): Likewise.
63726         * modules/strstr (configure.ac): Likewise.
63727         * modules/strtok_r (configure.ac): Likewise.
63728
63729 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63730
63731         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63732
63733 2007-01-30  Jim Meyering  <jim@meyering.net>
63734
63735         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63736
63737 2007-01-29  Bruno Haible  <bruno@clisp.org>
63738
63739         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63740         * lib/execute.c: Likewise.
63741         * lib/pipe.c: Likewise.
63742         * lib/printf-args.h: Likewise.
63743         * lib/printf-args.c: Likewise.
63744         * lib/printf-parse.c: Likewise.
63745         * lib/vasnprintf.c: Likewise.
63746
63747 2007-01-29  Eric Blake  <ebb9@byu.net>
63748
63749         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63750         declaration.
63751
63752 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63753
63754         * lib/strptime.h (strptime): Use 'restrict' for args where
63755         POSIX requires this.
63756         * lib/strptime.c (strptime): Likewise.
63757         Change license notice from LGPL to GPL, since gnulib-tool will
63758         change this as needed.
63759         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63760         defined.
63761         Include "strptime.h" first, to check interface.
63762         Do not #undef _LIBC and _NL_CURRENT.
63763         Do not include <stdlib.h>; no longer needed.
63764         Include "time_r.h" and declare ptime_locale_status
63765         only if _LIBC is not defined.
63766         (__P): Remove unused macro.
63767         (match_string): Bring back glibc version, but use it only if _LIBC
63768         is defined.
63769         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63770         Remove unnecessary assertion and abort() call.
63771         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63772         * m4/strptime.m4: Fix serial number comment.
63773         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63774         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63775         (Depends-on): Add time_r.
63776
63777 2007-01-29  Bruno Haible  <bruno@clisp.org>
63778
63779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63780         strptime.
63781         * modules/strptime (Depends-on): Add stdbool.
63782         * lib/strptime.h: Include <time.h> always. Add comments.
63783
63784 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63785
63786         * modules/strptime: New file.
63787         * lib/strptime.h: New file.
63788         * lib/strptime.c: New file.
63789         * m4/strptime.m4: New file.
63790
63791 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63792
63793         * MODULES.html.sh: New module mpsort.
63794         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63795
63796         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63797         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63799         All uses changed.
63800         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63801         All uses changed.
63802         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63803         to _Restrict_.
63804         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63805         the parameter matches the prototype.
63806
63807 2007-01-28  Jim Meyering  <jim@meyering.net>
63808
63809         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63810         sys/time.h here, reverting that part of the previous patch:
63811         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63812
63813 2007-01-28  Bruno Haible  <bruno@clisp.org>
63814
63815         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63816         value of $(SYS_TIME_H).
63817         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63818         remove it conditionally, too. [added by Jim Meyering]
63819         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63821         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63822         GETTIMEOFDAY_REPLACEMENT to 1.
63823
63824 2007-01-28  Bruno Haible  <bruno@clisp.org>
63825
63826         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63827         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63828         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63829         Set UNISTD_H instead of UNISTD_H2.
63830         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63831
63832 2007-01-28  Bruno Haible  <bruno@clisp.org>
63833
63834         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63835         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63836
63837 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63838
63839         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63840         (func_create_testdir): Ensure C locale for `grep' and `tr'
63841         character ranges.
63842         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63843         ACLOCAL_AMFLAGS parsing state machine.
63844
63845 2007-01-27  Bruno Haible  <bruno@clisp.org>
63846
63847         * modules/unistr/base: Update.
63848
63849 2007-01-27  Bruno Haible  <bruno@clisp.org>
63850
63851         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63852         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63853         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63854         modules/unistr/u32-mbtouc.
63855         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63856         * lib/unistr.h: Update.
63857         * lib/linebreak.c: Update.
63858         * modules/unistr/u32-mbtouc: Renamed from
63859         modules/unistr/u32-mbtouc-safe.
63860         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63861         * lib/unistr.h: Update.
63862         * lib/unistr/u32-to-u8.c: Update.
63863         * lib/unistr/u32-to-u16.c: Update.
63864
63865 2007-01-27  Bruno Haible  <bruno@clisp.org>
63866
63867         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63868         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63869         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63870         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63871         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63872         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63873         modules/unistr/u16-mbtouc.
63874         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63875         * lib/unistr.h: Update.
63876         * lib/linebreak.c: Update.
63877         * modules/linebreak: Update.
63878         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63879         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63880         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63881         * modules/unistr/u16-mbtouc: Renamed from
63882         modules/unistr/u16-mbtouc-safe.
63883         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63884         * lib/unistr.h: Update.
63885         * lib/unistr/u16-to-u8.c: Update.
63886         * modules/unistr/u16-to-u8: Update.
63887         * lib/unistr/u16-to-u32.c: Update.
63888         * modules/unistr/u16-to-u32: Update.
63889
63890 2007-01-27  Bruno Haible  <bruno@clisp.org>
63891
63892         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63893         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63894         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63895         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63896         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63897         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63898         modules/unistr/u8-mbtouc.
63899         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63900         * lib/unistr.h: Update.
63901         * lib/striconveh.c: Update.
63902         * modules/striconveh: Update.
63903         * lib/linebreak.c: Update.
63904         * modules/linebreak: Update.
63905         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63906         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63907         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63908         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63909         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63910         * lib/unistr.h: Update.
63911         * lib/striconveh.c: Update.
63912         * modules/striconveh: Update.
63913         * lib/unistr/u8-to-u16.c: Update.
63914         * modules/unistr/u8-to-u16: Update.
63915         * lib/unistr/u8-to-u32.c: Update.
63916         * modules/unistr/u8-to-u32: Update.
63917
63918 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63919
63920         Sync from Libtool.
63921         * lib/argz.c: Do not include strings.h nor memory.h, include
63922         string.h unconditionally.  Patch by Simon Josefsson.
63923
63924 2007-01-27  Bruno Haible  <bruno@clisp.org>
63925
63926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63927         from gl_HEADER_STRING_H_BODY.
63928         (gl_HEADER_STRING_H_BODY): Require it.
63929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63930         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63931         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63932         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63933         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63934         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63936         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63937         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63938         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63939         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63940         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63941         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63942         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63943         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63944
63945 2007-01-27  Bruno Haible  <bruno@clisp.org>
63946
63947         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63948         check_PROGRAMS into noinst_PROGRAMS.
63949         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63950         check_PROGRAMS in this case.
63951         (func_import): Set for_test to false.
63952         (func_create_testdir): Set for_test to true.
63953
63954 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63955             Bruno Haible  <bruno@clisp.org>
63956
63957         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63958         (Depends-on): Add string.
63959         (Includes): Use <string.h> instead of strcasestr.h.
63960         * modules/string (Makefile.am): Also substitute the value of
63961         REPLACE_STRCASESTR.
63962         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63963         assume strcasestr is declared in <string.h> not <strings.h>. Also
63964         set REPLACE_STRCASESTR.
63965         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63966         REPLACE_STRCASESTR.
63967         * lib/strcasestr.h: Remove file.
63968         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63969         * lib/string_.h (strcasestr): New declaration.
63970
63971 2007-01-27  Bruno Haible  <bruno@clisp.org>
63972
63973         * lib/string_.h: Use 'extern'.
63974
63975 2007-01-27  Jim Meyering  <jim@meyering.net>
63976
63977         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63978         of set-but-not-used local, "q".
63979
63980         * lib/mempcpy.c: Include <config.h> before <string.h>.
63981         This fixes a compilation error on HP-UX, due to the system's
63982         "restrict"-using mempcpy prototype.
63983
63984 2007-01-26  Bruno Haible  <bruno@clisp.org>
63985
63986         Small optimization.
63987         * lib/javacomp.c: Include c-strstr.h.
63988          (is_envjavac_gcj): Use c_strstr instead of strstr.
63989         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63990
63991 2007-01-26  Bruno Haible  <bruno@clisp.org>
63992
63993         * MODULES.html.sh (Unicode string functions): Add the new modules.
63994
63995         * modules/uniconv/u32-strconv-to-locale: New file.
63996         * lib/uniconv/u32-strconv-to-locale.c: New file.
63997
63998         * modules/uniconv/u16-strconv-to-locale: New file.
63999         * lib/uniconv/u16-strconv-to-locale.c: New file.
64000
64001         * modules/uniconv/u8-strconv-to-locale: New file.
64002         * lib/uniconv/u8-strconv-to-locale.c: New file.
64003
64004         * modules/uniconv/u32-strconv-from-locale: New file.
64005         * lib/uniconv/u32-strconv-from-locale.c: New file.
64006
64007         * modules/uniconv/u16-strconv-from-locale: New file.
64008         * lib/uniconv/u16-strconv-from-locale.c: New file.
64009
64010         * modules/uniconv/u8-strconv-from-locale: New file.
64011         * lib/uniconv/u8-strconv-from-locale.c: New file.
64012
64013         * modules/uniconv/u32-strconv-to-enc: New file.
64014         * lib/uniconv/u32-strconv-to-enc.c: New file.
64015         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64016         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64017
64018         * modules/uniconv/u16-strconv-to-enc: New file.
64019         * lib/uniconv/u16-strconv-to-enc.c: New file.
64020         * lib/uniconv/u-strconv-to-enc.h: New file.
64021         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64022         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64023
64024         * modules/uniconv/u8-strconv-to-enc: New file.
64025         * lib/uniconv/u8-strconv-to-enc.c: New file.
64026         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64027         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64028
64029         * modules/uniconv/u32-strconv-from-enc: New file.
64030         * lib/uniconv/u32-strconv-from-enc.c: New file.
64031         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64032         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64033
64034         * modules/uniconv/u16-strconv-from-enc: New file.
64035         * lib/uniconv/u16-strconv-from-enc.c: New file.
64036         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64037         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64038
64039         * modules/uniconv/u8-strconv-from-enc: New file.
64040         * lib/uniconv/u8-strconv-from-enc.c: New file.
64041         * lib/uniconv/u-strconv-from-enc.h: New file.
64042         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64043         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64044
64045         * modules/uniconv/u32-conv-from-enc: New file.
64046         * lib/uniconv/u32-conv-from-enc.c: New file.
64047         * modules/uniconv/u32-conv-from-enc-tests: New file.
64048         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64049
64050         * modules/uniconv/u16-conv-from-enc: New file.
64051         * lib/uniconv/u16-conv-from-enc.c: New file.
64052         * lib/uniconv/u-conv-from-enc.h: New file.
64053         * modules/uniconv/u16-conv-from-enc-tests: New file.
64054         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64055
64056         * modules/uniconv/u8-conv-from-enc: New file.
64057         * lib/uniconv/u8-conv-from-enc.c: New file.
64058         * modules/uniconv/u8-conv-from-enc-tests: New file.
64059         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64060
64061         * modules/uniconv/base: New file.
64062         * lib/uniconv.h: New file.
64063
64064 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * doc/gnulib-tool.texi (Initial import): Update to match current
64067         behavior with strdup module.
64068         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64069         * lib/memmem.h: Remove; all uses removed.  This is now done
64070         by <string.h>.
64071         * lib/mempcpy.h: Likewise.
64072         * lib/memrchr.h: Likewise.
64073         * lib/stpcpy.h: Likewise.
64074         * lib/stpncpy.h: Likewise.
64075         * lib/strcase.h: Likewise.
64076         * lib/strchrnul.h: Likewise.
64077         * lib/strdup.h: Likewise.
64078         * lib/strndup.h: Likewise.
64079         * lib/strnlen.h: Likewise.
64080         * lib/strpbrk.h: Likewise.
64081         * lib/strsep.h: Likewise.
64082         * lib/strstr.h: Likewise.
64083         * lib/strtok_r.h: Likewise.
64084         * lib/string_.h: New file.
64085         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64086         Rely on <string.h> instead.
64087         * lib/canon-host.c: Likewise.
64088         * lib/chdir-long.c: Likewise.
64089         * lib/concatpath.c: Likewise.
64090         * lib/exclude.c: Likewise.
64091         * lib/fchdir.c: Likewise.
64092         * lib/getaddrinfo.c: Likewise.
64093         * lib/getcwd.c: Likewise.
64094         * lib/getsubopt.c: Likewise.
64095         * lib/glob.c: Likewise.
64096         * lib/hard-locale.c: Likewise.
64097         * lib/iconvme.c: Likewise.
64098         * lib/javacomp.c: Likewise.
64099         * lib/mempcpy.c: Likewise.
64100         * lib/memrchr.c: Likewise.
64101         * lib/regex_internal.h: Likewise.
64102         * lib/stpncpy.c: Likewise.
64103         * lib/strcasecmp.c: Likewise.
64104         * lib/strchrnul.c: Likewise.
64105         * lib/strdup.c: Likewise.
64106         * lib/striconv.c: Likewise.
64107         * lib/striconveh.c: Likewise.
64108         * lib/striconveha.c: Likewise.
64109         * lib/strncasecmp.c: Likewise.
64110         * lib/strndup.c: Likewise.
64111         * lib/strnlen.c: Likewise.
64112         * lib/strsep.c: Likewise.
64113         * lib/strstr.c: Likewise.
64114         * lib/strtok_r.c: Likewise.
64115         * lib/userspec.c: Likewise.
64116         * lib/w32spawn.h: Likewise.
64117         * lib/xstrndup.c: Likewise.
64118         * lib/mountlist.c (strstr): Remove decl.
64119         * m4/string_h.m4: New file.
64120         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64121         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64122         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64123         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64124         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64125         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64126         Set REPLACE_STRCASECMP if necessary.
64127         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64128         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64129         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64130         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64131         HAVE_DECL_STRDUP if necessary.
64132         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64133         since gl_FUNC_STRNDUP does that now.
64134         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64135         Check for decl here...
64136         (gl_PREREQ_STRNLEN): ... not here.
64137         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64138         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64139         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64140         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64141         necessary.
64142         * modules/string: New file.
64143         * modules/memmem (Files): Remove special-purpose include file.
64144         (Depends-on): Add string.
64145         (Include): Include <string.h>, not the removed file.
64146         * modules/mempcpy: Likewise.
64147         * modules/memrchr: Likewise.
64148         * modules/stpcpy: Likewise.
64149         * modules/stpncpy: Likewise.
64150         * modules/strcase: Likewise.
64151         * modules/strchrnul: Likewise.
64152         * modules/strdup: Likewise.
64153         * modules/strndup: Likewise.
64154         * modules/strnlen: Likewise.
64155         * modules/strpbrk: Likewise.
64156         * modules/strsep: Likewise.
64157         * modules/strstr: Likewise.
64158         * modules/strtok_r: Likewise.
64159         * tests/test-dirname.c: Don't include "strdup.h", since
64160         <string.h> now suffices.
64161         * tests/test-memmem.c: Don't include "memmem.h", since
64162         <string.h> now suffices.
64163
64164 2007-01-25  Bruno Haible  <bruno@clisp.org>
64165
64166         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64167         *resultp is 0.
64168
64169         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64170         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64171         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64172         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64173
64174         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64175         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64176         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64177         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64178         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64179         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64180
64181 2007-01-24  Bruno Haible  <bruno@clisp.org>
64182
64183         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64184         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64185         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64186         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64187         gl_FUNC_FTS_CORE.
64188         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64189         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64190         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64191         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64192         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64193         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64194         gl_FUNC_FCHOWNAT.
64195         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64196         gl_FUNC_STRFTIME.
64197         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64198         Reported by Ralf Wildenhues.
64199
64200 2007-01-24  Bruno Haible  <bruno@clisp.org>
64201
64202         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64203         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64204         gl_GETADDRINFO.
64205         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64206         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64207         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64208
64209 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64212         Don't use 'exit'; just return from 'main'.
64213         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64214
64215         * lib/fnmatch_.h: Readjust white space and comments to match
64216         glibc, to avoid spurious diffs.
64217
64218 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64221         2004-12-01 change by Jakub Jelinek, since this code won't compile
64222         if !LIBC.  Problem reported by Bob Proulx.
64223
64224 2007-01-23  Bruno Haible  <bruno@clisp.org>
64225
64226         * lib/striconveh.c: Include c-strcaseeq.h.
64227         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64228         * modules/striconveh (Depends-on): Add c-strcaseeq.
64229
64230 2007-01-23  Bruno Haible  <bruno@clisp.org>
64231
64232         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64233
64234         * modules/c-strcaseeq: New file.
64235         * lib/c-strcaseeq.h: New file.
64236
64237         * modules/streq: New file.
64238         * lib/streq.h: New file.
64239
64240 2007-01-23  Bruno Haible  <bruno@clisp.org>
64241
64242         * modules/striconveha-tests: New file.
64243         * tests/test-striconveha.c: New file.
64244
64245         * lib/striconveha.h: Include <stdbool.h>.
64246         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64247         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64248         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64249         (mem_iconveha): New function.
64250         (str_iconveha_notranslit): Renamed from str_iconveha.
64251         (str_iconveha): New function.
64252         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64253         c-strcase.
64254
64255 2007-01-23  Bruno Haible  <bruno@clisp.org>
64256
64257         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64258         encodings without forgiving before trying any encoding with handler.
64259         (str_iconveha): Try all encodings without forgiving before trying any
64260         encoding with handler.
64261
64262 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         Import the following changes from libc.
64265
64266         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64267
64268         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64269
64270         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64271
64272         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64273         normal_bracket label.
64274
64275         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64276
64277         [BZ #361]
64278         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64279         to normal_bracket after fetching the next character.
64280
64281 2007-01-22  Bruno Haible  <bruno@clisp.org>
64282
64283         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64284         argument.
64285         * lib/striconveh.c (iconv_carefully_1): New function.
64286         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64287         argument.
64288         (str_cd_iconveh): Update.
64289         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64290         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64291         * tests/test-striconveh.c (MAGIC): New macro.
64292         (new_offsets): New function.
64293         (main): Test call with and without offsets.
64294
64295 2007-01-22  Bruno Haible  <bruno@clisp.org>
64296
64297         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64298         * modules/sys_select (Makefile.am): Likewise.
64299         * modules/sys_socket (Makefile.am): Likewise.
64300         * modules/sys_time (Makefile.am): Likewise.
64301
64302 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64303
64304         * modules/gettimeofday (License): Change from GPL to LGPL, since
64305         gettimeofday is a library function.
64306
64307 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64308
64309         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64310
64311 2007-01-21  Bruno Haible  <bruno@clisp.org>
64312
64313         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64314
64315 2007-01-21  Bruno Haible  <bruno@clisp.org>
64316
64317         * modules/striconveha: New file.
64318         * lib/striconveha.h: New file.
64319         * lib/striconveha.c: New file.
64320         * MODULES.html.sh (Internationalization functions): Add striconveha.
64321         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64322         string.
64323         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64324
64325 2007-01-21  Bruno Haible  <bruno@clisp.org>
64326
64327         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64328         * lib/striconveh.c (str_iconveh): Likewise.
64329
64330 2007-01-21  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/striconveh.h (mem_iconveh): New declaration.
64333         * lib/striconveh.c (mem_iconveh): New function.
64334         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64335
64336 2007-01-21  Bruno Haible  <bruno@clisp.org>
64337
64338         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64339
64340         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64341         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64342         original result buffer.
64343         (str_cd_iconveh): Update.
64344         * tests/test-striconveh.c (main): Update.
64345
64346         * lib/striconv.h (mem_cd_iconv): Change specification.
64347         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64348         result buffer.
64349         (str_cd_iconv): Update.
64350         * tests/test-striconv.c (main): Update.
64351
64352 2007-01-21  Bruno Haible  <bruno@clisp.org>
64353
64354         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64355
64356 2007-01-20  Jim Meyering  <jim@meyering.net>
64357
64358         * lib/userspec.c (parse_with_separator): If a user or group string
64359         starts with "+", skip the corresponding name-to-ID look-up, since
64360         such a look-up must fail: user and group names may not include "+".
64361
64362 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64363
64364         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64365         since we now assume the sys_time module.
64366         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64367         check for sys/time.h; no longer needed.
64368         * modules/poll (Depends-on): Depend on sys_time.
64369
64370 2007-01-18  Bruno Haible  <bruno@clisp.org>
64371
64372         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64373         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64374
64375         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64376         gettimeofday.
64377
64378         * tests/test-gettimeofday.c: Include <time.h>.
64379         (dummy): Remove variable.
64380
64381         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64382         gl_HEADER_SYS_TIME_H.
64383         (gl_HEADER_SYS_TIME_H): New macro.
64384
64385         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64386         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64388         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64389         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64390         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64391         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64392         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64393         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64394         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64395         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64396
64397         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64398         last change; it caused a compilation error when cross-compiling to
64399         Cygwin.
64400
64401 2007-01-18  Jim Meyering  <jim@meyering.net>
64402
64403         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64404         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64405         than the race-prone "test -d sys || mkdir sys".
64406         (configure.ac): Use AC_PROG_MKDIR_P.
64407         * modules/sys_select: Likewise.
64408         * modules/sys_socket: Likewise.
64409         * modules/sys_time: Likewise.
64410
64411 2007-01-18  Eric Blake  <ebb9@byu.net>
64412
64413         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64414         replace gettimeofday.
64415         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64416         name, to avoid infinite recursion.
64417
64418 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64419
64420         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64421         module sys_time.
64422         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64423         assume timespec.h defines struct timeval.
64424         * lib/settime.c: Likewise.
64425         * lib/utimens.c: Likewise.
64426         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64427         since we now assume the gettimeofday module.
64428         * lib/tempname.c (__gen_tempname): Likewise.
64429         * lib/gettimeofday.h: Remove.
64430         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64431         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64432         Include <time.h>, for 'time()'.
64433         (localtime_buffer_addr): Also use this workaround if
64434         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64435         to simplify the uses.  All uses changed.
64436         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64437         that #undef is inside {}, and 'const' follows type name consistently.
64438         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64439         (gettimeofday): Do not use the maximum possible value for
64440         tv->tv_usec, since that might break usages other than ls.c.
64441         Instead, we'll leave ls.c alone.  This undoes today's patch
64442         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64443         we've never observed the problem but might as well keep the
64444         canary.
64445         * lib/nanosleep.c: Include timespec.h first, for interface check.
64446         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64447         now assume the sys_time module.
64448         * lib/tempname.c: Likewise.
64449         * lib/timespec.h: Likewise.
64450         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64451         needed.
64452         * lib/strftime.c: Likewise.
64453         * lib/timespec.h: Likewise.
64454         * lib/posixtm.c: Include posixtm.h first, for interface check.
64455         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64456         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64457         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64458         * lib/sys_time_.h: New file.
64459         * lib/timespec.h (struct timespec): Use long int, not long.
64460         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64461         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64462         Remove obsolescent call to AC_HEADER_TIME.
64463         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64465         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64466         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64467         Likewise.
64468         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64469         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64470         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64471         into the sys_time module.  Check for gettimeofday just once.
64472         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64473         for gettimeofday signature to just check the signature.  Merely
64474         compile it, since linking doesn't test signature.  Improve test for
64475         whether gettimeofday.o is actually needed.
64476         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64477         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64478         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64479         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64480         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64481         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64482         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64483         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64484         than worrying about sys/time.h.
64485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64486         Don't bother worrying about TIME_WITH_SYS_TIME.
64487         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64488         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64489         * m4/sys_time_h.m4: New file.
64490         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64491         Don't include sys/time.h.  Return from main rather than exiting.
64492         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64493         all uses changed.
64494         * modules/gethrxtime (Depends-on): Add sys_time.
64495         * modules/gettime (Depends-on): Likewise.
64496         * modules/gettimeofday (Depends-on): Likewise.
64497         * modules/nanosleep (Depends-on): Likewise.
64498         * modules/settime (Depends-on): Likewise.
64499         * modules/tempname (Depends-on): Likewise.
64500         * modules/utimens (Depends-on): Likewise.
64501         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64502         (Include): Change back to <sys/time.h>.
64503         (Maintainer): Add self.
64504         * modules/sys_time: New file.
64505         * modules/tempname (Depends-on): Add gettimeofday.
64506         * tests/test-gettimeofday.c: Include <sys/time.h>
64507         rather than gettimeofday.h.
64508
64509 2007-01-17  Bruno Haible  <bruno@clisp.org>
64510
64511         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64512         the license default to GPL.
64513         (func_create_testdir): Don't complain if a module is LGPL and its
64514         tests module depends on GPLed modules.
64515
64516 2007-01-17  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/gettimeofday.c (gettimeofday): Add code for the case
64519         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64520         maximum possible value for tv->tv_usec, rather than the minimum one.
64521
64522 2005-10-08  Martin Lambers  <marlam@marlam.de>
64523 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64524 2007-01-16  Bruno Haible  <bruno@clisp.org>
64525
64526         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64527         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64528         gl_FUNC_GETTIMEOFDAY.
64529         (Include): Add gettimeofday.h.
64530         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64531         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64532         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64533         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64534         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64535         * lib/gettimeofday.h: New file.
64536         * lib/gettimeofday.c: Include <sys/timeb.h>.
64537         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64538         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64539         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64540         fall back on time().
64541
64542         * tests/test-gettimeofday.c: New file.
64543         * modules/gettimeofday-tests: New file.
64544
64545 2007-01-16  Eric Blake  <ebb9@byu.net>
64546
64547         * modules/fnmatch (Depends-on): Depend on wchar.
64548         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64549         * m4/fnmatch.m4: Likewise.
64550         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64551         * m4/mbchar.m4: Likewise.
64552         * modules/mbswidth (Depends-on): Depend on wchar.
64553         * lib/mbswidth.c: Assume <wchar.h>.
64554         * m4/mbswidth.m4: Likewise.
64555         * modules/quotearg (Depends-on): Depend on wchar.
64556         * lib/quotearg.c: Assume <wchar.h>.
64557         * m4/quotearg.m4: Likewise.
64558         * modules/regex (Depends-on): Depend on wchar.
64559         * lib/regex_internal.h: Assume <wchar.h>.
64560         * m4/regex.m4: Likewise.
64561         * modules/stdint (Depends-on): Depend on wchar.
64562         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64563         * m4/stdint.m4: Likewise.
64564         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64565         * modules/strftime (Depends-on): Depend on wchar.
64566         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64567         * modules/strtol (Depends-on): Depend on wchar.
64568         * lib/strtol.c: Assume <wchar.h>.
64569         * modules/wcwidth (Depends-on): Depend on wchar.
64570         * lib/wcwidth.h: Assume <wchar.h>.
64571         * m4/wcwidth.m4: Likewise.
64572
64573 2007-01-16  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/csharpexec-script: New, created from...
64576         * modules/csharpexec: ... this.
64577
64578 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64579
64580         * modules/javaexec-script: New, created from...
64581         * modules/javaexec: ... this.
64582
64583 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64584
64585         * modules/poll (Dependencies): Add sys_select.
64586
64587 2007-01-15  Jim Meyering  <jim@meyering.net>
64588
64589         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64590         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64591         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64592         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64593
64594 2007-01-15  Bruno Haible  <bruno@clisp.org>
64595
64596         * modules/striconveh: New file.
64597         * lib/striconveh.h: New file.
64598         * lib/striconveh.c: New file.
64599         * MODULES.html.sh (Internationalization functions): Add striconveh.
64600
64601         * modules/striconveh-tests: New file.
64602         * tests/test-striconveh.c: New file.
64603
64604 2007-01-15  Bruno Haible  <bruno@clisp.org>
64605
64606         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64607         not from GNU libiconv or GNU libc.
64608
64609 2007-01-15  Bruno Haible  <bruno@clisp.org>
64610
64611         * doc/gnulib-intro.texi (Copyright): Explain the different license
64612         terms for module descriptions, autoconf macros, tests, documentation.
64613
64614 2007-01-14  Bruno Haible  <bruno@clisp.org>
64615
64616         * modules/striconv-tests: New file.
64617         * tests/test-striconv.c: New file.
64618
64619 2007-01-14  Bruno Haible  <bruno@clisp.org>
64620
64621         * modules/iconv-tests: New file.
64622         * tests/test-iconv.c: New file.
64623
64624 2007-01-14  Bruno Haible  <bruno@clisp.org>
64625
64626         * gnulib-tool (func_get_license): For test modules, use the license of
64627         the main module.
64628
64629 2007-01-14  Bruno Haible  <bruno@clisp.org>
64630
64631         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64632         if iconv is found to exist.
64633
64634 2007-01-14  Bruno Haible  <bruno@clisp.org>
64635
64636         * modules/c-ctype-tests: New file.
64637         * tests/test-c-ctype.c: New file.
64638
64639 2007-01-14  Bruno Haible  <bruno@clisp.org>
64640
64641         * modules/binary-io-tests: New file.
64642         * tests/test-binary-io.sh: New file.
64643         * tests/test-binary-io.c: New file.
64644
64645 2007-01-14  Bruno Haible  <bruno@clisp.org>
64646
64647         * modules/array-oset-tests: New file.
64648         * tests/test-array_oset.c: New file.
64649
64650 2007-01-14  Bruno Haible  <bruno@clisp.org>
64651
64652         * modules/array-list-tests: New file.
64653         * tests/test-array_list.c: New file.
64654
64655 2007-01-14  Bruno Haible  <bruno@clisp.org>
64656
64657         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64658         and make.
64659         Reported by Simon Josefsson in
64660         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64661
64662 2007-01-14  Bruno Haible  <bruno@clisp.org>
64663
64664         * modules/allocsa-tests: New file.
64665         * tests/test-allocsa.c: New file.
64666
64667 2007-01-14  Bruno Haible  <bruno@clisp.org>
64668
64669         * modules/fchdir (Depends-on): Add absolute-header.
64670         * modules/unistd (Depends-on): Likewise.
64671
64672 2006-12-30  Bruno Haible  <bruno@clisp.org>
64673
64674         * modules/fchdir: New file.
64675         * modules/unistd (Files): Add lib/unistd_.h.
64676         (Makefile.am): Generate unistd.h from unistd_.h.
64677         * lib/fchdir.c: New file.
64678         * lib/dirent_.h: New file.
64679         * lib/unistd_.h: New file.
64680         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64681         * m4/fchdir.m4: New file.
64682         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64683         (gl_HEADER_UNISTD): Invoke it.
64684         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64685         function.
64686         * lib/backupfile.c (opendir, closedir): Undefine.
64687         * lib/chown.c (open, close): Undefine.
64688         * lib/clean-temp.c (open, close): Undefine.
64689         * lib/copy-file.c (open, close): Undefine.
64690         * lib/execute.c (open, close): Undefine.
64691         * lib/fsusage.c (open, close): Undefine.
64692         * lib/gc-gnulib.c (open, close): Undefine.
64693         * lib/getcwd.c (opendir, closedir): Undefine.
64694         * lib/glob.c (opendir, closedir): Undefine.
64695         * lib/javacomp.c (open, close): Undefine.
64696         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64697         * lib/openat-proc.c (open, close): Undefine.
64698         * lib/pagealign_alloc.c (open, close): Undefine.
64699         * lib/pipe.c (open, close): Undefine.
64700         * lib/progreloc.c (open, close): Undefine.
64701         * lib/savedir.c (opendir, closedir): Undefine.
64702         * lib/utime.c (open, close): Undefine.
64703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64704
64705 2007-01-10  Bruno Haible  <bruno@clisp.org>
64706
64707         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64708
64709 2007-01-12  Eric Blake  <ebb9@byu.net>
64710
64711         Provide a robust <wchar.h>.  Further simplifications are now
64712         possible in other modules, but not included here.
64713         * modules/wchar: New module.
64714         * m4/wchar.m4: New file.
64715         * lib/wchar_.h: Likewise.
64716         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64717         of the new module.
64718         * MODULES.html.sh (Extended multibyte and wide character utilities):
64719         New section.
64720
64721 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64724         to a reasonable default for memory allocation.
64725         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64726         file system that reports garbage st_size values for symlinks.
64727         Problem reported by Liyang Hu.
64728
64729 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64730
64731         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64732         Emacs .#* auto-save files).
64733
64734 2007-01-11  Bruno Haible  <bruno@clisp.org>
64735
64736         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64737         directory.
64738
64739 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         Use @...@ consistently in lib/wctype_.h.
64742         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64743         on it being set to 1 or 0.
64744         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64745         go back to AC_SUBSTing it.
64746         * modules/wctype (Makefile.am): Undo previous change.
64747
64748 2007-01-10  Eric Blake  <ebb9@byu.net>
64749
64750         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64751         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64752         * modules/wctype (Makefile.am): Likewise.
64753         Reported by Chris McGuire.
64754
64755 2007-01-10  Jim Meyering  <jim@meyering.net>
64756
64757         fts.c: a small readability/maintainability improvement
64758         * lib/fts.c (fts_read): Make this code slightly more readable and
64759         maintainable by hoisting the "sp->fts_cur = p" assignments to
64760         immediately follow the statements that set P.  Derived from
64761         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64762
64763 2007-01-10  Eric Blake  <ebb9@byu.net>
64764
64765         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64766         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64768         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64769         Reported by Chris McGuire.
64770
64771 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64772
64773         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64774         in sed script.
64775
64776 2007-01-09  Bruno Haible  <bruno@clisp.org>
64777
64778         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64779         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64780         variables.
64781         (func_module): Use them.
64782
64783 2007-01-09  Bruno Haible  <bruno@clisp.org>
64784
64785         * modules/unistr/base: New file.
64786         * lib/unistr.h: New file.
64787
64788         * modules/unistr/u8-to-u16: New file.
64789         * lib/unistr/u8-to-u16.c: New file.
64790
64791         * modules/unistr/u8-to-u32: New file.
64792         * lib/unistr/u8-to-u32.c: New file.
64793
64794         * modules/unistr/u16-to-u8: New file.
64795         * lib/unistr/u16-to-u8.c: New file.
64796
64797         * modules/unistr/u16-to-u32: New file.
64798         * lib/unistr/u16-to-u32.c: New file.
64799
64800         * modules/unistr/u32-to-u8: New file.
64801         * lib/unistr/u32-to-u8.c: New file.
64802
64803         * modules/unistr/u32-to-u16: New file.
64804         * lib/unistr/u32-to-u16.c: New file.
64805
64806         * modules/unistr/u8-check: New file.
64807         * modules/unistr/u16-check: New file.
64808         * modules/unistr/u32-check: New file.
64809         * lib/unistr/u8-check.c: New file.
64810         * lib/unistr/u16-check.c: New file.
64811         * lib/unistr/u32-check.c: New file.
64812
64813         * modules/unistr/u8-chr: New file.
64814         * modules/unistr/u16-chr: New file.
64815         * modules/unistr/u32-chr: New file.
64816         * lib/unistr/u8-chr.c: New file.
64817         * lib/unistr/u16-chr.c: New file.
64818         * lib/unistr/u32-chr.c: New file.
64819
64820         * modules/unistr/u8-cmp: New file.
64821         * modules/unistr/u16-cmp: New file.
64822         * modules/unistr/u32-cmp: New file.
64823         * lib/unistr/u8-cmp.c: New file.
64824         * lib/unistr/u16-cmp.c: New file.
64825         * lib/unistr/u32-cmp.c: New file.
64826
64827         * modules/unistr/u8-cpy: New file.
64828         * modules/unistr/u16-cpy: New file.
64829         * modules/unistr/u32-cpy: New file.
64830         * lib/unistr/u8-cpy.c: New file.
64831         * lib/unistr/u16-cpy.c: New file.
64832         * lib/unistr/u32-cpy.c: New file.
64833         * lib/unistr/u-cpy.h: New file.
64834
64835         * modules/unistr/u8-cpy-alloc: New file.
64836         * modules/unistr/u16-cpy-alloc: New file.
64837         * modules/unistr/u32-cpy-alloc: New file.
64838         * lib/unistr/u8-cpy-alloc.c: New file.
64839         * lib/unistr/u16-cpy-alloc.c: New file.
64840         * lib/unistr/u32-cpy-alloc.c: New file.
64841         * lib/unistr/u-cpy-alloc.h: New file.
64842
64843         * modules/unistr/u8-endswith: New file.
64844         * modules/unistr/u16-endswith: New file.
64845         * modules/unistr/u32-endswith: New file.
64846         * lib/unistr/u8-endswith.c: New file.
64847         * lib/unistr/u16-endswith.c: New file.
64848         * lib/unistr/u32-endswith.c: New file.
64849         * lib/unistr/u-endswith.h: New file.
64850
64851         * modules/unistr/u8-mblen: New file.
64852         * modules/unistr/u16-mblen: New file.
64853         * modules/unistr/u32-mblen: New file.
64854         * lib/unistr/u8-mblen.c: New file.
64855         * lib/unistr/u16-mblen.c: New file.
64856         * lib/unistr/u32-mblen.c: New file.
64857
64858         * modules/unistr/u8-mbtouc: New file.
64859         * modules/unistr/u16-mbtouc: New file.
64860         * modules/unistr/u32-mbtouc: New file.
64861         * lib/unistr/u8-mbtouc.c: New file.
64862         * lib/unistr/u16-mbtouc.c: New file.
64863         * lib/unistr/u32-mbtouc.c: New file.
64864
64865         * modules/unistr/u8-mbtouc-safe: New file.
64866         * modules/unistr/u16-mbtouc-safe: New file.
64867         * modules/unistr/u32-mbtouc-safe: New file.
64868         * lib/unistr/u8-mbtouc-safe.c: New file.
64869         * lib/unistr/u16-mbtouc-safe.c: New file.
64870         * lib/unistr/u32-mbtouc-safe.c: New file.
64871
64872         * modules/unistr/u8-move: New file.
64873         * modules/unistr/u16-move: New file.
64874         * modules/unistr/u32-move: New file.
64875         * lib/unistr/u8-move.c: New file.
64876         * lib/unistr/u16-move.c: New file.
64877         * lib/unistr/u32-move.c: New file.
64878         * lib/unistr/u-move.h: New file.
64879
64880         * modules/unistr/u8-next: New file.
64881         * modules/unistr/u16-next: New file.
64882         * modules/unistr/u32-next: New file.
64883         * lib/unistr/u8-next.c: New file.
64884         * lib/unistr/u16-next.c: New file.
64885         * lib/unistr/u32-next.c: New file.
64886
64887         * modules/unistr/u8-prev: New file.
64888         * modules/unistr/u16-prev: New file.
64889         * modules/unistr/u32-prev: New file.
64890         * lib/unistr/u8-prev.c: New file.
64891         * lib/unistr/u16-prev.c: New file.
64892         * lib/unistr/u32-prev.c: New file.
64893
64894         * modules/unistr/u8-set: New file.
64895         * modules/unistr/u16-set: New file.
64896         * modules/unistr/u32-set: New file.
64897         * lib/unistr/u8-set.c: New file.
64898         * lib/unistr/u16-set.c: New file.
64899         * lib/unistr/u32-set.c: New file.
64900         * lib/unistr/u-set.h: New file.
64901
64902         * modules/unistr/u8-startswith: New file.
64903         * modules/unistr/u16-startswith: New file.
64904         * modules/unistr/u32-startswith: New file.
64905         * lib/unistr/u8-startswith.c: New file.
64906         * lib/unistr/u16-startswith.c: New file.
64907         * lib/unistr/u32-startswith.c: New file.
64908         * lib/unistr/u-startswith.h: New file.
64909
64910         * modules/unistr/u8-stpcpy: New file.
64911         * modules/unistr/u16-stpcpy: New file.
64912         * modules/unistr/u32-stpcpy: New file.
64913         * lib/unistr/u8-stpcpy.c: New file.
64914         * lib/unistr/u16-stpcpy.c: New file.
64915         * lib/unistr/u32-stpcpy.c: New file.
64916         * lib/unistr/u-stpcpy.h: New file.
64917
64918         * modules/unistr/u8-stpncpy: New file.
64919         * modules/unistr/u16-stpncpy: New file.
64920         * modules/unistr/u32-stpncpy: New file.
64921         * lib/unistr/u8-stpncpy.c: New file.
64922         * lib/unistr/u16-stpncpy.c: New file.
64923         * lib/unistr/u32-stpncpy.c: New file.
64924         * lib/unistr/u-stpncpy.h: New file.
64925
64926         * modules/unistr/u8-strcat: New file.
64927         * modules/unistr/u16-strcat: New file.
64928         * modules/unistr/u32-strcat: New file.
64929         * lib/unistr/u8-strcat.c: New file.
64930         * lib/unistr/u16-strcat.c: New file.
64931         * lib/unistr/u32-strcat.c: New file.
64932         * lib/unistr/u-strcat.h: New file.
64933
64934         * modules/unistr/u8-strchr: New file.
64935         * modules/unistr/u16-strchr: New file.
64936         * modules/unistr/u32-strchr: New file.
64937         * lib/unistr/u8-strchr.c: New file.
64938         * lib/unistr/u16-strchr.c: New file.
64939         * lib/unistr/u32-strchr.c: New file.
64940
64941         * modules/unistr/u8-strcmp: New file.
64942         * modules/unistr/u16-strcmp: New file.
64943         * modules/unistr/u32-strcmp: New file.
64944         * lib/unistr/u8-strcmp.c: New file.
64945         * lib/unistr/u16-strcmp.c: New file.
64946         * lib/unistr/u32-strcmp.c: New file.
64947
64948         * modules/unistr/u8-strcpy: New file.
64949         * modules/unistr/u16-strcpy: New file.
64950         * modules/unistr/u32-strcpy: New file.
64951         * lib/unistr/u8-strcpy.c: New file.
64952         * lib/unistr/u16-strcpy.c: New file.
64953         * lib/unistr/u32-strcpy.c: New file.
64954         * lib/unistr/u-strcpy.h: New file.
64955
64956         * modules/unistr/u8-strcspn: New file.
64957         * modules/unistr/u16-strcspn: New file.
64958         * modules/unistr/u32-strcspn: New file.
64959         * lib/unistr/u8-strcspn.c: New file.
64960         * lib/unistr/u16-strcspn.c: New file.
64961         * lib/unistr/u32-strcspn.c: New file.
64962         * lib/unistr/u-strcspn.h: New file.
64963
64964         * modules/unistr/u8-strdup: New file.
64965         * modules/unistr/u16-strdup: New file.
64966         * modules/unistr/u32-strdup: New file.
64967         * lib/unistr/u8-strdup.c: New file.
64968         * lib/unistr/u16-strdup.c: New file.
64969         * lib/unistr/u32-strdup.c: New file.
64970         * lib/unistr/u-strdup.h: New file.
64971
64972         * modules/unistr/u8-strlen: New file.
64973         * modules/unistr/u16-strlen: New file.
64974         * modules/unistr/u32-strlen: New file.
64975         * lib/unistr/u8-strlen.c: New file.
64976         * lib/unistr/u16-strlen.c: New file.
64977         * lib/unistr/u32-strlen.c: New file.
64978         * lib/unistr/u-strlen.h: New file.
64979
64980         * modules/unistr/u8-strmblen: New file.
64981         * modules/unistr/u16-strmblen: New file.
64982         * modules/unistr/u32-strmblen: New file.
64983         * lib/unistr/u8-strmblen.c: New file.
64984         * lib/unistr/u16-strmblen.c: New file.
64985         * lib/unistr/u32-strmblen.c: New file.
64986
64987         * modules/unistr/u8-strmbtouc: New file.
64988         * modules/unistr/u16-strmbtouc: New file.
64989         * modules/unistr/u32-strmbtouc: New file.
64990         * lib/unistr/u8-strmbtouc.c: New file.
64991         * lib/unistr/u16-strmbtouc.c: New file.
64992         * lib/unistr/u32-strmbtouc.c: New file.
64993
64994         * modules/unistr/u8-strncat: New file.
64995         * modules/unistr/u16-strncat: New file.
64996         * modules/unistr/u32-strncat: New file.
64997         * lib/unistr/u8-strncat.c: New file.
64998         * lib/unistr/u16-strncat.c: New file.
64999         * lib/unistr/u32-strncat.c: New file.
65000         * lib/unistr/u-strncat.h: New file.
65001
65002         * modules/unistr/u8-strncmp: New file.
65003         * modules/unistr/u16-strncmp: New file.
65004         * modules/unistr/u32-strncmp: New file.
65005         * lib/unistr/u8-strncmp.c: New file.
65006         * lib/unistr/u16-strncmp.c: New file.
65007         * lib/unistr/u32-strncmp.c: New file.
65008
65009         * modules/unistr/u8-strncpy: New file.
65010         * modules/unistr/u16-strncpy: New file.
65011         * modules/unistr/u32-strncpy: New file.
65012         * lib/unistr/u8-strncpy.c: New file.
65013         * lib/unistr/u16-strncpy.c: New file.
65014         * lib/unistr/u32-strncpy.c: New file.
65015         * lib/unistr/u-strncpy.h: New file.
65016
65017         * modules/unistr/u8-strnlen: New file.
65018         * modules/unistr/u16-strnlen: New file.
65019         * modules/unistr/u32-strnlen: New file.
65020         * lib/unistr/u8-strnlen.c: New file.
65021         * lib/unistr/u16-strnlen.c: New file.
65022         * lib/unistr/u32-strnlen.c: New file.
65023         * lib/unistr/u-strnlen.h: New file.
65024
65025         * modules/unistr/u8-strpbrk: New file.
65026         * modules/unistr/u16-strpbrk: New file.
65027         * modules/unistr/u32-strpbrk: New file.
65028         * lib/unistr/u8-strpbrk.c: New file.
65029         * lib/unistr/u16-strpbrk.c: New file.
65030         * lib/unistr/u32-strpbrk.c: New file.
65031         * lib/unistr/u-strpbrk.h: New file.
65032
65033         * modules/unistr/u8-strrchr: New file.
65034         * modules/unistr/u16-strrchr: New file.
65035         * modules/unistr/u32-strrchr: New file.
65036         * lib/unistr/u8-strrchr.c: New file.
65037         * lib/unistr/u16-strrchr.c: New file.
65038         * lib/unistr/u32-strrchr.c: New file.
65039
65040         * modules/unistr/u8-strspn: New file.
65041         * modules/unistr/u16-strspn: New file.
65042         * modules/unistr/u32-strspn: New file.
65043         * lib/unistr/u8-strspn.c: New file.
65044         * lib/unistr/u16-strspn.c: New file.
65045         * lib/unistr/u32-strspn.c: New file.
65046         * lib/unistr/u-strspn.h: New file.
65047
65048         * modules/unistr/u8-strstr: New file.
65049         * modules/unistr/u16-strstr: New file.
65050         * modules/unistr/u32-strstr: New file.
65051         * lib/unistr/u8-strstr.c: New file.
65052         * lib/unistr/u16-strstr.c: New file.
65053         * lib/unistr/u32-strstr.c: New file.
65054         * lib/unistr/u-strstr.h: New file.
65055
65056         * modules/unistr/u8-strtok: New file.
65057         * modules/unistr/u16-strtok: New file.
65058         * modules/unistr/u32-strtok: New file.
65059         * lib/unistr/u8-strtok.c: New file.
65060         * lib/unistr/u16-strtok.c: New file.
65061         * lib/unistr/u32-strtok.c: New file.
65062         * lib/unistr/u-strtok.h: New file.
65063
65064         * modules/unistr/u8-uctomb: New file.
65065         * modules/unistr/u16-uctomb: New file.
65066         * modules/unistr/u32-uctomb: New file.
65067         * lib/unistr/u8-uctomb.c: New file.
65068         * lib/unistr/u16-uctomb.c: New file.
65069         * lib/unistr/u32-uctomb.c: New file.
65070
65071         * MODULES.html.sh (Unicode string functions): Add the new modules.
65072
65073 2007-01-08  Bruno Haible  <bruno@clisp.org>
65074
65075         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65076         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65077         subdirectories.
65078
65079 2007-01-08  Karl Berry  <karl@gnu.org>
65080
65081         * doc/error.texi: mention that main() fns must set program_name
65082         when progname is used.
65083
65084 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65087         WCTYPE_H is empty, for the benefit of builds from non-distclean
65088         directories.  Problem reported by Eric Blake in
65089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65090
65091 2007-01-08  Bruno Haible  <bruno@clisp.org>
65092
65093         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65094         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65095         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65096         PROVIDE_CANONICALIZE_FILENAME_MODE.
65097         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65098
65099 2007-01-08  Bruno Haible  <bruno@clisp.org>
65100
65101         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65102         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65103         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65104         * lib/fts.c: Likewise.
65105         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65106
65107 2006-12-25  Bruno Haible  <bruno@clisp.org>
65108
65109         * modules/utf8-ucs4-safe: New file.
65110         * lib/utf8-ucs4-safe.h: New file.
65111         * lib/unistr/utf8-ucs4-safe.c: New file.
65112
65113         * modules/utf16-ucs4-safe: New file.
65114         * lib/utf16-ucs4-safe.h: New file.
65115         * lib/unistr/utf16-ucs4-safe.c: New file.
65116
65117         * MODULES.html.sh (Unicode string functions): Add the new modules.
65118
65119 2007-01-08  Bruno Haible  <bruno@clisp.org>
65120
65121         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65122         (Depends-on): Add unitypes.
65123         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65124         (u8_mbtouc_aux): Move out to separate file.
65125         (u8_mbtouc): Use ucs4_t, uint8_t types.
65126         * lib/unistr/utf8-ucs4.c: New file.
65127
65128         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65129         (Depends-on): Add unitypes.
65130         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65131         (u16_mbtouc_aux): Move out to separate file.
65132         (u16_mbtouc): Use ucs4_t, uint16_t types.
65133         * lib/unistr/utf16-ucs4.c: New file.
65134
65135         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65136         (Depends-on): Add unitypes.
65137         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65138         (u8_uctomb_aux): Move out to separate file.
65139         (u8_uctomb): Use ucs4_t, uint8_t types.
65140         * lib/unistr/ucs4-utf8.c: New file.
65141
65142         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65143         (Depends-on): Add unitypes.
65144         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65145         (u16_uctomb_aux): Move out to separate file.
65146         (u16_uctomb): Use ucs4_t, uint16_t types.
65147         * lib/unistr/ucs4-utf16.c: New file.
65148
65149 2006-12-25  Bruno Haible  <bruno@clisp.org>
65150
65151         * modules/unitypes: New file.
65152         * lib/unitypes.h: New file.
65153         * MODULES.html.sh (func_all_modules): New section "Unicode string
65154         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65155         this section. Add unitypes.
65156
65157 2007-01-08  Bruno Haible  <bruno@clisp.org>
65158
65159         Avoid variable names that conflict with those from libtool.
65160         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65161         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65162         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65163         library_names_spec to acl_library_names_spec, hardcode_* to
65164         acl_hardcode_*.
65165         Reported by Ralf Wildenhues.
65166
65167 2007-01-08  Bruno Haible  <bruno@clisp.org>
65168
65169         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65170         definition.
65171         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65172         definition.
65173         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65174         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65175         definition.
65176         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65177         definition.
65178         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65179         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65180         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65181         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65182         definition.
65183         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65184         definition.
65185         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65186         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65187         GC_USE_<algorithm>.
65188         * lib/gc-libgcrypt.c: Likewise.
65189         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65190         * modules/gc-arctwo (configure.ac): Likewise.
65191         * modules/gc-des (configure.ac): Likewise.
65192         * modules/gc-hmac-md5 (configure.ac): Likewise.
65193         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65194         * modules/gc-md2 (configure.ac): Likewise.
65195         * modules/gc-md4 (configure.ac): Likewise.
65196         * modules/gc-md5 (configure.ac): Likewise.
65197         * modules/gc-random (configure.ac): Likewise.
65198         * modules/gc-rijndael (configure.ac): Likewise.
65199         * modules/gc-sha1 (configure.ac): Likewise.
65200
65201 2007-01-08  Bruno Haible  <bruno@clisp.org>
65202
65203         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65204         macro definition.
65205         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65206         definition.
65207         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65208         definition.
65209         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65210         * modules/fcntl-safer (configure.ac): Likewise.
65211         * modules/fopen-safer (configure.ac): Likewise.
65212         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65213         GNULIB_FWRITEERROR macro definition.
65214
65215 2007-01-08  Bruno Haible  <bruno@clisp.org>
65216
65217         * m4/gnulib-common.m4: New file.
65218         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65219         (func_get_filelist): Add m4/gnulib-common.m4.
65220
65221 2007-01-08  Bruno Haible  <bruno@clisp.org>
65222
65223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65224         command.
65225
65226 2007-01-08  Jim Meyering  <jim@meyering.net>
65227
65228         Use a more robust test for a "can't happen" condition.
65229         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65230         narrowed the st_size value.  Presuming the "can't happen" condition
65231         is true, that narrowing could conceivably convert an invalid st_size
65232         value into a valid one.  Instead, use a change based on Matthew
65233         Woehlke's original patch.
65234
65235         Slight readability improvement: use an assert-like macro
65236         in place of literal "abort ()" uses.
65237         * lib/fts.c (fts_assert): Define.
65238         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65239         Use this macro instead of a bare 'abort'.
65240
65241 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65242
65243         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65244         simply work around them.
65245         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65246         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65247         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65248         declaring.
65249         Don't bother to define as macros, since the standard doesn't require it.
65250         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65251         longer worry about IRIX 5.3.
65252         (HAVE_WCTYPE_CTMP_BUG): Remove.
65253
65254 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65257         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65258         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65259         Problems reported by Georg Schwarz for IRIX 5.3.
65260
65261         * gnulib-tool (autoconf_minversion): Take the maximum version number
65262         found, not the minimum.  Problem reported by James Youngman.
65263
65264 2007-01-03  Karl Berry  <karl@gnu.org>
65265
65266         * doc/error.texi: new file, explaining interaction with progname.
65267         * doc/gnulib.texi: include it.  Update copyright.
65268
65269 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65270
65271         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65272         AC_CANONICAL_HOST, to improve autobuild outputs.
65273
65274 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65275             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65276
65277         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65278         sockets, server sockets, and other file descriptors.  Count errors
65279         to compute the return value.  Reorder the code a bit to be easier
65280         to follow.  Don't set event bits that were not requested (except
65281         POLLERR and POLLHUP).
65282
65283 2007-01-01  Bruno Haible  <bruno@clisp.org>
65284
65285         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65286
65287 2007-01-03  Jim Meyering  <jim@meyering.net>
65288
65289         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65290
65291 2007-01-02  Bruno Haible  <bruno@clisp.org>
65292
65293         * modules/settime (Include): Require timespec.h.
65294         * modules/nanosleep (Include): Likewise.
65295
65296 2007-01-01  Bruno Haible  <bruno@clisp.org>
65297
65298         * gnulib-tool (func_emit_copyright_notice): Bump year.
65299         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65300
65301 2007-01-01  Bruno Haible  <bruno@clisp.org>
65302
65303         Improve support for OpenBSD.
65304         * build-aux/config.rpath (libname_spec): Export.
65305         (library_names_spec): New variable. Export.
65306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65307         library_names_spec from the config.rpath output. Locate shared library
65308         through the name pattern in library_names_spec.
65309
65310 2007-01-01  Eric Blake  <ebb9@byu.net>
65311
65312         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65313
65314 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65315
65316         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65317         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65318         assume the C locale, and avoid an "eval" that could cause trouble.
65319         Problem with SORT reported by Bob Proulx.
65320
65321         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65322         Define.  Trivial patch from Henning Nielsen Lund, originally
65323         sent to bug-grep@gnu.org today.
65324
65325 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65326
65327         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65328         struct stat.  Problem reported by Henning Nielsen Lund.
65329         * lib/acl.c: Include acl.h first, to check interface.  Don't
65330         bother to include sys/types.h and sys/stat.h again.
65331
65332 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65333
65334         Import the following change from libc; problem reported by
65335         Sven Verdoolaege.
65336
65337         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65338
65339         [BZ #1373]
65340         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65341
65342 2006-12-28  Jim Meyering  <jim@meyering.net>
65343
65344         * build-aux/announce-gen: Do not assume that the package
65345         builds any of tar.gz, tar.bz2, and .xdelta files.
65346         Suggestion from Simon Josefsson.
65347
65348 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65349
65350         * modules/announce-gen: New file.
65351
65352 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65353
65354         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65355         handles its gotchas now.
65356         * lib/mbswidth.c: Likewise.
65357         * lib/wcwidth.h: Likewise.
65358         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65359         and iswcntrl; the wctype module does this stuff now.
65360         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65362         * modules/mbchar (Depends-on): Add wctype.
65363         * modules/mbswidth (Depends-on): Likewise.
65364         * modules/wcwidth (Depends-on): Likewise.
65365
65366 2006-12-27  Eric Blake  <ebb9@byu.net>
65367
65368         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65369         module uses more than what <wctype.h> is required to provide.
65370
65371 2006-12-26  Eric Blake  <ebb9@byu.net>
65372
65373         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65374
65375 2006-12-26  Eric Blake  <ebb9@byu.net>
65376
65377         * modules/absolute-header: New module.
65378         * modules/fcntl (Depends-on): Depend on it.
65379         * modules/inttypes (Depends-on): Likewise.
65380         * modules/stdint (Depends-on): Likewise.
65381         * modules/sys_stat (Depends-on): Likewise.
65382         * modules/wctype (Depends-on): Likewise.
65383         * MODULES.html.sh (Support for building libraries and
65384         executables): Document it.
65385
65386 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65387
65388         * gnulib-tool (SED): Remove, undoing previous change.
65389         The problem was that it broke coreutils on Solaris, because
65390         "sed --posix" leaked into a makefile.
65391         (sed): New alias, if 'alias' and GNU sed.
65392
65393 2006-12-24  Jim Meyering  <jim@meyering.net>
65394
65395         Work around an fchownat bug in glibc-2.4:
65396         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65397         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65398         in spite of the -P option.
65399         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65400         New macros.
65401         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65402         * modules/openat (Files): Add lib/fchownat.c.
65403         * lib/openat.c (fchownat): Don't define here.  Move to...
65404         * lib/fchownat.c: ...this new file.
65405
65406 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         Fix bug reported by Bruno Haible in
65409         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65410         where quotearg.c didn't compile on Mac OS X 10.2 because it
65411         lacks <wchar.h> and wint_t.
65412         * lib/wctype_.h (__wctype_wint_t): New type.
65413         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65414         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65415         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65416         Arg is now of type __wctype_wint_t, not wint_t.
65417         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65418         substitute HAVE_WINT_T.
65419         * modules/wctype (Files): Add m4/wint_t.m4.
65420         (wctype.h): Substitute HAVE_WINT_T.
65421
65422 2006-12-23  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65425
65426 2006-12-23  Bruno Haible  <bruno@clisp.org>
65427
65428         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65429         S_ISLNK.
65430         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65431         mingw.
65432
65433 2006-12-22  Bruno Haible  <bruno@clisp.org>
65434
65435         * lib/copy-file.c: Include acl.h.
65436         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65437         Close the file descriptors only after being done with copy_acl.
65438         * modules/copy-file (Depends-on): Add acl.
65439
65440 2006-12-22  Bruno Haible  <bruno@clisp.org>
65441
65442         * gnulib-tool (SED): New variable.
65443         Use $SED instead of sed everywhere.
65444
65445 2006-12-22  Bruno Haible  <bruno@clisp.org>
65446
65447         * modules/no-c++: New file.
65448         * m4/no-c++.m4: New file.
65449         * MODULES.html.sh (Support for building libraries and executables):
65450         Add no-c++.
65451
65452 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65455         Include <limits.h>, and use its INT_MAX to rewrite the
65456         j loop so that it does not overflow 'int'.  Problem reported by
65457         Ralf Wildenhues in
65458         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65459         Play it safe by shifting left by 1 rather than multiplying by 2,
65460         as GCC is less likely to optimize this away when the value
65461         is signed (when it assumes overflow leads to undefined behavior).
65462         Also, don't assume time_t uses two's complement.
65463
65464 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * MODULES.html.sh: New module wctype.
65467         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65468         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65469         <wctype.h>, since the new wctype module should fix this.
65470         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65471         the wctype module should arrange for it.
65472         * lib/regex_internal.h: Likewise.
65473         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65474         since the wctype module should handle this now.
65475         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65476         * modules/fnmatch (Depends-on): Add wctype.
65477         * modules/quotearg (Depends-on): Likewise.
65478         * modules/regex (Depends-on): Likewise.
65479
65480 2006-12-19  Bruno Haible  <bruno@clisp.org>
65481
65482         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65483         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65484
65485 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65486
65487         * modules/savewd (Depends-on): Fix dependency on fcntl.
65488
65489 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65490
65491         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65492         conforms to C99, rather than relying on the user's environment
65493         setting of STDINT_H.
65494
65495 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65496         and Eric Blake  <ebb9@byu.net>
65497
65498         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65499         This is more consistent with the other defines here.
65500         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65501         Port to z/OS.  Problem reported by Paul Gilmartin.
65502         Change local vars to use gl_ prefix rather than ac_.
65503         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65504         with other defines.
65505         * modules/double-slash-root: New module.
65506         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65507         (Depends-on): Add double-slash-root.
65508         * MODULES.html.sh (File system functions): Mention new module.
65509
65510 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65513         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65514         This is for the benefit of gzip, which doesn't do i18n.
65515
65516 2006-12-12  Jim Meyering  <jim@meyering.net>
65517
65518         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65519         Reported by Andreas Schwab <schwab@suse.de>.
65520
65521 2006-12-12  Bruno Haible  <bruno@clisp.org>
65522
65523         Merge these changes.
65524         2006-09-05  Bruno Haible  <bruno@clisp.org>
65525         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65526         iconv_alloc succeeded.
65527         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65528         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65529         test for " && dest " at the end - dest is always != NULL there. Call
65530         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65531         with 2xNULL arguments, also to flush the state storage. Handle the
65532         IRIX iconv behaviour. Realloc the final result, to throw away unused
65533         memory.
65534
65535 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65538         and fchmodat unconditionally, since glibc 2.4 has them.
65539         Problem reported by Arkadiusz Miskiewicz.
65540
65541 2006-12-10  Bruno Haible  <bruno@clisp.org>
65542
65543         * gnulib-tool (func_import): Show the include files only for those
65544         modules that are copied and specified.
65545         Reported by Karl Berry.
65546
65547 2006-12-08  Jim Meyering  <jim@meyering.net>
65548
65549         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65550         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65551
65552         * build-aux/announce-gen: Add two new options, both optional:
65553         --bootstrap-tools=TOOL_LIST
65554               a comma-separated list of tools, e.g.,
65555               autoconf,automake,bison,gnulib
65556         --gnulib-snapshot-date=DATE
65557               if gnulib is in the bootstrap tool list,
65558               then report this as the snapshot date.
65559               If not specified, use the current date/time.
65560               If you specify a date here, be sure it's UTC.
65561
65562 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65563
65564         * tests/test-argp-2.sh: Fix test to match actual output.
65565         (func_compare): Fix sed script to be portable.
65566
65567 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65570         workaround for this case.  It is not autoconfigured now; offhand
65571         it's hard to see how to autoconfigure it.
65572
65573 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65574
65575         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65576         a directory that is about to be chowned.  Such a directory's
65577         initial file permissions should permit the owner only and this
65578         should not be changed until after the chown, since the group and
65579         other bits would be incorrect if they granted permission before
65580         the chown.
65581
65582         Fix porting problem for iswctype reported by Georg Schwarz in:
65583         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65584         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65585         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65586         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65587         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65588
65589 2006-12-03  Jim Meyering  <jim@meyering.net>
65590
65591         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65592         p->fts_statp may not yet be defined.
65593         (fts_read): Instead, set it in the caller, once p->fts_statp is
65594         sure to be defined, and corresponds to a top-level directory.
65595         This bug made du -x fail.  Here's the coreutils test case:
65596         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65597         Reported by Mike Frysinger.
65598
65599 2006-12-01  Jim Meyering  <jim@meyering.net>
65600
65601         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65602         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65603         Reported by Simon Josefsson.
65604
65605 2006-11-30  Jim Meyering  <jim@meyering.net>
65606
65607         * m4/warning.m4: Use the all-permissive copyright notice
65608         recommended by RMS (rather than LGPL).
65609         * m4/vararrays.m4: Likewise.
65610         * m4/flexmember.m4: Likewise.
65611
65612 2006-11-29  Bruno Haible  <bruno@clisp.org>
65613
65614         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65615         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65616         using +=.
65617         Reported by Simon Josefsson <simon@josefsson.org>.
65618
65619 2006-11-28  James Youngman <jay@gnu.org>
65620
65621         * README: Advise users that they might find the bug-gnulib@gnu.org
65622         and autotools-announce@gnu.org mailing lists useful.
65623
65624 2006-11-28  Bruno Haible  <bruno@clisp.org>
65625
65626         * m4/ptrdiff_max.m4: Remove file.
65627
65628 2006-11-21  Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65631         _AC_COMPUTE_INT.
65632         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65633         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65634         _AC_COMPUTE_INT.
65635         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65636         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65637         _AC_COMPUTE_INT.
65638         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65639
65640 2006-11-28  Jim Meyering  <jim@meyering.net>
65641
65642         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65643         warning from "gcc -Wshadow" about shadowing the builtin.
65644
65645 2006-11-27  Bruno Haible  <bruno@clisp.org>
65646
65647         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65648         _AC_COMPUTE_INT.
65649         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65650
65651 2006-11-27  Bruno Haible  <bruno@clisp.org>
65652             Paul Eggert  <eggert@cs.ucla.edu>
65653
65654         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65655
65656 2006-11-26  Bruno Haible  <bruno@clisp.org>
65657
65658         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65659         noinst_LTLIBRARIES.
65660
65661 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65662             Bruno Haible  <bruno@clisp.org>
65663
65664         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65665         if compiling with "gcc -ansi".
65666
65667 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65668
65669         Fix some incompatibilities with gcc -ansi -pedantic.
65670         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65671         if compiling pedantically with GCC, unless it's C99 or later.
65672         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65673         it mishandles gcc -ansi -pedantic as well.
65674         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65675         if gcc -pedantic.
65676         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65677         initializers for struct if -pedantic, unless it's C99 or later.
65678
65679 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65680
65681         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65682         Don't close an fd more than once. Identical atimes indicate
65683         success, not failure.
65684
65685 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65686
65687         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65688
65689 2006-11-23  Jim Meyering  <jim@meyering.net>
65690
65691         * build-aux/announce-gen: New file.  From coreutils.
65692
65693 2006-11-22  Jim Meyering  <jim@meyering.net>
65694
65695         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65696         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65697         (fts_read): Use a temporary to narrow the overused st_size member
65698         before using it in a switch statement.  Reported by Matthew Woehlke.
65699
65700         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65701         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65702
65703 2006-11-20  Bruno Haible  <bruno@clisp.org>
65704
65705         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65706         changequote instead of pairs of brackets.
65707         Reported by Andreas Schwab <schwab@suse.de>.
65708
65709 2006-11-21  Jim Meyering  <jim@meyering.net>
65710
65711         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65712         so as to remain compatible with older compilers.
65713         Patch from Michael Deutschmann.
65714
65715 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * MODULES.html.sh (File system functions): Add openat.
65718
65719         * lib/openat.h (rpl_fstatat): New macro, if
65720         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65721         (fstatat): Define to rpl_fstatat under the same conditions,
65722         unless COMPILING_FSTATAT.
65723         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65724         seems to have the bug.
65725         * lib/fstatat.c: New file.
65726         * modules/openat (Files): Add it.
65727
65728 2006-11-20  Bruno Haible  <bruno@clisp.org>
65729
65730         * Makefile: New file.
65731
65732 2006-11-20  Jim Meyering  <jim@meyering.net>
65733
65734         The beginnings of syntax-related checks for gnulib.
65735         * lib/Makefile: New file.
65736         * lib/t-idcache: New script.  Ensure that the two halves of
65737         idcache.c stay in sync.
65738
65739         * lib/idcache.c: Adjust comments in user- and group- portions to
65740         be more accurate, and to be consistent with one another.
65741
65742 2006-11-20  Jim Meyering  <jim@meyering.net>
65743
65744         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65745         continue using the flexible array member (thus, this module performs
65746         half as many malloc calls), with the addition that...
65747         (getgroup, getuser): Consistently record a non-match via an empty
65748         "name" string, and map an empty string match to a NULL return value.
65749         * modules/idcache (Depends-on): Re-add flexmember.
65750
65751         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65752         (getuidbyname, getgroup, getgidbyname): Likewise.
65753
65754         Use cleaner syntax: NULL rather than 0.
65755         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65756
65757 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65758
65759         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65760         It mishandled the case where the group was missing.
65761         Problem reported by Greg Schafer.
65762         * modules/idcache: Likewise.
65763
65764 2006-11-18  Jim Meyering  <jim@meyering.net>
65765
65766         * check-module (%exempt_header): Add exception for some
65767         conditionally-included headers.
65768
65769         * modules/i-ring (Depends-on): Add verify.
65770         (License): Change to LGPL.
65771
65772 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65775         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65776         and inttostr.h.  Use snprintf rather than uinttostr, so that
65777         LGPLed code doesn't depend on GPLed.
65778
65779 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * modules/inline (License): Change from GPL to LGPL.
65782
65783 2006-11-17  Jim Meyering  <jim@meyering.net>
65784
65785         * modules/d-type (License): Switch to LGPL.
65786
65787 2006-11-15  Bruno Haible  <bruno@clisp.org>
65788
65789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65790
65791 2006-11-15  Eric Blake  <ebb9@byu.net>
65792
65793         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65794         the module dependency.
65795
65796 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65797             Bruno Haible  <bruno@clisp.org>
65798
65799         * gnulib-tool (func_create_testdir): Add license consistency check.
65800
65801 2006-11-15  Eric Blake  <ebb9@byu.net>
65802
65803         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65804         random "(cached)" in configure output.
65805
65806 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65807
65808         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65809         test for conforming inttypes.h is both announced and cached.
65810
65811         * MODULES.html.sh (seen_modules, seen_files): New variables.
65812         (func_module): Rewrite to use a few less gnulib-tool and sed
65813         invocations.  Avoid a couple of quadratic algorithms for ...
65814         (missed_modules, missed_files): ... these, with ...
65815         (func_append, func_tmpdir): ... these new functions, from
65816         gnulib-tool.  Analogously, install traps for cleanup.
65817
65818         * tests/test-gc.c (main): Remove unused variables.
65819         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65820
65821 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * modules/inttostr (License): Change to LGPL.
65824
65825 2006-11-14  Eric Blake  <ebb9@byu.net>
65826
65827         * modules/tempname (License): Change to LGPL.
65828
65829 2006-11-14  Eric Blake  <ebb9@byu.net>
65830
65831         * doc/functions.texi (Function Portability): *printf functions on
65832         Cygwin now understand all POSIX size specifiers.
65833
65834 2006-11-14  Bruno Haible  <bruno@clisp.org>
65835
65836         * modules/c-ctype (License): Change to LGPL.
65837
65838 2006-11-12  Bruno Haible  <bruno@clisp.org>
65839
65840         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65841         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65842         for GNOME libraries, for which the include files are installed in
65843         subdirectories of $prefix/include.
65844
65845 2006-11-12  Bruno Haible  <bruno@clisp.org>
65846
65847         * m4/lib-link.m4: Require at least autoconf-2.54.
65848         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65849         name to underscores for the --with option.
65850
65851 2006-11-13  Bruno Haible  <bruno@clisp.org>
65852
65853         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65854         the tests directory.
65855         Reported by Ralf Wildenhues.
65856
65857 2006-11-13  Bruno Haible  <bruno@clisp.org>
65858
65859         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65860         (func_emit_initmacro_end): Undo the override here.
65861         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65862         Works around the famous automake error in coreutils.
65863
65864 2006-11-13  Eric Blake  <ebb9@byu.net>
65865
65866         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65867         element, not its node.
65868
65869 2006-11-12  Bruno Haible  <bruno@clisp.org>
65870
65871         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65872         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65873
65874 2006-11-12  Bruno Haible  <bruno@clisp.org>
65875
65876         * gnulib-tool: New option --local-symlink.
65877         (func_usage): Document it.
65878         (lsymbolic): New variable.
65879         (func_import, func_create_testdir): If --symlink was not specified,
65880         test whether --local-symlink was specified and the file comes from
65881         the local_gnulib_dir.
65882
65883 2006-11-12  Bruno Haible  <bruno@clisp.org>
65884
65885         * gnulib-tool (func_ln): New function.
65886         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65887
65888 2006-11-12  Bruno Haible  <bruno@clisp.org>
65889
65890         Finish support for source files in subdirectories.
65891         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65892         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65893         AUTOMAKE_OPTIONS.
65894         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65895
65896 2006-11-12  Bruno Haible  <bruno@clisp.org>
65897
65898         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65899         EXTRA_lib_SOURCES augmentation.
65900         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65901
65902 2006-11-12  Jim Meyering  <jim@meyering.net>
65903
65904         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65905         file descriptors.  This also averts a failure on systems with
65906         native openat support when a traversed directory lacks "x" access.
65907         * lib/fts_.h: Include "i-ring.h"
65908         (struct FTS) [fts_fd_ring]: New member.
65909         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65910         (FCHDIR): Add parentheses.
65911         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65912         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65913         When descending, rather than simply closing the previous
65914         fts_cwd_fd value, push that file descriptor onto the ring.
65915         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65916         (fts_open): Initialize the new fd_ring member.
65917         (fts_close): Clear the ring.
65918         (fts_safe_changedir): When possible, use our new fd_ring to skip
65919         the diropen and fstat and dev/ino comparison that would normally
65920         accompany a virtual `chdir ("..")'.
65921
65922         * modules/fts (Depends-on): Add i-ring.
65923         * modules/i-ring: New module.
65924         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65925         * m4/i-ring.m4: New file.
65926
65927 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65928
65929         * gnulib-tool (func_create_testdir): Fix replacement of
65930         `build-aux' in configure.ac.  Run autotools in gltests
65931         subdirectory.
65932         (func_create_testdir, func_create_megatestdir, test): There is
65933         no need for '--force' in most autotool invocations in a new
65934         tree.  Actually fail the whole test if any of the tools, or the
65935         configure or make stages fail.
65936
65937         Sync from Automake.
65938         * build-aux/gnupload: Revert last change.  Add pointer to upload
65939         instructions of the GNU Maintenance Instructions.
65940         Suggestion by Karl Berry.
65941
65942 2006-11-10  Jim Meyering  <jim@meyering.net>
65943
65944         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65945
65946 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65949         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65950         (bind_textdomain_codeset) [! ENABLE_NLS]:
65951         Evaluate all the arguments.  That way, callers get compatible behavior
65952         if the arguments have side effects.  Also, it avoids some GCC
65953         diagnostics in some cases; Joel E. Denny reported problems when Bison
65954         was configured with --enable-gcc-warnigs.
65955
65956 2006-11-10  Jim Meyering  <jim@meyering.net>
65957
65958         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65959         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65960         account.
65961
65962 2006-11-10  Jim Meyering  <jim@meyering.net>
65963
65964         * modules/inline: New file/module.
65965         * modules/xalloc (Files): Remove m4/inline.m4.
65966         (Depends-on): Add inline, instead.
65967         * modules/oset: Likewise.
65968         * modules/list: Likewise.
65969
65970 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65973         Problem reported by Matthew Woehlke.
65974
65975 2006-11-09  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/tempname.c (gen_tempname): Remove variant that invokes
65978         __gen_tempname.
65979         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65980         __gen_tempname.
65981
65982 2006-11-08  Bruno Haible  <bruno@clisp.org>
65983
65984         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65985         to 'yes' instead of 'cross-compiling'.
65986
65987 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * lib/quotearg.h (quotearg_free): New decl.
65990         * lib/quotearg.c (quotearg_free): New function.
65991         (slot0, nslots, slotvec0, slotvec):
65992         Now file-scope so that quotearg_free can get at them.
65993
65994 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65995
65996         Sync from Automake.
65997         * build-aux/gnupload: Add missing 'gnu' to example URL.
65998         Report by Karl Berry.
65999
66000 2006-11-08  Bruno Haible  <bruno@clisp.org>
66001
66002         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66003         Suggested by Paul Eggert.
66004
66005 2006-11-08  Jim Meyering  <jim@meyering.net>
66006
66007         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66008         It's already included if !_LIBC.
66009         (fts_safe_changedir): Add a comment.
66010
66011 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66014         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66015         Matthew Woehlke.
66016
66017         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66018         definitions up, to avoid colliding with change below.
66019         (static_inline) [HAVE_INLINE]: New macro.
66020         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66021         Provide extern decls when !HAVE_INLINE.  Do not define unless
66022         static_inline is defined, either by us or by xmalloc.c.  Use
66023         static_inline rather than static inline.
66024         (XCALLOC): Optimize sizeof(T) = 1 case.
66025         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66026
66027 2006-11-07  Bruno Haible  <bruno@clisp.org>
66028
66029         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66030         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66031         AC_C_INLINE.
66032         * modules/xalloc (Files): Add m4/inline.m4.
66033
66034 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66035
66036         * README: Fix typo.
66037         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66038         (Miscellanous Notes): ...from this.
66039
66040 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66041
66042         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66043         Mention that offsetof should be used instead of sizeof.
66044         From Bruno Haible.
66045
66046 2006-11-07  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66049
66050 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66051
66052         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66053         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66054         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66055         (gl_tree_add_before, gl_tree_add_after):
66056         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66057         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66058         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66059         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66060         (gl_linked_add_after, gl_linked_add_at): Likewise.
66061         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66062         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66063         (gl_tree_add_before, gl_tree_add_after): Likewise.
66064         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66065         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66066         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66067
66068 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66069
66070         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66071
66072 2006-11-06  Bruno Haible  <bruno@clisp.org>
66073
66074         * m4/inline.m4: New file.
66075         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66076         * modules/list (Files): Add m4/inline.m4.
66077         * modules/oset (Files): Likewise.
66078
66079 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66080
66081         * lib/idcache.c: Include <stddef.h>, for offsetof.
66082         (struct userid.name): Change from char * to a flexible array member.
66083         All uses changed.
66084         * modules/idcache (Depends-on): Add flexmember.
66085
66086         * MODULES.html.sh (Core language properties): New module flexmember.
66087         * modules/flexmember, m4/flexmember.m4: New files.
66088
66089         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66090         inline functions that are identical with the old xnmalloc_inline,
66091         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66092         that we can avoid some unnecessary integer multiplications and
66093         divisions in the common case where the element size is known at
66094         compile time.
66095         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66096         needed.
66097         (xnboundedmalloc): Remove.
66098         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66099         arguments, for consistency with rest of this header.
66100         (xcharalloc): Rewrite using XNMALLOC.
66101         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66102         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66103         versions have been moved to lib/xalloc.h and renamed to be the
66104         non-*_inline versions.
66105         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66106         and xnrealloc functions, since those functions are now inline and
66107         now call us.
66108         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66109         renaming described above.
66110         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66111         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66112         captures the dependency in AC_C_INLINE.
66113
66114         New module canonicalize-lgpl, proposed by Charles Wilson in
66115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66116         with a few small changes afterwards.
66117         * MODULES.html.sh (File system functions): New module
66118         canonicalize-lgpl.
66119         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66120         and canonicalize_file_name.
66121         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66122         * modules/canonicalize-lgpl: New files.
66123
66124 2006-11-05  Bruno Haible  <bruno@clisp.org>
66125
66126         * gnulib-tool (func_import, func_create_testdir): Create directories
66127         also for files in subdirectories of lib/.
66128
66129 2006-11-05  Bruno Haible  <bruno@clisp.org>
66130
66131         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66132         ANSI C compliant.
66133
66134 2006-11-03  Bruno Haible  <bruno@clisp.org>
66135
66136         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66137         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66138         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66139         (xnboundedmalloc): New inline function.
66140         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66141         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66142         xmalloc.
66143         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66144         xmalloc.
66145         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66146         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66147         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66148         xmalloc.
66149         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66150         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66151         xmalloc.
66152         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66153         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66154         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66155         xmalloc.
66156         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66157         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66158         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66159         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66160         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66161         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66162         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66163
66164 2006-11-03  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/c-ctype.h [C++]: Define functions without name mangling.
66167         * lib/fwriteerror.h [C++]: Likewise.
66168         * lib/gcd.h [C++]: Likewise.
66169         * lib/linebreak.h [C++]: Likewise.
66170
66171 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66172
66173         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66174         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66175         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66176         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66177         Check for functions and headers just once.
66178         Check for declaration of canonicalize_file_name.
66179         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66180
66181 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66182
66183         * gnulib-tool (func_import): Fix typo in actioncmd.
66184
66185 2006-11-02  Bruno Haible  <bruno@clisp.org>
66186
66187         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66188         newline sequence in the Makefile.am snippet as a space, like "make"
66189         does.
66190         Reported by Roger Persson <perrog@gmail.com>.
66191
66192 2006-11-01  Bruno Haible  <bruno@clisp.org>
66193
66194         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66195         already declared in <string.h>.
66196         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66197
66198 2006-11-01  Bruno Haible  <bruno@clisp.org>
66199
66200         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66201         * lib/strcase.h: Include <string.h>.
66202         (strcasecmp): Define to rpl_strcasecmp here.
66203
66204 2006-11-01  Bruno Haible  <bruno@clisp.org>
66205
66206         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66207
66208 2006-11-01  Eric Blake  <ebb9@byu.net>
66209
66210         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66211
66212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66213
66214 2006-10-29  Bruno Haible  <bruno@clisp.org>
66215
66216         Make it compile in C++ mode.
66217         * lib/full-write.c (full_rw): Add a cast.
66218
66219 2006-11-01  Bruno Haible  <bruno@clisp.org>
66220
66221         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66222         be POSIX compliant.
66223         Reported by Roger Persson <perrog@gmail.com>.
66224
66225 2006-11-01  Eric Blake  <ebb9@byu.net>
66226
66227         * lib/getopt_.h: Fix comments.
66228
66229 2006-10-31  Eric Blake  <ebb9@byu.net>
66230
66231         * modules/tmpdir (Depends-on): Add sys_stat.
66232         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66233         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66234         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66235         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66236         tempname.
66237
66238 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66239
66240         Avoid some C++ diagnostics reported by Bruno Haible.
66241         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66242         xmalloc.
66243         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66244         (struct slotvec): Move to top level.
66245         (quotearg_n_options): Rewrite to avoid xmalloc.
66246         * lib/xalloc.h (xcharalloc): New function.
66247         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66248         [defined __cplusplus]: Add function template that provides result
66249         type propagation.  This part of the change is from Bruno Haible.
66250
66251 2006-10-29  Bruno Haible  <bruno@clisp.org>
66252
66253         Make it compile in C++ mode.
66254         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66255         * lib/strnlen1.c (strnlen1): Cast memchr result.
66256         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66257         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66258         (create_temp_dir): Rename local variable 'template'.
66259         (compile_csharp_using_sscli): Add cast.
66260         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66261         * lib/findprog.c (find_in_path): Likewise.
66262         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66263         * lib/wait-process.c (register_slave_subprocess): Likewise.
66264
66265 2006-10-22  Bruno Haible  <bruno@clisp.org>
66266
66267         * modules/tsearch: New file.
66268         * lib/tsearch.h: New file.
66269         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66270         * m4/tsearch.m4: New file.
66271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66272
66273 2006-10-29  Eric Blake  <ebb9@byu.net>
66274
66275         * lib/arcfour.c: Assume config.h.
66276         * lib/arctwo.c: Likewise.
66277         * lib/base64.c: Likewise.
66278         * lib/check-version.c: Likewise.
66279         * lib/crc.c: Likewise.
66280         * lib/des.c: Likewise.
66281         * lib/gc-gnulib.c: Likewise.
66282         * lib/gc-libgcrypt.c: Likewise.
66283         * lib/gc-pbkdf2-sha1.c: Likewise.
66284         * lib/getaddrinfo.c: Likewise.
66285         * lib/getdelim.c: Likewise.
66286         * lib/getline.c: Likewise.
66287         * lib/hmac-md5.c: Likewise.
66288         * lib/hmac-sha1.c: Likewise.
66289         * lib/iconvme.c: Likewise.
66290         * lib/md2.c: Likewise.
66291         * lib/md4.c: Likewise.
66292         * lib/memxor.c: Likewise.
66293         * lib/read-file.c: Likewise.
66294         * lib/readline.c: Likewise.
66295         * lib/rijndael-alg-fst.c: Likewise.
66296         * lib/rijndael-api-fst.c: Likewise.
66297         * lib/xgetdomainname.c: Likewise.
66298
66299 2006-10-28  Eric Blake  <ebb9@byu.net>
66300
66301         * lib/xstrndup.c: Assume config.h.
66302
66303 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66304
66305         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66306         stat-macros.h is now for our own macros, whereas stat_h is for
66307         macros in the <sys/stat.h> name space.
66308         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66309         (STAT_MACROS_H): Remove.
66310         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66311         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66312         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66313         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66314         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66315         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66316         Move these macros to ...
66317         * lib/stat_.h: here.  Don't include stat-macros.h.
66318         * lib/canonicalize.c: Don't include stat-macros.h.
66319         * lib/chown.c: Likewise.
66320         * lib/euidaccess.c: Likewise.
66321         * lib/file-type.c: Likewise.
66322         * lib/filemode.c: Likewise.
66323         * lib/glob.c: Likewise.
66324         * lib/isapipe.c: Likewise.
66325         * lib/lchown.c: Likewise.
66326         * lib/lstat.c: Likewise.
66327         * lib/mkdir-p.c: Likewise.
66328         * lib/rmdir.c: Likewise.
66329         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66331         unless mkdir isn't declared, to speed up 'configure'.
66332         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66333         would define all the S_* symbols.
66334         * modules/canonicalize (Depends-on):
66335         Depend on sys_stat, not stat-macros.
66336         * modules/chown: Likewise.
66337         * modules/euidaccess: Likewise.
66338         * modules/filemode: Likewise.
66339         * modules/file-type: Likewise.
66340         * modules/glob: Likewise.
66341         * modules/isapipe: Likewise.
66342         * modules/lchown: Likewise.
66343         * modules/lstat: Likewise.
66344         * modules/mkancesdirs: Likewise.
66345         * modules/rmdir: Likewise.
66346         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66347         * modules/modechange: Likewise.
66348         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66349         (configure.ac): Remove gl_STAT_MACROS.
66350         * modules/sys_stat (Depends-on): Remove stat-macros.
66351
66352 2006-10-27  Bruno Haible  <bruno@clisp.org>
66353
66354         * m4/signed.m4: Remove file.
66355         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66356         invocation.
66357         * modules/vasnprintf (Files): Remove m4/signed.m4.
66358
66359 2006-10-27  Bruno Haible  <bruno@clisp.org>
66360
66361         Update to GNU gettext 0.16.
66362         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66363         m4/inttypes-h.m4, m4/signed.m4.
66364         * m4/gettext.m4: Update to GNU gettext 0.16.
66365         * m4/intl.m4: New file, from GNU gettext.
66366         * m4/intldir.m4: New file, from GNU gettext.
66367         * config/srclist.txt: Update
66368
66369 2006-10-27  Eric Blake  <ebb9@byu.net>
66370
66371         * MODULES.html.sh: Document tempname.
66372         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66373         dependencies.
66374         (Files): Move lib/tempname.c...
66375         * modules/tempname: ...to this new module.
66376         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66377         (gl_PREREQ_TEMPNAME): Move...
66378         * m4/tempname.m4: ...to this new file.
66379         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66380         * modules/sys_stat (Depends-on): Add stat-macros.
66381         * lib/stat_.h (includes): Pick up stat macros.
66382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66383         if stat macros are broken.
66384         * lib/tempname.c (includes): No need to include "stat-macros.h".
66385         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66386         (direxists, __path_search) [!_LIBC]: Don't compile these in
66387         gnulib; the tmpdir module covers that.
66388         * lib/tempname.h: New file.
66389
66390 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66391
66392         * COPYING: Explain how gnulib-tool converts licence headers.
66393         Almost all wording by Eric Blake.
66394
66395 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66396
66397         * lib/mbchar.h (is_basic_table): Make read-only.
66398         * lib/mbchar.c (is_basic_table): Likewise.
66399         Reported by John Darrington.
66400
66401 2006-10-25  Bruno Haible  <bruno@clisp.org>
66402
66403         * lib/progname.h (set_program_name): Undefine before defining.
66404
66405 2006-10-25  Bruno Haible  <bruno@clisp.org>
66406
66407         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66408         false for non-gcc C++ compilers.
66409         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66410
66411 2006-10-24  Bruno Haible  <bruno@clisp.org>
66412
66413         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66414         iconv implementations like Irix iconv.
66415
66416 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66417
66418         * modules/vararrays: New file.
66419         * m4/vararrays.m4: New file, taken from diffutils.
66420         * MODULES.html.sh: New module vararrays.
66421
66422 2006-10-24  Karl Berry  <karl@gnu.org>
66423
66424         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66425         Don't call GNU Unix.
66426
66427 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66428
66429         * users.txt: Add Libtool.
66430
66431         Sync from Libtool:
66432
66433         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66434
66435         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66436         to gnulib's policy of including config.h unconditionally.
66437
66438 2006-10-24  Bruno Haible  <bruno@clisp.org>
66439
66440         * modules/wcwidth (Files): Add m4/wint_t.m4.
66441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66442         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66443
66444 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66445
66446         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66447         to pacify GCC with some -W flags enabled.  Problem reported by
66448         Bruno Haible.
66449
66450 2006-10-24  Jim Meyering  <jim@meyering.net>
66451
66452         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66453         Reported by Karl Berry.
66454
66455 2006-10-23  Bruno Haible  <bruno@clisp.org>
66456
66457         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66458
66459 2006-10-24  Bruno Haible  <bruno@clisp.org>
66460
66461         * lib/gl_list.h: Use C comment style, not C++ comment style.
66462
66463 2006-10-23  Eric Blake  <ebb9@byu.net>
66464
66465         * lib/getaddrinfo.c (includes): Add missing include.
66466
66467 2006-10-23  Bruno Haible  <bruno@clisp.org>
66468             Paul Eggert  <eggert@cs.ucla.edu>
66469
66470         Ability to rename obstack_free.
66471         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66472         obstack_free.
66473         (obstack_free): Invoke the __obstack_free macro.
66474         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66475
66476 2006-10-23  Bruno Haible  <bruno@clisp.org>
66477             Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66480         __argc, __argv from the declaration. (They are defined as macros on
66481         mingw.)
66482
66483 2006-10-22  Bruno Haible  <bruno@clisp.org>
66484
66485         * doc/gnulib-intro.texi: New file.
66486         * doc/gnulib.texi: Include it.
66487
66488 2006-10-21  Bruno Haible  <bruno@clisp.org>
66489
66490         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66491         "Introduction", "Miscellanous Notes", "Particular Modules".
66492
66493 2006-10-21  Bruno Haible  <bruno@clisp.org>
66494
66495         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66496         Change mostlyclean-local rule to avoid sh syntax error from bash
66497         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66498
66499 2006-10-23  Jim Meyering  <jim@meyering.net>
66500
66501         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66502         in place of snprintf.
66503
66504         * modules/inttostr (Files): Add lib/uinttostr.c.
66505         * lib/uinttostr.c (inttostr): New file/function.
66506         * lib/inttostr.h (uinttostr): Declare.
66507         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66508         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66509         Add uinttostr.
66510         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66511
66512 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66513
66514         * lib/canonicalize.c (ELOOP): Define if not already defined.
66515         Problem reported by Bruno Haible in
66516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66517
66518 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66519
66520         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66521         Problem reported by Perry Smith and Ville Laurikari.
66522
66523         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66524         uses.
66525
66526 2006-10-19  Bruno Haible  <bruno@clisp.org>
66527
66528         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66529         for mingw.
66530
66531 2006-10-19  Bruno Haible  <bruno@clisp.org>
66532
66533         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66534         Needed for mingw.
66535
66536 2006-10-19  Bruno Haible  <bruno@clisp.org>
66537
66538         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66539
66540 2006-10-19  Bruno Haible  <bruno@clisp.org>
66541
66542         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66543         it.
66544
66545 2006-10-19  Bruno Haible  <bruno@clisp.org>
66546
66547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66548         invocation.
66549
66550 2006-10-19  Bruno Haible  <bruno@clisp.org>
66551
66552         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66553         mountlist by default.
66554
66555 2006-10-16  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/c-strstr.c: Include c-strstr.h.
66558
66559 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66560
66561         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66562         in a slash.
66563
66564 2006-10-18  Bruno Haible  <bruno@clisp.org>
66565
66566         * lib/lock.h [C++]: Wrap definitions in extern "C".
66567
66568 2006-10-18  Bruno Haible  <bruno@clisp.org>
66569
66570         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66571         gl_LIBOBJS list.
66572
66573 2006-10-18  Bruno Haible  <bruno@clisp.org>
66574
66575         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66576
66577 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         * lib/xstrtol.h: Include gettext.h.
66580         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66581         Problem reported by Eric Blake.
66582         * modules/xstrtol (Depends-on): Add gettext-h.
66583
66584 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66585
66586         * lib/strftime.c (advance): New macro.
66587         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66588         incomplete type, so you can't add 0 to it.  Problem and patch
66589         reported by Eelco Dolstra for dietlibc.
66590
66591 2006-10-18  Jim Meyering  <jim@meyering.net>
66592
66593         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66594         type for a local, and rename it: s/up/user_proc/.
66595
66596 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66597
66598         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66599         READ_UTMP_USER_PROCESS.
66600         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66601
66602 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66605         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66606
66607 2006-10-17  Eric Blake  <ebb9@byu.net>
66608
66609         * lib/sigprocmask.c (sigprocmask): Fix typo.
66610
66611         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66612
66613         * modules/clean-temp (Makefile.am): Don't add to make output...
66614         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66615         config.h.
66616
66617 2006-10-17  Bruno Haible  <bruno@clisp.org>
66618
66619         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66620         differently if DEFAULT_TEXT_DOMAIN is set.
66621
66622 2006-10-16  Bruno Haible  <bruno@clisp.org>
66623
66624         * lib/clean-temp.c: Include fwriteerror.h.
66625
66626 2006-10-16  Bruno Haible  <bruno@clisp.org>
66627
66628         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66629
66630 2006-10-16  Bruno Haible  <bruno@clisp.org>
66631
66632         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66633         * lib/sigprocmask.h: Include <sys/types.h>.
66634         (sigset_t): Use the system's definition if present.
66635
66636 2006-10-17  Eric Blake  <ebb9@byu.net>
66637
66638         * lib/xvasprintf.c (includes): Assume config.h.
66639         * lib/xasprintf.c (includes): Likewise.
66640
66641 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66642
66643         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66644         at least as wide as intmax_t.
66645
66646 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66647
66648         (Imported from Automake.)
66649         * build-aux/gnupload: Update to version 1.1 of directive file.
66650
66651 2006-10-16  Eric Blake  <ebb9@byu.net>
66652
66653         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66654         match Automake 1.10a.
66655
66656 2006-10-14  Bruno Haible  <bruno@clisp.org>
66657
66658         * modules/sigprocmask: New file.
66659         * lib/sigprocmask.h: New file.
66660         * lib/sigprocmask.c: New file.
66661         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66662         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66663         request sigprocmask.o.
66664         (gl_PREREQ_SIGPROCMASK): New macro.
66665         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66666         (Depends-on): Add sigprocmask.
66667         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66668         gt_SIGNALBLOCKING. Test for 'raise' only once.
66669         * lib/fatal-signal.c: Include sigprocmask.h.
66670         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66671         unblock_fatal_signals): Define always.
66672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66673         sigprocmask.
66674
66675 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66676
66677         Sync from Automake.
66678         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66679         which incorrectly sets the mode of an existing destination
66680         directory.  In some cases the unpatched install-sh could do the
66681         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66682         system.  We hope this is rare in practice, but it's clearly worth
66683         fixing.  Problem reported by Alex Unleashed in
66684         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66685         Also, don't bother to check for -m bugs unless we're using -m;
66686         suggested by Stepan Kasal.
66687
66688 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66689
66690         Sync from Automake.
66691         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66692         `-c' flag, so they appear at the same position as in %FASTDEP%
66693         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66694         which ignores unknown options only after the first non-option.
66695         Bug report against M4 by Nelson H. F. Beebe.
66696
66697 2006-10-13  Jim Meyering  <jim@meyering.net>
66698
66699         Fix a bug in yesterday's change.
66700         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66701         p->fts_statp->st_dev would be used uninitialized.
66702         Ensures that we always call fts_stat on the very first entry.
66703         Miklos Szeredi reported that find -xdev stopped working.
66704
66705 2006-10-12  Bruno Haible  <bruno@clisp.org>
66706
66707         * gnulib-tool (func_get_automake_snippet): Append an automatically
66708         computed EXTRA_DIST augmentation.
66709         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66710         * modules/alloca-opt (Makefile.am): Likewise.
66711         * modules/allocsa (Makefile.am): Likewise.
66712         * modules/arcfour (Makefile.am): Likewise.
66713         * modules/arctwo (Makefile.am): Likewise.
66714         * modules/argmatch (Makefile.am): Likewise.
66715         * modules/argz (Makefile.am): Likewise.
66716         * modules/atexit (Makefile.am): Likewise.
66717         * modules/backupfile (Makefile.am): Likewise.
66718         * modules/byteswap (Makefile.am): Likewise.
66719         * modules/c-strtod (Makefile.am): Likewise.
66720         * modules/c-strtold (Makefile.am): Likewise.
66721         * modules/calloc (Makefile.am): Likewise.
66722         * modules/canon-host (Makefile.am): Likewise.
66723         * modules/canonicalize (Makefile.am): Likewise.
66724         * modules/chdir-long (Makefile.am): Likewise.
66725         * modules/chdir-safer (Makefile.am): Likewise.
66726         * modules/check-version (Makefile.am): Likewise.
66727         * modules/chown (Makefile.am): Likewise.
66728         * modules/cloexec (Makefile.am): Likewise.
66729         * modules/close-stream (Makefile.am): Likewise.
66730         * modules/closeout (Makefile.am): Likewise.
66731         * modules/crc (Makefile.am): Likewise.
66732         * modules/csharpexec (Makefile.am): Likewise.
66733         * modules/cycle-check (Makefile.am): Likewise.
66734         * modules/des (Makefile.am): Likewise.
66735         * modules/dev-ino (Makefile.am): Likewise.
66736         * modules/dirfd (Makefile.am): Likewise.
66737         * modules/dirname (Makefile.am): Likewise.
66738         * modules/dup2 (Makefile.am): Likewise.
66739         * modules/eealloc (Makefile.am): Likewise.
66740         * modules/error (Makefile.am): Likewise.
66741         * modules/euidaccess (Makefile.am): Likewise.
66742         * modules/exclude (Makefile.am): Likewise.
66743         * modules/exitfail (Makefile.am): Likewise.
66744         * modules/fcntl-safer (Makefile.am): Likewise.
66745         * modules/fcntl (Makefile.am): Likewise.
66746         * modules/file-type (Makefile.am): Likewise.
66747         * modules/fileblocks (Makefile.am): Likewise.
66748         * modules/filemode (Makefile.am): Likewise.
66749         * modules/filenamecat (Makefile.am): Likewise.
66750         * modules/fnmatch (Makefile.am): Likewise.
66751         * modules/fopen-safer (Makefile.am): Likewise.
66752         * modules/fpending (Makefile.am): Likewise.
66753         * modules/fprintftime (Makefile.am): Likewise.
66754         * modules/free (Makefile.am): Likewise.
66755         * modules/fsusage (Makefile.am): Likewise.
66756         * modules/ftruncate (Makefile.am): Likewise.
66757         * modules/fts (Makefile.am): Likewise.
66758         * modules/gc-arcfour (Makefile.am): Likewise.
66759         * modules/gc-des (Makefile.am): Likewise.
66760         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66761         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66762         * modules/gc-md4 (Makefile.am): Likewise.
66763         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66764         * modules/gc-sha1 (Makefile.am): Likewise.
66765         * modules/gc (Makefile.am): Likewise.
66766         * modules/getaddrinfo (Makefile.am): Likewise.
66767         * modules/getcwd (Makefile.am): Likewise.
66768         * modules/getdelim (Makefile.am): Likewise.
66769         * modules/getdomainname (Makefile.am): Likewise.
66770         * modules/getgroups (Makefile.am): Likewise.
66771         * modules/gethostname (Makefile.am): Likewise.
66772         * modules/gethrxtime (Makefile.am): Likewise.
66773         * modules/getline (Makefile.am): Likewise.
66774         * modules/getloadavg (Makefile.am): Likewise.
66775         * modules/getlogin_r (Makefile.am): Likewise.
66776         * modules/getndelim2 (Makefile.am): Likewise.
66777         * modules/getopt (Makefile.am): Likewise.
66778         * modules/getpagesize (Makefile.am): Likewise.
66779         * modules/getpass-gnu (Makefile.am): Likewise.
66780         * modules/getpass (Makefile.am): Likewise.
66781         * modules/getsubopt (Makefile.am): Likewise.
66782         * modules/gettime (Makefile.am): Likewise.
66783         * modules/gettimeofday (Makefile.am): Likewise.
66784         * modules/getugroups (Makefile.am): Likewise.
66785         * modules/getusershell (Makefile.am): Likewise.
66786         * modules/glob (Makefile.am): Likewise.
66787         * modules/group-member (Makefile.am): Likewise.
66788         * modules/hard-locale (Makefile.am): Likewise.
66789         * modules/hash (Makefile.am): Likewise.
66790         * modules/hmac-md5 (Makefile.am): Likewise.
66791         * modules/hmac-sha1 (Makefile.am): Likewise.
66792         * modules/human (Makefile.am): Likewise.
66793         * modules/idcache (Makefile.am): Likewise.
66794         * modules/imaxabs (Makefile.am): Likewise.
66795         * modules/imaxdiv (Makefile.am): Likewise.
66796         * modules/inet_ntop (Makefile.am): Likewise.
66797         * modules/inet_pton (Makefile.am): Likewise.
66798         * modules/intprops (Makefile.am): Likewise.
66799         * modules/inttostr (Makefile.am): Likewise.
66800         * modules/inttypes (Makefile.am): Likewise.
66801         * modules/isapipe (Makefile.am): Likewise.
66802         * modules/javaversion (Makefile.am): Likewise.
66803         * modules/lchmod (Makefile.am): Likewise.
66804         * modules/lchown (Makefile.am): Likewise.
66805         * modules/localcharset (Makefile.am): Likewise.
66806         * modules/long-options (Makefile.am): Likewise.
66807         * modules/lstat (Makefile.am): Likewise.
66808         * modules/malloc (Makefile.am): Likewise.
66809         * modules/mathl (Makefile.am): Likewise.
66810         * modules/mbchar (Makefile.am): Likewise.
66811         * modules/md2 (Makefile.am): Likewise.
66812         * modules/md4 (Makefile.am): Likewise.
66813         * modules/md5 (Makefile.am): Likewise.
66814         * modules/memcasecmp (Makefile.am): Likewise.
66815         * modules/memchr (Makefile.am): Likewise.
66816         * modules/memcmp (Makefile.am): Likewise.
66817         * modules/memcoll (Makefile.am): Likewise.
66818         * modules/memcpy (Makefile.am): Likewise.
66819         * modules/memmem (Makefile.am): Likewise.
66820         * modules/memmove (Makefile.am): Likewise.
66821         * modules/mempcpy (Makefile.am): Likewise.
66822         * modules/memrchr (Makefile.am): Likewise.
66823         * modules/memset (Makefile.am): Likewise.
66824         * modules/memxor (Makefile.am): Likewise.
66825         * modules/mkancesdirs (Makefile.am): Likewise.
66826         * modules/mkdir-p (Makefile.am): Likewise.
66827         * modules/mkdir (Makefile.am): Likewise.
66828         * modules/mkdtemp (Makefile.am): Likewise.
66829         * modules/mkstemp (Makefile.am): Likewise.
66830         * modules/mktime (Makefile.am): Likewise.
66831         * modules/modechange (Makefile.am): Likewise.
66832         * modules/mountlist (Makefile.am): Likewise.
66833         * modules/nanosleep (Makefile.am): Likewise.
66834         * modules/obstack (Makefile.am): Likewise.
66835         * modules/openat (Makefile.am): Likewise.
66836         * modules/pagealign_alloc (Makefile.am): Likewise.
66837         * modules/pathmax (Makefile.am): Likewise.
66838         * modules/physmem (Makefile.am): Likewise.
66839         * modules/poll (Makefile.am): Likewise.
66840         * modules/posixtm (Makefile.am): Likewise.
66841         * modules/posixver (Makefile.am): Likewise.
66842         * modules/putenv (Makefile.am): Likewise.
66843         * modules/quote (Makefile.am): Likewise.
66844         * modules/quotearg (Makefile.am): Likewise.
66845         * modules/raise (Makefile.am): Likewise.
66846         * modules/read-file (Makefile.am): Likewise.
66847         * modules/readline (Makefile.am): Likewise.
66848         * modules/readlink (Makefile.am): Likewise.
66849         * modules/readtokens (Makefile.am): Likewise.
66850         * modules/readutmp (Makefile.am): Likewise.
66851         * modules/realloc (Makefile.am): Likewise.
66852         * modules/regex (Makefile.am): Likewise.
66853         * modules/rename-dest-slash (Makefile.am): Likewise.
66854         * modules/rename (Makefile.am): Likewise.
66855         * modules/rijndael (Makefile.am): Likewise.
66856         * modules/rmdir (Makefile.am): Likewise.
66857         * modules/rpmatch (Makefile.am): Likewise.
66858         * modules/safe-read (Makefile.am): Likewise.
66859         * modules/safe-write (Makefile.am): Likewise.
66860         * modules/same-inode (Makefile.am): Likewise.
66861         * modules/same (Makefile.am): Likewise.
66862         * modules/save-cwd (Makefile.am): Likewise.
66863         * modules/savedir (Makefile.am): Likewise.
66864         * modules/setenv (Makefile.am): Likewise.
66865         * modules/settime (Makefile.am): Likewise.
66866         * modules/sha1 (Makefile.am): Likewise.
66867         * modules/sig2str (Makefile.am): Likewise.
66868         * modules/snprintf (Makefile.am): Likewise.
66869         * modules/stat-macros (Makefile.am): Likewise.
66870         * modules/stat-time (Makefile.am): Likewise.
66871         * modules/stdbool (Makefile.am): Likewise.
66872         * modules/stdint (Makefile.am): Likewise.
66873         * modules/stdlib-safer (Makefile.am): Likewise.
66874         * modules/stpcpy (Makefile.am): Likewise.
66875         * modules/stpncpy (Makefile.am): Likewise.
66876         * modules/strcase (Makefile.am): Likewise.
66877         * modules/strcasestr (Makefile.am): Likewise.
66878         * modules/strchrnul (Makefile.am): Likewise.
66879         * modules/strcspn (Makefile.am): Likewise.
66880         * modules/strdup (Makefile.am): Likewise.
66881         * modules/strerror (Makefile.am): Likewise.
66882         * modules/strftime (Makefile.am): Likewise.
66883         * modules/strndup (Makefile.am): Likewise.
66884         * modules/strnlen (Makefile.am): Likewise.
66885         * modules/strpbrk (Makefile.am): Likewise.
66886         * modules/strsep (Makefile.am): Likewise.
66887         * modules/strstr (Makefile.am): Likewise.
66888         * modules/strtod (Makefile.am): Likewise.
66889         * modules/strtoimax (Makefile.am): Likewise.
66890         * modules/strtok_r (Makefile.am): Likewise.
66891         * modules/strtol (Makefile.am): Likewise.
66892         * modules/strtoll (Makefile.am): Likewise.
66893         * modules/strtoul (Makefile.am): Likewise.
66894         * modules/strtoull (Makefile.am): Likewise.
66895         * modules/strtoumax (Makefile.am): Likewise.
66896         * modules/strverscmp (Makefile.am): Likewise.
66897         * modules/sys_socket (Makefile.am): Likewise.
66898         * modules/sys_stat (Makefile.am): Likewise.
66899         * modules/sysexits (Makefile.am): Likewise.
66900         * modules/time_r (Makefile.am): Likewise.
66901         * modules/timegm (Makefile.am): Likewise.
66902         * modules/timespec (Makefile.am): Likewise.
66903         * modules/tmpfile-safer (Makefile.am): Likewise.
66904         * modules/trim (Makefile.am): Likewise.
66905         * modules/unistd-safer (Makefile.am): Likewise.
66906         * modules/unlinkdir (Makefile.am): Likewise.
66907         * modules/unlocked-io (Makefile.am): Likewise.
66908         * modules/userspec (Makefile.am): Likewise.
66909         * modules/utime (Makefile.am): Likewise.
66910         * modules/utimecmp (Makefile.am): Likewise.
66911         * modules/utimens (Makefile.am): Likewise.
66912         * modules/vasnprintf (Makefile.am): Likewise.
66913         * modules/vasprintf (Makefile.am): Likewise.
66914         * modules/vsnprintf (Makefile.am): Likewise.
66915         * modules/xalloc (Makefile.am): Likewise.
66916         * modules/xgetcwd (Makefile.am): Likewise.
66917         * modules/xnanosleep (Makefile.am): Likewise.
66918         * modules/xreadlink (Makefile.am): Likewise.
66919         * modules/xstrtod (Makefile.am): Likewise.
66920         * modules/xstrtol (Makefile.am): Likewise.
66921         * modules/xstrtold (Makefile.am): Likewise.
66922         * modules/yesno (Makefile.am): Likewise.
66923         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66924
66925 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * modules/error (Makefile.am): Distribute files through
66928         EXTRA_DIST, not lib_SOURCES.
66929
66930 2006-10-12  Eric Blake  <ebb9@byu.net>
66931
66932         * modules/error (Makefile.am): Distribute files in /lib.
66933         * modules/obstack (Makefile.am): Likewise.
66934
66935 2006-10-12  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/acl (Makefile.am): Distribute all files in lib/ through
66938         EXTRA_DIST.
66939         * modules/arcfour (Makefile.am): Likewise.
66940         * modules/arctwo (Makefile.am): Likewise.
66941         * modules/argmatch (Makefile.am): Likewise.
66942         * modules/argz (Makefile.am): Likewise.
66943         * modules/atexit (Makefile.am): Likewise.
66944         * modules/backupfile (Makefile.am): Likewise.
66945         * modules/c-strtod (Makefile.am): Likewise.
66946         * modules/c-strtold (Makefile.am): Likewise.
66947         * modules/calloc (Makefile.am): Likewise.
66948         * modules/canon-host (Makefile.am): Likewise.
66949         * modules/canonicalize (Makefile.am): Likewise.
66950         * modules/chdir-long (Makefile.am): Likewise.
66951         * modules/chdir-safer (Makefile.am): Likewise.
66952         * modules/check-version (Makefile.am): Likewise.
66953         * modules/chown (Makefile.am): Likewise.
66954         * modules/cloexec (Makefile.am): Likewise.
66955         * modules/close-stream (Makefile.am): Likewise.
66956         * modules/closeout (Makefile.am): Likewise.
66957         * modules/crc (Makefile.am): Likewise.
66958         * modules/cycle-check (Makefile.am): Likewise.
66959         * modules/des (Makefile.am): Likewise.
66960         * modules/dirfd (Makefile.am): Likewise.
66961         * modules/dirname (Makefile.am): Likewise.
66962         * modules/dup2 (Makefile.am): Likewise.
66963         * modules/euidaccess (Makefile.am): Likewise.
66964         * modules/exclude (Makefile.am): Likewise.
66965         * modules/exitfail (Makefile.am): Likewise.
66966         * modules/fcntl-safer (Makefile.am): Likewise.
66967         * modules/file-type (Makefile.am): Likewise.
66968         * modules/fileblocks (Makefile.am): Likewise.
66969         * modules/filemode (Makefile.am): Likewise.
66970         * modules/filenamecat (Makefile.am): Likewise.
66971         * modules/fnmatch (Makefile.am): Likewise.
66972         * modules/fopen-safer (Makefile.am): Likewise.
66973         * modules/fpending (Makefile.am): Likewise.
66974         * modules/fprintftime (Makefile.am): Likewise.
66975         * modules/free (Makefile.am): Likewise.
66976         * modules/fsusage (Makefile.am): Likewise.
66977         * modules/ftruncate (Makefile.am): Likewise.
66978         * modules/fts (Makefile.am): Likewise.
66979         * modules/gc (Makefile.am): Likewise.
66980         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66981         * modules/getaddrinfo (Makefile.am): Likewise.
66982         * modules/getcwd (Makefile.am): Likewise.
66983         * modules/getdelim (Makefile.am): Likewise.
66984         * modules/getdomainname (Makefile.am): Likewise.
66985         * modules/getgroups (Makefile.am): Likewise.
66986         * modules/gethostname (Makefile.am): Likewise.
66987         * modules/gethrxtime (Makefile.am): Likewise.
66988         * modules/getline (Makefile.am): Likewise.
66989         * modules/getloadavg (Makefile.am): Likewise.
66990         * modules/getlogin_r (Makefile.am): Likewise.
66991         * modules/getopt (Makefile.am): Likewise.
66992         * modules/getpass (Makefile.am): Likewise.
66993         * modules/getpass-gnu (Makefile.am): Likewise.
66994         * modules/getsubopt (Makefile.am): Likewise.
66995         * modules/gettime (Makefile.am): Likewise.
66996         * modules/gettimeofday (Makefile.am): Likewise.
66997         * modules/getugroups (Makefile.am): Likewise.
66998         * modules/getusershell (Makefile.am): Likewise.
66999         * modules/glob (Makefile.am): Likewise.
67000         * modules/group-member (Makefile.am): Likewise.
67001         * modules/hard-locale (Makefile.am): Likewise.
67002         * modules/hash (Makefile.am): Likewise.
67003         * modules/hmac-md5 (Makefile.am): Likewise.
67004         * modules/hmac-sha1 (Makefile.am): Likewise.
67005         * modules/human (Makefile.am): Likewise.
67006         * modules/idcache (Makefile.am): Likewise.
67007         * modules/imaxabs (Makefile.am): Likewise.
67008         * modules/imaxdiv (Makefile.am): Likewise.
67009         * modules/inet_ntop (Makefile.am): Likewise.
67010         * modules/inet_pton (Makefile.am): Likewise.
67011         * modules/inttostr (Makefile.am): Likewise.
67012         * modules/isapipe (Makefile.am): Likewise.
67013         * modules/lchown (Makefile.am): Likewise.
67014         * modules/long-options (Makefile.am): Likewise.
67015         * modules/lstat (Makefile.am): Likewise.
67016         * modules/malloc (Makefile.am): Likewise.
67017         * modules/mathl (Makefile.am): Likewise.
67018         * modules/mbchar (Makefile.am): Likewise.
67019         * modules/md2 (Makefile.am): Likewise.
67020         * modules/md4 (Makefile.am): Likewise.
67021         * modules/md5 (Makefile.am): Likewise.
67022         * modules/memcasecmp (Makefile.am): Likewise.
67023         * modules/memchr (Makefile.am): Likewise.
67024         * modules/memcmp (Makefile.am): Likewise.
67025         * modules/memcoll (Makefile.am): Likewise.
67026         * modules/memcpy (Makefile.am): Likewise.
67027         * modules/memmem (Makefile.am): Likewise.
67028         * modules/memmove (Makefile.am): Likewise.
67029         * modules/mempcpy (Makefile.am): Likewise.
67030         * modules/memrchr (Makefile.am): Likewise.
67031         * modules/memset (Makefile.am): Likewise.
67032         * modules/memxor (Makefile.am): Likewise.
67033         * modules/mkancesdirs (Makefile.am): Likewise.
67034         * modules/mkdir (Makefile.am): Likewise.
67035         * modules/mkdir-p (Makefile.am): Likewise.
67036         * modules/mkdtemp (Makefile.am): Likewise.
67037         * modules/mkstemp (Makefile.am): Likewise.
67038         * modules/mktime (Makefile.am): Likewise.
67039         * modules/modechange (Makefile.am): Likewise.
67040         * modules/mountlist (Makefile.am): Likewise.
67041         * modules/nanosleep (Makefile.am): Likewise.
67042         * modules/openat (Makefile.am): Likewise.
67043         * modules/pagealign_alloc (Makefile.am): Likewise.
67044         * modules/physmem (Makefile.am): Likewise.
67045         * modules/poll (Makefile.am): Likewise.
67046         * modules/posixtm (Makefile.am): Likewise.
67047         * modules/posixver (Makefile.am): Likewise.
67048         * modules/putenv (Makefile.am): Likewise.
67049         * modules/quote (Makefile.am): Likewise.
67050         * modules/quotearg (Makefile.am): Likewise.
67051         * modules/raise (Makefile.am): Likewise.
67052         * modules/read-file (Makefile.am): Likewise.
67053         * modules/readline (Makefile.am): Likewise.
67054         * modules/readlink (Makefile.am): Likewise.
67055         * modules/readtokens (Makefile.am): Likewise.
67056         * modules/readutmp (Makefile.am): Likewise.
67057         * modules/realloc (Makefile.am): Likewise.
67058         * modules/regex (Makefile.am): Likewise.
67059         * modules/rename (Makefile.am): Likewise.
67060         * modules/rename-dest-slash (Makefile.am): Likewise.
67061         * modules/rijndael (Makefile.am): Likewise.
67062         * modules/rmdir (Makefile.am): Likewise.
67063         * modules/rpmatch (Makefile.am): Likewise.
67064         * modules/safe-read (Makefile.am): Likewise.
67065         * modules/safe-write (Makefile.am): Likewise.
67066         * modules/same (Makefile.am): Likewise.
67067         * modules/save-cwd (Makefile.am): Likewise.
67068         * modules/savedir (Makefile.am): Likewise.
67069         * modules/setenv (Makefile.am): Likewise.
67070         * modules/settime (Makefile.am): Likewise.
67071         * modules/sha1 (Makefile.am): Likewise.
67072         * modules/sig2str (Makefile.am): Likewise.
67073         * modules/snprintf (Makefile.am): Likewise.
67074         * modules/stdlib-safer (Makefile.am): Likewise.
67075         * modules/stpcpy (Makefile.am): Likewise.
67076         * modules/stpncpy (Makefile.am): Likewise.
67077         * modules/strcase (Makefile.am): Likewise.
67078         * modules/strcasestr (Makefile.am): Likewise.
67079         * modules/strchrnul (Makefile.am): Likewise.
67080         * modules/strcspn (Makefile.am): Likewise.
67081         * modules/strdup (Makefile.am): Likewise.
67082         * modules/strerror (Makefile.am): Likewise.
67083         * modules/strftime (Makefile.am): Likewise.
67084         * modules/strndup (Makefile.am): Likewise.
67085         * modules/strnlen (Makefile.am): Likewise.
67086         * modules/strpbrk (Makefile.am): Likewise.
67087         * modules/strsep (Makefile.am): Likewise.
67088         * modules/strstr (Makefile.am): Likewise.
67089         * modules/strtod (Makefile.am): Likewise.
67090         * modules/strtoimax (Makefile.am): Likewise.
67091         * modules/strtok_r (Makefile.am): Likewise.
67092         * modules/strtol (Makefile.am): Likewise.
67093         * modules/strtoll (Makefile.am): Likewise.
67094         * modules/strtoul (Makefile.am): Likewise.
67095         * modules/strtoull (Makefile.am): Likewise.
67096         * modules/strtoumax (Makefile.am): Likewise.
67097         * modules/strverscmp (Makefile.am): Likewise.
67098         * modules/time_r (Makefile.am): Likewise.
67099         * modules/timegm (Makefile.am): Likewise.
67100         * modules/tmpfile-safer (Makefile.am): Likewise.
67101         * modules/unistd-safer (Makefile.am): Likewise.
67102         * modules/unlinkdir (Makefile.am): Likewise.
67103         * modules/userspec (Makefile.am): Likewise.
67104         * modules/utime (Makefile.am): Likewise.
67105         * modules/utimecmp (Makefile.am): Likewise.
67106         * modules/utimens (Makefile.am): Likewise.
67107         * modules/vasnprintf (Makefile.am): Likewise.
67108         * modules/vasprintf (Makefile.am): Likewise.
67109         * modules/vsnprintf (Makefile.am): Likewise.
67110         * modules/xalloc (Makefile.am): Likewise.
67111         * modules/xgetcwd (Makefile.am): Likewise.
67112         * modules/xnanosleep (Makefile.am): Likewise.
67113         * modules/xreadlink (Makefile.am): Likewise.
67114         * modules/xstrtod (Makefile.am): Likewise.
67115         * modules/xstrtol (Makefile.am): Likewise.
67116         * modules/xstrtold (Makefile.am): Likewise.
67117         * modules/yesno (Makefile.am): Likewise.
67118
67119 2006-10-12  Jim Meyering  <jim@meyering.net>
67120
67121         * m4/getloadavg.m4: Revert the change below.
67122
67123         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67124         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67125         fail with a symlink, which is what coreutils' ./bootstrap now
67126         creates by default.
67127
67128 2006-10-12  Bruno Haible  <bruno@clisp.org>
67129
67130         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67131         mingw.
67132         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67133         MSVC and mingw explicitly.
67134
67135 2006-10-11  Simon Josefsson  <jas@extundo.com>
67136             Bruno Haible  <bruno@clisp.org>
67137
67138         Add support for multiple gnulib-tool invocations in the scope of a
67139         single configure.ac file.
67140         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67141         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67142         with the same contents as the _LIBADD variable.
67143         (func_emit_initmacro_start, func_emit_initmacro_end,
67144         func_emit_initmacro_done): New functions.
67145         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67146         gl_LIBOBJS and gl_LTLIBOBJS.
67147
67148 2006-10-11  Bruno Haible  <bruno@clisp.org>
67149
67150         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67151         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67152         autoreconf. Instead, invoke autopoint explicitly but move back the
67153         *.m4 files from gnulib.
67154
67155 2006-10-11  Bruno Haible  <bruno@clisp.org>
67156
67157         * gnulib-tool (func_usage): Make module names after --create-testdir
67158         optional.
67159         (func_create_testdir): If no module was specified, use nearly all
67160         modules.
67161
67162 2006-10-12  Jim Meyering  <jim@meyering.net>
67163
67164         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67165         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67166         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67167         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67168         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67169         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67170         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67171         (fts_set_stat_required): New function.
67172         (fts_open): Defer the calls to fts_stat, if possible or requested.
67173         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67174         into fts_stat itself.
67175         (fts_read): Perform any required (deferred) fts_stat call.
67176         (fts_build): Likewise, for the directory we're about to open and read.
67177         In the readdir loop, carefully decide whether each entry will require
67178         an eventual call to fts_stat, using dirent.d_type info if available.
67179         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67180         a command line argument into this function.  Update all callers.
67181         Map a return value of FTS_DOT to FTS_D for a command line argument.
67182         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67183         Thanks to Miklos Szeredi for his tenacity and for the initial
67184         bug report about "find" failing on a FUSE-based file system.
67185
67186         * lib/fts.c (fts_open): Use consistent indentation.
67187
67188 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67191         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67192         reported by Jim Meyering.  All uses of cache variables renamed
67193         to match Autoconf's.
67194         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67195         the other one.
67196
67197         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67198         Fix misspelling in diagnostic.
67199
67200 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67203         defined.  Problem reported by Matthew Woehlke.
67204
67205         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67206         Add support for Tandem NonStop R series.
67207         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67208         Use new macro.
67209
67210         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67211         (has_trailing_slash): Omit size arg; all callers changed.
67212         Omit 'inline', since it doesn't help performance and we'd
67213         need to configure it.
67214         Don't count //, ///, etc. as having a trailing slash.
67215         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67216         (rpl_rename_dest_slash): On failure, use rename's errno rather
67217         than (in some cases) an incorrect or junk errno.
67218         Simplify code by removing need to compute length; this does
67219         cause it to make two passes instead of one over the file name,
67220         but it's worth it.
67221
67222         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67223         change, since Autoconf's version may no longer be appropriate now
67224         that we are using CVS Autoconf's version.  Add support for Tandem.
67225
67226 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67227             Bruno Haible  <bruno@clisp.org>
67228
67229         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67230         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67231         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67232         gl_AC_TYPE_LONG_LONG.
67233
67234         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67235         instead of HAVE_LONG_LONG.
67236         * lib/printf-args.c (printf_fetchargs): Likewise.
67237         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67238         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67239         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67240         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67241         gl_AC_TYPE_LONG_LONG.
67242
67243 2006-10-11  Bruno Haible  <bruno@clisp.org>
67244
67245         * m4/longlong.m4: Add comments.
67246         * m4/ulonglong.m4: Likewise.
67247
67248 2006-10-10  Bruno Haible  <bruno@clisp.org>
67249
67250         Make it possible to #define stpcpy, strdup to aliases.
67251         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67252         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67253
67254 2006-10-10  Bruno Haible  <bruno@clisp.org>
67255
67256         Make it possible to #define gcd to an alias.
67257         * lib/gcd.c: Include config.h.
67258
67259 2006-10-10  Bruno Haible  <bruno@clisp.org>
67260
67261         Make it possible to #define c_isascii to an alias.
67262         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67263         defined. Undefine the macros before defining them, to avoid gcc
67264         warnings.
67265         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67266         define NO_C_CTYPE_MACROS early.
67267
67268 2006-10-10  Bruno Haible  <bruno@clisp.org>
67269
67270         Make it possible to #define set_program_name to an alias.
67271         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67272         ENABLE_RELOCATABLE early.
67273
67274 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67277         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67278         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67279         More generally, don't assume that 64-bit signed int is available
67280         if unsigned int is, and vice versa.
67281         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67282         unsigned symbols, not on their signed counterparts.
67283         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67284         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67285         (UINT64_C, UINTMAX_C):
67286         Likewise.
67287         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67288         unsigned counterparts.
67289         (Have_long_long, Unsigned): New macros.
67290         (Int): Renamed from INT.
67291         (strtoimax): Use the new macros.
67292         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67293         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67294         * modules/inttypes (inttypes.h): Substitute
67295         HAVE_UNSIGNED_LONG_LONG_INT.
67296         * modules/stdint (stdint.h): Likewise.
67297         (Files): Add m4/ulonglong.m4.
67298
67299 2006-10-10  Bruno Haible  <bruno@clisp.org>
67300
67301         Fix a gcc -Wshadow warning.
67302         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67303         to 'bucket'.
67304         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67305         gl_linked_indexof_from_to): Likewise.
67306         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67307         Likewise.
67308         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67309         Likewise.
67310         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67311         Reported by Eric Blake.
67312
67313 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67314
67315         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67316         for NetBSD.  Problem reported by Bruno Haible.
67317
67318 2006-10-09  Jim Meyering  <jim@meyering.net>
67319
67320         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67321         Patch from Bruno Haible.
67322
67323 2006-10-09  Jim Meyering  <jim@meyering.net>
67324
67325         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67326         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67327         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67328
67329 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67330
67331         Don't include <config.h> twice; this doesn't work in some cases,
67332         e.g., when config.h has "#define intmax_t long long int" and
67333         we include <config.h>, <inttypes.h>, <config.h> in that order.
67334         Problem reported by Matthew Woehlke in:
67335         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67336         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67337         * lib/fts-cycle.c: Don't include config.h.
67338         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67339         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67340         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67341         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67342         inttypes.h.
67343         * lib/xstrtoumax.c: Likewise.
67344         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67345         __strtol and the like, so that this module is more like its siblings.
67346         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67347         Remove; no longer needed now that we assume gnulib inttypes.h.
67348
67349 2006-10-08  Bruno Haible  <bruno@clisp.org>
67350
67351         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67352         option.
67353
67354 2006-10-07  Jim Meyering  <jim@meyering.net>
67355
67356         * modules/inttypes (inttypes.h): Revert what seems to have been
67357         an inadvertent part of today's change: use "|", not "/" in the
67358         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67359
67360 2006-10-07  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/sublist: New file.
67363
67364 2006-10-07  Bruno Haible  <bruno@clisp.org>
67365
67366         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67367         * modules/argz (argz.h): Likewise.
67368         * modules/arpa_inet (arpa/inet.h): Likewise.
67369         * modules/byteswap (byteswap.h): Likewise.
67370         * modules/configmake (configmake.h): Likewise.
67371         * modules/fcntl (fcntl.h): Likewise.
67372         * modules/fnmatch (fnmatch.h): Likewise.
67373         * modules/getopt (getopt.h): Likewise.
67374         * modules/glob (glob.h): Likewise.
67375         * modules/inttypes (inttypes.h): Likewise.
67376         * modules/netinet_in (netinet/in.h): Likewise.
67377         * modules/poll (poll.h): Likewise.
67378         * modules/stdbool (stdbool.h): Likewise.
67379         * modules/stdint (stdint.h): Likewise.
67380         * modules/sys_select (sys/select.h): Likewise.
67381         * modules/sys_socket (sys/socket.h): Likewise.
67382         * modules/sys_stat (sys/stat.h): Likewise.
67383         * modules/sysexits (sysexits.h): Likewise.
67384         * modules/unistd (unistd.h): Likewise.
67385         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67386         Add a "DO NOT EDIT" comment to the generated file.
67387         (func_import): Likewise for gnulib-comp.m4.
67388
67389 2006-10-07  Bruno Haible  <bruno@clisp.org>
67390
67391         * lib/gl_sublist.h: New file.
67392         * lib/gl_sublist.c: New file.
67393
67394 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67395
67396         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67397         name (relative to the original working directory) and the file
67398         name component (relative to the temporary working directory).  All
67399         callers changed.
67400         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67401         * lib/mkdir-p.c (make_dir_parents): Likewise.
67402         * lib/mkdir-p.h (make_dir_parents): Likewise.
67403
67404 2006-10-06  Eric Blake  <ebb9@byu.net>
67405
67406         Define several macros for use by the clean-temp module.
67407         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67408         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67409         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67410
67411         * lib/clean-temp.h (close_stream_temp): New declaration.
67412         * lib/clean-temp.c (includes): Pull in headers according to what
67413         other modules are in use.
67414         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67415
67416 2006-10-06  Bruno Haible  <bruno@clisp.org>
67417
67418         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67419         instead of fopen, fwriteerror.
67420
67421 2006-10-06  Bruno Haible  <bruno@clisp.org>
67422
67423         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67424         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67425         int.
67426         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67427         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67428         Return an error indicator.
67429         Suggested by Eric Blake.
67430
67431 2006-10-06  Bruno Haible  <bruno@clisp.org>
67432
67433         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67434         Reported by Eric Blake.
67435
67436 2006-10-06  Bruno Haible  <bruno@clisp.org>
67437
67438         * modules/closeout (Description): Mention stderr too.
67439
67440 2006-10-06  Bruno Haible  <bruno@clisp.org>
67441         and Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         * lib/closeout.c (close_stdout): Also close stderr.
67444         * lib/closeout.h: Update comment.
67445
67446 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67447
67448         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67449         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67450         * lib/dirchownmod.c: Include lchown.h.
67451         * lib/lchown.c: Don't include files that lchown.h now includes.
67452         Don't declare chown, since lchown.h now does that.
67453         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67454         (lchown): Define to rpl_chown if lchown is declared but
67455         does not exist.  Declare using a prototype if lchown is not
67456         declared.  Add a copyright notice.
67457         * lib/mkstemp.h: Include <unistd.h>.
67458         * lib/openat.c: Include lchown.h.
67459
67460         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67461         we now test for that separately.
67462         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67463         rather than O_NOFOLLOW, when testing whether it's possible to
67464         avoid a race condition reliably.
67465         * lib/savewd.c (savewd_chdir): Likewise.
67466
67467         Remove macros that are no longer needed now that stdint.h is
67468         reliable.
67469         * lib/fsusage.c (UINTMAX_MAX): Remove.
67470         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67471         * lib/utimecmp.c (SIZE_MAX): Remove.
67472
67473         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67474
67475         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67476         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67477         O_NOATIME works.
67478
67479 2006-10-05  Bruno Haible  <bruno@clisp.org>
67480
67481         * lib/gl_list.h (gl_sortedlist_search_from_to,
67482         gl_sortedlist_indexof_from_to): New declarations.
67483         (gl_list_implementation): New fields sortedlist_search_from_to,
67484         sortedlist_indexof_from_to.
67485         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67486         inline functions.
67487         * lib/gl_list.c (gl_sortedlist_search_from_to,
67488         gl_sortedlist_indexof_from_to): New functions.
67489         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67490         function.
67491         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67492         (gl_array_sortedlist_search_from_to): New function.
67493         (gl_array_list_implementation): Update.
67494         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67495         function.
67496         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67497         (gl_carray_sortedlist_search_from_to): New function.
67498         (gl_carray_list_implementation): Update.
67499         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67500         gl_linked_sortedlist_indexof_from_to): New functions.
67501         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67502         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67503         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67504         gl_tree_sortedlist_indexof_from_to): New functions.
67505         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67506         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67507         Update.
67508         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67509         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67510         Update.
67511
67512 2006-10-05  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67515         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67516         (struct gl_list_implementation): Add fields search_from_to,
67517         indexof_from_to. Remove fields search, indexof.
67518         (gl_list_search): Use the search_from_to method.
67519         (gl_list_search_from, gl_list_search_from_to): New functions.
67520         (gl_list_indexof): Use the indexof_from_to method.
67521         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67522         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67523         (gl_list_search_from, gl_list_search_from_to): New functions.
67524         (gl_list_indexof): Use the indexof_from_to method.
67525         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67526         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67527         gl_array_indexof. Add start_index, end_index arguments.
67528         (gl_array_search_from_to): Renamed from gl_array_search. Add
67529         start_index, end_index arguments.
67530         (gl_array_remove, gl_array_list_implementation): Update.
67531         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67532         gl_carray_indexof. Add start_index, end_index arguments.
67533         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67534         start_index, end_index arguments.
67535         (gl_carray_remove, gl_carray_list_implementation): Update.
67536         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67537         gl_linked_search. Add start_index, end_index arguments.
67538         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67539         start_index, end_index arguments.
67540         (gl_linked_remove): Update.
67541         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67542         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67543         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67544         field to 'size_t'.
67545         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67546         gl_tree_search. Add start_index, end_index arguments.
67547         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67548         start_index, end_index arguments.
67549         (gl_tree_remove): Update.
67550         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67551         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67552         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67553         function.
67554         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67555         gl_tree_search. Add start_index, end_index arguments.
67556         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67557         start_index, end_index arguments.
67558         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67559         Update.
67560         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67561
67562 2006-10-05  Bruno Haible  <bruno@clisp.org>
67563
67564         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67565
67566         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67567         fwriteerror_temp): New declarations.
67568         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67569         (descriptors): New variable.
67570         (cleanup): First, close the descriptors.
67571         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67572         fclose_temp, fwriteerror_temp): New functions.
67573
67574 2006-10-04  Jim Meyering  <jim@meyering.net>
67575
67576         * lib/fts.c (fts_open): Tiny comment change.
67577
67578 2006-10-04  Bruno Haible  <bruno@clisp.org>
67579
67580         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67581         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67582         gl_LOCK_BODY.
67583         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67584         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67585         gl_LOCK_EARLY_BODY.
67586         (gl_LOCK): Require gl_LOCK_BODY.
67587
67588 2006-10-04  Bruno Haible  <bruno@clisp.org>
67589
67590         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67591         (gl_oset_search_atleast): New declaration.
67592         (struct gl_oset_implementation): Add field 'search_atleast'.
67593         (gl_oset_search_atleast): New inline function.
67594         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67595         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67596         (gl_array_oset_implementation): Update.
67597         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67598         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67599         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67600
67601 2006-10-04  Bruno Haible  <bruno@clisp.org>
67602
67603         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67604
67605 2006-10-03  Bruno Haible  <bruno@clisp.org>
67606
67607         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67608         from gl_avltreehash_list_implementation.
67609
67610 2006-10-03  Bruno Haible  <bruno@clisp.org>
67611
67612         * lib/gl_oset.c (gl_oset_add): Fix return type.
67613
67614 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67615
67616         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67617
67618 2006-10-02  Eric Blake  <ebb9@byu.net>
67619
67620         * modules/strnlen (Depends-on): Add extensions.
67621
67622 2006-10-02  Eric Blake  <ebb9@byu.net>
67623
67624         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67625         definition in 2.60+.
67626
67627 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67628
67629         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67630         checks.
67631
67632 2006-10-02  Bruno Haible  <bruno@clisp.org>
67633
67634         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67635         to the AUTOMAKE_OPTIONS.
67636         Reported by Jim Meyering.
67637
67638 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         Work around bug in Solaris 10 /proc file system:
67641         /proc/self/fd/NNN/.. isn't the parent directory of
67642         the directory whose file descriptor is NNN.  This needs to
67643         be worked around at run time, not compile time, since a
67644         program might be built on Solaris 8, where things work, and
67645         run on Solaris 10.
67646         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67647         to use the following interface instead:
67648         (OPENAT_BUFFER_SIZE): New macro.
67649         (openat_proc_name): New function.
67650         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67651         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67652         Likewise.
67653         * lib/openat-proc.c: New file.
67654         * modules/openat (Files): Add lib/openat-proc.c.
67655         (Depends-on): Add same-inode, stdbool.
67656         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67657
67658 2006-09-29  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67661         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67662         argument. Set stdout_closed before testing for ferror, not after.
67663         (fwriteerror, fwriteerror_no_ebadf): New functions.
67664
67665 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67666
67667         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67668
67669 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67670
67671         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67672         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67673
67674 2006-09-28  Jim Meyering  <jim@meyering.net>
67675
67676         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67677         Include <unistd.h>.
67678
67679 2006-09-28  Bruno Haible  <bruno@clisp.org>
67680
67681         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67682         * modules/linkedhash-list (Depends-on): Likewise.
67683         * modules/rbtreehash-list (Depends-on): Likewise.
67684
67685 2006-09-28  Bruno Haible  <bruno@clisp.org>
67686
67687         * lib/strndup.h: Simplify the redefinition of strndup.
67688         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67689         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67690
67691 2006-09-28  Bruno Haible  <bruno@clisp.org>
67692
67693         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67694         * lib/gl_linkedhash_list.c: Likewise.
67695         * lib/gl_rbtreehash_list.c: Likewise.
67696
67697 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67698
67699         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67700         getaddrinfo.
67701
67702         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67703         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67704         it causes <stdio_ext.h> to cause a compile-time error.
67705         Problem reported by Nelson H. F. Beebe.
67706         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67707         of HAVE_DECL___PENDING.
67708
67709         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67710         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67711         declaration.
67712
67713 2006-09-27  Jim Meyering  <jim@meyering.net>
67714
67715         This file could end up with a definition for a function
67716         named __strndup, rather than rpl_strndup on a system with
67717         incomplete weak_alias support.
67718         * lib/strndup.c (strndup): Rename from __strndup.
67719         Remove #defines that used to map __strndup to strndup.
67720         Don't use K&R prototypes.
67721         Remove LIBC-related code, since this file is not sync'd with glibc.
67722         * lib/strndup.h: Revamp, accordingly.
67723         * m4/strndup.m4: Modernize.
67724
67725 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67726
67727         * modules/savewd (Depends-on): Add 'raise'.
67728         * lib/savewd.c: Include <signal.h>, for 'raise'.
67729
67730 2006-09-26  Jim Meyering  <jim@meyering.net>
67731
67732         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67733         when we detect Darwin 8.7.0's acl_get_file bug.
67734         Rearrange to perform the new (below) run-test while $LIBS
67735         contains any acl-related library.  Set USE_ACL at the end.
67736         (gl_ACL_GET_FILE): New function.
67737
67738 2006-09-26  Eric Blake  <ebb9@byu.net>
67739
67740         * lib/verror.c: Include <config.h> unconditionally.
67741
67742 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         * modules/clock-time (Maintainer): Add self.
67745         * modules/getlogin_r (Depends-on): Add extensions.
67746
67747 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67748
67749         * modules/clock-time: New module.
67750         * modules/nanosleep (Depends-on): Add clock-time.
67751         * modules/gethrxtime (Depends-on): Likewise.
67752         * modules/gettime (Depends-on): Likewise.
67753         * modules/settime (Depends-on): Likewise.
67754
67755         * modules/fts-lgpl: Depend on openat.
67756         * modules/mkancesdirs: Depend on savewd.
67757         * modules/mkdir-p: Likewise.
67758
67759 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67760
67761         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67762
67763         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67764         `gl_have_arbitrary_file_name_length_limit' to
67765         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67766         actually works between configure runs.
67767
67768 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67769             Bruno Haible  <bruno@clisp.org>
67770
67771         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67772
67773 2006-09-25  Jim Meyering  <jim@meyering.net>
67774
67775         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67776         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67777
67778 2006-09-25  Eric Blake  <ebb9@byu.net>
67779
67780         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67781         exec's in 2006-09-18 patch when shuffling fds.
67782
67783 2006-09-25  Bruno Haible  <bruno@clisp.org>
67784
67785         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67786         Reported by Jim Meyering.
67787
67788 2006-09-24  Jim Meyering  <jim@meyering.net>
67789
67790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67791         compare a pointer against a literal "0".  That caused failures with
67792         at least HP-UX's hpcc.
67793
67794 2006-09-22  Simon Josefsson  <jas@extundo.com>
67795
67796         * modules/gc-sha1:
67797         * modules/gc-md4:
67798         * modules/gc-hmac-sha1:
67799         * modules/gc-hmac-md5:
67800         * modules/gc-des:
67801         * modules/gc-arcfour: Distribute more files.
67802
67803 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67804
67805         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67806         (gl_linked_iterator_from_to): Initialize struct completely.
67807         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67808         (gl_tree_iterator_from_to): Likewise
67809         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67810         * lib/gl_array_list.c [lint] (gl_array_iterator)
67811         (gl_array_iterator_from_to): Likewise.
67812         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67813         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67814         (gl_carray_iterator_from_to): Likewise.
67815
67816         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67817         * lib/md4.c (md4_process_block): Remove unused variable.
67818         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67819         parentheses for clarity.
67820
67821 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67822
67823         * modules/bison-i18n (Depends-on): Add gettext.
67824
67825 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67826
67827         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67828         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67829         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67830         also add missing comma that caused broken test.
67831         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67832         stdlib.h, for `abort'.
67833         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67834         variables.
67835         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67836         include unistd.h if present, for `rmdir'.
67837         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67838         variables.
67839         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67840         in the process include standard headers for prototypes.
67841         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67842         gets declared on GNU/Linux.
67843         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67844         unistd.h, for `rmdir'.
67845         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67846
67847         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67848         always true.
67849         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67850
67851         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67852
67853 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67854
67855         * gnulib-tool (func_version): Create output all at once.  This
67856         may help avoid triggering unnecessary SIGPIPEs, and at any
67857         rate it doesn't hurt.
67858
67859 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67860             Bruno Haible  <bruno@clisp.org>
67861
67862         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67863         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67864         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67865
67866         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67867         (gl_FUNC_VASPRINTF): Invoke it.
67868
67869 2006-09-22  Bruno Haible  <bruno@clisp.org>
67870
67871         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67872         getloadavg.c as first argument.
67873
67874 2006-09-22  Bruno Haible  <bruno@clisp.org>
67875
67876         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67877         at the beginning of the gl_INIT macro.
67878         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67879         gl_GETLOADAVG.
67880
67881 2006-09-22  Bruno Haible  <bruno@clisp.org>
67882
67883         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67884         module.
67885         Suggested by Ralf Wildenhues.
67886
67887 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         Import this patch from libc:
67890
67891         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67892
67893         * lib/regex_internal.c (re_string_reconstruct): Handle
67894         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67895         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67896         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67897         re_string_context_at.
67898
67899         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67900         now requires it.
67901         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67902         gl_REGEX now does it for us.
67903         (gl_REGEX): Add test taken from
67904         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67905
67906         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67907         Check that large offsets work.  Modernize Autoconf usages.
67908         Prefer "yes" to mean a good thing rather than a bad.
67909         Don't put "#define mkstemp" in config.h, as this might interfere
67910         with standard system headers that "#define mkstemp mkstemp64".
67911
67912         * modules/mkstemp (Depends-on): Add extensions, so that
67913         mkstemp is visible on some platforms.
67914         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67915         (Include): Change to "mkstemp.h" from <stdlib.h>.
67916         (Files): Add mkstemp.h.
67917
67918         * lib/mkstemp.h: New file, since some standard headers
67919         #define mkstemp.
67920         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67921         Include "mkstemp.h".
67922         Make the _LIBC code resemble glibc original more,
67923         e.g., use K&R style.
67924         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67925         (mkstemp): Remove, since mkstemp.h does this for us.
67926         * lib/stdlib--.h: Include mkstemp.h.
67927
67928         Import this patch from libc:
67929
67930         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67931
67932         * lib/tempname.c (__gen_tempname): Change attempts_min
67933         into a macro.  Use preprocessor to decide how to initialize
67934         attempts [Coverity CID 67].
67935
67936 2006-09-20  Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/mkdtemp.c: Import from libc.
67939         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67940                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67941                 attempts_min into a macro.  Use preprocessor to decide how to
67942                 initialize attempts [Coverity CID 67].
67943         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67944                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67945                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67946
67947 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67948
67949         * gnulib-tool (func_exit): New function, to allow to pass the
67950         exit status portably through the trap.  Use everywhere.
67951         (--help, --version): Signal a write error.
67952         (trap): catch SIGPIPE, for write errors.
67953         Exit at the end of the trap, with the correct exit status.
67954
67955 2006-09-19  Karl Berry  <karl@gnu.org>
67956
67957         * doc/gnulib.texi: note about the license texinfo files.
67958
67959 2006-09-19  Eric Blake  <ebb9@byu.net>
67960
67961         * gnulib-tool: Avoid space-tab.
67962
67963 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67964
67965         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67966         that prevented coreutils 6.1 from building.  Problem reported
67967         by Petter Reinholdtsen.
67968
67969 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * gnulib-tool (avoidlist): Fix typo that broke options like
67972         --avoid=lock that are used by coreutils bootstrap.
67973
67974 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67975
67976         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67977         more systematically.
67978
67979 2006-09-18  Jim Meyering  <jim@meyering.net>
67980
67981         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67982
67983 2006-09-18  Bruno Haible  <bruno@clisp.org>
67984
67985         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67986
67987 2006-09-18  Bruno Haible  <bruno@clisp.org>
67988
67989         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67990         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67991         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67992         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67993         * m4/gettext.m4: Require autoconf >= 2.52.
67994         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67995         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67996         of gl_cv_header_inttypes_h.
67997
67998 2006-09-18  Bruno Haible  <bruno@clisp.org>
67999
68000         * lib/javaversion.c: Include configmake.h.
68001
68002 2006-09-18  Bruno Haible  <bruno@clisp.org>
68003
68004         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68005         avoid that the while loops be executed in a subshell.
68006
68007 2006-09-18  Bruno Haible  <bruno@clisp.org>
68008
68009         * MODULES.html.sh (func_module): Break long lines.
68010         Suggested by Bruce Korb <bkorb@gnu.org>.
68011
68012 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68013
68014         Speed up by a factor of 1.12.
68015         * gnulib-tool (nl): New variable.
68016         (func_import): Rewrite include directive extraction to only read each
68017         directive once.
68018
68019 2006-09-17  Bruno Haible  <bruno@clisp.org>
68020
68021         * modules/javaversion (Makefile.am): Remove DEFS setting.
68022         (Depends-on): Add configmake, for PKGDATADIR definition.
68023
68024 2006-09-17  Bruno Haible  <bruno@clisp.org>
68025
68026         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68027
68028 2006-09-17  Bruno Haible  <bruno@clisp.org>
68029
68030         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68031         (func_modules_transitive_closure, func_modules_add_dummy,
68032         func_modules_to_filelist, func_import, func_create_testdir,
68033         func_create_megatestdir, ...): Use it wherever possible.
68034         Suggested by Ralf Wildenhues.
68035
68036 2006-09-16  Karl Berry  <karl@gnu.org>
68037
68038         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68039         to avoid sectioning errors.
68040         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68041         [ifinfo]: blank line after @center-ed titles.
68042         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68043         Spell FSF address consistently with others.
68044         (These changes approved by rms.)
68045
68046 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68047
68048         Speed up by a factor of 1.61.
68049         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68050         already checked module names again.
68051
68052 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68053
68054         Speed up by a factor of 1.13.
68055         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68056         for new_files, and the input to func_add_or_update.
68057
68058 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68059
68060         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68061         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68062
68063 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * modules/mkancesdirs (Depends-on): Add fcntl.
68066         * modules/savewd: New file.
68067         * MODULES.html.sh (File system functions): Add savewd.
68068
68069         * modules/configmake (Makefile.am): Add support for the
68070         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68071
68072 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68073
68074         * m4/savewd.m4: New file.
68075
68076 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68079         (dirchownmod): New arg FD.  All callers changed.
68080         Use FD rather than opening the directory ourself, as opening is
68081         now the caller's responsibility.
68082         * lib/dirchownmod.h: Likewise.
68083         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68084         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68085         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68086         (test_dir): Remove.
68087         (mkancesdirs): Return length of prefix of FILE that has already
68088         been made, or -2 if there is a child doing the work.  Redo
68089         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68090         ".", and treat ".." specially since it might stray back into
68091         already-created areas.  Use a subprocess if necessary.  New arg
68092         WD; all users changed.  MAKE_DIR function should now return 1
68093         if it creates a directory that is not readable.  Return -2 if
68094         a child process is spun off.
68095         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68096         Adjust signature to match code.
68097         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68098         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68099         all users changed.
68100         * lib/savewd.c, lib/savewd.h: New files.
68101
68102 2006-09-15  Jim Meyering  <jim@meyering.net>
68103
68104         * modules/rename-dest-slash: New module.
68105         * MODULES.html.sh (posix_compat): Add it here.
68106
68107         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68108
68109 2006-09-15  Jim Meyering  <jim@meyering.net>
68110
68111         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68112         file.
68113
68114         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68115
68116 2006-09-15  Jim Meyering  <jim@meyering.net>
68117
68118         * lib/rename-dest-slash.c (has_trailing_slash): Use
68119         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68120         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68121         test before testing whether SRC is a directory.
68122         Suggestions from Bruno Haible.
68123
68124         Avoid a warning about an unused variable.
68125         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68126         into the #ifdef block where it's used.
68127
68128         * lib/rename-dest-slash.c: New file.
68129
68130 2006-09-14  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/allocsa.c: Include <config.h> unconditionally.
68133         * lib/asnprintf.c: Likewise.
68134         * lib/asprintf.c: Likewise.
68135         * lib/c-strcasecmp.c: Likewise.
68136         * lib/c-strcasestr.c: Likewise.
68137         * lib/c-strncasecmp.c: Likewise.
68138         * lib/c-strstr.c: Likewise.
68139         * lib/classpath.c: Likewise.
68140         * lib/clean-temp.c: Likewise.
68141         * lib/concatpath.c: Likewise.
68142         * lib/copy-file.c: Likewise.
68143         * lib/csharpcomp.c: Likewise.
68144         * lib/csharpexec.c: Likewise.
68145         * lib/execute.c: Likewise.
68146         * lib/fatal-signal.c: Likewise.
68147         * lib/findprog.c: Likewise.
68148         * lib/fwriteerror.c: Likewise.
68149         * lib/gl_array_list.c: Likewise.
68150         * lib/gl_array_oset.c: Likewise.
68151         * lib/gl_avltree_list.c: Likewise.
68152         * lib/gl_avltree_oset.c: Likewise.
68153         * lib/gl_avltreehash_list.c: Likewise.
68154         * lib/gl_carray_list.c: Likewise.
68155         * lib/gl_linked_list.c: Likewise.
68156         * lib/gl_linkedhash_list.c: Likewise.
68157         * lib/gl_list.c: Likewise.
68158         * lib/gl_oset.c: Likewise.
68159         * lib/gl_rbtree_list.c: Likewise.
68160         * lib/gl_rbtree_oset.c: Likewise.
68161         * lib/gl_rbtreehash_list.c: Likewise.
68162         * lib/imaxabs.c: Likewise.
68163         * lib/imaxdiv.c: Likewise.
68164         * lib/javacomp.c: Likewise.
68165         * lib/javaexec.c: Likewise.
68166         * lib/javaversion.c: Likewise.
68167         * lib/linebreak.c: Likewise.
68168         * lib/localcharset.c: Likewise.
68169         * lib/lock.c: Likewise.
68170         * lib/mbchar.c: Likewise.
68171         * lib/mbswidth.c: Likewise.
68172         * lib/mkdtemp.c: Likewise.
68173         * lib/pipe.c: Likewise.
68174         * lib/printf-args.c: Likewise.
68175         * lib/printf-parse.c: Likewise.
68176         * lib/progname.c: Likewise.
68177         * lib/progreloc.c: Likewise.
68178         * lib/readlink.c: Likewise.
68179         * lib/sh-quote.c: Likewise.
68180         * lib/stpcpy.c: Likewise.
68181         * lib/stpncpy.c: Likewise.
68182         * lib/strcasecmp.c: Likewise.
68183         * lib/strcasestr.c: Likewise.
68184         * lib/strcspn.c: Likewise.
68185         * lib/striconv.c: Likewise.
68186         * lib/strncasecmp.c: Likewise.
68187         * lib/strnlen1.c: Likewise.
68188         * lib/strstr.c: Likewise.
68189         * lib/strtok_r.c: Likewise.
68190         * lib/tls.c: Likewise.
68191         * lib/tmpdir.c: Likewise.
68192         * lib/unicodeio.c: Likewise.
68193         * lib/unsetenv.c: Likewise.
68194         * lib/vasnprintf.c: Likewise.
68195         * lib/vasprintf.c: Likewise.
68196         * lib/wait-process.c: Likewise.
68197         * lib/xallocsa.c: Likewise.
68198         * lib/xsetenv.c: Likewise.
68199         * lib/xstriconv.c: Likewise.
68200
68201 2006-09-13  Simon Josefsson  <jas@extundo.com>
68202
68203         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68204         that internally, suggested by Ralf Wildenhues
68205         <Ralf.Wildenhues@gmx.de>.
68206
68207 2006-09-13  Simon Josefsson  <jas@extundo.com>
68208
68209         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68210         @LIBOBJS@.
68211         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68212
68213 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68216         longer worry about uses that don't define HAVE_CONFIG_H.
68217         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68218         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68219         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68220         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68221         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68222         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68223         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68224         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68225         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68226         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68227         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68228         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68229         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68230         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68231         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68232         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68233         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68234         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68235         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68236         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68237         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68238         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68239         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68240         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68241         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68242         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68243         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68244         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68245         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68246         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68247         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68248         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68249         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68250         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68251         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68252         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68253         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68254         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68255         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68256         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68257         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68258         Likewise.
68259
68260 2006-09-13  Eric Blake  <ebb9@byu.net>
68261
68262         * lib/getopt.c: Fix typo in last commit.
68263
68264 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68265
68266         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68267         dgettext.
68268
68269 2006-09-12  Jim Meyering  <jim@meyering.net>
68270
68271         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68272         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68273         Reported by Nelson H. F. Beebe.
68274
68275 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68276
68277         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68278         program_invocation_name and program_invocation_short_name are
68279         initialized.
68280         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68281         and program_invocation_short_name to argp.h, so they are visible
68282         to user programs.
68283         * lib/argp.h: Likewise
68284
68285 2006-09-10  Bruno Haible  <bruno@clisp.org>
68286
68287         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68288         m4/inttypes_h.m4, m4/uintmax_t.m4.
68289
68290 2006-09-10  Bruno Haible  <bruno@clisp.org>
68291
68292         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68293         gl_AC_TYPE_UINTMAX_T.
68294
68295 2006-09-10  Bruno Haible  <bruno@clisp.org>
68296
68297         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68298
68299 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68300
68301         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68302         convention.  Text proposed by Bruno Haible.
68303         (struct argp_option): Document the use of N_() wrappers.
68304
68305         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68306         '\v', and translate the two parts separately, instead of feeding
68307         the whole string to gettext.  This allows to exclude
68308         '\v' from the strings visible to the translator by writing doc
68309         strings as N_("..") "\v" N_("..").
68310
68311 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * config/srclist.txt: Undo latest change; the bug was fixed.
68314
68315 2006-09-09  Bruno Haible  <bruno@clisp.org>
68316
68317         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68318         assignments if building a library without libtool.
68319         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68320         in func_emit_lib_Makefile_am.
68321         (func_import): When building a static library libfoo.a, arrange to
68322         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68323         (func_create_testdir): Likewise.
68324         * modules/gc (configure.ac, Makefile.am): If building statically,
68325         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68326         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68327         * modules/striconv (configure.ac, Makefile.am): Likewise.
68328         Based on a suggestion by Ralf Wildenhues.
68329
68330 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68333         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68334         Also:
68335
68336         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68337         Add year_2050_test to catch glibc bug 2821
68338         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68339
68340         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68341         Prefer #ifdef to #if.
68342
68343         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68344         Return from 'main' instead of calling 'exit'.
68345
68346 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68347
68348         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68349         returned the maximum time_t value rather than (time_t) -1.
68350         Problem originally reported by William Bardwell
68351         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68352
68353         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68354         Moved to here ...
68355         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68356         ... from here.
68357
68358 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68361         2821 is fixed.
68362
68363 2006-09-08  Jim Meyering  <jim@meyering.net>
68364
68365         Don't make generated files read-only.  That would bother too many
68366         people.  However, do retain the ability to work when targets are
68367         read-only: remove the destination and temporary files before writing
68368         them (when generated via sed or echo), or by using the -f option for
68369         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68370         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68371         * modules/byteswap, modules/configmake, modules/fcntl:
68372         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68373         * modules/localcharset, modules/netinet_in, modules/poll:
68374         * modules/stdbool, modules/stdint, modules/sys_select:
68375         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68376
68377 2006-09-08  Jim Meyering  <jim@meyering.net>
68378
68379         Avoid new build failure on FreeBSD 6.0.
68380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68381         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68382         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68383
68384 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68385
68386         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68387
68388 2006-09-07  Jim Meyering  <jim@meyering.net>
68389
68390         Fix global typo in last change: use chmod u-w, not chmod u-x.
68391         Spotted by Paul Eggert and Bruce Korb.
68392         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68393         * modules/byteswap, modules/configmake, modules/fcntl:
68394         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68395         * modules/localcharset, modules/netinet_in, modules/poll:
68396         * modules/stdbool, modules/stdint, modules/sys_select:
68397         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68398
68399 2006-09-06  Jim Meyering  <jim@meyering.net>
68400
68401         Make generated files be read-only.
68402         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68403         Ensure that each generated file is now read-only.
68404         * modules/argz: Likewise.
68405         * modules/arpa_inet: Likewise.
68406         * modules/byteswap: Likewise.
68407         * modules/configmake: Likewise.
68408         * modules/fcntl: Likewise.
68409         * modules/fnmatch: Likewise.
68410         * modules/getopt: Likewise.
68411         * modules/glob: Likewise.
68412         * modules/inttypes: Likewise.
68413         * modules/netinet_in: Likewise.
68414         * modules/poll: Likewise.
68415         * modules/stdbool: Likewise.
68416         * modules/stdint: Likewise.
68417         * modules/sys_select: Likewise.
68418         * modules/sys_socket: Likewise.
68419         * modules/sys_stat: Likewise.
68420         * modules/sysexits: Likewise.
68421         * modules/localcharset: Same as above, but continue using temporary
68422         file named "t-$@" (why different?) rather than the "$@-t" used
68423         everywhere else.
68424
68425         * modules/sysexits (Makefile.am): Replace literal occurrences
68426         of "sysexit.h" more readable, and more consistent, "$@".
68427
68428 2006-09-06  Bruno Haible  <bruno@clisp.org>
68429
68430         * modules/striconv: New file.
68431         * modules/xstriconv: New file.
68432         * MODULES.html.sh (Internationalization functions): Add striconv,
68433         xstriconv.
68434
68435 2006-09-06  Bruno Haible  <bruno@clisp.org>
68436
68437         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68438         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68439         not using libtool correctly.
68440
68441 2006-09-06  Bruno Haible  <bruno@clisp.org>
68442
68443         * lib/striconv.h: New file.
68444         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68445         iconvstring.c.
68446         * lib/xstriconv.h: New file.
68447         * lib/xstriconv.c: New file.
68448
68449 2006-09-06  Bruno Haible  <bruno@clisp.org>
68450
68451         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68452         lib_..._LDFLAGS.
68453
68454 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68455
68456         * lib/argz_.h: Sync from Libtool.
68457
68458         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68459                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68460
68461         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68462
68463 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68464
68465         * modules/trim: New file.
68466
68467 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68468
68469         * lib/trim.h: New file.
68470         * lib/trim.c: New file.
68471
68472 2006-09-05  Bruno Haible  <bruno@clisp.org>
68473
68474         * MODULES.html.sh (String handling): Add trim.
68475
68476 2006-09-04  Karl Berry  <karl@gnu.org>
68477
68478         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68479         until next release.
68480
68481 2006-09-03  Bruno Haible  <bruno@clisp.org>
68482
68483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68484         correctly.
68485
68486 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68487
68488         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68489         not gl_GETLOADAVG.  Omit unneeded semicolons.
68490         Problems reported by Ralf Wildenhues in
68491         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68492         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68493         at the end, which is the usual gnulib style.
68494
68495         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68496         of doing all the work ourselves.
68497         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68498         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68499
68500 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68503         Problem reported by Ralf Wildenhues in
68504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68505
68506         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68507         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68508
68509 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68512         yesterday's patch by changing test -n to test -z.
68513
68514 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68515
68516         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68517         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68518         the former is now obsolescent.
68519
68520         * modules/chdir-long (Depends-on): Add fcntl.
68521
68522 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68525         obsolescent, and programs should use gnulib instead.
68526         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68527         but with prefixes changed.
68528
68529 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68532         or stdbool.h, because they might not exist while configuring.
68533
68534         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68535         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68536         does that for us.
68537         (O_DIRECTORY): Remove.
68538
68539 2006-08-31  Eric Blake  <ebb9@byu.net>
68540
68541         * gnulib-tool: Don't let emacs change spaces to TAB.
68542
68543 2006-08-31  Bruno Haible  <bruno@clisp.org>
68544
68545         * gnulib-tool: When calling func_import more than once, do it in a
68546         subshell.
68547         Reported by Eric Blake <ebb9@byu.net>.
68548
68549 2006-08-31  Bruno Haible  <bruno@clisp.org>
68550
68551         * gnulib-tool (nl): Remove variable.
68552         (sed_transform_lib_file): Use more robust test for config-h module.
68553         (func_import): Fix typo in 2006-08-25 patch.
68554
68555 2006-08-31  Bruno Haible  <bruno@clisp.org>
68556
68557         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68558         specified, augment Makefile.am variables instead of assigning them.
68559
68560 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         Work around a bug in both the Linux and SunOS 64-bit kernels:
68563         nanosleep mishandles sleeps for longer than 2**31 seconds.
68564         Problem reported by Frank v Waveren in
68565         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68567         Check for nanosleep bug.
68568         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68569
68570 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         Work around a bug in both the Linux and SunOS 64-bit kernels:
68573         nanosleep mishandles sleeps for longer than 2**31 seconds.
68574         Problem reported by Frank v Waveren in
68575         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68576         * lib/nanosleep.c (BILLION): New constant.
68577         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68578         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68579         implementation.
68580
68581 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68582
68583         * modules/nanosleep (Depends-on): Add gettime.
68584
68585 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68586         and Simon Josefsson  <jas@extundo.com>
68587         and Oskar Liljeblad  <oskar@osk.mine.nu>
68588
68589         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68590         * gnulib-tool (func_import): New license type 'unmodifiable license
68591         text'.
68592         * modules/fdl: Use it.  Longer description.
68593         * module/gpl, module/lgpl: New files.
68594
68595 2006-08-30  Jim Meyering  <jim@meyering.net>
68596
68597         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68598         shadowing the parameter.
68599
68600 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68601
68602         Sync from Libtool:
68603
68604         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68605
68606         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68607         sharing with gnulib.  Report by Eric Blake.
68608
68609 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68610
68611         * modules/isapipe: New file.
68612         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68613
68614 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * modules/configmake (Makefile.am): Add a comment, and omit
68617         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68618         by Bruno Haible.
68619
68620 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * m4/isapipe.m4: New file.
68623
68624 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68625
68626         * lib/isapipe.c, lib/isapipe.h: New files.
68627
68628 2006-08-29  Jim Meyering  <jim@meyering.net>
68629
68630         * modules/configmake (Makefile.am): Make configmake.h depend on
68631         Makefile.  Otherwise, a stale configmake.h could hang around.
68632
68633 2006-08-29  Eric Blake  <ebb9@byu.net>
68634
68635         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68636         resolution of upstream bug 3044.
68637
68638 2006-08-29  Bruno Haible  <bruno@clisp.org>
68639
68640         * modules/localcharset (Depends-on): Add configmake.
68641         (Makefile.am): Remove setting of LIBDIR through DEFS.
68642
68643 2006-08-29  Bruno Haible  <bruno@clisp.org>
68644
68645         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68646         defined.
68647
68648 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * modules/fcntl: New file.
68651         * modules/chdir-safer (Depends-on): Add fcntl.
68652         * modules/fts: Likewise.
68653         * modules/mkdir-p: Likewise.
68654
68655         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68656         This undoes the most recent change, since we're now addressing the
68657         problem in a different way.
68658
68659         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68660         into output, since the output might be called Makefile.am even
68661         if $makefile_name is something different.
68662         (func_import): Use $makefile_am rather than
68663         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68664         empty.
68665
68666         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68667
68668 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68671         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68672         recent change to stdint.m4, since we're now addressing the problem in a
68673         different way.
68674
68675 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68676
68677         * m4/fcntl_h.m4: New file.
68678
68679 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         * lib/fcntl_.h: New file.
68682         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68683         the fcntl module.
68684         * lib/dirchownmod.c: Likewise.
68685         * lib/fts.c: Likewise.
68686
68687         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68688         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68689         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68690         just before including <inttypes.h>, to avoid circular inclusion.
68691
68692 2006-08-28  Jim Meyering  <jim@meyering.net>
68693
68694         * doc/visibility.texi: Actually read and correct the grammar of the
68695         sentence affected by yesterday's change.
68696
68697 2006-08-28  Eric Blake  <ebb9@byu.net>
68698
68699         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68700         needs wrapper.
68701
68702 2006-08-28  Eric Blake  <ebb9@byu.net>
68703
68704         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68705
68706 2006-08-28  Eric Blake  <ebb9@byu.net>
68707
68708         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68709
68710 2006-08-28  Bruno Haible  <bruno@clisp.org>
68711
68712         * modules/c-strstr: New file, from GNU gettext.
68713         * MODULES.html.sh (String handling): Add c-strstr.
68714
68715 2006-08-28  Bruno Haible  <bruno@clisp.org>
68716
68717         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68718         macros.
68719         Reported by Eric Blake.
68720
68721 2006-08-28  Bruno Haible  <bruno@clisp.org>
68722
68723         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68724         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68725         * lib/vasprintf.c: Include errno.h, limits.h.
68726         (EOVERFLOW): New fallback definition.
68727         (vasprintf): Test here whether the string length is > INT_MAX.
68728         * lib/vsnprintf.c: Include errno.h, limits.h.
68729         (EOVERFLOW): New fallback definition.
68730         (vsnprintf): Fix bug when generated string was too long for the buffer.
68731         Test here whether the string length is > INT_MAX.
68732
68733 2006-08-28  Bruno Haible  <bruno@clisp.org>
68734
68735         * lib/inttypes_.h (SCNX*): Remove definitions.
68736         Reported by Eric Blake.
68737
68738 2006-08-28  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/c-strstr.h: New file, from GNU gettext.
68741         * lib/c-strstr.c: New file, from GNU gettext.
68742
68743 2006-08-28  Bruno Haible  <bruno@clisp.org>
68744
68745         * gnulib-tool: Reorder some statements.
68746
68747 2006-08-28  Bruno Haible  <bruno@clisp.org>
68748
68749         * gnulib-tool: New option --makefile-name.
68750         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68751         $makefile_name.
68752         (func_import): Write $makefile_name to the cache file, and read it from
68753         there unless explicitly specified. Use $makefile_name as file name
68754         instead of Makefile.am. Adjust the recommendations accordingly.
68755
68756 2006-08-28  Bruno Haible  <bruno@clisp.org>
68757
68758         * gnulib-tool (func_verify_module): Check against misapplying patch.
68759
68760 2006-08-28  Bruno Haible  <bruno@clisp.org>
68761
68762         * gnulib-tool (func_relativize, func_relconcat): New functions.
68763         Give an error if --local-dir is given with --update.
68764         Remove trailing slashes from $local_gnulib_dir.
68765         (func_import): Store the relativized $local_gnulib_dir in
68766         gnulib-cache.m4, and read it from there if not specified explicitly.
68767
68768 2006-08-28  Bruno Haible  <bruno@clisp.org>
68769
68770         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68771         is the current directory. Respect also $local_gnulib_dir.
68772
68773 2006-08-28  Bruno Haible  <bruno@clisp.org>
68774             Simon Josefsson  <jas@extundo.com>
68775
68776         BeOS portability.
68777         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68778
68779 2006-08-27  Jim Meyering  <jim@meyering.net>
68780
68781         * doc/visibility.texi: Remove duplicate word: "pointer".
68782
68783 2006-08-26  Bruno Haible  <bruno@clisp.org>
68784
68785         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68786         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68787         (Makefile.am): Create inttypes.h from inttypes_.h.
68788         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68789
68790         * modules/imaxabs: New file.
68791
68792         * modules/imaxdiv: New file.
68793
68794 2006-08-26  Bruno Haible  <bruno@clisp.org>
68795
68796         * m4/inttypes.m4: New file.
68797         * m4/_inttypes_h.m4: Remove file.
68798         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68799         PRI_MACROS_BROKEN.
68800         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68801
68802         * m4/imaxabs.m4: New file.
68803
68804         * m4/imaxdiv.m4: New file.
68805
68806 2006-08-26  Bruno Haible  <bruno@clisp.org>
68807
68808         * lib/inttypes_.h: New file.
68809         * lib/inttypes.h: Remove file.
68810         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68811
68812         * lib/imaxabs.c: New file.
68813
68814         * lib/imaxdiv.c: New file.
68815
68816 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68817
68818         New config-h module, so that "make" output needn't be cluttered
68819         by -DHAVE_CONFIG_H.
68820         * MODULES.html.sh (Support for building libraries and executables):
68821         Add config-h.
68822         * modules/config-h: New file.
68823         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68824         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68825         the config-h module is used.
68826
68827         New configmake module, so that "make" output needn't be cluttered
68828         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68829         * MODULES.html.sh (Support for building libraries and executables):
68830         Add configmake.
68831         * modules/configmake: New file.
68832
68833 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * m4/config-h.m4: New file.
68836
68837 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * config/srclist.txt: Add elisp-comp.
68840
68841 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68842
68843         * MODULES.html.sh (Support for building libraries and executables):
68844         Add elisp-comp.
68845         * build-aux/elisp-comp: New file.
68846         * modules/elisp-comp: New file.
68847
68848 2006-08-24  Bruno Haible  <bruno@clisp.org>
68849
68850         * gnulib-tool (func_create_testdir): Use non-default values of
68851         sourcebase and m4base.
68852
68853 2006-08-24  Bruno Haible  <bruno@clisp.org>
68854
68855         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68856         HTML structure.
68857
68858 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * modules/openat (Depends-on): Add lchown.
68861
68862 2006-08-23  Bruno Haible  <bruno@clisp.org>
68863
68864         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68865         of gl_LOCK_EARLY instead of gl_LOCK.
68866
68867 2006-08-23  Bruno Haible  <bruno@clisp.org>
68868
68869         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68870         on OSF/1 to no.
68871         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68872
68873 2006-08-23  Bruno Haible  <bruno@clisp.org>
68874
68875         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68876         as unusable.
68877
68878         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68879         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68880         (gl_LOCK): New macro.
68881
68882 2006-08-22  Simon Josefsson  <jas@extundo.com>
68883
68884         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68885         to md5 module.
68886
68887 2006-08-22  Simon Josefsson  <jas@extundo.com>
68888
68889         * MODULES.html.sh: Add "Support for maintaining and release
68890         projects".
68891
68892         * build-aux/gnupload: New file, from coreutils.
68893
68894 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68895
68896         Avoid the need for AC_LIBSOURCES in m4 macros.
68897         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68898         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68899         * modules/check-version (EXTRA_DIST): Add check-version.h.
68900         * modules/crc (EXTRA_DIST): Add crc.h.
68901         * modules/des (EXTRA_DIST): Add des.h.
68902         * modules/gc (EXTRA_DIST): Add gc.h.
68903         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68904         * modules/getline (EXTRA_DIST): Add getline.h.
68905         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68906         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68907         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68908         * modules/md2 (EXTRA_DIST): Add md2.h.
68909         * modules/md4 (EXTRA_DIST): Add md4.h.
68910         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68911         * modules/read-file (EXTRA_DIST): Add read-file.h.
68912         * modules/readline (EXTRA_DIST): Add readline.h.
68913         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68914         rijndael-api-fst.h.
68915
68916 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68917
68918         * m4/rijndael.m4 (gl_ARCFOUR):
68919         * m4/arctwo.m4 (gl_ARCTWO):
68920         * m4/check-version.m4 (gl_CHECK_VERSION):
68921         * m4/crc.m4 (gl_CRC):
68922         * m4/des.m4 (gl_DES):
68923         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68924         * m4/gc.m4 (gl_GC):
68925         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68926         * m4/getline.m4 (gl_FUNC_GETLINE):
68927         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68928         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68929         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68930         * m4/md2.m4 (gl_MD2):
68931         * m4/md4.m4 (gl_MD4):
68932         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68933         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68934         * m4/readline.m4 (gl_FUNC_READLINE):
68935         * m4/rijndael.m4 (gl_RIJNDAEL):
68936         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68937         to get the necessary .h files and whatnot.
68938
68939 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68942         gnulib rather than the other way around.
68943         * config/srclistvars.sh (COREUTILS): Remove.
68944
68945 2006-08-22  Jim Meyering  <jim@meyering.net>
68946
68947         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68948
68949         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68950
68951 2006-08-22  Eric Blake  <ebb9@byu.net>
68952
68953         * modules/regexprops-generic: New file.
68954         * MODULES.html.sh (Support for building documentation): List it.
68955
68956 2006-08-22  Eric Blake  <ebb9@byu.net>
68957
68958         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68959         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68960         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68961         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68962
68963 2006-08-22  Bruno Haible  <bruno@clisp.org>
68964
68965         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68966         and lib_LTLIBRARIES like the other lib_* variables.
68967
68968 2006-08-22  Bruno Haible  <bruno@clisp.org>
68969
68970         * build-aux/x-to-1.in: New file, from GNU gettext.
68971
68972 2006-08-22  Bruno Haible  <bruno@clisp.org>
68973
68974         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68975         <utmpx.h> exists.
68976
68977 2006-08-22  Bruno Haible  <bruno@clisp.org>
68978
68979         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68980         <utmpx.h> exists.
68981
68982 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         BeOS portability.
68985         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68986         exist.
68987         Problem reported by Bruno Haible.
68988
68989 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         Avoid the need for AC_LIBSOURCES in m4 macros.
68992         * modules/acl (EXTRA_DIST): Add acl.h.
68993         * modules/argmatch (Files): Add m4/argmatch.m4.
68994         (configure.ac): Add gl_ARGMATCH.
68995         (EXTRA_DIST): Renamed from lib_SOURCES, for
68996         consistency with the other modules.  Remove argmatch.c.
68997         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68998         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68999         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69000         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69001         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69002         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69003         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69004         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69005         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69006         * modules/closeout (EXTRA_DIST): Add closeout.h.
69007         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69008         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69009         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69010         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69011         dirname.h; remove basename.c and stripslash.c.
69012         * modules/exclude (EXTRA_DIST): Add exclude.h.
69013         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69014         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69015         * modules/file-type (EXTRA_DIST): Add file-type.h.
69016         * modules/filemode (EXTRA_DIST): Add filemode.h.
69017         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69018         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69019         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69020         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69021         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69022         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69023         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69024         * modules/getdate (EXTRA_DIST): Add getdate.c.
69025         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69026         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69027         * modules/getpass (EXTRA_DIST): Add getpass.h.
69028         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69029         * modules/group-member (EXTRA_DIST): Add group-member.h.
69030         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69031         * modules/hash (EXTRA_DIST): Add hash.h.
69032         * modules/human (EXTRA_DIST): Add human.h.
69033         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69034         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69035         * modules/lchown (EXTRA_DIST): Add lchown.h.
69036         * modules/long-options (EXTRA_DIST): Add long-options.h.
69037         * modules/lstat (EXTRA_DIST): Add lstat.h.
69038         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69039         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69040         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69041         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69042         * modules/memxor (EXTRA_DIST): Add memxor.h.
69043         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69044         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69045         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69046         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69047         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69048         * modules/physmem (EXTRA_DIST): Add physmem.h.
69049         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69050         * modules/posixver (EXTRA_DIST): Add posixver.h.
69051         * modules/quote (EXTRA_DIST): Add quote.h.
69052         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69053         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69054         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69055         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69056         regex_internal.h regexec.c.
69057         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69058         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69059         * modules/same (EXTRA_DIST): Add same.h.
69060         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69061         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69062         * modules/savedir (EXTRA_DIST): Add savedir.h.
69063         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69064         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69065         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69066         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69067         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69068         * modules/strdup (EXTRA_DIST): Add strdup.h.
69069         * modules/strftime (EXTRA_DIST): Add strftime.h.
69070         * modules/strndup (EXTRA_DIST): Add strndup.h.
69071         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69072         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69073         * modules/time_r (EXTRA_DIST): Add time_r.h.
69074         * modules/timespec (EXTRA_DIST): Add timespec.h.
69075         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69076         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69077         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69078         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69079         * modules/userspec (EXTRA_DIST): Add userspec.h.
69080         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69081         * modules/utimens (EXTRA_DIST): Add utimens.h.
69082         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69083         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69084         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69085         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69086         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69087         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69088         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69089         * modules/yesno (EXTRA_DIST): Add yesno.h.
69090
69091 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69092
69093         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69094
69095         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69096         * m4/dev-ino.m4, same-inode.m4: Remove.
69097
69098         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69099         * m4/acl.m4 (AC_FUNC_ACL):
69100         * m4/backupfile.m4 (gl_BACKUPFILE):
69101         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69102         * m4/canon-host.m4 (gl_CANON_HOST):
69103         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69105         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69106         * m4/cloexec.m4 (gl_CLOEXEC):
69107         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69108         * m4/closeout.m4 (gl_CLOSEOUT):
69109         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69110         * m4/dirname.m4 (gl_DIRNAME):
69111         * m4/exclude.m4 (gl_EXCLUDE):
69112         * m4/exitfail.m4 (gl_EXITFAIL):
69113         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69114         * m4/file-type.m4 (gl_FILE_TYPE):
69115         * m4/filemode.m4 (gl_FILEMODE):
69116         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69117         * m4/fpending.m4 (gl_FUNC_FPENDING):
69118         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69119         * m4/fts.m4 (gl_FUNC_FTS):
69120         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69121         * m4/getdate.m4 (gl_GETDATE):
69122         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69123         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69124         * m4/getpass.m4 (gl_FUNC_GETPASS):
69125         * m4/gettime.m4 (gl_GETTIME):
69126         * m4/getugroups.m4 (gl_GETUGROUPS):
69127         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69128         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69129         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69130         * m4/hash.m4 (gl_HASH):
69131         * m4/idcache.m4 (gl_IDCACHE):
69132         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69133         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69134         * m4/long-options.m4 (gl_LONG_OPTIONS):
69135         * m4/lstat.m4 (gl_FUNC_LSTAT):
69136         * m4/md5.m4 (gl_MD5):
69137         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69138         * m4/memcoll.m4 (gl_MEMCOLL):
69139         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69140         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69141         * m4/memxor.m4 (gl_MEMXOR):
69142         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69143         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69144         * m4/modechange.m4 (gl_MODECHANGE):
69145         * m4/mountlist.m4 (gl_MOUNTLIST):
69146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69147         * m4/openat.m4 (gl_FUNC_OPENAT):
69148         * m4/pathmax.m4 (gl_PATHMAX):
69149         * m4/physmem.m4 (gl_PHYSMEM):
69150         * m4/posixtm.m4 (gl_POSIXTM):
69151         * m4/posixver.m4 (gl_POSIXVER):
69152         * m4/quote.m4 (gl_QUOTE):
69153         * m4/quotearg.m4 (gl_QUOTEARG):
69154         * m4/readtokens.m4 (gl_READTOKENS):
69155         * m4/readutmp.m4 (gl_READUTMP):
69156         * m4/regex.m4 (gl_REGEX):
69157         * m4/safe-read.m4 (gl_SAFE_READ):
69158         * m4/safe-write.m4 (gl_SAFE_WRITE):
69159         * m4/same.m4 (gl_SAME):
69160         * m4/save-cwd.m4 (gl_SAVE_CWD):
69161         * m4/savedir.m4 (gl_SAVEDIR):
69162         * m4/settime.m4 (gl_SETTIME):
69163         * m4/sha1.m4 (gl_SHA1):
69164         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69165         * m4/stat-macros.m4 (gl_STAT_MACROS):
69166         * m4/stat-time.m4 (gl_STAT_TIME):
69167         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69168         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69169         * m4/strdup.m4 (gl_FUNC_STRDUP):
69170         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69171         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69172         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69173         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69174         * m4/time_r.m4 (gl_TIME_R):
69175         * m4/timespec.m4 (gl_TIMESPEC):
69176         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69177         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69178         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69179         * m4/userspec.m4 (gl_USERSPEC):
69180         * m4/utimecmp.m4 (gl_UTIMECMP):
69181         * m4/utimens.m4 (gl_UTIMENS):
69182         * m4/xalloc.m4 (gl_XALLOC):
69183         * m4/xgetcwd.m4 (gl_XGETCWD):
69184         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69185         * m4/xreadlink.m4 (gl_XREADLINK):
69186         * m4/xstrtod.m4 (gl_XSTRTOD):
69187         * m4/yesno.m4 (gl_YESNO):
69188         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69189         to get the necessary .h files and whatnot.
69190
69191 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69192             Bruno Haible  <bruno@clisp.org>
69193
69194         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69195         /bin/sh understanding of '!' conditional negation.
69196
69197 2006-08-21  Jim Meyering  <jim@meyering.net>
69198
69199         * modules/openat (Depends-on): Really alphabetize.
69200
69201         * modules/acl (Depends-on): Add error and quote.
69202
69203         * check-module (find_included_lib_files): Add at-func.c to the
69204         ok-to-include-more-than-once white list.
69205
69206         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69207
69208 2006-08-21  Bruno Haible  <bruno@clisp.org>
69209
69210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69211         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69212         Reported by Martin Lambers <marlam@marlam.de>.
69213
69214 2006-08-21  Bruno Haible  <bruno@clisp.org>
69215
69216         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69217         specify an installation location, don't emit a noinst_LIBRARIES or
69218         noinst_LTLIBRARIES assignment.
69219
69220 2006-08-21  Bruno Haible  <bruno@clisp.org>
69221
69222         BeOS portability.
69223         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69224         BeOS has mbrtowc() but no <wctype.h>.
69225
69226 2006-08-21  Bruno Haible  <bruno@clisp.org>
69227
69228         BeOS portability.
69229         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69230         exist.
69231
69232 2006-08-21  Bruno Haible  <bruno@clisp.org>
69233
69234         BeOS portability.
69235         * lib/mbchar.h: Include <wctype.h> only if it exists.
69236
69237 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69238
69239         Remove files that are no longer needed by their respective modules.
69240         * m4/obstack.m4: Remove.
69241         * m4/strerror_r.m4: Remove.
69242         * m4/uint32_t.m4: Remove.
69243         * m4/uintptr_t.m4: Remove.
69244         * m4/ullong_max.m4: Remove.
69245         * m4/xstrtoimax.m4: Remove.
69246         * m4/xstrtoumax.m4: Remove.
69247
69248         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69249         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69250         dependencies now capture this.
69251
69252         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69253         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69254         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69255         * m4/human.m4 (gl_HUMAN): Likewise.
69256         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69257         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69258
69259         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69260
69261         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69262         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69263         stdint.
69264         * m4/human.m4 (gl_HUMAN): Likewise.
69265         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69266         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69267         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69268         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69269         * m4/xstrtol (gl_XSTRTOL): Likewise.
69270
69271         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69272         AC_TYPE_LONG_LONG_INT.
69273         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69274         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69275         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69276         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69277
69278         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69279         on stdbool.
69280
69281         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69282         (gl_PREREQ_XSTRTOUL): Remove.
69283
69284         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69285
69286         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69287         mode.
69288
69289 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69290
69291         Add and change modules to make it easier for coreutils to use
69292         gnulib-tool.
69293         * modules/backupfile (Files): Remove m4/d-ino.m4.
69294         (Depends-on): Add d-ino.
69295         * modules/cycle-check (Depends-on): Add stdint.
69296         (lib_SOURCES): Add cycle-check.h.
69297         * modules/d-ino: New module.
69298         * modules/d-type: New module.
69299         * modules/error (Files): Remove m4/strerror_r.m4.
69300         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69301         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69302         m4/inttypes_h.m4, m4/uintmax_t.m4.
69303         (Depends-on): Add stdint.
69304         (lib_SOURCES): Add fsusage.h.
69305         * modules/getcwd (Files): Remove d-ino.m4.
69306         (Depends-on): Add d-ino.
69307         * modules/getndelim2 (Depends-on): Add stdint.
69308         * modules/glob (Files): Remove m4/d-type.m4.
69309         (Depends-on): Add d-type.
69310         * modules/host-os: New module.
69311         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69312         m4/inttypes_h.m4, m4/uintmax_t.m4.
69313         * Depends-on: Add stdint.
69314         (lib_SOURCES): Add human.h.
69315         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69316         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69317         m4/uintmax_t.m4, m4/ulonglong.m4.
69318         (Depends-on): Add stdint.
69319         (EXTRA_DIST): Add inttostr.h.
69320         * modules/lchmod: New module.
69321         * modules/link-follow: New module.
69322         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69323         (Depends-on): Add lchmod.
69324         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69325         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69326         (Depends-on): Add stdint.
69327         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69328         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69329         (Depends-on): Add stdint.
69330         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69331         * modules/perl: New module.
69332         * modules/regex (Depends-on): Add stdint.
69333         * modules/rmdir-errno: New module.
69334         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69335         m4/intmax_t.m4.
69336         (Depends-on): Add stdint.
69337         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69338         m4/uintmax_t.m4.
69339         (Depends-on): Add stdint.
69340         * modules/unlink-busy: New module.
69341         * modules/utimecmp (Depends-on): Add stdint.
69342         * modules/uptime: New module.
69343         * modules/winsz-ioctl: New module.
69344         * modules/winsz-termios: New module.
69345         * modules/xnanosleep (Depends-on): Add nanosleep.
69346         * modules/ullong_max: Remove.
69347         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69348         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69349         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69350         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69351         (Depends-on): Add inttypes.
69352         (lib_SOURCES): Add xstrtol.h.
69353         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69354         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69355         * MODULES.html.sh: Move 'assert' into the assert section.
69356         Move 'dummy' into the linking section.
69357         Remove ullong_max.
69358         Add section for compatibility checks for POSIX:2001 functions,
69359         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69360         winsz-ioctl, and winsz-termios into it.
69361         Add lchmod.
69362         Add top-level Misc section and put host-os, perl, and uptime
69363         into it.
69364
69365 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69368         now assume the stdint module.  Do not include inttypes.h.
69369         * lib/fsusage.h: Likewise.
69370         * lib/getndelim2.c: Likewise.
69371         * lib/human.h: Likewise.
69372         * lib/inttostr.h: Likewise.
69373         * lib/obstack.c: Likewise.
69374         * lib/regex_internal.h: Likewise.
69375         * lib/tempname.c: Likewise.
69376         * lib/utimecmp.c: Likewise.
69377         * lib/xstrtol.h: Likewise.
69378
69379         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69380
69381         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69382         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69383         * lib/xtime.h: Likewise.
69384
69385 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * modules/openat (Files): Add lib/fchmodat.c.
69388         Fixes problem reported by Jay Youngman.
69389
69390 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69393         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69394
69395 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69396             Bruno Haible  <bruno@clisp.org>
69397
69398         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69399         and is a script that invokes bison. Tighten the code. Add comments.
69400
69401 2006-08-18  Jim Meyering  <jim@meyering.net>
69402
69403         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69404         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69405         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69406         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69407
69408 2006-08-18  Bruno Haible  <bruno@clisp.org>
69409
69410         * modules/bison-i18n: New file.
69411         * MODULES.html.sh (Internationalization functions): Add it.
69412
69413 2006-08-18  Bruno Haible  <bruno@clisp.org>
69414
69415         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69416         sys/statvfs.h. When getmntinfo was found, check its declaration and
69417         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69418
69419 2006-08-18  Bruno Haible  <bruno@clisp.org>
69420
69421         * m4/bison-i18n.m4: New file, from bison.
69422
69423 2006-08-18  Bruno Haible  <bruno@clisp.org>
69424
69425         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69426         (ME_DUMMY): Treat "kernfs" as a dummy.
69427         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69428
69429 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69430
69431         Update from coreutils.
69432
69433         2006-08-15  Jim Meyering  <jim@meyering.net>
69434
69435         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69436
69437         2006-01-17  Jim Meyering  <jim@meyering.net>
69438
69439         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69440
69441         2006-01-11  Jim Meyering  <jim@meyering.net>
69442
69443         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69444         Check for the lchmod function.
69445
69446 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69447
69448         Update from coreutils.
69449
69450         * lib/__fpending.h: Add copyright notice.
69451         * lib/fprintftime.h: Likewise.
69452         * lib/savedir.c: Use (C) in copyright notice.
69453         * lib/savedir.h: Likewise.
69454
69455         2006-08-15  Jim Meyering  <jim@meyering.net>
69456
69457         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69458         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69459         in support of the EXPECTED_ERRNO macro.
69460         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69461         definitions.  Instead, define the appropriate symbols and include
69462         "at-func.c".
69463         * lib/mkdirat.c (mkdirat): Likewise.
69464         * lib/fchmodat.c (fchmodat): Likewise.
69465         (ENOSYS): Remove definition.
69466         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69467         it.  Don't include "unistd--.h" -- it wasn't ever used.
69468
69469         2006-01-17  Jim Meyering  <jim@meyering.net>
69470
69471         Rewrite fts.c not to change the current working directory,
69472         by using openat, fstatat, fdopendir, etc..
69473
69474         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69475         (HAVE_OPENAT_SUPPORT): Define.
69476         [_LIBC] (fchdir): Don't undef or define; no longer used.
69477         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69478         Now, this `function' always succeeds, and consumes its file descriptor
69479         parameter -- so callers must not close such FDs.  Update callers.
69480         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69481         (diropen): Add parameter, SP.  Adjust all callers.
69482         Implement using diropen_fd, rather than open.
69483         (fts_open): Initialize new member, fts_cwd_fd.
69484         Remove fts_rft-setting code.
69485         (fts_close): Close fts_cwd_fd, if necessary.
69486         (__opendir2): Define in terms of opendir or opendirat,
69487         depending on whether the FST_NOCHDIR flag is set.
69488         (fts_build): Since fts_safe_changedir consumes its FD, and since
69489         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69490         and close the dup'd file descriptor upon failure.
69491         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69492         (fts_safe_changedir): Tweak semantics to reflect that this function
69493         now calls cwd_advance_fd and hence consumes its FD argument.
69494         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69495         [struct FTS] (fts_rft): Remove now-unused member.
69496         [struct FTS] (fts_cycle.state): Improve comment.
69497
69498         * lib/openat.c (openat_needs_fchdir): New function.
69499         * lib/openat.h (openat_needs_fchdir): Declare it.
69500
69501 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69502
69503         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69504         Problem and fix reported by Pádraig Brady in
69505         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69506
69507 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69508
69509         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69510
69511 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         * lib/memcoll.c (memcoll): Optimize for the common case where the
69514         arguments are bytewise equal.
69515
69516 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * doc/regexprops-generic.texi: Add a copyright notice.
69519
69520 2006-08-15  Bruno Haible  <bruno@clisp.org>
69521
69522         * modules/tmpdir (License): Change to LGPL.
69523
69524 2006-08-15  Bruno Haible  <bruno@clisp.org>
69525
69526         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69527         module.
69528
69529 2006-08-14  Simon Josefsson  <jas@extundo.com>
69530
69531         * config/srclist.txt: Add gnupload.
69532
69533 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         Change copyright notice from LGPL 2 to GPL 2, since that's the
69536         standard form used in the gnulib repository.
69537         * tests/test-lock.c: Likewise.
69538         * tests/test-stdint.c: Likewise.
69539         * tests/test-tls.c: Likewise.
69540
69541         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69542         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69543         Add copyright notice.
69544
69545         * check-module: Add copyright notice.  Output a copyright
69546         notice if "--version" is specified.
69547         * modules/COPYING: New file.
69548         * tests/test-getaddrinfo.c: Add copyright notice.
69549         * tests/test-verify.c: Likewise.
69550
69551 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         Change copyright notice from LGPL 2 to GPL 2, since that's the
69554         standard form used in the gnulib repository.
69555         * lib/lock.c: LGPL -> GPL.
69556         * lib/lock.h: Likewise.
69557         * lib/strnlen1.c: Likewise.
69558         * lib/strnlen1.h: Likewise.
69559         * lib/tls.c: Likewise.
69560         * lib/tls.h: Likewise.
69561         * lib/tmpdir.c: Likewise.
69562
69563         * lib/TODO: Remove; this belongs only in coreutils.
69564
69565 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         Add copyright notices to long-enough files that lack them, since
69568         otherwise the files aren't clearly free.  Use the same notice that
69569         getdate.texi already uses.
69570         * doc/alloca-opt.texi: Add copyright notice.
69571         * doc/alloca.texi: Likewise.
69572         * doc/ctime.texi: Likewise.
69573         * doc/functions.texi: Likewise.
69574         * doc/gcd.texi: Likewise.
69575         * doc/gnulib-tool.texi: Likewise.
69576         * doc/inet_ntoa.texi: Likewise.
69577         * doc/visibility.texi: Likewise.
69578
69579         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69580         * doc/quote.texi: Add copyright notice.
69581
69582         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69583         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69584         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69585         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69586         is now obsolete, and give a pointer to the Sun list.
69587         Add copyright notice.
69588
69589 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * config/srclistvars.sh: Add copyright notice.
69592
69593 2006-08-14  Eric Blake  <ebb9@byu.net>
69594
69595         Import the following change from libc:
69596
69597         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69598
69599         Upstream bug 2997.
69600         * lib/misc/error.c: Add space between program name and message if file
69601         name is missing.
69602
69603 2006-08-12  Karl Berry  <karl@gnu.org>
69604
69605         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69606         remove, these originate in gnulib now.
69607
69608 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69609
69610         * doc/Makefile (standards.info standards.html standards.dvi):
69611         Also depend on make-stds.texi.
69612
69613 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69614
69615         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69616         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69617
69618         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69619         in wchar_t.  Problem reported by Eric Blake.
69620
69621         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69622         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69623         Also, help the compiler to keep LEN in a register.
69624
69625 2006-08-11  Eric Blake  <ebb9@byu.net>
69626
69627         * users.txt: Sort.  Add tar.
69628
69629 2006-08-11  Bruno Haible  <bruno@clisp.org>
69630
69631         * users.txt: New file.
69632
69633 2006-08-11  Bruno Haible  <bruno@clisp.org>
69634
69635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69636         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69637
69638 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         * modules/snprintf (Depends-on): Remove minmax.
69641         (Maintainer): Add self and Bruno.
69642
69643 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69646         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69647         (EOVERFLOW): Define if the system does not.
69648         Do not include "minmax.h"; it wasn't used.
69649         (snprintf): Don't assume size_t promotes to an unsigned type.
69650         Fix bug when generated string was too long for the buffer: the
69651         buffer's contents are supposed to be the initial prefix of the
69652         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69653         exceeds INT_MAX; do the check ourselves.
69654
69655         Import the following changes from libc:
69656
69657         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69658
69659         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69660         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69661         set wc to the byte which couldn't be converted.
69662         (re_string_reconstruct): Don't clear valid_raw_len before calling
69663         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69664         tip_context using re_string_context_at.
69665
69666         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69667
69668         * lib/posix/regex.h: g++ still cannot handled [restrict].
69669
69670         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69671
69672         * lib/posix/regex.h: Remove special handling for VMS.
69673
69674 2006-08-10  Jim Meyering  <jim@meyering.net>
69675
69676         * modules/same-inode: New module.
69677         * modules/dev-ino: New module.
69678         * modules/cycle-check: Depend on these modules, rather than simply
69679         including their .h files.
69680         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69681         required via m4/cycle-check.m4.
69682         * modules/same: Depend on new same-inode module, rather than
69683         including same-inode.h.
69684         * modules/chdir-safer: New file.
69685
69686         * modules/chown (Depends-on): Add stat-macros.
69687
69688 2006-08-10  Jim Meyering  <jim@meyering.net>
69689
69690         * m4/cycle-check.m4: New file.
69691         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69692         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69693
69694 2006-08-10  Eric Blake  <ebb9@byu.net>
69695
69696         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69697         in from original proposal.
69698
69699 2006-08-10  Eric Blake  <ebb9@byu.net>
69700         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69701
69702         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69703         namespace.
69704
69705 2006-08-10  Bruno Haible  <bruno@clisp.org>
69706
69707         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69708         as well.
69709
69710 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         Sync from coreutils.
69713
69714         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69715
69716         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69717         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69718
69719 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69720
69721         * modules/restrict: Remove; no longer needed now that we assume
69722         Autoconf 2.59 or later.
69723         * MODULES.html.sh: Remove 'restrict'.
69724         * modules/argp (Depends-on): Remove 'restrict'.
69725         * modules/base64 (Depends-on): Likewise.
69726         * modules/gc (Depends-on): Likewise.
69727         * modules/getaddrinfo (Depends-on): Likewise.
69728         * modules/glob (Depends-on): Likewise.
69729         * modules/inet_ntop (Depends-on): Likewise.
69730         * modules/inet_pton (Depends-on): Likewise.
69731         * modules/memxor (Depends-on): Likewise.
69732         * modules/regex (Depends-on): Likewise.
69733         * modules/strtok_r (Depends-on): Likewise.
69734         * modules/time_r (Depends-on): Likewise.
69735
69736 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69739         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69740         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69741         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69742         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69743         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69744         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69745         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69746
69747         Merge from coreutils.
69748         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69749         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69750         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69751         * m4/time_r.m4 (gl_TIME_R): Likewise.
69752
69753 2006-08-09  Karl Berry  <karl@gnu.org>
69754
69755         * config/srclist.txt: no more gettext-tools, per Bruno.
69756
69757 2006-08-08  Eric Blake  <ebb9@byu.net>
69758
69759         * modules/verror: New module.
69760         * MODULES.html.sh: Document it.
69761
69762 2006-08-08  Eric Blake  <ebb9@byu.net>
69763
69764         * lib/verror.h, lib/verror.c: New files.
69765
69766 2006-08-08  Eric Blake  <ebb9@byu.net>
69767
69768         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69769         verror_at_line output complies with GNU Coding Standards even when
69770         file is NULL.
69771
69772 2006-08-07  Bruno Haible  <bruno@clisp.org>
69773
69774         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69775         versions of AIX.
69776         Reported by Ralf Wildenhues.
69777
69778 2006-08-07  Bruno Haible  <bruno@clisp.org>
69779
69780         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69781         in an AC_DEFUN. Needed so that the autoconf snippets can use
69782         AC_REQUIRE.
69783
69784 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69785
69786         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69787         Initialize pkgdata_DATA.
69788         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69789         overriding it.
69790
69791 2006-08-06  Eric Blake  <ebb9@byu.net>
69792
69793         * lib/error.h: Fold in some upstream changes from glibc.
69794         * lib/error.c: Likewise.
69795
69796 2006-08-04  Bruno Haible  <bruno@clisp.org>
69797
69798         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69799         Make the mostlyclean-local rule depend on mostlyclean-generic.
69800         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69801
69802 2006-07-31  Bruno Haible  <bruno@clisp.org>
69803
69804         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69805         <stdlib.h>, <string.h>.
69806
69807 2006-07-30  Bruno Haible  <bruno@clisp.org>
69808
69809         * modules/readlink (License): Change to LGPL.
69810
69811 2006-07-30  Bruno Haible  <bruno@clisp.org>
69812
69813         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69814         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69815         set PKGDATADIR to point to it.
69816
69817 2006-07-30  Bruno Haible  <bruno@clisp.org>
69818
69819         * modules/csharpexec (configure.ac): Comment out macro invocation.
69820         * modules/javaexec (configure.ac): Likewise.
69821         * modules/javacomp-script (configure.ac): Likewise.
69822
69823         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69824
69825 2006-07-30  Bruno Haible  <bruno@clisp.org>
69826
69827         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69828         linked-list.
69829
69830 2006-07-30  Bruno Haible  <bruno@clisp.org>
69831
69832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69833
69834 2006-07-30  Bruno Haible  <bruno@clisp.org>
69835
69836         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69837         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69838         get removed.
69839
69840 2006-07-29  Bruno Haible  <bruno@clisp.org>
69841
69842         Make it possible for gnulib-tool to work with locally modified or
69843         augmented gnulib repositories.
69844         * gnulib-tool (func_usage): Document --local-dir option.
69845         (local_gnulib_dir): New variable.
69846         Handle --local-dir option.
69847         (func_lookup_file): New function.
69848         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69849         (func_get_description, func_get_filelist, func_get_description,
69850         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69851         func_get_automake_snippet, func_get_include_directive,
69852         func_get_license, func_get_maintainer): Use func_lookup_file.
69853         (func_import, func_create_testdir): Use func_lookup_file.
69854
69855 2006-07-29  Bruno Haible  <bruno@clisp.org>
69856
69857         * modules/setenv (Depends-on): Add unistd.
69858
69859 2006-07-29  Bruno Haible  <bruno@clisp.org>
69860
69861         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69862
69863 2006-07-29  Bruno Haible  <bruno@clisp.org>
69864
69865         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69866
69867 2006-07-29  Bruno Haible  <bruno@clisp.org>
69868
69869         * gnulib-tool (import, update): If there is no Makefile.am, look at
69870         aclocal.m4, instead of bailing out.
69871
69872 2006-07-29  Bruno Haible  <bruno@clisp.org>
69873
69874         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69875         Categorize the options by when they are useful.
69876
69877 2006-07-29  Bruno Haible  <bruno@clisp.org>
69878
69879         * gnulib-tool (func_usage): Document option --no-libtool.
69880         Handle option --no-libtool.
69881         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69882         for changed semantics of $libtool variable.
69883         (func_import): Likewise. If libtool is not used, show this through
69884         an option --no-libtool.
69885         (func_create_testdir): Update.
69886
69887 2006-07-29  Bruno Haible  <bruno@clisp.org>
69888
69889         * gnulib-tool (func_import): Extend error message about missing
69890         --doc-base.
69891
69892 2006-07-29  Bruno Haible  <bruno@clisp.org>
69893
69894         * gnulib-tool (func_import): Don't create the $docbase directory if
69895         there is no file to store there.
69896
69897 2006-07-29  Bruno Haible  <bruno@clisp.org>
69898
69899         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69900         relevant, look for configure.ac there, not in the current directory.
69901         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69902
69903 2006-07-29  Bruno Haible  <bruno@clisp.org>
69904
69905         * gnulib-tool (SORT): New variable.
69906         (func_usage): Undocument --assume-autoconf option.
69907         Remove --assume-autoconf option handling.
69908         (autoconf_minversion): Determine from the contents of configure.ac.
69909         (func_import): Remove autoconf_minversion handling.
69910         Suggested by Eric Blake.
69911
69912 2006-07-29  Bruno Haible  <bruno@clisp.org>
69913
69914         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69915
69916 2006-07-29  Bruno Haible  <bruno@clisp.org>
69917
69918         * config/srclist.txt (*setenv.[ch]): Remove rules.
69919
69920 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69921
69922         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69923
69924 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69925
69926         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69927         arpa/inet.h.
69928
69929 2006-07-28  Simon Josefsson  <jas@extundo.com>
69930
69931         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69932         * modules/inet_pton (Depends-on): Likewise.
69933
69934 2006-07-28  Simon Josefsson  <jas@extundo.com>
69935
69936         * m4/netinet_in_h.m4: New file.
69937
69938 2006-07-28  Simon Josefsson  <jas@extundo.com>
69939
69940         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69941         #include's.
69942
69943 2006-07-28  Simon Josefsson  <jas@extundo.com>
69944
69945         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69946         #include's.
69947
69948 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69951         setgid on directories only if they set these bits.
69952         * lib/modechange.h: Remove obsolete comment about masks.
69953
69954 2006-07-28  Eric Blake  <ebb9@byu.net>
69955
69956         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69957         macro expansion.
69958
69959 2006-07-28  Bruno Haible  <bruno@clisp.org>
69960
69961         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69962
69963 2006-07-28  Bruno Haible  <bruno@clisp.org>
69964
69965         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69966
69967 2006-07-28  Bruno Haible  <bruno@clisp.org>
69968
69969         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69970         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69971         Define fallbacks.
69972         Avoids link error on FreeBSD 4.x.
69973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69974
69975         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69976         encoding.
69977         * lib/mbswidth.c (iswcntrl): Likewise.
69978
69979 2006-07-27  Bruno Haible  <bruno@clisp.org>
69980
69981         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69982         test.
69983
69984 2006-07-27  Bruno Haible  <bruno@clisp.org>
69985
69986         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69987         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69988         defined.
69989
69990 2006-07-26  Eric Blake  <ebb9@byu.net>
69991
69992         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69993
69994 2006-07-26  Eric Blake  <ebb9@byu.net>
69995
69996         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69997         like mingw that lack mkstemp.
69998         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69999         avoid compilation warning on mingw.
70000
70001 2006-07-26  Bruno Haible  <bruno@clisp.org>
70002
70003         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70004         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70005         INT_FAST*_MIN, INTPTR_MIN.
70006
70007 2006-07-25  Bruno Haible  <bruno@clisp.org>
70008
70009         * modules/version-etc (Depends-on): Add stdarg.
70010
70011 2006-07-25  Bruno Haible  <bruno@clisp.org>
70012
70013         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70014         complex commands.
70015
70016 2006-07-25  Bruno Haible  <bruno@clisp.org>
70017
70018         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70019         defined in <stdarg.h> or config.h.
70020
70021 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70022
70023         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70024         (gl_STDIO_SAFER): Remove.
70025
70026 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * MODULES.html.sh (File stream based Input/Output):
70029         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70030         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70031         * modules/fopen-safer, modules/tmpfile-safer: New files.
70032         * modules/stdio-safer: Remove.
70033
70034 2006-07-24  Bruno Haible  <bruno@clisp.org>
70035
70036         * modules/tmpdir: New file.
70037         * MODULES.html.sh (File system functions): Add it.
70038
70039 2006-07-24  Bruno Haible  <bruno@clisp.org>
70040
70041         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70042         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70043
70044 2006-07-24  Bruno Haible  <bruno@clisp.org>
70045
70046         * modules/clean-temp: New file.
70047
70048 2006-07-24  Bruno Haible  <bruno@clisp.org>
70049
70050         * m4/tmpdir.m4: New file, from GNU gettext.
70051
70052 2006-07-24  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/tmpdir.h: New file, from GNU gettext.
70055         * lib/tmpdir.c: New file, from GNU gettext.
70056
70057 2006-07-24  Bruno Haible  <bruno@clisp.org>
70058
70059         * lib/clean-temp.h: New file, from GNU gettext.
70060         * lib/clean-temp.c: New file, from GNU gettext.
70061
70062 2006-07-23  Eric Blake  <ebb9@byu.net>
70063
70064         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70065         (Depends-on): Add binary-io.
70066
70067 2006-07-23  Eric Blake  <ebb9@byu.net>
70068
70069         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70070
70071 2006-07-23  Eric Blake  <ebb9@byu.net>
70072
70073         * lib/tmpfile-safer.c: New file.
70074         * lib/stdio-safer.h (fopen_safer): Add prototype.
70075         * lib/stdio--.h (tmpfile): Make safer.
70076
70077 2006-07-23  Bruno Haible  <bruno@clisp.org>
70078
70079         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70080         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70081         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70082         gl_linked_remove_at): Use it.
70083
70084 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70085         and Simon Josefsson <jas@extundo.com>
70086
70087         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70088
70089         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70090
70091 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * modules/close-stream: New file.
70094         * modules/closeout (Description): Make it clear that it exits
70095         with a diagnostic on error.
70096         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70097         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70098
70099 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * m4/close-stream.m4: New file.
70102
70103 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         * lib/close-stream.c, lib/close-stream.h: New files.
70106
70107 2006-07-22  Bruno Haible  <bruno@clisp.org>
70108
70109         Merge from GNU gettext 0.15.
70110
70111         2006-05-01  Bruno Haible  <bruno@clisp.org>
70112
70113                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70114
70115         2006-07-22  Bruno Haible  <bruno@clisp.org>
70116
70117                 * modules/javaversion: New file.
70118                 * MODULES.html.sh (Java): Add javaversion.
70119
70120         2006-03-12  Bruno Haible  <bruno@clisp.org>
70121
70122                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70123
70124         2005-12-04  Bruno Haible  <bruno@clisp.org>
70125
70126                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70127                 (untested).
70128
70129         2006-06-21  Bruno Haible  <bruno@clisp.org>
70130
70131                 Avoid warnings from recent versions of mcs.
70132                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70133                 -o, -L, -r any more. Use options documented since mcs-1.0
70134                 instead. Similarly for -g.
70135
70136         2005-12-04  Bruno Haible  <bruno@clisp.org>
70137
70138                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70139                 .resources, not .resource.
70140
70141         2005-07-09  Bruno Haible  <bruno@clisp.org>
70142
70143                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70144                 add a .dll suffix.
70145                 Reported by Mark Junker <mjscod@gmx.de>.
70146
70147         2006-07-22  Bruno Haible  <bruno@clisp.org>
70148
70149                 * modules/gettext: Upgrade to gettext-0.15.
70150                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70151                 m4/visibility.m4.
70152                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70153
70154 2006-07-22  Bruno Haible  <bruno@clisp.org>
70155
70156         Merge from GNU gettext 0.15.
70157
70158         2006-03-25  Bruno Haible  <bruno@clisp.org>
70159
70160                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70161
70162         2006-07-21  Bruno Haible  <bruno@clisp.org>
70163
70164                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70165                 "1.1".
70166
70167         2006-05-09  Bruno Haible  <bruno@clisp.org>
70168
70169                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70170                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70171                 for the conftestver execution.
70172
70173         2006-05-01  Bruno Haible  <bruno@clisp.org>
70174
70175                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70176                 optional target-version argument. Verify that the compiler
70177                 groks source of the specified source-version, or add -source
70178                 option as necessary. Verify that the compiler produces
70179                 bytecode in the specified target-version, or add -target and
70180                 -source options as necessary. Make the result of the test
70181                 available as variable CONF_JAVAC. Also log error output in
70182                 config.log.
70183
70184         2006-03-11  Bruno Haible  <bruno@clisp.org>
70185
70186                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70187
70188         2006-05-09  Bruno Haible  <bruno@clisp.org>
70189
70190                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70191                 CLASSPATH_SEPARATOR to a semicolon.
70192
70193         2006-03-12  Bruno Haible  <bruno@clisp.org>
70194
70195                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70196                 available as variable CONF_JAVA, for subsequent autoconf
70197                 tests. Also log error output in config.log.
70198
70199         2006-07-19  Bruno Haible  <bruno@clisp.org>
70200
70201                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70202                 that getline works on glibc2 systems. Needed to avoid trouble
70203                 in relocatable.c.
70204                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70205
70206         2005-12-04  Bruno Haible  <bruno@clisp.org>
70207
70208                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70209                 launcher (untested).
70210
70211         2005-12-04  Bruno Haible  <bruno@clisp.org>
70212
70213                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70214
70215         2006-07-22  Bruno Haible  <bruno@clisp.org>
70216
70217                 * gettext.m4: Update from GNU gettext-0.15.
70218                 * nls.m4: Likewise.
70219                 * po.m4: Likewise.
70220                 * inttypes-pri.m4: Likewise.
70221                 * inttypes-h.m4: Renamed from inttypes.m4.
70222                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70223
70224 2006-07-22  Bruno Haible  <bruno@clisp.org>
70225
70226         Merge from GNU gettext 0.15.
70227
70228         2005-07-05  Bruno Haible  <bruno@clisp.org>
70229
70230                 * printf-args.c (printf_fetchargs): Work around broken
70231                 definition of wint_t on mingw.
70232
70233         2005-02-12  Bruno Haible  <bruno@clisp.org>
70234
70235                 * xallocsa.h: Add extern "C" for C++.
70236
70237         2006-05-17  Bruno Haible  <bruno@clisp.org>
70238
70239                 Cygwin portability.
70240                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70241
70242         2006-04-30  Bruno Haible  <bruno@clisp.org>
70243
70244                 * progreloc.c: Include <mach-o/dyld.h> if available.
70245                 (find_executable): Use _NSGetExecutablePath when possible.
70246
70247         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70248
70249                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70250                 function.
70251
70252         2005-12-29  Bruno Haible  <bruno@clisp.org>
70253
70254                 * progreloc.c (set_program_name_and_installdir): Fix
70255                 compilation error.
70256
70257         2005-12-04  Bruno Haible  <bruno@clisp.org>
70258
70259                 Cygwin portability.
70260                 * progreloc.c: Include <windows.h> also on Cygwin.
70261                 (find_executable): Add support for Cygwin.
70262                 (set_program_name_and_installdir): Handle also platforms with
70263                 nonempty EXEEXT.
70264
70265         2006-07-11  Bruno Haible  <bruno@clisp.org>
70266
70267                 * javacomp.c: Fix a comment.
70268                 Reported by Jim Meyering.
70269
70270         2006-04-30  Bruno Haible  <bruno@clisp.org>
70271
70272                 * javacomp.h (compile_java_class): Add source_version,
70273                 target_version arguments.
70274                 * javacomp.c: Rewritten to choose only a compiler that
70275                 respects the specified source_version and target_version.
70276
70277         2006-06-27  Bruno Haible  <bruno@clisp.org>
70278
70279                 Assume correct S_ISDIR macro.
70280                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70281
70282         2006-07-22  Bruno Haible  <bruno@clisp.org>
70283
70284                 * javaversion.h: New file, from GNU gettext.
70285                 * javaversion.c: New file, from GNU gettext.
70286                 * javaversion.java: New file, from GNU gettext.
70287                 * javaversion.class: New file, from GNU gettext.
70288
70289         2006-05-17  Bruno Haible  <bruno@clisp.org>
70290
70291                 Cygwin portability.
70292                 * javaexec.c (execute_java_class): Test for jview program
70293                 also on Cygwin.
70294
70295         2006-04-09  Bruno Haible  <bruno@clisp.org>
70296
70297                 * fatal-signal.c: Don't include string.h.
70298                 (at_fatal_signal): Use a copying loop instead of memcpy.
70299
70300         2005-12-04  Bruno Haible  <bruno@clisp.org>
70301
70302                 * csharpexec.c: Add support for 'clix' launcher (untested).
70303                 (execute_csharp_using_sscli): New function.
70304                 (execute_csharp_program): Call it.
70305
70306         2006-06-21  Bruno Haible  <bruno@clisp.org>
70307
70308                 Avoid warnings from recent versions of mcs.
70309                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70310                 -o, -L, -r any more. Use options documented since mcs-1.0
70311                 instead. Similarly for -g.
70312
70313         2005-07-09  Bruno Haible  <bruno@clisp.org>
70314
70315                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70316                 add a .dll suffix.
70317                 Reported by Mark Junker <mjscod@gmx.de>.
70318
70319         2006-06-17  Bruno Haible  <bruno@clisp.org>
70320
70321                 * config.charset: Update for NetBSD 3.0.
70322
70323         2006-05-17  Bruno Haible  <bruno@clisp.org>
70324
70325                 Cygwin portability.
70326                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70327
70328         2006-05-16  Bruno Haible  <bruno@clisp.org>
70329
70330                 * localcharset.c [CYGWIN]: Include <windows.h>.
70331                 (get_charset_aliases): For Cygwin, return the same CPxxx
70332                 aliases list as under WIN32.
70333                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70334                 the environment variables. Fall back to GetACP().
70335
70336         2006-04-05  Bruno Haible  <bruno@clisp.org>
70337
70338                 * config.charset: Update Juan Manuel Guerrero's address.
70339
70340         2005-02-12  Bruno Haible  <bruno@clisp.org>
70341
70342                 * allocsa.h: Add extern "C" for C++.
70343
70344         2005-02-10  Bruno Haible  <bruno@clisp.org>
70345
70346                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70347                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70348
70349         2006-07-22  Bruno Haible  <bruno@clisp.org>
70350
70351                 * gettext.h: Update to GNU gettext-0.15.
70352
70353 2006-07-22  Bruno Haible  <bruno@clisp.org>
70354
70355         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70356         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70357         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70358
70359 2006-07-21  Eric Blake  <ebb9@byu.net>
70360
70361         * modules/stdlib-safer: New file.
70362         * MODULES.html.sh (File stream based Input/Output): Add
70363         stdlib-safer.
70364
70365 2006-07-21  Eric Blake  <ebb9@byu.net>
70366
70367         * lib/stdlib-safer.h: New file from coreutils, required by
70368         stdlib--.h.
70369
70370 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70373
70374 2006-07-20  Bruno Haible  <bruno@clisp.org>
70375
70376         * gnulib-tool: Recognize new option --assume-autoconf.
70377         (autoconf_minversion): New variable.
70378         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70379
70380 2006-07-20  Bruno Haible  <bruno@clisp.org>
70381
70382         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70383
70384 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70385
70386         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70387         Reindent and repaginate.
70388
70389 2006-07-19  Derek Price  <derek@ximbiot.com>
70390
70391         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70392         Correct grammar.
70393
70394 2006-07-17  Bruno Haible  <bruno@clisp.org>
70395
70396         * modules/list: New file.
70397         * modules/array-list: New file.
70398         * modules/carray-list, modules/carray-list-tests: New files.
70399         * modules/linked-list, modules/linked-list-tests: New files.
70400         * modules/avltree-list, modules/avltree-list-tests: New files.
70401         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70402         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70403         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70404         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70405         * modules/oset: New file.
70406         * modules/array-oset: New file.
70407         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70408         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70409         * tests/test-carray_list.c: New file.
70410         * tests/test-linked_list.c: New file.
70411         * tests/test-avltree_list.c: New file.
70412         * tests/test-rbtree_list.c: New file.
70413         * tests/test-linkedhash_list.c: New file.
70414         * tests/test-avltreehash_list.c: New file.
70415         * tests/test-rbtreehash_list.c: New file.
70416         * tests/test-avltree_oset.c: New file.
70417         * tests/test-rbtree_oset.c: New file.
70418         * MODULES.html.sh (Container data structures): New section.
70419
70420 2006-07-17  Bruno Haible  <bruno@clisp.org>
70421
70422         * m4/gl_list.m4: New file.
70423
70424 2006-07-17  Bruno Haible  <bruno@clisp.org>
70425
70426         * lib/gl_list.h: New file.
70427         * lib/gl_list.c: New file.
70428         * lib/gl_array_list.h: New file.
70429         * lib/gl_array_list.c: New file.
70430         * lib/gl_carray_list.h: New file.
70431         * lib/gl_carray_list.c: New file.
70432         * lib/gl_linked_list.h: New file.
70433         * lib/gl_linked_list.c: New file.
70434         * lib/gl_anylinked_list1.h: New file.
70435         * lib/gl_anylinked_list2.h: New file.
70436         * lib/gl_avltree_list.h: New file.
70437         * lib/gl_avltree_list.c: New file.
70438         * lib/gl_anyavltree_list1.h: New file.
70439         * lib/gl_anyavltree_list2.h: New file.
70440         * lib/gl_rbtree_list.h: New file.
70441         * lib/gl_rbtree_list.c: New file.
70442         * lib/gl_anyrbtree_list1.h: New file.
70443         * lib/gl_anyrbtree_list2.h: New file.
70444         * lib/gl_anytree_list1.h: New file.
70445         * lib/gl_anytree_list2.h: New file.
70446         * lib/gl_linkedhash_list.h: New file.
70447         * lib/gl_linkedhash_list.c: New file.
70448         * lib/gl_anyhash_list1.h: New file.
70449         * lib/gl_anyhash_list2.h: New file.
70450         * lib/gl_avltreehash_list.h: New file.
70451         * lib/gl_avltreehash_list.c: New file.
70452         * lib/gl_rbtreehash_list.h: New file.
70453         * lib/gl_rbtreehash_list.c: New file.
70454         * lib/gl_anytreehash_list1.h: New file.
70455         * lib/gl_anytreehash_list2.h: New file.
70456
70457         * lib/gl_oset.h: New file.
70458         * lib/gl_oset.c: New file.
70459         * lib/gl_array_oset.h: New file.
70460         * lib/gl_array_oset.c: New file.
70461         * lib/gl_avltree_oset.h: New file.
70462         * lib/gl_avltree_oset.c: New file.
70463         * lib/gl_rbtree_oset.h: New file.
70464         * lib/gl_rbtree_oset.c: New file.
70465         * lib/gl_anytree_oset.h: New file.
70466
70467 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70468
70469         * m4/mkancesdirs.m4: New file.
70470         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70471         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70472         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70473         it.
70474
70475 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70478         * lib/mkancesdirs.h: New files.
70479         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70480         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70481         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70482         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70483         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70484         callers changed.  Revamp internals significantly, by not
70485         attempting to create directories that are temporarily more
70486         permissive than the final results.  Do not attempt to use
70487         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70488         This removes some race conditions, fixes some bugs, and simplifies
70489         things.  Use new dirchownmod function to do owner and mode changes.
70490         * lib/mkdir-p.h: Likewise.
70491         * lib/modechange.c (octal_to_mode): New function.
70492         (struct mode_change): New member mentioned.
70493         (make_node_op_equals): New arg mentioned.  All callers changed.
70494         (mode_compile): Keep track of which mode bits the user has explicitly
70495         mentioned.
70496         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70497         New arg PMODE_BITS, to keep track of which mode bits the user
70498         mentioned; it treats S_ISUID and S_ISGID speciall.
70499         All callers changed.
70500         * lib/modechange.h: Likewise.
70501
70502 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70503
70504         * MODULES.html.sh: Add mkancestors.
70505         * modules/mkancesdirs: New module.
70506         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70507         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70508         The chdir-safer and afs files are now orphans; I'll remove them
70509         unless someone speaks up.
70510         Add lib/dirchownmod.c, lib/dirchownmod.h.
70511         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70512         Add lchown, mkancesdirs.
70513         (Maintainer): Add self.
70514
70515 2006-07-15  Karl Berry  <karl@gnu.org>
70516
70517         * gnulib-tool: help message wording/arrangement.
70518
70519 2006-07-14  Simon Josefsson  <jas@extundo.com>
70520
70521         * doc/gnulib.texi (Libtool and Windows): New section.
70522
70523 2006-07-12  Simon Josefsson  <jas@extundo.com>
70524
70525         * modules/gendocs (License): Fix license, approved by Karl.
70526
70527 2006-07-12  Eric Blake  <ebb9@byu.net>
70528
70529         * MODULES.html.sh: Add gendocs.
70530
70531 2006-07-11  Eric Blake  <ebb9@byu.net>
70532
70533         * modules/fdl: New module, to install doc/fdl.texi.
70534         * MODULES.html.sh: Add new section for documentation modules.
70535         * gnulib-tool: Avoid space-tab.
70536         (--doc-base): New option, to manage files from doc.
70537
70538 2006-07-11  Eric Blake  <ebb9@byu.net>
70539
70540         * m4/absolute-header.m4: Fix comments to match recent change.
70541
70542 2006-07-11  Eric Blake  <ebb9@byu.net>
70543
70544         * gnulib-tool: List --doc-base before --tests-base.
70545
70546 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70547
70548         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70549
70550 2006-07-11  Bruno Haible  <bruno@clisp.org>
70551
70552         * README: Mention where to put documentation.
70553
70554 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70555
70556         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70557
70558 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70561         to stdint.m4.
70562
70563 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70566         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70567         "no/such/file/stdint.h" when there is no such file, so that
70568         the resulting C code can be parsed by dodgy compilers.
70569         Problems reported by Bob Proulx.
70570
70571 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70572
70573         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70574         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70575         macros into the GNU _D_EXACT_NAMLEN.
70576         * lib/savedir.c:  Likewise.
70577         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70578
70579 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70580         and Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70583         * m4/savedir.m4:
70584         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70585         macros into the GNU _D_EXACT_NAMLEN.
70586
70587 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70590         around the absolute name, to work around a problem with the HP-UX
70591         11.23 native C compiler, reported by Bob Proulx.
70592
70593 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * doc/maintain.texi, make-stds.texi: Sync from
70596         <http://savannah.gnu.org/projects/gnustandards>.
70597
70598 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70601
70602 2006-07-09  Jim Meyering  <jim@meyering.net>
70603
70604         * m4/glob.m4: Remove a doubled word in a comment.
70605
70606 2006-07-09  Jim Meyering  <jim@meyering.net>
70607
70608         * lib/argp-pv.c: Remove a doubled word in a comment.
70609         * lib/check-version.c (check_version): Likewise.
70610         * lib/javacomp.c (compile_java_class): Likewise.
70611
70612 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70615         for the benefit of people using Autoconf 2.60.  If you want to
70616         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70617         (or m4/onceonly.m4, if pre-2.57) manually.
70618
70619 2006-07-08  Jim Meyering  <jim@meyering.net>
70620
70621         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70622         comment.
70623         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70624         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70625         comment.
70626
70627 2006-07-08  Jim Meyering  <jim@meyering.net>
70628
70629         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70630
70631 2006-07-07  Simon Josefsson  <jas@extundo.com>
70632
70633         * tests/test-crc.c: Change expected crc value, the test vector
70634         were probably computed using the old broken crc.c?
70635
70636 2006-07-06  Simon Josefsson  <jas@extundo.com>
70637
70638         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70639         now the canonical place for the M4 file).
70640
70641         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70642         from the sys_socket dependency now.
70643
70644         * modules/inet_pton (Files): Ditto.
70645
70646         * modules/inet_ntop (Files): Ditto.
70647
70648 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70649
70650         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70651         not gl_PREREQ_GETUSERSHELL.
70652
70653 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70654
70655         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70656         with only one argument, for Autoconf 2.60.
70657         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70658         expand to nothing, so add a shell command to avoid syntax error.
70659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70660
70661 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70662
70663         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70664
70665 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70668         no longer needed.  Check for isblank decl.
70669         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70670         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70671         of existence.
70672
70673 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/getloadavg.c: Use __VMS, not VMS.
70676         * lib/getopt.c: Likewise.
70677         * lib/getpagesize.h: Likewise.
70678         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70679         and probably does not work.
70680
70681 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70682
70683         * lib/.cppi-disable: Add wcwidth.
70684         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70685         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70686         (ISGRAPH): Remove.  All uses changed to isgraph.
70687         (FOLD) [!defined _LIBC]: Remove special case.
70688         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70689         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70690         HAVE_ISBLANK.
70691         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70692         case.
70693
70694 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70695
70696         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70697         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70698         brackets.  Other minor changes to suppress some compiler
70699         warnings.
70700
70701 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70702         and Paul Eggert  <eggert@cs.ucla.edu>
70703
70704         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70705         of invoking obsolescent AC_HEADER_DIRENT macro.
70706         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70707         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70708         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70709         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70710         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70711         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70712         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70713         * m4/readdir.m4: Remove; no longer needed.
70714
70715 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70716         and Paul Eggert  <eggert@cs.ucla.edu>
70717
70718         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70719         Don't worry about this obsolete case any more.
70720         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70721         directories.
70722         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70723         worry about this obsolete case any more.
70724         * lib/fts.c: Likewise.
70725         * lib/getcwd.c: Likewise.
70726         * lib/glob.h: Likewise.
70727         * lib/savedir.c: Likewise.
70728
70729 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70732         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70733         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70734         needed.
70735         All uses removed.
70736         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70737         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70738         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70739         needed.
70740         * m4/getdate.m4 (gl_GETDATE): Likewise.
70741         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70742         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70743         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70744         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70745         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70746         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70747         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70748         needed.
70749
70750 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * lib/memcasecmp.c: Include <limits.h>.
70753         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70754         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70755         Don't assume isdigit succeeds only on '0' through '9'.
70756
70757 2006-07-05  Eric Blake  <ebb9@byu.net>
70758
70759         * modules/getaddrinfo (Depends-on): Add snprintf.
70760
70761 2006-07-05  Eric Blake  <ebb9@byu.net>
70762
70763         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70764         to avoid 'header present but could not be compiled' on cygwin.
70765
70766 2006-07-05  Eric Blake  <ebb9@byu.net>
70767
70768         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70769         missing from netdb.h.
70770         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70771
70772 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70773
70774         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70775         no longer needed.
70776         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70777         * m4/getdate.m4 (gl_GETDATE): Likewise.
70778         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70779         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70780         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70781         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70782         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70783
70784 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70785
70786         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70787         All uses of is_space replaced by isspace.
70788         * lib/exit.h: Don't talk about STDC_HEADERS.
70789         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70790         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70791         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70792         replaced by isprint etc.
70793         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70794         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70795         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70796         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70797         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70798         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70799
70800 2006-07-05  Bruno Haible  <bruno@clisp.org>
70801
70802         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70803         the function exists, before testing against AIX.
70804         Reported by Martin Lambers <marlam@marlam.de>.
70805
70806 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70807
70808         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70809         From Mark D. Baushke.
70810
70811 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70814         to the absolute name, not just one, to bypass Sun C 5.8's
70815         "warning: #include of /usr/include/... may be non-portable".
70816
70817 2006-07-04  Eric Blake  <ebb9@byu.net>
70818
70819         * modules/dirname-tests: New test module.
70820         * tests/test-dirname.c: New file, replacing dirname.c
70821         TEST_DIRNAME section that was recently deleted.
70822
70823 2006-07-04  Bruno Haible  <bruno@clisp.org>
70824
70825         Assume ANSI C header files and <ctype.h> functions.
70826         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70827         (mbsnwidth): Use isprint, iscntrl instead.
70828
70829 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         Merge from coreutils.
70832         * MODULES.html.sh: Add xstrtold.
70833         * modules/xstrtold: New file.
70834         * modules/cycle-check (Files): Add lib/same-inode.h.
70835         * modules/dirname (Files): Add m4/double-slash-root.m4.
70836         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70837         * modules/mkdir-p (Files): Add lib/same-inode.h.
70838         * modules/same (Files): Add lib/same-inode.h.
70839
70840 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70843         This is to keep the terminology clean; POSIX talks about
70844         "absolute pathnames", not "full pathnames", but the GNU
70845         Coding Standards say to use "path" for something else;
70846         so use "absolute" to keep both sides happy.
70847         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70848         Set gl_absolute_header, not gl_full_header_path.
70849         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70850         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70851         All uses changed.
70852
70853         Merge from coreutils.
70854
70855         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70858         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70859         want to require the building of c-strtod.o.
70860         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70861         needs -lm directly.
70862         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70863
70864         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70865
70866         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70867         --as-needed option if available.  Problem reported by Albert Chin in
70868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70869         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70870         cc merely issues a bunch of annoying warnings for --as-needed
70871         (this problem was reported by Bob Proulx).  Also, try linking with
70872         -lm to detect a bug in binutils 2.16 (this problem was reported
70873         by Ralf Wildenhues).
70874
70875         2006-06-18  Jim Meyering  <jim@meyering.net>
70876
70877         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70878         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70879         macro.
70880         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70881         also check for glibc-2.4's abort-inducing bug.
70882
70883         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70884         Low-probability clean-up should be to use rmdir to get rid of
70885         the just-created directory, not unlink.
70886
70887         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70888         configure fail, and request a bug report to inform us about it.
70889         Add a comment that, barring reports to the contrary, in 2007 we'll
70890         assume ftruncate is universally available.
70891
70892         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70893
70894         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70895
70896         2006-03-12  Jim Meyering  <jim@meyering.net>
70897
70898         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70899         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70900         * m4/same.m4 (gl_SAME): Likewise.
70901         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70902
70903         2006-03-11  Eric Blake  <ebb9@byu.net>
70904
70905         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70906         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70907         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70908         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70909
70910 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70911
70912         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70913         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70914         reported by Mark D. Baushke, one in
70915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70916
70917         Merge from coreutils.
70918
70919         * lib/.cppi-disable: Add stdint_.h.
70920         * lib/.cvsignore: Add stdint.h.
70921
70922         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70923
70924         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70925         both double and long double versions.
70926         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70927         * lib/xstrtold.c: New file.
70928         * lib/xstrtod.h (xstrtold): New decl.
70929
70930         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * lib/filemode.c (setst): Remove.
70933         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70934         (arguably) clearer, and the generated code is a bit smaller on my
70935         Debian GNU/Linux stable x86 host.
70936
70937         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70938
70939         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70940         Assume that filemode.h includes sys/types.h and sys/stat.h.
70941         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70942         (ftypelet): Reorder to put common cases first, for efficiency.
70943         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70944         to do 'M'.
70945         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70946         of 10, for compatibility with FreeBSD.  All callers changed.
70947         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70948         types that can't be deduced solely from st_mode.  First arg is now a
70949         const pointer.
70950         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70951         (strmode): Renamed from mode_string.
70952         (filemodestring): New decl.
70953         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70954         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70955         needed.
70956         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70957
70958         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70959
70960         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70961         fsusage.h now does that.  Include fsusage.h first, to test interface.
70962         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70963         at most one method (the old code could have generated decls that
70964         didn't conform to C89, not that this was ever exercised).
70965         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70966
70967         2006-03-19  Jim Meyering  <jim@meyering.net>
70968
70969         Work even in a chroot where d_ino values for entries in "/"
70970         don't match the stat.st_ino values for the same names.
70971         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70972         number, iterate through all entries again, using lstat instead.
70973         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70974         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70975
70976         * lib/getcwd.c (__getcwd): Clarify a comment.
70977         Use memcpy in place of a call to strcpy.
70978
70979         2006-03-12  Jim Meyering  <jim@meyering.net>
70980
70981         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70982         matches that of the current directory (which we're about to chdir ".."
70983         out of), then save the dev-ino of the parent, instead.
70984
70985         * lib/same-inode.h (SAME_INODE): New file/macro.
70986         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70987         Include "same-inode.h", instead.
70988         * lib/same.c: Likewise.
70989         * lib/cycle-check.h: Include "same-inode.h".
70990         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70991         * lib/cycle-check.c (SAME_INODE): Remove definition.
70992         * lib/root-dev-ino.h: Include "same-inode.h".
70993
70994         2006-03-11  Eric Blake  <ebb9@byu.net>
70995
70996         * lib/same.c (same_name): s/base_name/last_component/
70997         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70998         * lib/filenamecat.c (file_name_concat): Likewise.
70999
71000         2006-03-11  Eric Blake  <ebb9@byu.net>,
71001                     Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71004         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71005         drive prefix.
71006         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71007         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71008         (last_component): New method.
71009         * lib/dirname.c (dir_len): Determine when drive letters need a
71010         subsequent slash.  Preserve // when it is special.
71011         (dir_name): Don't append dot when drive letter is absolute.
71012         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71013         * lib/basename.c (base_name): New semantics - malloc the result.
71014         Preserve // when it is special.  Preserve relative files that look
71015         like drive letters.
71016         (base_len): Preserve // when it is special.
71017         (last_component): New method, similar to old base_name semantics.
71018         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71019         base_name.  Strip redundant slashes from ///.
71020
71021 2006-07-03  Jim Meyering  <jim@meyering.net>
71022
71023         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71024         macro is used before the first cycle_check call.
71025
71026 2006-07-03  Eric Blake  <ebb9@byu.net>
71027
71028         * modules/dirname (Depends-on): Add xstrndup.
71029
71030 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71033         test cases, so that config.log is a bit easier to follow.
71034
71035 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71038         both are 64 bits, since this seems to be the tradition, and this
71039         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71040         we ever run into a host that prefers long long to long in this
71041         case, we'll need another configure-time test.  Problem reported by
71042         Jim Meyering.
71043
71044 2006-07-02  Eric Blake  <ebb9@byu.net>
71045
71046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71047
71048 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * modules/inttypes (Depends-on): No longer depends on stdint.
71051         * modules/stdint (Description): Say more about assumptions.
71052         Say that the fast types might differ.  Say macros are used.
71053         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71054         (Makefile.am): Revise list of substituted symbols to match
71055         new stdint.m4.
71056         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71057         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71058         * tests/test-stdint.c (verify_same_types)
71059         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71060         the code conforms to C99/C89.
71061         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71062         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71063
71064 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71067         but fix a bug, by requiring at least 64 bits.
71068         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71069         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71070         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71071         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71072
71073         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71074         changes.  Make 2.59 a prerequisite.  Check and substitute for
71075         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71076         inttypes.h.  Do not use special include files; just use the
71077         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71078         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71079         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71080         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71081         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71082         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71083         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71084         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71085         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71086         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71087         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71088         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71089         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71090         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71091         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71092         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71093         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71094         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71095         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71096         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71097         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71098         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71099         not check for things that C99 does not require, e.g., int8_t.  If
71100         a test isn't needed unless <stdint.h> isn't working, and is
71101         unlikely to be needed for any other reason, then don't do it
71102         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71103         size_t, since we assume C89 freestanding at least.  Do not check
71104         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71105         the right thing even if the types are not defined.  Instead use:
71106         (gl_STDINT_TYPE_PROPERTIES): New macro.
71107         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71108         testing whether <sys/types.h> clashes, as Autoconf does this for
71109         us now.  All uses removed.
71110         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71111         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71112         (gl_CHECK_TYPE_SAME):
71113         Remove; no longer needed.
71114         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71115         exists, since we'll return 0 anyway in that case.
71116         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71117
71118 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71121         possible collision with system files.
71122         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71123         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71124         WCHAR_MIN and WCHAR_MAX in this case.
71125         (<stddef.h>): Do not include; no longer needed.
71126         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71127         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71128         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71129         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71130         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71131         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71132         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71133         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71134         !defined(__c99))]: Include in this case too, since it's harmless
71135         now.
71136         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71137         dangerous to do so.
71138         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71139         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71140         (_STDINT_MIN, _STDINT_MAX): New macros.
71141         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71142         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71143         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71144         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71145         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71146         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71147         macros, not typedefs; this simplifies things quite a bit.
71148         Use long int for all types narrower than int64_t.
71149         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71150         Define in terms of long long int or int64_t or long int,
71151         not int64_t or int32_t.  This saves some compile-time testing.
71152         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71153         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71154         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71155         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71156         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71157         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71158         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71159         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71160         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71161         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71162         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71163         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71164         undef any previous version and define our own version, for
71165         simplicity and consistency with the new macros for types.
71166         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71167         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71168         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71169         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71170         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71171         @WINT_T_SUFFIX@ to keep things simple here.
71172         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71173         Simplify by assuming typical 8/16/32/64 host, since we're
71174         already doing that elsewhere anyway.
71175         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71176         and assume long long int is 64 bits if available.  This
71177         speeds up 'configure'.
71178
71179 2006-07-01  Eric Blake  <ebb9@byu.net>
71180
71181         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71182         Reported by Andreas Buening.
71183
71184 2006-07-01  Eric Blake  <ebb9@byu.net>
71185
71186         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71187
71188 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71189
71190         * lib/getaddrinfo.c: fixed typo
71191
71192 2006-06-29  Jim Meyering  <jim@meyering.net>
71193
71194         * modules/strftime (Maintainer): Add my name, since with the
71195         FPRINTFTIME changes strftime.c has forked from glibc.
71196
71197 2006-06-29  Eric Blake  <ebb9@byu.net>
71198
71199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71200
71201 2006-06-29  Eric Blake  <ebb9@byu.net>
71202
71203         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71204
71205 2006-06-29  Eric Blake  <ebb9@byu.net>
71206
71207         * lib/stat_.h: New file.
71208
71209 2006-06-29  Eric Blake  <ebb9@byu.net>
71210
71211         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71212         unused static function.
71213
71214 2006-06-29  Eric Blake  <ebb9@byu.net>
71215
71216         * doc/functions.texi (Function Portability): Document missing lstat
71217         on mingw.
71218
71219 2006-06-29  Eric Blake  <ebb9@byu.net>
71220
71221         * MODULES.html.sh: Add sys_stat.
71222         * modules/sys_stat: New module.
71223         * modules/mkstemp (Depends-on): Add sys_stat.
71224
71225 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71226
71227         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71228
71229 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71230
71231         * m4/c-bs-a.m4: Removed.
71232
71233 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71234
71235         * lib/strftime.c: Assume strftime() exists.
71236
71237 2006-06-29  Derek Price  <derek@ximbiot.com>
71238
71239         * modules/c-bs-a: Removed - \a is C89.
71240         * MODULES.html.sh: Remove c-bs-a.
71241
71242 2006-06-29  Bruno Haible  <bruno@clisp.org>
71243
71244         * modules/wcwidth (License): Change to LGPL.
71245
71246 2006-06-28  Simon Josefsson  <jas@extundo.com>
71247
71248         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71249         on _WIN32.
71250
71251         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71252         getnameinfo.
71253
71254 2006-06-28  Simon Josefsson  <jas@extundo.com>
71255
71256         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71257
71258 2006-06-28  Simon Josefsson  <jas@extundo.com>
71259
71260         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71261         functions there.  It will succeed on Windows XP, but on Windows
71262         2000 and (presumably) earlier, it will fail, and use the internal
71263         re-implementation.
71264         (use_win32_p): New function.
71265         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71266         Support AI_NUMERICSERV to disable getservbyname.
71267         (getnameinfo): New function, only supports
71268         NI_NUMERICHOST|NI_NUMERICSERV for now.
71269
71270         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71271         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71272         getnameinfo.
71273
71274 2006-06-28  Eric Blake  <ebb9@byu.net>
71275
71276         * modules/wcwidth: New file.
71277         * modules/mbchar (Depends-on): Add wcwidth.
71278         * modules/mbswidth (Depends-on): Add wcwidth.
71279         * MODULES.html.sh: Add wcwidth.
71280
71281 2006-06-28  Eric Blake  <ebb9@byu.net>
71282
71283         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71285
71286 2006-06-28  Eric Blake  <ebb9@byu.net>
71287
71288         * lib/xvasprintf.h: Fix comments.
71289
71290 2006-06-28  Eric Blake  <ebb9@byu.net>
71291
71292         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71293         * lib/mbswidth.c (wcwidth): Move from here...
71294         * lib/wcwidth.h: ...to this new file.
71295
71296 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71297
71298         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71299
71300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71301         it's obsolete.
71302         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71303
71304 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71305
71306         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71307         Autoconf 2.60 says this stuff was obsolete.
71308
71309 2006-06-28  Bruno Haible  <bruno@clisp.org>
71310
71311         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71312
71313 2006-06-28  Bruno Haible  <bruno@clisp.org>
71314
71315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71316         gt_TYPE_WCHAR_T.
71317
71318 2006-06-28  Bruno Haible  <bruno@clisp.org>
71319
71320         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71321         declaration for wcwidth.
71322         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71323
71324 2006-06-28  Bruno Haible  <bruno@clisp.org>
71325
71326         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71327         (mkdir): Define using _mkdir.
71328
71329 2006-06-28  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/getaddrinfo.h: Fix POSIX URL.
71332         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71333         _WIN32.
71334         (use_win32_p): Make static.
71335         (getaddrinfo): Reject service name if it is empty or does not consist
71336         solely of decimal digits, or if its value is > 65535.
71337         (getnameinfo): Remove useless casts.
71338
71339 2006-06-27  Simon Josefsson  <jas@extundo.com>
71340
71341         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71342         Eggert and Martin Lambers.
71343
71344 2006-06-27  Simon Josefsson  <jas@extundo.com>
71345
71346         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71347         Eggert and Martin Lambers.
71348
71349 2006-06-27  Bruno Haible  <bruno@clisp.org>
71350
71351         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71352         result to 0, not to empty.
71353         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71354
71355 2006-06-27  Bruno Haible  <bruno@clisp.org>
71356
71357         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71358
71359 2006-06-26  Simon Josefsson  <jas@extundo.com>
71360
71361         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71362         present.
71363
71364 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71365
71366         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71367         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71368         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71369
71370 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71371
71372         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71373
71374 2006-06-26  Bruno Haible  <bruno@clisp.org>
71375
71376         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71377
71378 2006-06-26  Bruno Haible  <bruno@clisp.org>
71379
71380         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71381
71382 2006-06-26  Bruno Haible  <bruno@clisp.org>
71383
71384         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71385         SGI C compiler in pre-C99 mode.
71386         Suggested by Mark D. Baushke and Larry Jones.
71387
71388 2006-06-26  Bruno Haible  <bruno@clisp.org>
71389
71390         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71391         WCHAR_MAX.
71392         Reported by Mark D. Baushke and Larry Jones.
71393
71394 2006-06-26  Bruno Haible  <bruno@clisp.org>
71395
71396         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71397         in pre-C99 mode.
71398         Suggested by Mark D. Baushke and Larry Jones.
71399
71400 2006-06-23  Simon Josefsson  <jas@extundo.com>
71401             Bruno Haible  <bruno@clisp.org>
71402
71403         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71404         Emit mostlyclean-local rule.
71405         (func_emit_tests_Makefile_am): Likewise.
71406         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71407
71408 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71409
71410         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71411
71412 2006-06-23  Bruno Haible  <bruno@clisp.org>
71413
71414         * tests/test-stdint.c: Update to match ISO C 99 Technical
71415         Corrigendum 1.
71416
71417 2006-06-23  Bruno Haible  <bruno@clisp.org>
71418
71419         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71420
71421 2006-06-23  Bruno Haible  <bruno@clisp.org>
71422
71423         * lib/stdint_.h: Treat IRIX like OpenBSD.
71424
71425 2006-06-23  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71428         ISO C 99 Technical Corrigendum 1.
71429
71430 2006-06-22  Simon Josefsson  <jas@extundo.com>
71431
71432         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71433         MinGW.
71434
71435 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71438         needed.  Some compiler complained about some of them.  Problem reported
71439         by Larry Jones in
71440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71441
71442 2006-06-21  Simon Josefsson  <jas@extundo.com>
71443
71444         * tests/test-getaddrinfo.c: New file.
71445
71446         * modules/getaddrinfo-tests: New file.
71447
71448         * MODULES.html.sh: Add inet_pton.
71449
71450         * modules/inet_pton: New file.
71451
71452 2006-06-21  Simon Josefsson  <jas@extundo.com>
71453
71454         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71455         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71456         of using the (limited) gnulib implementation on Windows XP.
71457
71458         * m4/inet_pton.m4: New file.
71459
71460 2006-06-21  Simon Josefsson  <jas@extundo.com>
71461
71462         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71463         variable.
71464
71465         * lib/socket_.h: Don't define WINVER.
71466
71467         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71468         slightly modified to work in gnulib.
71469
71470 2006-06-21  Simon Josefsson  <jas@extundo.com>
71471
71472         * doc/gnulib.texi (Windows sockets): Add.
71473
71474 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71475
71476         * lib/read-file.c (fread_file): Start with buffer allocation of
71477         0 bytes rather than 1 byte; this simplifies the code.
71478         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71479         code to free buffer and save/restore errno.
71480         (internal_read_file): Remove unused local.
71481
71482 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71485         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71486         Problem reported by Denis Excoffier in
71487         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71488
71489 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71490
71491         * modules/sys_socket, modules/socklen: Include sys/types since
71492         FreeBSD 4.x's sys/socket.h needs it.
71493
71494 2006-06-19  Simon Josefsson  <jas@extundo.com>
71495
71496         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71497
71498 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71501
71502 2006-06-19  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71505         and FULL_PATH_INTTYPES_H in angle brackets.
71506         Reported by Mark D. Baushke <mdb@gnu.org>.
71507
71508 2006-06-17  Eric Blake  <ebb9@byu.net>
71509
71510         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71511         errno.
71512
71513 2006-06-17  Bruno Haible  <bruno@clisp.org>
71514
71515         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71516         <sys/inttypes.h>.
71517
71518 2006-06-17  Bruno Haible  <bruno@clisp.org>
71519
71520         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71521         whether errno is declared. Assume <errno.h> declares errno.
71522
71523 2006-06-17  Bruno Haible  <bruno@clisp.org>
71524
71525         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71526
71527 2006-06-17  Bruno Haible  <bruno@clisp.org>
71528
71529         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71530         problem on Solaris 2.5.1.
71531
71532 2006-06-16  Eric Blake  <ebb9@byu.net>
71533
71534         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71535         * lib/unicodeio.c [!defined errno]: Likewise.
71536         * lib/strtol.c [!defined errno]: Likewise.
71537         * lib/strtod.c [!defined errno]: Likewise.
71538
71539 2006-06-15  Eric Blake  <ebb9@byu.net>
71540
71541         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71542
71543 2006-06-15  Eric Blake  <ebb9@byu.net>
71544
71545         * config/srclist.txt (ssize_t.m4): Lose sync.
71546
71547 2006-06-15  Bruno Haible  <bruno@clisp.org>
71548
71549         * modules/stdint (Files): Include m4/full-header-path.m4,
71550         m4/size_max.m4, m4/wchar_t.m4.
71551         (Makefile.am): Many more substitutions.
71552         * modules/stdint-tests: New file.
71553         * tests/test-stdint.c: New file.
71554
71555 2006-06-15  Bruno Haible  <bruno@clisp.org>
71556
71557         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71558         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71559         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71560         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71561         gl_CHECK_TYPE_SAME): New macros.
71562
71563 2006-06-15  Bruno Haible  <bruno@clisp.org>
71564
71565         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71566
71567 2006-06-15  Bruno Haible  <bruno@clisp.org>
71568
71569         * lib/stdint_.h: Rewritten to be fully auto-configured.
71570         Fixes bug on HP-UX/IA64.
71571
71572 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * lib/getdate.y (__attribute__): Don't define if already defined.
71575         Problem reported by Larry Jones.
71576         * lib/utimens.c (__attribute__): Likewise.
71577
71578 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71581         reported by Andreas Schwab.
71582
71583 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71584             Bruno Haible  <bruno@clisp.org>
71585
71586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71587         check for the declaration of strnlen and a run test that exposes the
71588         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71589         rpl_strndup.
71590
71591 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71592             Bruno Haible  <bruno@clisp.org>
71593
71594         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71595
71596 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71597
71598         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71599         compile test, for Tru64 4.0D.
71600
71601 2006-05-28  Karl Berry  <karl@gnu.org>
71602
71603         * config/srclist.txt (printf-args.c): lose sync.
71604
71605 2006-05-26  Martin Lambers  <marlam@marlam.de>
71606
71607         * lib/getpass.c: Updates the test for the native W32 API, and adds
71608         missing includes, thus fixing compilation warnings.
71609
71610 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71611
71612         * lib/exclude.c (exclude_fnmatch): New function.
71613         (excluded_file_name): Call exclude_fnmatch.
71614         * lib/exclude.h (excluded_file_name): New prototype
71615
71616 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * lib/tempname.c (small_open, large_open): New macros.
71619         (__open, __open64) [!_LIBC]: Remove.
71620         (__gen_tempname): Use small_open and large_open instead of __open
71621         and __open64.  This fixes a portability bug on HP-UX 11.11i
71622         reported by Simon Wing-Tang in
71623         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71624
71625 2006-05-24  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71628         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71629         Reported by Thorsten Maerz <torte@netztorte.de> via
71630         Aaron Stone <aaron@serendipity.cx>.
71631
71632 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71633
71634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71635         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71636         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71637         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71638         not really conditional on the cache.
71639         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71640
71641 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71644         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71645         (my_usleep): Don't mishandle maximum value.
71646
71647 2006-05-19  Jim Meyering  <jim@meyering.net>
71648
71649         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71650
71651 2006-05-17  Bruno Haible  <bruno@clisp.org>
71652
71653         Cygwin portability.
71654         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71655
71656 2006-05-17  Bruno Haible  <bruno@clisp.org>
71657
71658         * lib/stdint_.h: Fix recognition of Cygwin.
71659
71660 2006-05-15  Bruno Haible  <bruno@clisp.org>
71661
71662         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71663         on libtool patch by Ralf Wildenhues.
71664
71665 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71668         test for C99 conformance; (bool) 0.5 is an integer constant
71669         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71670         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71671
71672 2006-05-11  Simon Josefsson  <jas@extundo.com>
71673
71674         * m4/xvasprintf.m4: Fix obvious typo.
71675
71676 2006-05-11  Jim Meyering  <jim@meyering.net>
71677
71678         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71679         James Lemley.
71680
71681 2006-05-10  Simon Josefsson  <jas@extundo.com>
71682
71683         * lib/md4.c: Typo fix, update copyright years.
71684         (K1, K2): Don't use L because it turn computations into 64-bit on
71685         64-bit platforms.
71686
71687 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71690         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71691         unwanted sign propagation, e.g., on hosts with 64-bit int.
71692         There still are some problems with reeelly weird theoretical hosts
71693         (e.g., 33-bit int) but it's not worth worrying about now.
71694         * lib/sha1.c (rol): Likewise.
71695         (K1, K2, K3, K4): Remove unnecessary L suffix.
71696
71697 2006-05-10  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/des.c: Cast to avoid warnings.
71700
71701 2006-05-09  Bruno Haible  <bruno@clisp.org>
71702
71703         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71704         (Depends-on): Depend also on xsize, stdarg.
71705         (configure.ac): Add gl_XVASPRINTF.
71706
71707 2006-05-09  Bruno Haible  <bruno@clisp.org>
71708
71709         * m4/xvasprintf.m4: New file.
71710
71711 2006-05-09  Bruno Haible  <bruno@clisp.org>
71712
71713         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71714         (EOVERFLOW): Define fallback value.
71715         (xstrcat): New function.
71716         (xvasprintf): Recognize the special case of a string concatenation.
71717
71718 2006-05-08  Eric Blake  <ebb9@byu.net>
71719
71720         * gnulib-tool (func_version): Base copyright year on CVS date.
71721         (func_emit_copyright_notice): New function.
71722         (func_emit_lib_Makefile_am): Use it.
71723         (func_emit_tests_Makefile_am): Likewise.
71724         (func_import): Likewise.
71725
71726 2006-05-08  Bruno Haible  <bruno@clisp.org>
71727
71728         * modules/stdarg: New file.
71729         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71730
71731 2006-05-08  Bruno Haible  <bruno@clisp.org>
71732
71733         * m4/stdarg.m4: New file, from GNU gettext.
71734
71735 2006-05-08  Bruno Haible  <bruno@clisp.org>
71736
71737         * config/srclist.txt (build-aux/config.rpath): different from latest
71738         release.
71739
71740 2006-05-08  Bruno Haible  <bruno@clisp.org>
71741
71742         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71743
71744 2006-05-05  Jim Meyering  <jim@meyering.net>
71745
71746         * m4/warning.m4: New file, derived from bison's file by the same name.
71747
71748 2006-05-03  Bruno Haible  <bruno@clisp.org>
71749
71750         * lib/stdint_.h: Shorter URL.
71751         * lib/inttypes.h: Likewise.
71752
71753 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71756
71757 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         * lib/verify.h: Document the internals better.  Most of this change
71760         was written by Bruno Haible.
71761
71762 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         * doc/verify.texi: New file, partly based on a proposal by
71765         Bruno Haible.
71766
71767 2006-05-02  Bruno Haible  <bruno@clisp.org>
71768
71769         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71770         test from here...
71771         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71772
71773 2006-04-29  Bruno Haible  <bruno@clisp.org>
71774
71775         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71776         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71777
71778 2006-04-29  Bruno Haible  <bruno@clisp.org>
71779
71780         * gnulib-tool: Make --update option actually work.
71781
71782 2006-04-29  Bruno Haible  <bruno@clisp.org>
71783
71784         * doc/gcd.texi: New file.
71785         * doc/gnulib.texi: Include it.
71786
71787 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * lib/getdate.y (get_date): When adding relative date, start with the
71790         initial time, not with the result of the first mktime call.
71791
71792 2006-04-25  Bruno Haible  <bruno@clisp.org>
71793
71794         * gnulib-tool (func_import): Output the include directives in three
71795         blocks, sorted separately.
71796         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71797
71798 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71801         to define main with arguments, for C++.  Reported by Eric Blake.
71802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71803         Prefer 'int main ()' to 'int main (void)', for C++.
71804         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71805         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71806         for 'main', for C99 and C++.
71807
71808 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71811         Don't assume that exit status -1 is valid.
71812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71813         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71814         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71815         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71816         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71817         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71818         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71819         functions can be used without declaring them, or that you can
71820         exit with status -1.
71821         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71822
71823 2006-04-24  Karl Berry  <karl@gnu.org>
71824
71825         * config/srclist.txt (longdouble.m4): sync lost.
71826
71827 2006-04-24  Eric Blake  <ebb9@byu.net>
71828
71829         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71830
71831 2006-04-24  Bruno Haible  <bruno@clisp.org>
71832
71833         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71834         poll() implementation in AIX.
71835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71836
71837 2006-04-24  Bruno Haible  <bruno@clisp.org>
71838
71839         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71840         assigned exactly once.
71841
71842 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71843             Bruno Haible  <bruno@clisp.org>
71844
71845         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71846         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71847         for AM_CPPFLAGS.
71848
71849 2006-04-23  Bruno Haible  <bruno@clisp.org>
71850
71851         * modules/copy-file: Depend on unistd.
71852         * modules/execute: Likewise.
71853         * modules/fatal-signal: Likewise.
71854         * modules/findprog: Likewise.
71855         * modules/mkdtemp : Likewise.
71856         * modules/pipe: Likewise.
71857         * modules/wait-process: Likewise.
71858
71859 2006-04-23  Bruno Haible  <bruno@clisp.org>
71860
71861         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71862         condition was already detected.
71863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71864
71865 2006-04-23  Bruno Haible  <bruno@clisp.org>
71866
71867         * lib/copy-file.c: Include <unistd.h> unconditionally.
71868         * lib/execute.c: Likewise.
71869         * lib/fatal-signal.c: Likewise.
71870         * lib/findprog.c: Likewise.
71871         * lib/mkdtemp.c: Likewise.
71872         * lib/pipe.h: Likewise.
71873         * lib/pipe.c: Likewise.
71874         * lib/wait-process.h: Likewise.
71875
71876 2006-04-23  Bruno Haible  <bruno@clisp.org>
71877
71878         * gnulib-tool (func_usage): Fix --import description. Document
71879         --update.
71880         (func_import): Create temporary file in a temporary directory, if
71881         --dry-run is specified. Silence errors from 'grep' when there are no
71882         m4 files in $m4dir.
71883         (func_create_testdir): Silence errors from 'grep' when there are no
71884         m4 files in $m4dir.
71885         Reported by Karl Berry <karl@freefriends.org>.
71886
71887 2006-04-20  Bruno Haible  <bruno@clisp.org>
71888
71889         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71890         one argument, so that the code will be portable to Autoconf 2.60.
71891         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71892         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71893         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71894
71895 2006-04-19  Derek Price  <derek@ximbiot.com>
71896             Eric Blake  <ebb9@byu.net>
71897
71898         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71899         rather than "/full/path.h".  Update comment to match.  Shorten &
71900         generalize m4_translit call via AS_TR_CPP.
71901
71902 2006-04-19  Derek Price  <derek@ximbiot.com>
71903             Eric Blake  <ebb9@byu.net>
71904
71905         * lib/inttypes.h: Correct grammar in comment.
71906
71907 2006-04-18  Derek Price  <derek@ximbiot.com>
71908             Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         * modules/inttypes: New file.
71911         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71912
71913 2006-04-18  Derek Price  <derek@ximbiot.com>
71914             Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71917         New files.
71918
71919 2006-04-18  Derek Price  <derek@ximbiot.com>
71920             Paul Eggert  <eggert@cs.ucla.edu>
71921
71922         * lib/inttypes.h: New file.
71923         * lib/strtoimax.c: Assume <inttypes.h>.
71924
71925 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71928         isn't mounted.  Problem reported by Kir Kolyshkin.
71929
71930 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71931
71932         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71933         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71934         Derek R. Price.
71935         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71936         implementation.
71937
71938 2006-04-12  Eric Blake  <ebb9@byu.net>
71939
71940         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71941         is now done automatically by the corresponding Autoconf macro.
71942
71943 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71944
71945         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71946         time_r.h.
71947
71948 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         Merge regex changes from libc, removing some of our
71951         POSIX-conformance changes that were rejected and redoing them in a
71952         less-intrusive way.
71953
71954         * lib/regcomp.c (re_compile_internal, init_dfa):
71955         Length arg is now size_t, not Idx.  All uses changed.
71956         (peek_token): Forward decl now says internal_function.
71957         (__re_error_msgid, __re_error_msgid_idx):
71958         Now static rather than extern with attribute_hidden.
71959         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71960         For some reason libc prefers K&R style defns for external functions.
71961         (regerror) [!defined _LIBC]: Likewise.
71962         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71963         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71964         (build_range_exp, build_collating_symbol):
71965         Use K&R-style defn.
71966         (re_compile_fastmap): Use '\0' to memset, not 0.
71967         (utf8_sb_map): Make the calculations more obvious.
71968         (init_dfa, parse_bracket_exp, build_charclass_op):
71969         Call calloc and cast result, as glibc does.
71970         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71971         (build_range_exp, build_collating_symbol):
71972         Now internal functions.
71973
71974         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71975
71976         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71977         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71978         Don't depend on VMS; depend on __VMS instead, for POSIX
71979         namespace cleanness.
71980         (regoff_t): Define to ssize_t, not long int.
71981
71982         Remove the REG_ macros named below.  Instead, make the old names
71983         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71984         __USE_GNU_REGEX.
71985         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71986         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71987         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71988         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71989         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71990         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71991         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71992         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71993         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71994         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71995         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71996         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71997         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71998         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71999         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72000         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72001         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72002         (REG_NREGS):
72003         Remove.  All uses replaced by the old RE_* names.
72004         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72005         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72006         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72007         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72008         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72009         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72010         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72011         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72012         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72013         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72014         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72015         Don't bother having these macros be independent of each others'
72016         values, since they no longer exist in the POSIX name space.
72017
72018         Rename the following member names back to their old names,
72019         unless !__USE_GNU_REGEX.  All uses changed back.
72020         (buffer): Renamed from re_buffer.
72021         (allocated): Renamed from re_allocated.
72022         (used): Renamed from re_used.
72023         (syntax): Renamed from re_syntax.
72024         (fastmap): Renamed from re_fastmap.
72025         (translate): Renamed from re_translate.
72026         (can_be_null): Renamed from re_can_be_null.
72027         (regs_allocated): Renamed from re_regs_allocated.
72028         (fastmap_accurate): Renamed from re_fastmap_accurate.
72029         (no_sub): Renamed from re_no_sub.
72030         (not_bol): Renamed from re_not_bol.
72031         (not_eol): Renamed from re_not_eol.
72032         (newline_anchor): Renamed from re_newline_anchor.
72033         (num_regs): Renamed from rm_num_regs.
72034         (start): Renamed from rm_start.
72035         (end): Renamed from rm_end.
72036
72037         (free_state): Move up a bit.
72038
72039         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72040         #define to be empty.
72041         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72042         when that is what is intended.
72043         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72044         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72045         (MAX): New macro.
72046         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72047         All uses changed back to re_malloc, etc.  It's now the caller's
72048         responsibility to check for overflow; all callers changed.
72049         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72050         (re_x2nrealloc): Remove.
72051         (free_state): Remove decl.
72052
72053         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72054         (re_set_registers, re_exec):
72055         Use K&R-style defn.
72056
72057         2006-01-31  Roland McGrath  <roland@redhat.com>
72058
72059         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72060         Reported by Mike Frysinger <vapier@gentoo.org>.
72061
72062         2006-01-15  Andreas Jaeger  <aj@suse.de>
72063
72064         [BZ #1950]
72065         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72066         build_wcs_upper_buffer change.
72067         (build_wcs_upper_buffer): Change return type.
72068
72069         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72070
72071         * lib/regex_internal.h: Include <stdint.h> if available.
72072
72073         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72074
72075         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72076
72077         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72078
72079         * lib/regcomp.c: Adjust for changed secondary hash function.
72080
72081         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72082
72083         * lib/regex.h: Pretty printing.
72084         Clean up namespace a bit.
72085
72086         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72087
72088         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72089         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72090
72091         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72092                     Ulrich Drepper  <drepper@redhat.com>
72093
72094         [BZ #1302]
72095         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72096         changed.
72097         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72098
72099         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72100
72101         [BZ #281]
72102         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72103         * lib/regcomp.c: Remove unnecessary uses of
72104         unsigned RE_TRANSLATE_TYPE.
72105         * lib/regex_internal.h: Likewise.
72106         * lib/regex_internal.c: Likewise.
72107         * lib/regexec.c: Likewise.
72108         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72109
72110         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72111
72112         * lib/regexec.c (find_recover_state): Remove unnecessary
72113         initialization.
72114         (transit_state_bkref): Make DFA a const pointer.
72115         (get_subexp): Likewise.
72116         (check_arrival): Likewise.
72117         (update_cur_sifted_state): Likewise.
72118         (re_search_internal): Likewise.
72119         (prune_impossible_nodes): Likewise.
72120         (acquire_init_state_context): Likewise.
72121         (proceed_next_node): Likewise.
72122         (set_regs): Likewise.
72123         (free_fail_stack_return): Likewise.
72124         (check_arrival_expand_ecl): Mark DFA parameter as const.
72125         (check_arrival_expand_ecl_sub): Likewise.
72126         (check_subexp_limits): Likewise.
72127         (sub_epsilon_src_nodes):  Likewise.
72128         (add_epsilon_src_nodes):  Likewise.
72129         (merge_state_array): Likewise.
72130         (update_regs): Likewise.
72131         (build_trtable): Likewise.
72132         (sift_states_backward): Mark MCTX parameter as const.
72133         (build_sifted_states): Likewise.
72134         (update_cur_sifted_state): Likewise.
72135         (sift_states_mkref): Likewise.
72136         (check_arrival_expand_ecl): Mark eclosure as const.
72137         (check_dst_limits_calc_pos_1): Likewise.
72138         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72139         pointer.
72140
72141         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72142
72143         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72144         (transit_state_sb): Likewise.
72145         (transit_state_mb): Likewise.
72146         (sift_states_iter_mb): Likewise.
72147         (check_arrival_add_next_nodes): Likewise.
72148         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72149         [_LIBC] (re_search_2_stub): Use mempcpy.
72150
72151         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72152         mbrtowc for very simple UTF-8 case.
72153
72154         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72155         a pointer-to-const.
72156         (re_acquire_state_context): Likewise.
72157         * lib/regex_internal.h: Adjust prototypes.
72158
72159         * lib/regex.c: Prevent using C++ compilers.
72160
72161         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72162         (re_acquire_state_context): Likewise.
72163
72164 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * modules/regex (Depends-on): Add ssize_t.
72167
72168 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72169
72170         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72171         translation table.
72172
72173 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72176
72177 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72178             Bruno Haible  <bruno@clisp.org>
72179
72180         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72181         <sys/types.h> and <inttypes.h>.
72182
72183 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72184
72185         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72186         `__error_t_defined', so argp.h will not typedef the former.
72187
72188 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72191         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72192         glibc names.  Even if glibc is changed to conform to POSIX, the
72193         traditional names will be available anyway, since regex depends on
72194         the extensions module.  Also, fix a longstanding typo in the
72195         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72196         reported by Emanuele Giaquinta.  Also, change sense of cached
72197         variable, so that the message makes sense.
72198
72199 2006-03-24  Simon Josefsson  <jas@extundo.com>
72200
72201         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72202         including some doc fixes.
72203         (base64_encode_alloc): Fix +1 bug on allocation failures.
72204
72205 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72206
72207         * lib/base64.c (base64_encode): Do not read past end of array with
72208         unsanitized input on systems with CHAR_BIT > 8.
72209
72210 2006-03-24  Eric Blake  <ebb9@byu.net>
72211
72212         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72213
72214 2006-03-22  Karl Berry  <karl@gnu.org>
72215
72216         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72217         * config/srclistvars.sh (COREUTILS): new var.
72218
72219 2006-03-17  Jim Meyering  <jim@meyering.net>
72220
72221         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72222         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72223
72224 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72225
72226         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72227         no longer needs it.  Instead, check that regoff_t is as least
72228         as wide as ptrdiff_t.
72229
72230         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72231         so that our regex.h stays compatible with the installed regex.
72232         This is helpful for installers who configure --without-included-regex.
72233         Problem reported by Emanuele Giaquinta.
72234
72235 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72236
72237         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72238         Typedef to long int, not to off_, as POSIX will likely change
72239         in that direction.
72240
72241 2006-03-15  Eric Blake  <ebb9@byu.net>
72242
72243         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72244
72245 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72246
72247         * lib/argp-help.c (validate_uparams): Fix typo
72248         * lib/argp-parse.c (argp_default_options): Consistently begin help
72249         messages with a lowercase letter.
72250
72251 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72254         overrun buffers and shouldn't be used (much as gets shouldn't be
72255         used).
72256         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72257
72258 2006-03-08  Simon Josefsson  <jas@extundo.com>
72259
72260         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72261         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72262
72263 2006-03-08  Simon Josefsson  <jas@extundo.com>
72264
72265         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72266         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72267
72268 2006-03-08  Simon Josefsson  <jas@extundo.com>
72269
72270         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72271         signal that configure disabled the device.
72272
72273 2006-03-08  Simon Josefsson  <jas@extundo.com>
72274
72275         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72276         languages.
72277
72278 2006-03-07  Simon Josefsson  <jas@extundo.com>
72279
72280         * modules/getopt (Depends-on): Add unistd.
72281
72282         * modules/unistd: New file.
72283
72284 2006-03-07  Simon Josefsson  <jas@extundo.com>
72285
72286         * modules/gc-random: New file.
72287
72288 2006-03-07  Simon Josefsson  <jas@extundo.com>
72289
72290         * m4/unistd_h.m4: New file.
72291
72292 2006-03-07  Simon Josefsson  <jas@extundo.com>
72293
72294         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72295         test to be side-effect free by storing the result in the cache
72296         variable gl_cv_lib_readline, and moving the assignment of
72297         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72298         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72299
72300 2006-03-07  Simon Josefsson  <jas@extundo.com>
72301
72302         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72303         error on missing devices (the functions will return an error).
72304
72305         * m4/gc.m4: Move random stuff to gc-random.m4
72306
72307 2006-03-07  Simon Josefsson  <jas@extundo.com>
72308
72309         * lib/unistd_.h: New file.
72310
72311 2006-03-07  Simon Josefsson  <jas@extundo.com>
72312
72313         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72314
72315 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72316
72317         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72318         Problem reported by Juan Manuel Guerrero.
72319
72320 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72323         the unistd module.
72324         * lib/getlogin_r.c: Likewise.
72325         * lib/getlogin_r.h: Likewise.
72326         * lib/glob.c: Likewise.
72327         * lib/pagealign_alloc.c: Likewise.
72328         * lib/unistd_.h: Remove; no longer needed.
72329
72330 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72333         Add unistd.
72334         * modules/c-stack (Depends-on): Add unistd.
72335         * modules/getlogin_r: Likewise.
72336         * modules/glob: Likewise.
72337         * modules/pagealign_alloc: Likewise.
72338         * modules/unistd (Files): Remove lib/unistd_.h.
72339         (EXTRA_DIST): Remove.
72340         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72341         need unistd_.h.
72342         (MOSTLYCLEANFILES): Remove unistd.h-t.
72343
72344 2006-03-03  Simon Josefsson  <jas@extundo.com>
72345
72346         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72347
72348 2006-03-03  Simon Josefsson  <jas@extundo.com>
72349
72350         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72351         libidn and bison.
72352
72353 2006-03-03  Simon Josefsson  <jas@extundo.com>
72354
72355         * build-aux/maint.mk: Add indent target.
72356
72357 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72358
72359         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72360         our replacement poll.h in any case, to avoid a differing
72361         declaration from a system header.  Seen on AIX.
72362
72363 2006-03-01  Simon Josefsson  <jas@extundo.com>
72364
72365         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72366         <kasal@ucw.cz>.
72367
72368 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * modules/gettime (Depends-on): Add extensions module.
72371         * modules/nanosleep (Depends-on): Likewise.
72372         * modules/settime (Depends-on): Likewise.
72373
72374 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72375
72376         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72377         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72378         pedantically.
72379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72380         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72381
72382         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72383         not "==".  Reported by Ralf Wildenhues.
72384
72385 2006-03-01  Karl Berry  <karl@gnu.org>
72386
72387         * doc/Copyright/request-*: new files, synced from gnuorg.
72388
72389 2006-03-01  Karl Berry  <karl@gnu.org>
72390
72391         * config/srclist.txt (Copyright/*): new entries.
72392
72393 2006-02-28  Simon Josefsson  <jas@extundo.com>
72394
72395         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72396
72397 2006-02-27  Simon Josefsson  <jas@extundo.com>
72398
72399         * lib/base64.h: Indent #define's.  From Jim Meyering
72400         <jim@meyering.net>.
72401
72402 2006-02-27  Jim Meyering  <jim@meyering.net>
72403
72404         Revert the change of 2006-02-24, so these files can continue
72405         to be sync'd from gettext.
72406         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72407         of `config.h'.
72408
72409 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         * modules/intprops: New file.
72412         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72413         Add intprops.
72414         * modules/getloadavg (Files): Remove lib/intprops.h.
72415         (Depends-on): Add intprops.
72416         * modules/human: Likewise.
72417         * modules/inttostr: Likewise.
72418         * modules/openat: Likewise.
72419         * modules/sig2str: Likewise.
72420         * modules/userspec: Likewise.
72421         * modules/utimecmp: Likewise.
72422         * modules/xnanosleep: Likewise.
72423         * modules/xstrtol: Likewise.
72424
72425 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72426
72427         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72428         * modules/lock-tests (TESTS): Use $(EXEEXT).
72429         * modules/tls-tests: Likewise.
72430         * modules/argp-tests: Likewise.
72431         (check_PROGRAMS): New var, replacing...
72432         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72433
72434 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72435
72436         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72437         `config.h'.
72438
72439 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72440
72441         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72442
72443 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72444
72445         Sync from coreutils.
72446         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72447         gl_CHDIR_SAFER.
72448
72449 2006-02-22  Jim Meyering  <jim@meyering.net>
72450
72451         Sync from coreutils.
72452         * m4/chdir-safer.m4: New file.
72453
72454 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72457         AT_FDCWD exceeds INT_MAX.
72458         * lib/openat.h (AT_FDCWD): Likewise.
72459
72460 2006-02-17  Eric Blake  <address@hidden>
72461
72462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72463
72464 2006-02-16  Simon Josefsson  <jas@extundo.com>
72465
72466         * modules/getaddrinfo (Depends-on): Add sys_socket.
72467
72468 2006-02-15  Simon Josefsson  <jas@extundo.com>
72469
72470         * build-aux/maint.mk: Add dsyntax-check rule.
72471
72472 2006-02-15  Eric Blake  <ebb9@byu.net>
72473
72474         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72475         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72476         'present but cannot compile' warnings on cygwin.
72477         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72478         use ws2tcpip.h if sys/socket.h works.
72479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72480         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72481
72482 2006-02-14  Simon Josefsson  <jas@extundo.com>
72483
72484         * modules/maintainer-makefile (Files): Rename.
72485
72486         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72487         and (the local) Makefile.cfg to maint-cfg.mk.
72488
72489         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72490         to the latter.
72491
72492         * modules/maintainer-makefile: New module.
72493
72494         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72495         severaly stripped to make it possible to build it up from scratch
72496         with reliable tests.
72497
72498         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72499         fixes to permit overriding the default actions when configure and
72500         makefile are not available.
72501
72502 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         Sync from coreutils.
72505         * modules/lstat (Depends-on): Don't depend on xalloc.
72506         (License): Change from GPL to LGPL, since this is now simply a
72507         replacement for a libc function.
72508
72509 2006-02-14  Jim Meyering  <jim@meyering.net>
72510
72511         Sync from coreutils.
72512
72513         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72514         failure on deficient systems, and simplify gnulib lgpl dependencies.
72515         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72516         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72517
72518         * lib/xalloc-die.c: Remove unused definition of N_.
72519
72520 2006-02-14  Jim Meyering  <jim@meyering.net>
72521
72522         Sync from coreutils.
72523         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72524         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72525         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72526         double-quote uses of that variable, to accommodate the rare case in
72527         which getmntent is available in none of the libraries checked.  This
72528         happens at least on FreeBSD 5.0.
72529
72530 2006-02-13  Simon Josefsson  <jas@extundo.com>
72531
72532         * gnulib-tool (Usage): Fix --import, from
72533         karl@freefriends.org (Karl Berry).
72534
72535 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72536
72537         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72538
72539 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72540
72541         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72542         "autoupdate" on 2005-12-12.
72543
72544 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         * modules/closeout (Depends-on): Remove atexit.
72547
72548 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72551         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72552
72553 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72556         __EXTENSIONS__ if this causes compilation to fail.  Problem
72557         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72558         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72559
72560 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72563         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72565         All uses changed.
72566
72567 2006-01-26  Simon Josefsson  <jas@extundo.com>
72568
72569         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72570         prototype is visible on mingw32.
72571
72572         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72573         for mingw32.
72574
72575         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72576         mingw32).
72577
72578 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72581         attempt to open for write; this always fails, at least on POSIX
72582         hosts.  This reinstates the 2006-01-09 change, which was
72583         inadvertently removed.
72584
72585 2006-01-26  Bruno Haible  <bruno@clisp.org>
72586
72587         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72588         Reported by Paul Eggert.
72589
72590 2006-01-26  Bruno Haible  <bruno@clisp.org>
72591             Paul Eggert  <eggert@cs.ucla.edu>
72592
72593         * lib/stdbool_.h (_Bool)
72594         [(! (defined __cplusplus || defined __BEOS__)
72595           && !defined __GNUC__
72596           && !(defined __HP_cc || defined __xlc__
72597                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72598                || defined __sgi))]:
72599         #define to signed char in these cases too; this simplifies
72600         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72601         etc., separately) and makes it more conservative.
72602
72603 2006-01-25  Simon Josefsson  <jas@extundo.com>
72604
72605         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72606         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72607         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72608
72609 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72610
72611         * lib/argp-namefrob.h: Bugfix. Remove stray #
72612
72613 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72616         so that we test the test.
72617         Check for yet another HP-UX cc bug involving *bool |= bool.
72618
72619 2006-01-25  Karl Berry  <karl@gnu.org>
72620
72621         * config/srclist.txt (vasnprintf.c): sync lost.
72622
72623 2006-01-25  Jim Meyering  <jim@meyering.net>
72624
72625         Sync from the stable (b5) branch of coreutils:
72626
72627         * lib/fts.c (fts_children): Don't let close() clobber errno from
72628         failed fchdir().
72629
72630         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72631         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72632         a dangling symlink.  That can also happen at least for ELOOP.
72633         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72634         FYI, this bug predates the inclusion of fts.c in coreutils.
72635
72636         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72637         in their own block, so pre-c99 compilers don't object.
72638
72639         Avoid the double-free (first in fts_read, second in fts_close) that
72640         would occur when an `active' directory is made inaccessible (e.g.,
72641         via chmod a-x) during a traversal.
72642         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72643         before returning.  Reproduce this failure by
72644         mkdir -p a/b; cd a; chmod a-x . b
72645         Reported by Stavros Passas.
72646
72647 2006-01-25  Jim Meyering  <jim@meyering.net>
72648
72649         * lib/fileblocks.c: Remove more useless parentheses.
72650         * lib/readutmp.h: Likewise.
72651
72652 2006-01-25  Bruno Haible  <bruno@clisp.org>
72653
72654         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72655         warnings.
72656         Reported by Paul Eggert.
72657
72658 2006-01-25  Bruno Haible  <bruno@clisp.org>
72659
72660         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72661         rid of a trap command. For Solaris sh.
72662         Reported by Mark D. Baushke <mdb@gnu.org>.
72663
72664 2006-01-24  Simon Josefsson  <jas@extundo.com>
72665
72666         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72667         Bruno.
72668
72669 2006-01-24  Karl Berry  <karl@gnu.org>
72670
72671         * config/srclist.txt (argp-namefrob.h): sync lost.
72672
72673 2006-01-24  Jim Meyering  <jim@meyering.net>
72674
72675         * modules/openat (Files): Add lib/intprops.h.
72676         From Mark D. Baushke.
72677
72678 2006-01-24  Jim Meyering  <jim@meyering.net>
72679
72680         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72681         Reported by Mark D. Baushke.
72682
72683 2006-01-24  Jim Meyering  <jim@meyering.net>
72684
72685         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72686
72687 2006-01-24  Bruno Haible  <bruno@clisp.org>
72688
72689         * modules/strnlen (Maintainer): Change from glibc to all.
72690
72691 2006-01-24  Bruno Haible  <bruno@clisp.org>
72692
72693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72694         Patch by Paul Eggert.
72695
72696 2006-01-24  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72699         already has it.
72700         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72701         2005-11-26.
72702
72703         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72704         'signed char' to avoid problems with the built-in _Bool type.
72705         Reported by Paul Eggert on 2005-11-26.
72706
72707 2006-01-24  Bruno Haible  <bruno@clisp.org>
72708
72709         * gnulib-tool (func_import): Avoid constructing complicated sed
72710         expressions inside backquote.
72711         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72712
72713 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72714
72715         These changes imported from libc.
72716         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72717         test and two separate function calls.
72718         * lib/strndup.c (__strndup): Add libc_hidden_def.
72719
72720 2006-01-23  Simon Josefsson  <jas@extundo.com>
72721
72722         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72723         Remove the test_*_SOURCES variable: automake infers it by default.
72724         * modules/tls-tests: Likewise.
72725
72726 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         Work around porting bugs reported by Dieter in
72729         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72730         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72731         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72732         Include "getopt.h" first, to check interface.
72733         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72734         !HAVE_DECL_GETENV.
72735         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72736         (__strndup): Revert to K&R-style function dfns, the glibc style.
72737         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72738         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72739         Include strnlen.h first, to get prototype properly.
72740         (strnlen): Renamed from __strnlen.
72741         Remove weak alias.
72742
72743 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72746
72747 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72748
72749         * config/srclist.txt: Adjust to reflect glibc reorganization.
72750         This affects only comments.
72751
72752 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72753
72754          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72755          Reported by Bruce Korb <bkorb@gnu.org>.
72756
72757 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72760         to pacify gcc -Wswitch-default.
72761
72762 2006-01-22  Bruno Haible  <bruno@clisp.org>
72763
72764         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72765         temporary buffer for sprintf, take into account the precision also
72766         for 'd', 'i', 'u', 'o', 'x', 'X'.
72767
72768 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72769
72770         * modules/argp-tests: New module
72771         * tests/test-argp.c: New file
72772         * tests/test-argp-2.sh: New file
72773
72774 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72775
72776         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72777         (__argp_base_name): Removed
72778         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72779         typo.
72780         (__argp_base_name): Provide macro definition or extern declaration
72781         depending on the configuration
72782
72783 2006-01-20  Simon Josefsson  <jas@extundo.com>
72784
72785         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72786
72787 2006-01-20  Simon Josefsson  <jas@extundo.com>
72788
72789         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72790
72791 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72794         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72795         Suggested by Bruno Haible.
72796
72797 2006-01-20  Karl Berry  <karl@gnu.org>
72798
72799         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72800         until changes propagate, I guess.
72801
72802 2006-01-19  Simon Josefsson  <jas@extundo.com>
72803
72804         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72805
72806 2006-01-19  Simon Josefsson  <jas@extundo.com>
72807
72808         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72809
72810 2006-01-19  Simon Josefsson  <jas@extundo.com>
72811
72812         * gnulib-tool: Set check_PROGRAMS.
72813
72814         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72815         modules/des-tests, modules/gc-arcfour-tests,
72816         modules/gc-arctwo-tests, modules/gc-des-tests,
72817         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72818         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72819         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72820         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72821         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72822         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72823         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72824         test_*_SOURCES.
72825
72826 2006-01-18  Simon Josefsson  <jas@extundo.com>
72827
72828         * modules/socklen (Depends-on): Depend on sys_socket.
72829
72830 2006-01-18  Simon Josefsson  <jas@extundo.com>
72831
72832         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72833         modules/des-tests, modules/gc-arcfour-tests,
72834         modules/gc-arctwo-tests, modules/gc-des-tests,
72835         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72836         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72837         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72838         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72839         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72840         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72841         $(EXEEXT) to automake TESTS variable, for mingw32.
72842
72843 2006-01-17  Simon Josefsson  <jas@extundo.com>
72844
72845         * modules/socklen (Include): Need sys/socket.h.
72846
72847 2006-01-17  Bruno Haible  <bruno@clisp.org>
72848
72849         * modules/ssize_t (Include): Add <sys/types.h>.
72850
72851 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72854         it's not portable and it doesn't work with cross-compiles.
72855         Problem reported by Bruno Haible.  Fix missing-$ typo in
72856         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72857         -zignore from being used with Sun's C compiler.
72858
72859 2006-01-12  Simon Josefsson  <jas@extundo.com>
72860
72861         * lib/base64.c: Fix warning, reported by Bruno Haible
72862         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72863
72864 2006-01-12  Bruno Haible  <bruno@clisp.org>
72865
72866         * modules/ldd: New file.
72867         * build-aux/ldd.sh.in: New file.
72868         * MODULES.html.sh (Support for building libraries and executables): Add
72869         ldd.
72870
72871 2006-01-12  Bruno Haible  <bruno@clisp.org>
72872
72873         * m4/ldd.m4: New file.
72874
72875 2006-01-12  Bruno Haible  <bruno@clisp.org>
72876
72877         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72878         endless loop while replacing $auxdir with build-aux.
72879
72880 2006-01-11  Simon Josefsson  <jas@extundo.com>
72881
72882         * lib/stdint_.h (SIZE_MAX): Add missing (.
72883
72884 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         Sync from coreutils.
72887         * lib/md5.c: Fix commentary typos.
72888         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72889         * lib/md5.h (__attribute__): Remove; unused.
72890         * lib/sha1.c: Fix commentary to match md5 better.
72891         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72892         so that we don't need to worry about alignment.  All uses changed.
72893         This merges the 2005-10-28 md5 change into sha1.
72894
72895 2006-01-11  Jim Meyering  <jim@meyering.net>
72896
72897         Sync from coreutils.
72898         * lib/md5.c (OP): Fix spacing.
72899
72900 2006-01-11  Bruno Haible  <bruno@clisp.org>
72901
72902         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72903         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72904         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72905
72906 2006-01-11  Bruno Haible  <bruno@clisp.org>
72907
72908         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72909         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72910         the "early" section as well.
72911
72912 2006-01-11  Bruno Haible  <bruno@clisp.org>
72913
72914         Avoid "ar: no archive members specified" error on MacOS X.
72915         * gnulib-tool (func_modules_add_dummy): New function.
72916         (func_import, func_create_testdir): Invoke it.
72917
72918 2006-01-11  Bruno Haible  <bruno@clisp.org>
72919
72920         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72921         with $auxdir in AC_CONFIG_FILES statements.
72922
72923 2006-01-11  Bruno Haible  <bruno@clisp.org>
72924
72925         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72926         Initialize also noinst_HEADERS to empty.
72927
72928 2006-01-11  Bruno Haible  <bruno@clisp.org>
72929
72930         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72931         variables.
72932         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72933         autoreconf.
72934
72935 2006-01-11  Bruno Haible  <bruno@clisp.org>
72936
72937         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72938         overridable by the user.
72939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72940
72941 2006-01-10  Simon Josefsson  <jas@extundo.com>
72942
72943         * modules/sys_socket: New file.
72944
72945 2006-01-10  Simon Josefsson  <jas@extundo.com>
72946
72947         * m4/sys_socket_h.m4: New file.
72948
72949 2006-01-10  Simon Josefsson  <jas@extundo.com>
72950
72951         * lib/socket_.h: New file.
72952
72953 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * modules/readutmp (Maintainer): Add myself.
72956
72957 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72958
72959         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72960         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72961         People who are still concerned with buggy memcmp implementations
72962         can invoke gl_FUNC_MEMCMP themselves.
72963
72964 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         * lib/regex_internal.h (BITSET_WORD_BITS):
72967         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72968         preprocessor mishandles large unsigned values as if they were signed.
72969         Problem reported by Claudio Fontana in
72970         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72971
72972 2006-01-10  Jim Meyering  <jim@meyering.net>
72973
72974         Avoid the double-free (first in fts_read, second in fts_close) that
72975         would occur when an `active' directory is made inaccessible (e.g.,
72976         via chmod a-x) during a traversal.
72977         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72978         before returning.  Reproduce this failure by
72979         mkdir -p a/b; cd a; chmod a-x . b
72980         Reported by Stavros Passas.
72981
72982         Sync from coreutils.
72983         * lib/sha1.c: Tweak grammar in a comment.
72984
72985 2006-01-10  Jim Meyering  <jim@meyering.net>
72986
72987         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72988         Patch by Joerg Sonnenberger.
72989
72990 2006-01-10  Bruno Haible  <bruno@clisp.org>
72991
72992         * modules/readutmp: Depend on module free.
72993         * modules/strtok_r: Depend on module restrict.
72994
72995 2006-01-10  Bruno Haible  <bruno@clisp.org>
72996
72997         * modules/gettext (configure.ac): Add an invocation of
72998         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72999
73000 2006-01-10  Bruno Haible  <bruno@clisp.org>
73001
73002         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73003         Reported by Werner Lemberg <wl@gnu.org>.
73004
73005 2006-01-10  Bruno Haible  <bruno@clisp.org>
73006
73007         * lib/localcharset.c: Update from GNU gettext.
73008
73009 2006-01-10  Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/argp.h (__const): Remove macro. Use const instead.
73012         * lib/argp-fmtstream.h (__const): Likewise.
73013         * lib/glob_.h (__const): Remove macro.
73014         * lib/glob-libc.h: Use const instead of __const.
73015
73016 2006-01-10  Bruno Haible  <bruno@clisp.org>
73017
73018         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73019         variable.
73020         Needed to avoid an automake error regarding the 'gettext' module.
73021
73022 2006-01-09  Simon Josefsson  <jas@extundo.com>
73023
73024         * modules/inet_ntop (Depends-on): Add restrict.
73025
73026 2006-01-09  Simon Josefsson  <jas@extundo.com>
73027
73028         * modules/gc-rijndael-tests (License): Put under LGPL.
73029
73030         * modules/gc-des-tests (License): Likewise.
73031
73032         * modules/gc-arcfour-tests (License): Likewise.
73033
73034         * modules/gc-arctwo-tests (License): Likewise.
73035
73036         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73037
73038         * modules/gc-hmac-sha1-tests (Files): Likewise.
73039
73040         * modules/gc-hmac-md5-tests (License): Likewise.
73041
73042         * modules/gc-sha1-tests (License): Likewise.
73043
73044         * modules/gc-md5-tests (License): Likewise.
73045
73046         * modules/gc-md4-tests (License): Likewise.
73047
73048         * modules/gc-md2-tests (License): Likewise.
73049
73050         * modules/gc-tests (License): Likewise.
73051
73052         * modules/des-tests (License): Likewise.
73053
73054         * modules/md4-tests (License): Likewise.
73055
73056         * modules/md2-tests (License): Likewise.
73057
73058 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73059
73060         Sync from coreutils:
73061
73062         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73063         * modules/lib-ignore: New file.
73064         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73065         chdir-safer.m4, lchmod.m4.
73066         * modules/openat: Add mkdirat.c, openat-priv.h.
73067
73068 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         Sync from coreutils.
73071         * m4/lib-ignore.m4: New file.
73072         * m4/lchmod.m4: New file.
73073
73074 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73075
73076         Sync from coreutils.
73077         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73078         for write access: POSIX says that must fail.
73079         * lib/fts.c (diropen): Likewise.
73080         * lib/save-cwd.c (save_cwd): Likewise.
73081         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73082         well, for minor improvements on hosts that lack O_DIRECTORY.
73083         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73084         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73085         Fall back on chown if open failed with EACCES.
73086
73087         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73088         Report an error at compile-time if only a 1-second nominal clock
73089         resolution is found.
73090
73091         * lib/lchmod.h: New file.
73092         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73093         (make_dir_parents): Use lchown rather than chown, and
73094         lchmod rather than chmod.
73095
73096         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73097         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73098         "proc" reported by n0dalus.
73099
73100         * lib/mountlist.c: Include <limits.h>.
73101         (dev_from_mount_options)
73102         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73103         New function.  It no longer assumes "dev=" has the System V meaning
73104         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73105         (read_file_system_list)
73106         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73107         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73108         dev= in that case.
73109
73110         * lib/posixtm.h (PDS_PRE_2000): New macro.
73111         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73112         allow_century.  All usages changed.  Reject dates outside the range
73113         1969-1999 if PDS_PRE_2000 is used.
73114
73115 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73116
73117         Sync from coreutils.
73118         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73119         (Time of day items): Mention the possibility of leap seconds.
73120         Problem reported by Dr. David Alan Gilbert.
73121
73122 2006-01-09  Jim Meyering  <jim@meyering.net>
73123
73124         Sync from coreutils.
73125
73126         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73127
73128         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73129
73130         * lib/modechange.c (mode_compile): Reject an invalid mode string
73131         that starts with an octal digit.  From Andreas Gruenbacher.
73132
73133         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73134         and dup to open_safer and dup_safer, respectively.
73135         (openat_permissive): Fix typo in comment.
73136
73137         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73138         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73139         (_): Remove; no longer needed.
73140         (openat): Renamed from rpl_openat; no need for rpl_openat
73141         since openat.h renames openat for us.
73142         Replace most of the body with a call to openat_permissive,
73143         to avoid duplicate code.
73144         Port to (probably hypothetical) environments were mode_t is
73145         wider than int.
73146         (openat_permissive): Require mode arg, so that we can check
73147         types better.  Put it just after flags.  Change cwd failure
73148         indicator from pointer-to-bool to pointer-to-errno-value.
73149         All callers changed.
73150         Invoke openat_save_fail and/or openat_restore_fail if
73151         cwd_errno is null, so that openat can call us.
73152         (openat_permissive, fdopendir, fstatat, unlinkat):
73153         Simplify errno handling to avoid some duplicate code,
73154         as it's OK to set errno on success.
73155         * lib/openat.h: Revamp code so that function macros depend on
73156         __OPENAT_PREFIX only, not also on AT_FDCWD.
73157         (openat_ro): Remove.  Caller changed to use openat_permissive.
73158         (openat_permissive): Now a macro, if not a function.
73159         (openat_restore_fail, openat_save_fail): Now always functions,
73160         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73161
73162         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73163         and openat.c.
73164         * lib/mkdirat.c: Include openat-priv.h.
73165         Remove definitions of macros defined therein.
73166         * lib/openat.c: Likewise.
73167
73168         * lib/mkdirat.c (mkdirat): New file and function.
73169         * lib/openat.h (mkdirat): Declare.
73170
73171         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73172
73173         * lib/openat.h (openat_permissive): Declare.
73174         (openat_ro): Define.
73175
73176         * lib/openat.c (EXPECTED_ERRNO): New macro.
73177         (openat_permissive): New function -- used in remove.c rewrite.
73178         (all functions): Set errno just before returning, only if there
73179         was an actual failure.
73180         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73181
73182         Emulate openat-family functions using Linux's procfs, if possible.
73183         Idea and some code based on Ulrich Drepper's glibc changes.
73184
73185         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73186         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73187         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73188         before falling back on save_cwd and restore_cwd.
73189         (fdopendir, fstatat, unlinkat): Likewise.
73190
73191         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73192         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73193
73194         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73195         as second argument to va_arg.  Otherwise, some versions of gcc
73196         warn that `if this code is reached, the program will abort'.
73197
73198 2006-01-09  Jim Meyering  <jim@meyering.net>
73199
73200         Sync from coreutils.
73201         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73202         Require openat-priv.h.
73203
73204 2006-01-09  Bruno Haible  <bruno@clisp.org>
73205
73206         * modules/strnlen (Include): Use strnlen.h.
73207
73208 2006-01-09  Bruno Haible  <bruno@clisp.org>
73209
73210         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73211
73212 2006-01-09  Bruno Haible  <bruno@clisp.org>
73213
73214         * lib/sysexit_.h (EX_OK): New macro.
73215         Suggested by Martin Lambers <marlam@marlam.de>.
73216
73217 2006-01-09  Bruno Haible  <bruno@clisp.org>
73218
73219         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73220         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73221
73222 2006-01-09  Bruno Haible  <bruno@clisp.org>
73223
73224         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73225         numbers.
73226
73227 2006-01-09  Bruno Haible  <bruno@clisp.org>
73228
73229         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73230         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73231         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73232         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73233
73234 2006-01-09  Bruno Haible  <bruno@clisp.org>
73235
73236         * build-aux/javacomp.sh.in: New file, moved from lib/.
73237         * modules/javacomp-script (Files): Update.
73238         (configure.ac): Add AC_CONFIG_FILES invocation.
73239         (EXTRA_DIST): Remove variable.
73240
73241         * build-aux/javaexec.sh.in: New file, moved from lib/.
73242         * modules/javaexec (Files): Update.
73243         (configure.ac): Add AC_CONFIG_FILES invocation.
73244         (EXTRA_DIST): Remove javaexec.sh.in.
73245
73246         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73247         * modules/csharpcomp-script (Files): Update.
73248         (configure.ac): Add AC_CONFIG_FILES invocation.
73249         (EXTRA_DIST): Remove variable.
73250
73251         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73252         * modules/csharpexec (Files): Update.
73253         (configure.ac): Add AC_CONFIG_FILES invocation.
73254         (EXTRA_DIST): Remove csharpexec.sh.in.
73255
73256 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73257
73258         Sync from coreutils.
73259
73260         Add POSIX ACL support
73261         * lib/acl.h (copy_acl, set_acl): Add declarations.
73262         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73263         systems other than Linux.
73264         (chmod_or_fchmod): New function: use fchmod when possible,
73265         and chmod otherwise.
73266         (file_has_acl): Add a POSIX ACL implementation, with a
73267         Linux-specific subcase.
73268         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73269         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73270         acls are unsupported.
73271         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73272         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73273         are unsupported.
73274
73275 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73276
73277         Sync from coreutils.
73278         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73279
73280 2006-01-07  Bruno Haible  <bruno@clisp.org>
73281
73282         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73283         gl_EARLY.
73284
73285 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73288         Problem reported for Mingw by Mark Junker.
73289
73290 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73291
73292         * README: Gnulib normally doesn't generate a tarball.
73293
73294 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73295
73296         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73297         long int, not int, for nanosecond counts, so that people who are
73298         used to POSIX struct timespec won't be surprised.  Reported by Jim
73299         Meyering.
73300
73301 2005-12-28  Bruno Haible  <bruno@clisp.org>
73302
73303         * build-aux/config.rpath: Update from GNU gettext.
73304
73305 2005-12-16  Jim Meyering  <jim@meyering.net>
73306
73307         * modules/fprintftime: New module.
73308         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73309
73310 2005-12-16  Jim Meyering  <jim@meyering.net>
73311
73312         * m4/fprintftime.m4: New file.
73313
73314 2005-12-16  Jim Meyering  <jim@meyering.net>
73315
73316         * lib/fprintftime.c, lib/fprintftime.h: New files.
73317
73318 2005-12-15  Simon Josefsson  <jas@extundo.com>
73319
73320         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73321         new m4/socklen.m4.
73322
73323 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73324
73325         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73326         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73327
73328 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73329
73330         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73331         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73332         struct uparams is valid. Fall back to the default values if it is
73333         not.
73334
73335 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73336
73337         * modules/argp (Files): Add argp-pin.c
73338         (Depends-on): dirname
73339         (lib_SOURCES): Add argp-pin.c
73340
73341 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73342
73343         * m4/argp.m4:  Check if program_invocation_name and
73344         program_invocation_short_name are declared and define appropriate
73345         macros if they are not.
73346
73347 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73348
73349         * lib/argp-help.c (__argp_base_name): New function
73350         (__argp_short_program_name): Rewrite using __argp_base_name
73351         * lib/argp-namefrob.h: Define program_invocation_name and
73352         program_invocation_short_name if requested
73353         (__argp_base_name): Add prototype
73354         * lib/argp-parse.c (argp_def): Use gettext wrappers
73355         (argp_default_parser): Use __argp_base_name
73356         * lib/argp-pin.c: New file. Defines program_invocation_name and
73357         program_invocation_short_name on systems that lack them.
73358
73359 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73362         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73363         porting problem reported by Georg Schwarz in
73364         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73365
73366 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73367
73368         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73369         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73370         porting problem reported by Georg Schwarz in
73371         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73372
73373 2005-12-05  Bruno Haible  <bruno@clisp.org>
73374
73375         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73376         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73377         Reported by Mark Junker <mjscod@gmx.de>.
73378
73379 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73382         Use implementation from Albert Chin, with some
73383         comments/corrections by Stepan Kasal and myself.
73384
73385 2005-12-02  Bruno Haible  <bruno@clisp.org>
73386
73387         * gnulib-tool (func_import): Accept GPLed build tool modules when
73388         --lgpl is given.
73389         * modules/csharpcomp-script: New file.
73390         * modules/csharpcomp: Depend on it.
73391         * modules/javacomp-script: New file.
73392         * modules/javacomp: Depend on it.
73393         Suggested by Simon Josefsson.
73394
73395 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73396
73397         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73398         statement, to work around an HP-UX 10.20 compiler bug reported by
73399         Peter O'Gorman.
73400
73401 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73402
73403         * modules/savedir (Depends-on): Add openat.
73404
73405 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73408         (uintmax_t) [defined uintmax_t]: Do not declare.
73409         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73410         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73411         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73412         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73413         sake of portability to weird hosts that C allows (though we don't
73414         know of any practical examples).
73415
73416         * lib/savedir.h (fdsavedir): New decl.
73417         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73418         contains most of the former guts of savedir.
73419         (savedir): Use savedirstream.
73420         Include "openat.h".
73421
73422 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73423
73424         * modules/obstack (Files): Add m4/ulonglong.m4.
73425         Problem reported by Davide Angelocola.
73426
73427 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73428
73429         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73430         coreutils no longer futzes with rounding modes.
73431
73432 2005-11-14  Jim Meyering  <jim@meyering.net>
73433
73434         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73435         replacement of mkstemp.
73436
73437 2005-11-10  Simon Josefsson  <jas@extundo.com>
73438
73439         * lib/readline.c: Remove EOL.
73440
73441 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73442
73443         * modules/gethrxtime (Depends-on): Add gettime.
73444
73445 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73446
73447         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73448         or gettimeofday; no longer needed.
73449
73450 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73451
73452         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73453         time business.
73454         (gethrxtime) [! (HAVE_NANOUPTIME
73455         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73456         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73457         our own approximation.
73458
73459 2005-11-08  Eric Blake  <ebb9@byu.net>
73460
73461         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73462
73463 2005-11-08  Eric Blake  <ebb9@byu.net>
73464
73465         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73466
73467 2005-11-04  Bruno Haible  <bruno@clisp.org>
73468
73469         * gnulib-tool: Implement --update mode.
73470
73471 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         Fix porting problem reported by Theodoros V. Kalamatianos.
73474         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73475         Don't assume that futimes failing means we must fail.
73476
73477 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73480         variables to suggest the intended function of the PATH_MAX check.
73481
73482 2005-10-30  Kean Johnston  <jkj@sco.com>
73483
73484         Trivial changes to support SCO systems.
73485         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73486         as PATH_MAX.
73487         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73488         where __ptr is null when no I/O is pending.
73489
73490 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73493         leave errno alone.  Problem reported by Dmitry V. Levin.
73494
73495 2005-10-28  Simon Josefsson  <jas@extundo.com>
73496
73497         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73498         Test more.
73499
73500         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73501
73502         * modules/md2, modules/md2-tests: New files.
73503
73504 2005-10-28  Simon Josefsson  <jas@extundo.com>
73505
73506         * m4/inet_ntop.m4: More tests.
73507
73508         * m4/gc-md2.m4, md2.m4: New file.
73509
73510 2005-10-28  Simon Josefsson  <jas@extundo.com>
73511
73512         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73513         "restrict" keywords, as per POSIX.  Protect the function
73514         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73515         Don't use K&R prototypes.  Check the sprintf return values.
73516         Re-define EAFNOSUPPORT if not present.  Indent.
73517
73518         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73519         suggested by Bruno Haible <bruno@clisp.org>.
73520
73521         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73522
73523         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73524
73525         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73526         libgcrypt).
73527
73528         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73529
73530         * lib/md2.h, lib/md2.c: New files.
73531
73532 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73535         errno alone.  Problem reported by Frederic Jolliton.
73536
73537 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         * modules/verify (License): Change from GPL to LGPL.  This is a
73540         tiny module and there are apparently near-equivalents that are
73541         under the BSD license.
73542
73543 2005-10-24  Simon Josefsson  <jas@extundo.com>
73544
73545         * modules/sha1: Relicense to LGPL.
73546
73547 2005-10-24  Simon Josefsson  <jas@extundo.com>
73548
73549         * lib/md4.h: Shrink buffer size, now that we changed the type.
73550
73551 2005-10-23  Simon Josefsson  <jas@extundo.com>
73552
73553         * gnulib-tool (func_import): Fix --tests-base.
73554
73555 2005-10-22  Simon Josefsson  <jas@extundo.com>
73556
73557         * modules/arcfour (Depends-on): Need stdint.
73558
73559 2005-10-22  Simon Josefsson  <jas@extundo.com>
73560
73561         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73562         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73563
73564 2005-10-22  Simon Josefsson  <jas@extundo.com>
73565
73566         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73567         suggested by Bruno Haible <bruno@clisp.org>.
73568
73569 2005-10-22  Simon Josefsson  <jas@extundo.com>
73570
73571         * lib/crc.h: Include stddef.h, for size_t.
73572
73573 2005-10-22  Simon Josefsson  <jas@extundo.com>
73574
73575         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73576         arcfour_context struct (simplify test vector testing in GNU
73577         Shishi).
73578
73579 2005-10-21  Simon Josefsson  <jas@extundo.com>
73580
73581         * modules/des, modules/des-tests: New files.
73582
73583         * modules/gc-des, modules/gc-des-tests: New files.
73584
73585         * tests/test-des.c, tests/test-gc-des.c: New file.
73586
73587 2005-10-21  Simon Josefsson  <jas@extundo.com>
73588
73589         * modules/arctwo, modules/arctwo-tests: New files.
73590
73591         * tests/test-arctwo.c: New file.
73592
73593         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73594
73595         * tests/test-gc-arctwo.c: New file.
73596
73597 2005-10-21  Simon Josefsson  <jas@extundo.com>
73598
73599         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73600         Bruno Haible <bruno@clisp.org>.
73601
73602         * m4/gc-des.m4: New file.
73603
73604 2005-10-21  Simon Josefsson  <jas@extundo.com>
73605
73606         * m4/arctwo.m4: New file.
73607
73608         * m4/gc-arctwo.m4: New file.
73609
73610 2005-10-21  Simon Josefsson  <jas@extundo.com>
73611
73612         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73613         block.
73614
73615 2005-10-21  Simon Josefsson  <jas@extundo.com>
73616
73617         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73618         <bruno@clisp.org>.
73619
73620         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73621
73622         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73623         Bruno Haible <bruno@clisp.org>.
73624
73625         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73626         <bruno@clisp.org>.
73627
73628 2005-10-21  Simon Josefsson  <jas@extundo.com>
73629
73630         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73631
73632 2005-10-21  Simon Josefsson  <jas@extundo.com>
73633
73634         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73635
73636 2005-10-21  Simon Josefsson  <jas@extundo.com>
73637
73638         * lib/des.h, lib/des.c: New files.
73639
73640         * lib/gc-gnulib.c: Support DES.c
73641
73642 2005-10-21  Simon Josefsson  <jas@extundo.com>
73643
73644         * lib/arctwo.h, lib/arctwo.c: New files.
73645
73646         * lib/gc-gnulib.c: Support ARCTWO.
73647
73648 2005-10-21  Simon Josefsson  <jas@extundo.com>
73649
73650         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73651         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73652
73653 2005-10-21  Simon Josefsson  <jas@extundo.com>
73654
73655         * gnulib-tool (func_import, func_create_testdir): Define automake
73656         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73657         Makefile.am snippet),
73658         suggested by Bruno Haible <bruno@clisp.org>.
73659
73660         * modules/gc (Makefile.am): Use it.
73661
73662 2005-10-21  Bruno Haible  <bruno@clisp.org>
73663
73664         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73665         patch.
73666
73667 2005-10-19  Simon Josefsson  <jas@extundo.com>
73668
73669         * tests/test-gc-rijndael.c: New file.
73670
73671         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73672
73673 2005-10-19  Simon Josefsson  <jas@extundo.com>
73674
73675         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73676         interface too.
73677
73678 2005-10-19  Simon Josefsson  <jas@extundo.com>
73679
73680         * tests/test-gc-arcfour.c: New file.
73681
73682         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73683
73684 2005-10-19  Simon Josefsson  <jas@extundo.com>
73685
73686         * modules/gc-md4, modules/gc-md4-tests: New file.
73687
73688         * tests/test-gc-md4.c: New file.
73689
73690 2005-10-19  Simon Josefsson  <jas@extundo.com>
73691
73692         * m4/gc-md4.m4: New file.
73693
73694 2005-10-19  Simon Josefsson  <jas@extundo.com>
73695
73696         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73697         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73698         <kasal@ucw.cz>.
73699
73700 2005-10-19  Simon Josefsson  <jas@extundo.com>
73701
73702         * m4/gc-arcfour.m4: New file.
73703
73704         * m4/gc-rijndael.m4: New file.
73705
73706 2005-10-19  Simon Josefsson  <jas@extundo.com>
73707
73708         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73709
73710 2005-10-19  Simon Josefsson  <jas@extundo.com>
73711
73712         * lib/gc-gnulib.c: Support ARCFOUR.
73713
73714 2005-10-19  Simon Josefsson  <jas@extundo.com>
73715
73716         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73717         support.
73718
73719         * lib/gc.h: Add ECB enum type.
73720
73721         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73722
73723 2005-10-18  Simon Josefsson  <jas@extundo.com>
73724
73725         * tests/test-md5.c: New file.
73726
73727         * modules/md5-tests: New file.
73728
73729 2005-10-18  Simon Josefsson  <jas@extundo.com>
73730
73731         * tests/test-md4.c: New file.
73732
73733         * modules/md4, modules/md4-tests: New files.
73734
73735 2005-10-18  Simon Josefsson  <jas@extundo.com>
73736
73737         * m4/md4.m4: New file.
73738
73739 2005-10-18  Simon Josefsson  <jas@extundo.com>
73740
73741         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73742
73743 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73744
73745         * gnulib-tool (func_create_testdir): Omit the second check whether
73746         BUILT_SOURCES in nonempty.
73747
73748 2005-10-17  Simon Josefsson  <jas@extundo.com>
73749
73750         * tests/test-rijndael.c: New file.
73751
73752 2005-10-17  Simon Josefsson  <jas@extundo.com>
73753
73754         * modules/sha1: Depend on stdint instead of md5.
73755
73756         * modules/md5: Depend on stdint, remove uint32_t.
73757
73758 2005-10-17  Simon Josefsson  <jas@extundo.com>
73759
73760         * modules/gc-sha1-tests: New file.
73761
73762         * tests/test-gc-sha1.c: New file.
73763
73764 2005-10-17  Simon Josefsson  <jas@extundo.com>
73765
73766         * m4/md5.m4: Remove call to uint32_t.m4.
73767
73768 2005-10-17  Simon Josefsson  <jas@extundo.com>
73769
73770         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73771
73772         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73773         md5.h.
73774
73775         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73776
73777         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73778
73779 2005-10-17  Simon Josefsson  <jas@extundo.com>
73780
73781         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73782
73783 2005-10-17  Simon Josefsson  <jas@extundo.com>
73784
73785         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73786
73787 2005-10-17  Simon Josefsson  <jas@extundo.com>
73788
73789         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73790
73791         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73792
73793 2005-10-17  Bruno Haible  <bruno@clisp.org>
73794
73795         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73796         that it can also be used in a test.
73797
73798 2005-10-16  Bruno Haible  <bruno@clisp.org>
73799
73800         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73801         TESTS_ENVIRONMENT, so that individual tests can augment it.
73802
73803         * gnulib-tool (func_create_testdir): Use an intermediate target for
73804         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73805         macros, like $(ALLOCA_H), which cannot be passed through the command
73806         line.
73807
73808 2005-10-15  Simon Josefsson  <jas@extundo.com>
73809
73810         * modules/rijndael-tests: New file.
73811
73812         * modules/rijndael: New file.
73813
73814 2005-10-15  Simon Josefsson  <jas@extundo.com>
73815
73816         * m4/rijndael.m4: New file.
73817
73818 2005-10-15  Simon Josefsson  <jas@extundo.com>
73819
73820         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73821
73822         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73823
73824 2005-10-14  Simon Josefsson  <jas@extundo.com>
73825
73826         * tests/test-arcfour.c: New file.
73827
73828         * modules/arcfour, modules/arcfour-tests: New files.
73829
73830 2005-10-14  Simon Josefsson  <jas@extundo.com>
73831
73832         * m4/arcfour.m4: New file.
73833
73834 2005-10-14  Simon Josefsson  <jas@extundo.com>
73835
73836         * lib/arcfour.h, lib/arcfour.c: New files.
73837
73838 2005-10-14  Roland McGrath  <roland@redhat.com>
73839
73840         Import from libc.  [BZ #1331]
73841         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73842         macro argument.
73843         Reported by Matej Vela <vela@debian.org>.
73844
73845 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73846
73847         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73848         include <wchar.h>; no longer needed.
73849
73850 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73851
73852         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73853
73854 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73855         and  Ulrich Drepper  <drepper@redhat.com>
73856
73857         Import from libc.
73858         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73859         instead of inline stream orientation test and two separate
73860         function calls.  Pay no attention to USE_IN_LIBIO.
73861
73862 2005-10-13  Simon Josefsson  <jas@extundo.com>
73863
73864         * modules/gc-hmac-md5-tests: New file.
73865
73866         * tests/test-gc-hmac-sha1.c: New file.
73867
73868         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73869
73870         * modules/gc-hmac-md5-tests: New file.
73871
73872         * tests/test-gc-md5.c: New file.
73873
73874         * modules/gc-md5-tests: New file.
73875
73876 2005-10-13  Simon Josefsson  <jas@extundo.com>
73877
73878         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73879         Move memory allocation outside of loop.
73880
73881 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73882
73883         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73884         intermediate directory is in a read-only file system.  Problem
73885         reported by Eric Blake.
73886
73887 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73888
73889         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73890
73891 2005-10-12  Simon Josefsson  <jas@extundo.com>
73892
73893         * tests/test-hmac-sha1.c: New file.
73894
73895         * modules/hmac-sha1-tests: New file.
73896
73897         * modules/hmac-sha1: New file.
73898
73899 2005-10-12  Simon Josefsson  <jas@extundo.com>
73900
73901         * modules/gc-sha1: New file.
73902
73903 2005-10-12  Simon Josefsson  <jas@extundo.com>
73904
73905         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73906
73907         * tests/test-gc-pbkdf2-sha1.c: New file.
73908
73909 2005-10-12  Simon Josefsson  <jas@extundo.com>
73910
73911         * modules/gc-md5, modules/gc-hmac-md5: New files.
73912
73913         * modules/gc (Files): Remove md5, memxor and hmac files.
73914
73915 2005-10-12  Simon Josefsson  <jas@extundo.com>
73916
73917         * m4/gc-pbkdf2-sha1.m4: New file.
73918
73919         * m4/gc-hmac-sha1.m4: New file.
73920
73921         * m4/gc-sha1: New file.
73922
73923         * m4/hmac-sha1.m4: New file.
73924
73925 2005-10-12  Simon Josefsson  <jas@extundo.com>
73926
73927         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73928
73929         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73930
73931 2005-10-12  Simon Josefsson  <jas@extundo.com>
73932
73933         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73934         suggested by Bruno Haible <bruno@clisp.org>.
73935
73936 2005-10-12  Simon Josefsson  <jas@extundo.com>
73937
73938         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73939
73940 2005-10-12  Simon Josefsson  <jas@extundo.com>
73941
73942         * lib/gc-pbkdf2-sha1.c: New file.
73943
73944         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73945
73946 2005-10-12  Simon Josefsson  <jas@extundo.com>
73947
73948         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73949
73950         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73951
73952 2005-10-12  Simon Josefsson  <jas@extundo.com>
73953
73954         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73955         GC_USE_HMAC_MD5, respectively.
73956
73957         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73958         (gc_md5): Fix typo.
73959
73960         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73961
73962         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73963
73964         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73965
73966 2005-10-12  Bruno Haible  <bruno@clisp.org>
73967
73968         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73969         Reported by Stepan Kasal <kasal@ucw.cz>.
73970
73971 2005-10-11  Simon Josefsson  <jas@extundo.com>
73972
73973         * tests/test-crc.c: New file.
73974
73975         * modules/crc, modules/crc-tests: New files.
73976
73977 2005-10-11  Simon Josefsson  <jas@extundo.com>
73978
73979         * m4/crc.m4: New file.
73980
73981 2005-10-11  Simon Josefsson  <jas@extundo.com>
73982
73983         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73984
73985         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73986
73987         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73988
73989 2005-10-11  Simon Josefsson  <jas@extundo.com>
73990
73991         * lib/crc.h, lib/crc.c: New files.
73992
73993         * lib/gc.h (gc_hash_buffer): Add doc.
73994
73995 2005-10-11  Bruno Haible  <bruno@clisp.org>
73996
73997         * modules/c-strcasestr: New file.
73998         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73999
74000 2005-10-11  Bruno Haible  <bruno@clisp.org>
74001
74002         * modules/c-strcase: New file.
74003         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74004
74005 2005-10-11  Bruno Haible  <bruno@clisp.org>
74006
74007         * lib/strcasecmp.c: Include limits.h.
74008         (strcasecmp): Avoid integer overflow on exotic platforms.
74009         * lib/strncasecmp.c: Include limits.h.
74010         (strncasecmp): Avoid integer overflow on exotic platforms.
74011         Reported by Paul Eggert.
74012
74013 2005-10-11  Bruno Haible  <bruno@clisp.org>
74014
74015         * lib/c-strcasestr.h: New file, from GNU gettext.
74016         * lib/c-strcasestr.c: New file, from GNU gettext.
74017
74018 2005-10-11  Bruno Haible  <bruno@clisp.org>
74019
74020         * lib/c-strcase.h: New file, from GNU gettext.
74021         * lib/c-strcasecmp.c: New file, from GNU gettext.
74022         * lib/c-strncasecmp.c: New file, from GNU gettext.
74023
74024 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * modules/mempcpy (License): GPL -> LGPL.
74027         * modules/strchrnul (License): Likewise.
74028         * modules/sysexits (License): Likewise.
74029
74030 2005-10-08  Simon Josefsson  <jas@extundo.com>
74031
74032         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74033
74034 2005-10-07  Simon Josefsson  <jas@extundo.com>
74035
74036         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74037
74038 2005-10-06  Simon Josefsson  <jas@extundo.com>
74039
74040         * tests/test-hmac-md5.c: New file.
74041
74042         * modules/hmac-md5-tests: New file.
74043
74044         * modules/hmac-md5: New file.
74045
74046 2005-10-06  Simon Josefsson  <jas@extundo.com>
74047
74048         * m4/hmac-md5.m4: New file.
74049
74050         * m4/memxor.m4: Require gl_C_RESTRICT.
74051
74052 2005-10-06  Simon Josefsson  <jas@extundo.com>
74053
74054         * lib/memxor.c (memxor): Avoid casts and warnings.
74055
74056 2005-10-06  Simon Josefsson  <jas@extundo.com>
74057
74058         * lib/hmac-md5.c: New file.
74059
74060         * lib/hmac.h: New file.
74061
74062 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74063
74064         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74065         promotes to int, not unsigned int, to catch the AIX 5.3
74066         compiler bug.
74067
74068 2005-10-05  Simon Josefsson  <jas@extundo.com>
74069
74070         * modules/memxor: New file.
74071
74072         * modules/iconv (Files): Move config.rpath to havelib, it is used
74073         there.
74074
74075         * modules/havelib (Files): Add config.rpath.
74076
74077 2005-10-05  Simon Josefsson  <jas@extundo.com>
74078
74079         * m4/memxor.m4: New file.
74080
74081 2005-10-05  Simon Josefsson  <jas@extundo.com>
74082
74083         * lib/memxor.c (memxor): Fix compiler error.
74084
74085         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74086         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74087
74088         * lib/memxor.h, lib/memxor.c: New files.
74089
74090         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74091         we assume all systems have it, suggested by Jim Meyering
74092         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74093         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74094         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74095         same reasons.
74096
74097 2005-10-05  Simon Josefsson  <jas@extundo.com>
74098
74099         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74100
74101 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74104         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74105         needed, since the source code now assumes these .h files.
74106
74107 2005-10-05  Derek Price  <derek@ximbiot.com>
74108
74109         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74110
74111 2005-10-05  Bruno Haible  <bruno@clisp.org>
74112
74113         * modules/stdint (License): Change to LGPL.
74114
74115 2005-10-04  Simon Josefsson  <jas@extundo.com>
74116
74117         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74118         D. Baushke" <mdb@gnu.org>.
74119
74120 2005-10-04  Bruno Haible  <bruno@clisp.org>
74121
74122         * lib/verify.h (verify_true): Provide alternative definition for C++.
74123
74124 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74125
74126         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74127         (SSIZE_MAX): New macro, if not already defined.
74128         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74129         than 2 GiB.
74130
74131 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         Sync from coreutils.
74134         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74135         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74136         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74137         ULLONG_MAX doesn't work with 2.7.2.1.
74138
74139 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74142         From Ben Pfaff.
74143
74144         * modules/exclude (Depends-on): Depend on verify.
74145         * modules/strtoimax (Depends-on): Likewise.
74146         * modules/utimecmp (Depends-on): Likewise.
74147
74148 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74149
74150         * lib/exclude.c: Include verify.h.
74151         (verify): Remove.  All callers changed to use verify.h's version.
74152         * lib/strtoimax.c: Likewise.
74153         * lib/utimecmp.c: Likewis.e
74154
74155         Sync from coreutils.
74156         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74157         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74158         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74159         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74160         bother returning ENOSYS if settimeofday or stime fails; just let
74161         them return whatever errno they want to return.
74162         * lib/utimens.c: Include unistd.h, for dup2.
74163         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74164         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74165
74166 2005-10-02  Jim Meyering  <jim@meyering.net>
74167
74168         Sync from coreutils.
74169         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74170         from glibc-2.2.5 that fails for read-only files.
74171
74172 2005-10-02  Jim Meyering  <jim@meyering.net>
74173
74174         Sync from coreutils.
74175         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74176         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74177         `#if HAVE_CONFIG_H'.
74178         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74179         Remove AT_FDCWD test.
74180         Do not consume the fd unless successful.
74181         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74182         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74183         block, so that we don't even try to compile it if settimeofday is
74184         available.  This works around a compilation failure on OSF1 V5.1,
74185         due to stime requiring a `long int*' while tv_sec is `int'.
74186
74187 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74188
74189         Sync from coreutils.
74190         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74191         against `yes', rather than just testing for nonempty.
74192
74193 2005-10-01  Simon Josefsson  <jas@extundo.com>
74194
74195         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74196         and Darwin.
74197
74198         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74199         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74200         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74201         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74202         Check if struct addrinfo is declared.
74203
74204 2005-10-01  Simon Josefsson  <jas@extundo.com>
74205
74206         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74207         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74208         AI_* and EAI_* definitions.  Protect function declarations.
74209
74210 2005-10-01  Jim Meyering  <jim@meyering.net>
74211
74212         Sync from coreutils.
74213
74214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74215         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74216         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74218         in the inet and nsl libraries.  Required on Solaris 5.7.
74219
74220 2005-10-01  Jim Meyering  <jim@meyering.net>
74221
74222         Sync from coreutils.
74223         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74224         in the inet and nsl libraries.  Required on Solaris 5.7.
74225
74226 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74227
74228         * lib/getdelim.c (getdelim): Remove unused variables.
74229
74230 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74231
74232         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74233         so that the code works even with ancient cpp.  Portability problem
74234         with GCC 2.7.2.1 reported by Thomas M.Ott.
74235
74236 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74237
74238         * modules/regex (Depends-on): Add strcase.
74239
74240         * modules/gethostname (Licence): Change from GPL to LGPL, since
74241         gethostname.c is a trivial implementation of a standard library
74242         function.
74243         * modules/poll (License): Change from GPL to LGPL, since it's
74244         derived from LGPL code.
74245
74246 2005-09-27  Jim Meyering  <jim@meyering.net>
74247
74248         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74249         HAVE_CONFIG_H.
74250
74251         * lib/intprops.h (signed_type_or_expr__): Define.
74252         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74253         for unsigned types.
74254
74255 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74256
74257         * lib/verify.h (verify_expr): Remove, replacing with:
74258         (verify_true): New macro that returns true instead of void.
74259         (verify_type__): Remove.
74260         (verify): Use verify_true rather than verify_type__.
74261
74262 2005-09-26  Bruno Haible  <bruno@clisp.org>
74263
74264         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74265         is necessary.
74266         (lib_SOURCES): Remove mbchar.c.
74267         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74268         (Files): Add m4/mbrtowc.m4.
74269         * modules/mbiter: Likewise.
74270         * modules/mbuiter: Likewise.
74271
74272 2005-09-26  Bruno Haible  <bruno@clisp.org>
74273
74274         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74275         compile mbchar.c if they are not both present.
74276         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74277         * m4/mbiter.m4 (gl_MBITER): Likewise.
74278         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74279         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74280         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74281
74282 2005-09-25  Jim Meyering  <jim@meyering.net>
74283
74284         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74285         also uses socklen_t.
74286
74287 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74288
74289         * lib/utimens.c (ENOSYS): Define if not already defined.
74290         (futimens): Support having a null PATH if the file descriptor
74291         is nonnegative.
74292
74293         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74294         Remove.
74295         (__attribute): Define to empty unless GCC 3.1 or later.
74296         This works around a core dump on OpenBSD 3.4, which has GCC
74297         2.95.3, which dumps core when given __attribute__(()).  It also
74298         simplifies other tests, since we really don't want to bother with
74299         worrying about which ancient version of GCC supported what.
74300         Original problem reported by Yoann Vandoorselaere, with part of
74301         the fix suggested by Derek Price.
74302
74303 2005-09-24  Jim Meyering  <jim@meyering.net>
74304
74305         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74306         so we can once again use a positive bitfield width of 1 -- now we
74307         don't have to explain why we were using a bitfield width of 2.
74308
74309 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74310
74311         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74312         and similarly for the other external symbols.  Problem reported
74313         by James Gallager.
74314
74315         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74316         bug reported by Jim Meyering.
74317
74318         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74319         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74320         not needed, since socklen is a prerequisite module.
74321
74322 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74325         Problem reported by Eric Blake.
74326         (getaddrinfo): Initialize se so that it's not garbage.
74327         Redo internal storage allocation so that it doesn't make unportable
74328         assumptions about alignment.
74329         Fix a memory leak.
74330
74331         * lib/utimens.c (futimens): Use futimesat if available.
74332         Prefer it to futimes since it doesn't have the futimes bug.
74333
74334         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74335         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74336         Instead, declare a function that returns a pointer to an array,
74337         and use verify_type__ to declare the size of the array.
74338         Problem and germ of a solution reported by Bruno Haible.
74339         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74340         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74341
74342 2005-09-23  Jim Meyering  <jim@meyering.net>
74343
74344         Sync from coreutils.
74345         Correct build failure (socklen_t not defined) on at least
74346         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74347         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74348
74349 2005-09-23  Jim Meyering  <jim@meyering.net>
74350
74351         * modules/getaddrinfo (Depends-on): Add socklen.
74352
74353 2005-09-23  Bruno Haible  <bruno@clisp.org>
74354
74355         * tests/test-verify.c: New file.
74356
74357 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         Sync from coreutils.
74360
74361         * modules/argmatch (Depends-on): Add verify.
74362         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74363         unistd-safer.
74364         * modules/save-cwd (Depends-on): Likewise.
74365
74366         * modules/openat (Files): Add lib/openat-die.c.
74367         (Depends-on): Remove error, exitfail.
74368         Add dirname.
74369
74370         * modules/verify: New file.
74371         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74372         with "verify" module.
74373
74374 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74375
74376         Sync from coreutils.
74377
74378         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74379         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74380         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74381         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74382         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74383         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74384         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74385         Don't bother checking for string.h, stdlib.h, unistd.h.
74386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74387         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74388         module's job.
74389         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74390         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74391
74392         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74393         (gl_GETDATE): Use it.
74394
74395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74396
74397 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74398
74399         Sync from coreutils.
74400
74401         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74402         stat-time.h.
74403         * lib/argmatch.h: Include verify.h
74404         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74405         (ARGMATCH_ASSERT): Remove; unused.
74406         * lib/canonicalize.c: Assume STDC_HEADERS.
74407         * lib/exclude.c: Include "strcase.h".
74408         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74409         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74410         and stdio-safer.h.
74411         (getusershell): Call fopen, not fopen_safer.
74412         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74413         Do not include unistd-safer.h.
74414         (save_cwd): Don't call fd_safer; no longer needed
74415         now that we include fcntl--.h.
74416
74417         * lib/getdate.y (relative_time): New type.
74418         (RELATIVE_TIME_0): New constant.
74419         (parser_control): Use relative_time instead of doing it ourselves.
74420         (%union): Add new relative_time rel member.
74421         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74422         Now typeless.
74423         (relunit, relunit_snumber): Now of type rel.
74424         (zone, rel, relunit, get_date): Adjust to above changes.
74425
74426         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74427         Do not include unistd-safer.h.
74428         (getloadavg): Don't call fd_safer; no longer needed
74429         now that we include fcntl--.h.
74430
74431         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74432         (make_dir_parents): Treat ENOSYS like EEXIST.
74433
74434         Improve quality of diagnostics on restore_cwd failure.
74435         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74436         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74437         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74438         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74439         each time through the loop.  Do not diagnose restore_cwd failure;
74440         that is the caller's job (and perhaps the caller does not care).
74441
74442         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74443         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74444         If the file already exists but is not a directory, don't bother
74445         to try to make its parents.
74446         Close potential file descriptor leak if we can't chdir("/") (!).
74447         Don't always return true if chdir($PWD) fails; return true only
74448         if the requested action was done successfully (except for the
74449         chdir($PWD)).
74450         Don't log final directory unless we actually made it.
74451         Refactor to avoid duplicate code to fix up permissions.
74452         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74453
74454         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74455         to make it a bit faster and (I hope) clearer.
74456         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74457         Fix bug in formats like %2N.
74458
74459         * lib/verify.h: New file.
74460
74461 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         Sync from coreutils.
74464         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74465
74466 2005-09-22  Jim Meyering  <jim@meyering.net>
74467
74468         Sync from coreutils.
74469
74470         * m4/lstat.m4 (gl_FUNC_LSTAT):
74471         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74472         Remove obsolete comment.
74473         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74474         * m4/xstrtod.m4: Likewise.
74475
74476         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74477
74478 2005-09-22  Jim Meyering  <jim@meyering.net>
74479
74480         Sync from coreutils.
74481
74482         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74483
74484         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74485         the .tm_year member, since otherwise gcc-4.0 would now warn about
74486         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74487
74488         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74489         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74490
74491         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74492         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74493         when run in a time zone for which daylight savings time is in effect
74494         for the starting date.
74495
74496         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74497         stop us from restricting permissions of just-created absolute-named
74498         directories.
74499         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74500         to restore initial working directory.
74501         * lib/mkdir-p.c (make_dir_parents): New parameter:
74502         different_working_dir, to tell caller if/when we change the working
74503         directory and are unable to return to the initial one.
74504         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74505         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74506         `return false'.  This fixes a bug introduced on 2004-07-30.
74507
74508         * lib/openat.c (fdopendir): Be sure to close the supplied
74509         file descriptor before returning.  This makes our replacement
74510         implementation a little closer to Solaris's, where fdopendir
74511         ties the file descriptor to the returned DIR* pointer.
74512         * lib/openat.c (unlinkat): New function.
74513         * lib/openat.h (unlinkat): Add prototype.
74514         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74515         (openat_restore_fail): Rename from openat_restore_die.
74516         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74517
74518         Provide an alternative to exiting immediately upon save_cwd or
74519         restore_cwd failure.  Now, an application can arrange e.g.,
74520         to perform a longjump in that case.
74521         * lib/openat.c: Include dirname.h.
74522         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74523         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74524         and openat_restore_die rather than calling error directly.
74525         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74526
74527         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74528         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74529         define.
74530
74531         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74532         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74533                             int utc, int nanoseconds);
74534         Background:
74535         date should not have to allocate a megabyte of virtual memory to
74536         handle a format argument like +%1048575T.  When implemented with
74537         strftime, it must allocate such a buffer, use strftime to fill it
74538         in, print it, then free it.
74539         With fprintftime, it simply prints everything and exits.
74540         With no need for memory allocation, that's one fewer way to fail.
74541         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74542         optional field width, not before, so we accept %9:z, not %:9z.
74543         (my_strftime): Be sure to use L_('x') for literals.
74544
74545         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74546         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74547         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74548         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74549         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74550         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74551         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74552         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74553         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74554         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74555         * lib/xgethostname.c, lib/xreadlink.c:
74556         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74557
74558         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74559         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74560         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74561         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74562         and don't include <sys/file.h>).
74563
74564 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74565
74566         Sync from coreutils.
74567
74568         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74569         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74570         [!LDAV_DONE]: Avoid unused variable warning.
74571
74572 2005-09-21  Bruno Haible  <bruno@clisp.org>
74573
74574         * lib/unicodeio.h (unicode_to_mb): New declaration.
74575
74576 2005-09-20  Derek Price  <derek@ximbiot.com>
74577
74578         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74579         getaddrinfo.h.
74580
74581 2005-09-20  Bruno Haible  <bruno@clisp.org>
74582
74583         * gnulib-tool: Remove trailing slashes from the values specified for
74584         --source-base, --m4-base, --tests-base, --aux-dir.
74585         Suggested by Simon Josefsson <jas@extundo.com>.
74586
74587 2005-09-20  Bruno Haible  <bruno@clisp.org>
74588
74589         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74590         func_modules_to_filelist, func_import, func_create_testdir): Make all
74591         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74592         change when gnulib-tool is invoked in a different locale.
74593
74594 2005-09-19  Simon Josefsson  <jas@extundo.com>
74595
74596         * m4/socklen.m4: Fix typo.
74597
74598 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74599
74600         Use a consistent style for including <config.h>.
74601         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74602         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74603         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74604         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74605         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74606         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74607         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74608         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74609         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74610         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74611         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74612         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74613         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74614         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74615         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74616         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74617         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74618         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74619         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74620         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74621         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74622         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74623         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74624         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74625         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74626         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74627         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74628         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74629         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74630         lib/xstrtoumax.c, lib/yesno.c:
74631         Standardize inclusion of config.h.
74632         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74633         lib/inttostr.h:  Removed inclusion of config.h from header files.
74634         * lib/inttostr.c:  Adjusted in-tree users.
74635         * lib/timespec.h: Remove superfluous warning to include config.h.
74636         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74637         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74638         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74639         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74640         config.h with HAVE_CONFIG_H.
74641
74642 2005-09-19  Jim Meyering  <jim@meyering.net>
74643
74644         * modules/pathmax (License): Change to LGPL.
74645
74646 2005-09-19  Derek Price  <derek@ximbiot.com>
74647
74648         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74649
74650 2005-09-19  Bruno Haible  <bruno@clisp.org>
74651
74652         * gnulib-tool (import): Provide default for --tests-base.
74653
74654 2005-09-19  Bruno Haible  <bruno@clisp.org>
74655
74656         * doc/quote.texi: New file, extracted from gnulib.texi.
74657         * doc/ctime.texi: New file, extracted from gnulib.texi.
74658         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74659         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74660         * doc/gnulib.texi: Include them.
74661
74662 2005-09-18  Bruno Haible  <bruno@clisp.org>
74663
74664         Portability fix.
74665         * gnulib-tool (func_readlink): New function.
74666         (func_ln_if_changed): Use it.
74667
74668 2005-09-18  Bruno Haible  <bruno@clisp.org>
74669
74670         * gnulib-tool: Support --with-tests also with --import.
74671         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74672         (func_import): Use variables $testsbase and $inctests. Emit a
74673         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74674         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74675         SUBDIRS += $testsdir.
74676         (func_create_testdir): Update.
74677
74678 2005-09-18  Bruno Haible  <bruno@clisp.org>
74679
74680         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74681         instead of $dry_run.
74682         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74683         (func_ln_if_changed): Don't handle dry-run here.
74684         (func_import): In dry-run mode, detect more precisely which actions
74685         would be performed, and don't use "...ing" verbs.
74686
74687 2005-09-18  Bruno Haible  <bruno@clisp.org>
74688
74689         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74690         (func_import): Use join on two temporary files instead of three nested
74691         loops, in order to determine which files are new or old.
74692
74693 2005-09-18  Bruno Haible  <bruno@clisp.org>
74694
74695         * gnulib-tool (func_import): Comment out code that spits out the
74696         new files with --dry-run.
74697
74698 2005-09-18  Bruno Haible  <bruno@clisp.org>
74699
74700         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74701
74702 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         * lib/stat-time.h: New file.
74705         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74706         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74707         in a different way.
74708         (timespec_cmp): New function.
74709         * lib/utimecmp.c: Include stat-time.h.
74710         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74711         members exist, not on the obsolescent ST_MTIM_NSEC.
74712         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74713
74714 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74717
74718 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * MODULES.html.sh (File system functions): Add stat-time.
74721         * modules/stat-time: New file.
74722         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74723         is now done in a different way, by the stat-time module.
74724         * modules/utimecmp (Depends-on): Add stat-time.
74725
74726 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74727
74728         * m4/st_mtim.m4: Remove.  Superseded by...
74729         * m4/stat-time.m4: New file.
74730         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74731         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74732
74733 2005-09-15  Derek Price  <derek@ximbiot.com>
74734
74735         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74736
74737 2005-09-15  Derek Price  <derek@ximbiot.com>
74738
74739         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74740         * lib/regex_internal.c: Ditto, using this...
74741         (__GNUC_PREREQ): ...new macro.
74742         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74743         using...
74744         (__GNUC_PREREQ): ...this new macro.
74745
74746         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74747
74748 2005-09-15  Derek Price  <derek@ximbiot.com>
74749             Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74752         changes, consolidating in...
74753         * lib/regex_internal.h: ...this file.
74754
74755 2005-09-13  Jim Meyering  <jim@meyering.net>
74756
74757         * lib/canon-host.c: Filter through gnu indent and reword comments
74758         slightly.
74759         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74760
74761 2005-09-13  Derek Price  <derek@ximbiot.com>
74762
74763         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74764         failure.
74765         Reported by Jim Meyering  <jim@meyering.net>.
74766
74767 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74768
74769         * lib/base64.c: Typo.
74770         (base64_encode): Put b64str in initialized data section.
74771
74772 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         Merge glibc and coreutils changes into gnulib, plus a few
74775         extra fixes.
74776         * lib/md5.c: Use #error rather than a string.
74777         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74778         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74779         (__attribute__): Define to empty for non recent-GCC.
74780         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74781         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74782         Renamed from their non-__ counterparts, with new macros replacing
74783         them if not _LIBC.  Add __THROW attribute.
74784         (rol): Remove.
74785         (struct md5_ctx): Align buffer if using GCC.
74786         * lib/sha1.h (struct sha1_ctx): Likewise.
74787         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74788         The old name was backwards.
74789         (NOTSWAP): Remove; not used.
74790         (rol): New macro, moved here from md5.h.
74791         (sha1_process_block): Remove a FIXME that doesn't make sense.
74792
74793 2005-09-12  Derek Price  <derek@ximbiot.com>
74794
74795         Return usable errors from canon-host.
74796         * lib/canon-host.h: New file.
74797         * lib/canon-host.c (canon_host): Wrap...
74798         (canon_host_r): ...this new function, which now relies exclusively on
74799         getaddrinfo.
74800         (ch_strerror): New function.
74801         (last_cherror): New global.
74802         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74803         interface.
74804         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74805         void *.
74806         (freeaddrinfo): Free ai->ai_canonname when set.
74807
74808 2005-09-12  Derek Price  <derek@ximbiot.com>
74809
74810         Make canon-host require getaddrinfo.
74811         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74812         AC_LIBSOURCE canon-host.h.  Call...
74813         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74814         gl_GETADDRINFO.
74815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74816
74817 2005-09-12  Derek Price  <derek@ximbiot.com>
74818
74819         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74820         LGPL.
74821         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74822
74823 2005-09-12  Derek Price  <derek@ximbiot.com>
74824
74825         * lib/gai_strerror.c: Include config.h when available.  Include
74826         getaddrinfo.h before other headers to test interface.
74827         Reported by Larry Jones <lawrence.jones@ugs.com>.
74828
74829 2005-09-12  Derek Price  <derek@ximbiot.com>
74830             Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         * modules/glob (Files): Add glob-libc.h.
74833
74834 2005-09-12  Derek Price  <derek@ximbiot.com>
74835             Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74838         glob_.h, glob-libc.h.
74839         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74840
74841 2005-09-12  Derek Price  <derek@ximbiot.com>
74842             Paul Eggert  <eggert@cs.ucla.edu>
74843
74844         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74845         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74846         protecting things that should be done only in gnulib contexts.
74847         * lib/glob_.h: New file, containing only the glob things needed for
74848         gnulib.
74849         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74850         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74851         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74852         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74853         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74854         and to respect the namespace rules better.
74855
74856 2005-09-08  Simon Josefsson  <jas@extundo.com>
74857
74858         * modules/socklen: New file.
74859
74860 2005-09-08  Simon Josefsson  <jas@extundo.com>
74861
74862         * m4/socklen.m4: New file.
74863
74864 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * modules/utimens (Files): Add m4/utimbuf.m4, since
74867         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74868         Reported by Sergey Poznyakoff.
74869
74870 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74873         definitions, since that's the preferred style in glibc.
74874         Fix a minor spacing issue, and update copyright notice to match
74875         glibc's.
74876
74877 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74880
74881 2005-09-06  Simon Josefsson  <jas@extundo.com>
74882
74883         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74884         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74885
74886 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74887
74888         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74889         warning.
74890
74891 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * config/srclist.txt: Add glibc bug 1302.
74894
74895 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         Change bitset word type from unsigned int to unsigned long int,
74898         as this has better performance on typical 64-bit hosts.
74899         Port bitset code to hosts with unusual word sizes.
74900         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74901         (build_collating_symbol):
74902         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74903         argument is a bitset.  This is merely a style issue, but it makes
74904         it clearer that an entire array is expected.
74905         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74906         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74907         Port to the case where bitset_word is not the same as unsigned int.
74908         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74909         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74910         Likewise.
74911         * lib/regexec.c (check_dst_limits_calc_pos_1,
74912         check_subexp_matching_top):
74913         (build_trtable, group_nodes_into_DFAstates):
74914         Likewise.
74915         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74916         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74917         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74918         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74919         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74920         * lib/regcomp.c (optimize_subexps, lower_subexp):
74921         Work even if bitset_word has holes in its bitwise representation.
74922         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74923         * lib/regexec.c (check_dst_limits_calc_pos_1,
74924         check_subexp_matching_top):
74925         Likewise.
74926         * lib/regex_internal.c (re_string_reconstruct):
74927         Don't assume UCHAR_MAX == 255.
74928         * lib/regex_internal.h (bitset_set_all): Likewise.
74929         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74930         All uses changed.
74931         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74932         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74933         All uses changed.
74934         (BITSET_WORD_MAX): New macro.
74935         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74936         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74937         (bitset_empty, bitset_copy):
74938         Prefer sizeof (bitset) to multiplying it out ourselves.
74939         (bitset_not_merge): Remove; unused.
74940         (bitset_contain): Return bool, not unsigned int with one bit on.
74941         All callers changed.
74942         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74943         alignment than re_node_set; do this by defining a new internal
74944         type struct dests_alloc and using it to allocate memory.
74945
74946 2005-09-05  Bruno Haible  <bruno@clisp.org>
74947
74948         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74949         links.
74950
74951 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74952
74953         * modules/size_max (Makefile.am): Add size_max.h
74954
74955 2005-09-04  Derek Price  <derek@ximbiot.com>
74956
74957         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74958
74959 2005-09-03  Simon Josefsson  <jas@extundo.com>
74960
74961         * gnulib-tool: Fix typo.
74962
74963 2005-09-03  Simon Josefsson  <jas@extundo.com>
74964
74965         * config/srclist.txt: Add glibc bug 1293.
74966
74967 2005-09-03  Derek Price  <derek@ximbiot.com>
74968
74969         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74970         From Larry Jones <lawrence.jones@ugs.com>.
74971
74972 2005-09-02  Simon Josefsson  <jas@extundo.com>
74973
74974         * modules/socklen: New file.
74975
74976 2005-09-02  Simon Josefsson  <jas@extundo.com>
74977
74978         * modules/havelib: New module.
74979
74980         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74981         Use havelib.
74982
74983 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         Check for arithmetic overflow when calculating sizes, to prevent
74986         some buffer-overflow issues.  These patches are conservative, in the
74987         sense that when I couldn't determine whether an overflow was possible,
74988         I inserted a run-time check.
74989         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74990         macros.
74991         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74992         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74993         (re_xnrealloc, re_x2nrealloc): New inline functions.
74994         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74995         parse_bracket_exp):
74996         (build_equiv_class, build_charclass): Check for arithmetic overflow
74997         in size expression calculations.
74998         * lib/regex_internal.c (re_string_realloc_buffers):
74999         (build_wcs_upper_buffer, re_node_set_add_intersect):
75000         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75001         (re_dfa_add_node, register_state): Likewise.
75002         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75003         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75004         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75005         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75006
75007 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75010         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75011
75012 2005-09-02  Bruno Haible  <bruno@clisp.org>
75013
75014         Support for lib vs. lib64 distinction on biarch platforms.
75015         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75016         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75017         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75018
75019 2005-09-02  Bruno Haible  <bruno@clisp.org>
75020
75021         * gnulib-tool (import): In the other first-use case, provide defaults
75022         as well.
75023
75024 2005-09-02  Bruno Haible  <bruno@clisp.org>
75025
75026         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75027         patches not yet found in the latest gettext release.
75028
75029 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75030
75031         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75032         to avoid a collision with bits/local_lim.h in glibc.
75033         All uses changed.  Problem reported by Dmitry V. Levin in
75034         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75035
75036         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75037         bugs in int versus size_t comparisons.
75038         (re_string_context_at): Fix bug where the code assumed that
75039         Idx is signed.
75040
75041         Use bool where appropriate.
75042         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75043         All callers changed.
75044         (calc_eclosure_iter): Likewise, for ROOT arg.
75045         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75046         (build_charclass_op): Likewise, for NON_MATCH arg.
75047         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75048         (re_string_construct_common): Likewise, for ICASE arg.
75049         * lib/regexec.c (re_search_2_stub, re_search_stub):
75050         Likewise, for RET_LEN arg.
75051         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75052         (set_regs): Likewise, for FL_BACKTRACK arg.
75053         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75054         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75055         (calc_eclosure_iter, parse_bracket_exp):
75056         Use bool for internal variables that are booleans.
75057         * lib/regexec.c (re_search_internal, check_matching,
75058         proceed_next_node):
75059         (set_regs, build_sifted_states, sift_states_bkref):
75060         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75061         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75062         (find_collation_sequence_value):
75063         Likewise.
75064         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75065         (re_node_set_compare):
75066         Return bool, not int. All callers changed.
75067         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75068         (build_trtable, check_node_accept): Likewise.
75069         * lib/regex_internal.h: Include stdbool.h.
75070
75071         Fix bugs uncovered when converting to bool.
75072         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75073         failure instead of charging ahead blindly.
75074         * lib/regex_internal.c (register_state): Likewise.
75075         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75076         for freeing internal storage.
75077         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75078         bitset pieces used as boolean, to avoid undefined behavior
75079         on hosts that do int overflow checking.
75080
75081 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75082
75083         * config/srclist.txt: Add glibc bugs 1285-1287.
75084
75085 2005-09-01  Jim Meyering  <jim@meyering.net>
75086
75087         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75088         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75089         Require gl_STAT_MACROS, too.
75090
75091 2005-09-01  Bruno Haible  <bruno@clisp.org>
75092
75093         * gnulib-tool (import): In the first-use case, provide defaults.
75094
75095 2005-09-01  Bruno Haible  <bruno@clisp.org>
75096
75097         * gnulib-tool (func_import): Remove the .tmp files.
75098
75099 2005-09-01  Bruno Haible  <bruno@clisp.org>
75100
75101         * gnulib-tool (func_import): Fix handling of symbolic links.
75102
75103 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75106         old glibc regex code mishandles strings longer than 2**31 bytes.
75107         This patch fixes this when the regex code is used in gnulib
75108         (i.e., outside glibc).
75109
75110         This patch should not affect the use of the regex code inside
75111         glibc.  No doubt this problem also needs to be handled for glibc
75112         as well, but the result will be an incompatible change to the
75113         glibc ABI, and the old ABI will have to be supported too.  That
75114         can be the the subject for another patch.
75115
75116         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75117         governing whether the rest of this patch is active.  By default,
75118         the macro is disabled and the patch has no effect.
75119         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75120         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75121         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75122         (re_match_2, re_set_registers): Use the new types.
75123         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75124         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75125         New macros.
75126         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75127         (re_string_context_at, bin_tree_t, re_dfastate_t):
75128         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75129         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75130         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75131         (re_string_char_size_at, re_string_wchar_at):
75132         (re_string_elem_size_at):
75133         Use the new types and macros to port to 64-bit hosts.
75134         Use unsigned types for internal values, so that the code
75135         mostly works even for arrays larger than SSIZE_MAX.
75136         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75137         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75138         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75139         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75140         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75141         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75142         (calc_inveclosure, parse_dup_op, build_range_exp):
75143         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75144         (fetch_number, create_token_tree, mark_opt_subexp):
75145         Likewise.
75146         * lib/regex_internal.c (re_string_construct_common,
75147         create_ci_newstate):
75148         (create_cd_newstate, re_string_allocate, re_string_construct):
75149         (re_string_realloc_buffers, build_wcs_upper_buffer):
75150         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75151         (re_string_reconstruct, re_string_peek_byte_case):
75152         (re_string_fetch_byte_case, re_string_context_at):
75153         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75154         (re_node_set_init_copy, re_node_set_add_intersect):
75155         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75156         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75157         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75158         (re_acquire_state, re_acquire_state_context, register_state):
75159         Likewise.
75160         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75161         search_cur_bkref_entry):
75162         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75163         (re_search_internal, re_search_2_stub, re_search_stub)
75164         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75165         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75166         (update_cur_sifted_state, check_dst_limits):
75167         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75168         (check_subexp_limits, sift_states_bkref, merge_state_array):
75169         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75170         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75171         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75172         (expand_bkref_cache, check_node_accept_bytes):
75173         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75174         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75175         (acquire_init_state_context, check_halt_node_context):
75176         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75177         (sift_states_backward, clean_state_log_if_needed):
75178         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75179         (find_recover_state, transit_state_sb, transit_state_mb):
75180         (transit_state_bkref, build_trtable, match_ctx_clean):
75181         Likewise.
75182         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75183         to work around an assumption that REG_MISSING is negative.
75184
75185         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75186         (seek_collating_symbol_entry) [defined _LIBC]:
75187         (lookup_collation_sequence_value) [defined _LIBC]:
75188         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75189         Use prototypes rather than old-style function definitions.
75190         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75191         (transit_state_sb) [0]:
75192         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75193
75194         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75195         rm_eo.
75196
75197         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75198         (optimize_subexps, lower_subexp):
75199         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75200         since the signed shift might overflow.  Use 1u<<31 instead.
75201         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75202         Likewise.
75203         * lib/regexec.c (check_dst_limits_calc_pos_1,
75204         check_subexp_matching_top): Likewise.
75205
75206         * lib/regcomp.c (optimize_subexps, lower_subexp):
75207         Use CHAR_BIT rather than 8, for clarity.
75208         * lib/regexec.c (check_dst_limits_calc_pos_1):
75209         (check_subexp_matching_top): Likewise.
75210         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75211         have to worry about portability issues when shifting it left.
75212         Remove no-longer-needed test for table_size > 0.
75213         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75214         in a word, as the resulting behavior is undefined.
75215         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75216         in one case, a <= should have been an <, and in another case the
75217         whole test was missing.
75218         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75219         the standard name CHAR_BIT.
75220         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75221         this is not true on one's complement and signed-magnitude hosts.
75222
75223         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75224         next_last_offset.
75225         (struct re_dfa_t): Remove unused member states_alloc.
75226         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75227
75228 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75231         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75232         and large-file glibc and in 32-bit large-file Solaris.
75233
75234 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75237         lengths fit in regoff_t; this isn't true if regoff_t is the same
75238         width as size_t.
75239         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75240         (= START + RANGE) instead of RANGE.  This avoids overflow
75241         problems when regoff_t is the same width as size_t.
75242         All callers changed.
75243         (re_search_2_stub): Check for overflow when adding the
75244         sizes of the two strings.
75245         (re_search_stub): Check for overflow when adding START
75246         to RANGE; if it occurs, substitute the extreme value.
75247
75248 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75251
75252 2005-08-31  Jim Meyering  <jim@meyering.net>
75253
75254         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75255         a pointer-to-const.
75256         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75257         (register_state): Likewise.
75258         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75259         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75260         (group_nodes_into_DFAstates): Likewise.
75261
75262 2005-08-31  Jim Meyering  <jim@meyering.net>
75263
75264         * check-module: Add a FIXME comment.
75265
75266 2005-08-31  Eric Blake  <ebb9@byu.net>
75267
75268         * modules/unistd-safer (Files): Add unistd--.h.
75269         * modules/stdio-safer (Files): Add stdio--.h.
75270
75271 2005-08-31  Derek Price  <derek@ximbiot.com>
75272
75273         * lib/getdelim.c (getdelim): Return EOF on EOF.
75274         Reported by Larry Jones <lawrence.jones@ugs.com>.
75275
75276 2005-08-31  Bruno Haible  <bruno@clisp.org>
75277
75278         Avoid unnecessary diffs in the generated lib/Makefile.am.
75279         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75280         the generated files.
75281         (func_import): Don't set cmd.
75282
75283 2005-08-31  Bruno Haible  <bruno@clisp.org>
75284
75285         * lib/strstr.c: Include <stddef.h>, for NULL.
75286         * lib/strcasestr.c: Likewise.
75287         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75288
75289 2005-08-31  Bruno Haible  <bruno@clisp.org>
75290
75291         * gnulib-tool: New option --macro-prefix.
75292         (func_import): Use macro_prefix.
75293         (import): Handle option --macro-prefix.
75294
75295 2005-08-31  Bruno Haible  <bruno@clisp.org>
75296
75297         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75298         Also use new variables cached_lgpl, cached_libtool.
75299
75300 2005-08-31  Bruno Haible  <bruno@clisp.org>
75301
75302         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75303         always instantiating them.
75304
75305 2005-08-31  Bruno Haible  <bruno@clisp.org>
75306
75307         * gnulib-tool (func_import): Read the previous cached settings
75308         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75309         earlier added by gnulib but are now dropped. Warn when a gnulib file
75310         overwrites a non-gnulib file.
75311
75312 2005-08-31  Bruno Haible  <bruno@clisp.org>
75313
75314         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75315         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75316         projects that don't keep autogenerated files in CVS. Put into
75317         actioncmd only the specified modules, not the transitive closure.
75318
75319 2005-08-31  Bruno Haible  <bruno@clisp.org>
75320
75321         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75322         Create directories that shall be filled.
75323         (import): Don't look for gl_* macros in configure.ac. Recurse across
75324         all directories containing a gnulib-cache.m4 files, if meaningful.
75325
75326 2005-08-31  Bruno Haible  <bruno@clisp.org>
75327
75328         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75329         (import): Set seen_libtool when we see gl_LIBTOOL.
75330
75331 2005-08-31  Bruno Haible  <bruno@clisp.org>
75332
75333         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75334         declaration macro definitions from generated gnulib.m4.
75335
75336 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75337
75338         * lib/iconvme.h: Add prototype for iconv_alloc.
75339
75340 2005-08-29  Simon Josefsson  <jas@extundo.com>
75341
75342         * lib/iconvme.c: Fix errno.
75343
75344 2005-08-29  Bruno Haible  <bruno@clisp.org>
75345
75346         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75347         that it works when the directory contains spaces.
75348
75349 2005-08-29  Bruno Haible  <bruno@clisp.org>
75350
75351         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75352
75353 2005-08-29  Bruno Haible  <bruno@clisp.org>
75354
75355         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75356         Emit more advice.
75357
75358 2005-08-29  Bruno Haible  <bruno@clisp.org>
75359         and Stepan Kasal  <kasal@ucw.cz>
75360
75361         * check-module: If more parameters are given, check each of them
75362         separately; add more exceptions, as noted by Jim Meyering.
75363         (check_module): New procedure.
75364         (%exempt_header): Now contains all exceptions.
75365
75366 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75367
75368         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75369
75370 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75371
75372         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75373
75374 2005-08-28  Bruno Haible  <bruno@clisp.org>
75375
75376         * m4/gnulib-tool.m4: New file.
75377
75378 2005-08-27  Jim Meyering  <jim@meyering.net>
75379
75380         * modules/unistd-safer (Files): Add pipe-safer.c.
75381         * modules/fcntl-safer (Files): Add creat-safer.c.
75382
75383 2005-08-27  Jim Meyering  <jim@meyering.net>
75384
75385         * m4/stdlib-safer.m4: New file.  From coreutils.
75386         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75387         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75388         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75389         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75390         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75391
75392 2005-08-27  Jim Meyering  <jim@meyering.net>
75393
75394         * lib/fopen-safer.c: Merge minor changes from coreutils.
75395         * lib/dup-safer.c: Likewise.
75396         * lib/fd-safer.c: Likewise.
75397
75398         Merge from coreutils.
75399         * lib/stdio--.h: New file.
75400         * lib/stdlib--.h: New file.
75401         * lib/mkstemp-safer.c: New file.
75402
75403         GNU tar needs these.
75404         * lib/pipe-safer.c: New file.
75405         * lib/creat-safer.c: New file.
75406         * lib/fcntl--.h (creat): Define to creat_safer.
75407         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75408         * lib/unistd--.h (pipe): Define to pipe_safer.
75409         * lib/unistd-safer.h: Declare pipe_safer.
75410
75411 2005-08-26  Simon Josefsson  <jas@extundo.com>
75412
75413         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75414         Haible <bruno@clisp.org>.
75415
75416 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         * lib/regex_internal.h: Remove all references to
75419         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75420         or better.
75421         (bitset_not, bitset_merge, bitset_not_merge):
75422         (bitset_mask, re_string_allocate, re_string_construct):
75423         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75424         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75425         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75426         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75427         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75428         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75429         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75430         (re_acquire_state_context):
75431         Remove unnecessary forward decls.
75432         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75433         Put __attribute at function definition,
75434         now that the function decl has been removed.
75435         * lib/regex_internal.c (re_string_peek_byte_case):
75436         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75437         Likewise.
75438
75439 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75440
75441         * m4/regex.m4: Add AC_PREREQ(2.50).
75442         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75443
75444 2005-08-25  Simon Josefsson  <jas@extundo.com>
75445
75446         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75447         __fsetlocking.
75448
75449 2005-08-25  Simon Josefsson  <jas@extundo.com>
75450
75451         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75452         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75453         GLIBC specific code.
75454
75455 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         Make regex safe for g++.  This fixes one real bug (an "err"
75458         that should have been "*err").  g++ problem reported by
75459         Sam Steingold.
75460         * lib/regex_internal.h (re_calloc): New macro, consistent with
75461         re_malloc etc.  All callers of calloc changed to use re_calloc.
75462         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75463         not int.  All callers changed.
75464         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75465         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75466         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75467         (find_recover_state): Change "err" to "*err"; this fixes what
75468         appears to be a real bug.
75469         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75470         versus int.
75471
75472 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         * modules/regex (Depends-on): Add malloc, since the code
75475         assumes that !malloc(0) means failure.
75476
75477 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75478
75479         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75480
75481         alloca modernization/simplification for regex.
75482         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75483         needs to be at the start of the file, and can be moved into
75484         regex_internal.h and simplified.
75485         * lib/regex_internal.h: Include <alloca.h>.
75486         (__libc_use_alloca) [!defined _LIBC]: New macro.
75487         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75488         now works outside glibc.
75489
75490 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75491
75492         * config/srclist.txt: Add glibc bugs 1241, 1245.
75493
75494 2005-08-25  Jim Meyering  <jim@meyering.net>
75495
75496         * lib/open-safer.c: Include <config.h>.
75497         Otherwise, we'd lose LARGEFILE support in any file using
75498         e.g. "fcntl--.h"
75499
75500 2005-08-25  Bruno Haible  <bruno@clisp.org>
75501
75502         * m4/minmax.m4: Require autoconf 2.52.
75503         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75504         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75505         alternatives of translit over the alphabet.
75506         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75507
75508 2005-08-24  Simon Josefsson  <jas@extundo.com>
75509
75510         * tests/test-getpass.c: New file.
75511
75512 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75515         for GNU regex features.
75516
75517 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75520         * lib/regex.h (regerror): Likewise.
75521
75522         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75523         requires this.  (The code never needed it.)
75524
75525         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75526         All uses of recently-renamed identifiers changed to use the new,
75527         POSIX-compliant names.  The code will build and run just fine
75528         without these changes, but it's better to eat our own dog food
75529         and use the standard-conforming names.
75530
75531         * lib/regex.h: Fix a multitude of POSIX name space violations.
75532         These changes have an effect only for programs that define
75533         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75534         do not change anything for programs compiled in the normal way.
75535         Also, there is no effect on the ABI.
75536
75537         (_REGEX_SOURCE): New macro.
75538         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75539         defined and _GNU_SOURCE is not; this fixes a name space violation.
75540
75541         Rename the following macros to obey POSIX requirements.
75542         The old names are still visible as macros if _REGEX_SOURCE is defined.
75543         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75544         RE_BACKSLASH_ESCAPE_IN_LISTS.
75545         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75546         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75547         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75548         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75549         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75550         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75551         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75552         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75553         (REG_INTERVALS): renamed from RE_INTERVALS.
75554         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75555         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75556         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75557         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75558         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75559         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75560         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75561         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75562         RE_UNMATCHED_RIGHT_PAREN_ORD.
75563         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75564         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75565         (REG_DEBUG): renamed from RE_DEBUG.
75566         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75567         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75568         unusual, since we can't clash with the POSIX REG_ICASE.
75569         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75570         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75571         (REG_NO_SUB): renamed from RE_NO_SUB.
75572         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75573         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75574         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75575         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75576         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75577         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75578         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75579         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75580         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75581         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75582         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75583         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75584         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75585         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75586         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75587         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75588         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75589         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75590         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75591         (REG_FIXED): Renamed from REGS_FIXED.
75592         (REG_NREGS): Renamed from RE_NREGS.
75593
75594         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75595         of other REG_* macros, since POSIX says the user is allowed to
75596         #undef these macros selectively.
75597
75598         (reg_errcode_t): Update comment stating what other tables need
75599         to be consistent.
75600
75601         Rename the following enum values to obey POSIX requirements.
75602         The old names are still visible as macros.
75603         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75604         is not defined, since GNU is supposed to be a superset of POSIX as
75605         much as possible, and since we want reg_errcode_t to be a signed
75606         type for implementation consistency.
75607         (_REG_NOERROR): Renamed from REG_NOERROR.
75608         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75609         (_REG_BADPAT): Renamed from REG_BADPAT.
75610         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75611         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75612         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75613         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75614         (_REG_EBRACK): Renamed from REG_EBRACK.
75615         (_REG_EPAREN): Renamed from REG_EPAREN.
75616         (_REG_EBRACE): Renamed from REG_EBRACE.
75617         (_REG_BADBR): Renamed from REG_BADBR.
75618         (_REG_ERANGE): Renamed from REG_ERANGE.
75619         (_REG_ESPACE): Renamed from REG_ESPACE.
75620         (_REG_BADRPT): Renamed from REG_BADRPT.
75621         (_REG_EEND): Renamed from REG_EEND.
75622         (_REG_ESIZE): Renamed from REG_ESIZE.
75623         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75624         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75625         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75626         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75627         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75628
75629         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75630         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75631         changed.  But support the old name if the new one is not defined
75632         and if _REGEX_SOURCE.
75633
75634         Change the following member names in struct re_pattern_buffer.
75635         The old names are still supported if !_REGEX_SOURCE.
75636         The new names are always supported, regardless of _REGEX_SOURCE.
75637         (re_buffer): Renamed from buffer.
75638         (re_allocated): Renamed from allocated.
75639         (re_used): Renamed from used.
75640         (re_syntax): Renamed from syntax.
75641         (re_fastmap): Renamed from fastmap.
75642         (re_translate): Renamed from translate.
75643         (re_can_be_null): Renamed from can_be_null.
75644         (re_regs_allocated): Renamed from regs_allocated.
75645         (re_fastmap_accurate): Renamed from fastmap_accurate.
75646         (re_no_sub): Renamed from no_sub.
75647         (re_not_bol): Renamed from not_bol.
75648         (re_not_eol): Renamed from not_eol.
75649         (re_newline_anchor): Renamed from newline_anchor.
75650
75651         Change the following member names in struct re_registers.
75652         The old names are still supported if !_REGEX_SOURCE.
75653         The new names are always supported, regardless of _REGEX_SOURCE.
75654         (rm_num_regs): Renamed from num_regs.
75655         (rm_start): Renamed from start.
75656         (rm_end): Renamed from end.
75657
75658         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75659         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75660         Prepend __ to parameter names.
75661
75662         Undo yesterday's changes.
75663
75664 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75667         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75668         lib/regex.c.
75669
75670 2005-08-24  Jim Meyering  <jim@meyering.net>
75671
75672         Sync from coreutils.
75673         * m4/fcntl-safer.m4: New file.
75674
75675         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75676         and object files for this module.
75677
75678 2005-08-24  Jim Meyering  <jim@meyering.net>
75679
75680         Sync from coreutils.
75681         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75682
75683 2005-08-24  Jim Meyering  <jim@meyering.net>
75684
75685         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75686         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75687
75688 2005-08-24  Jim Meyering  <jim@meyering.net>
75689
75690         * modules/fcntl-safer: New module.
75691         * modules/fts (Depends-on): Add fcntl-safer.
75692         * MODULES.html.sh (File descriptor based Input/Output):
75693         Add fcntl-safer.
75694
75695 2005-08-24  Bruno Haible  <bruno@clisp.org>
75696
75697         Support for unit test modules.
75698         * modules/README: Mention tests modules.
75699         * modules/TEMPLATE-TESTS: New file.
75700         * gnulib-tool: New options --extract-tests-module, --with-tests and
75701         --tests-base (unused for the moment).
75702         (testsbase, inctests): New variables.
75703         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75704         (func_verify_module): Exclude TEMPLATE-TESTS.
75705         (func_verify_nontests_module, func_verify_tests_module): New functions.
75706         (func_get_dependencies): Add implicit dependency for tests modules.
75707         (func_get_tests_module): New function.
75708         (func_modules_transitive_closure): When --with-tests was specified,
75709         include the unit tests as well, unless explicitly avoided.
75710         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75711         (func_emit_tests_Makefile_am): New function.
75712         (func_create_testdir): When --with-tests was specified, emit a
75713         tests/ directory.
75714         * MODULES.html.sh (Future developments): Update.
75715
75716 2005-08-24  Bruno Haible  <bruno@clisp.org>
75717
75718         * modules/tls-tests: New file.
75719         * tests/test-tls.c: New file, from GNU gettext.
75720
75721 2005-08-24  Bruno Haible  <bruno@clisp.org>
75722
75723         * modules/lock-tests: New file.
75724         * tests/test-lock.c: New file, from GNU gettext.
75725
75726 2005-08-24  Bruno Haible  <bruno@clisp.org>
75727
75728         * lib/lock.h: Add multiple inclusion guard.
75729         * lib/tls.h: Add multiple inclusion guard.
75730
75731 2005-08-24  Bruno Haible  <bruno@clisp.org>
75732
75733         * gnulib-tool: Add support for the --aux-dir option to
75734         --create-testdir, --create-megatestdir, --test, --megatest.
75735         (func_create_testdir, func_create_megatestdir): Optionally emit a
75736         AC_CONFIG_AUX_DIR directive.
75737         (create-testdir, create-megatestdir, test, megatest): Provide a
75738         default value for $auxdir.
75739
75740 2005-08-24  Bruno Haible  <bruno@clisp.org>
75741
75742         * gnulib-tool (import): Use compound statement instead of subshell
75743         where possible.
75744
75745 2005-08-24  Bruno Haible  <bruno@clisp.org>
75746
75747         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75748
75749 2005-08-24  Bruno Haible  <bruno@clisp.org>
75750
75751         * gnulib-tool (func_version): Update.
75752
75753 2005-08-24  Bruno Haible  <bruno@clisp.org>
75754
75755         * gnulib-tool (func_import, func_create_testdir,
75756         func_create_megatestdir): Quote all autoconf macro arguments.
75757
75758 2005-08-24  Bruno Haible  <bruno@clisp.org>
75759
75760         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75761         option --force, because --force causes the aclocal.m4 of each
75762         subdirectory to be newer than the corresponding config.h.in.
75763
75764 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75767         All contents moved to gl_REGEX.
75768         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75769         assume that it does.
75770
75771 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * lib/regex.h (REG_NOSYS)
75774         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75775         Define, since POSIX requires it as of 2001.
75776         (_REG_ENOSYS)
75777         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75778         New private symbol, used to keep the enum signed in all cases.
75779         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75780         Youngman in
75781         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75782
75783         * lib/regex_internal.c (re_string_skip_chars, register_state):
75784         (calc_state_hash):
75785         Remove forward decls; no longer needed now that we use prototypes.
75786         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75787         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75788         (clean_state_log_if_needed): Likewise.
75789
75790 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75791
75792         * config/srclist.txt: Add glibc bugs 1231-1233.
75793
75794 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75795
75796         Fix problems reported by Sam Steingold in
75797         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75798         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75799         assumed that reg_errcode_t is a signed type, which is not
75800         necessarily true if _XOPEN_SOURCE is not defined.
75801         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75802         since some compilers warn about it otherwise.
75803
75804 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75807         (init_word_char, create_initial_state, duplicate_node_closure):
75808         (fetch_token, peek_token_bracket, build_range_exp):
75809         (build_collating_symbol): Remove forward decls; no longer needed
75810         now that we use prototypes.
75811
75812         * lib/regcomp.c:
75813         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75814         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75815         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75816         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75817         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75818         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75819         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75820         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75821         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75822         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75823         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75824         (build_charclass, build_charclass_op, fetch_number, create_tree):
75825         (create_token_tree, mark_opt_subexp, duplicate_tree):
75826         Use prototypes rather than old-style definitions.
75827
75828         * lib/regex_internal.c:
75829         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75830         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75831         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75832         (re_string_reconstruct, re_string_peek_byte_case):
75833         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75834         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75835         (re_node_set_init_copy, re_node_set_add_intersect):
75836         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75837         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75838         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75839         (re_acquire_state, re_acquire_state_context, register_state):
75840         (create_ci_newstate, create_cd_newstate, free_state):
75841         Likewise.
75842         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75843         re_search_2):
75844         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75845         (re_search_internal, prune_impossible_nodes):
75846         (acquire_init_state_context, check_matching, static):
75847         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75848         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75849         (update_regs, sift_states_backward, build_sifted_states):
75850         (clean_state_log_if_needed, merge_state_array):
75851         (update_cur_sifted_state, add_epsilon_src_nodes):
75852         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75853         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75854         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75855         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75856         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75857         (check_arrival, check_arrival_add_next_nodes):
75858         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75859         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75860         (check_node_accept_bytes, check_node_accept, extend_buffers):
75861         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75862         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75863         (sift_ctx_init):
75864         Likewise.
75865
75866         * lib/regex_internal.h:
75867         (re_string_allocate, re_string_construct, re_string_reconstruct):
75868         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75869         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75870         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75871         (re_string_context_at, re_string_peek_byte_case):
75872         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75873         is defined, since we now use prototypes always.
75874
75875         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75876         C89 or better.  All uses removed.
75877
75878 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * config/srclist.txt: Add glibc bugs 1220-1227.
75881
75882 2005-08-20  Jim Meyering  <jim@meyering.net>
75883
75884         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75885         of unused local, dfa.
75886
75887 2005-08-20  Bruno Haible  <bruno@clisp.org>
75888
75889         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75890
75891 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75894         (re_node_set_insert_last, re_dfa_add_node):
75895         Rename local variables to avoid GCC shadowing warnings.
75896
75897 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75900         [defined lint]: Suppress bogus uninitialized-variable warnings.
75901
75902         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75903         and let the caller return REG_ESPACE if out of space.  This
75904         removes an uninitialied-variable warning with GCC 4.0.1, and also
75905         avoids taking the address of a local variable.  All callers
75906         changed.
75907
75908 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75911         $LIBCSRC/posix/regexec.c.
75912         Add glibc bug 1217 for regcomp.c.
75913
75914 2005-08-19  Jim Meyering  <jim@meyering.net>
75915
75916         * lib/regexec.c (proceed_next_node): Redo local variables to
75917         avoid GCC shadowing warnings.
75918
75919 2005-08-18  Bruno Haible  <bruno@clisp.org>
75920
75921         * lib/strstr.c (strstr): Fix return value in multibyte case.
75922         * lib/strcasestr.c (strcasestr): Likewise.
75923
75924 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75927
75928 2005-08-17  Jim Meyering  <jim@meyering.net>
75929
75930         Make the %s format (seconds since the epoch) work for a negative
75931         number and when used with a zero-padded field width, e.g. %015s.
75932
75933         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75934         label so that it precedes the code to set `digits'.  Otherwise,
75935         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75936         print `00-22'.  Now, it prints `-0022', as it should.
75937
75938 2005-08-17  Bruno Haible  <bruno@clisp.org>
75939
75940         * modules/strstr (Files): Add m4/mbrtowc.m4.
75941         (Depends-on): Add mbuiter.
75942
75943 2005-08-17  Bruno Haible  <bruno@clisp.org>
75944
75945         * modules/strcasestr: New file.
75946         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75947         strcasestr.
75948
75949 2005-08-17  Bruno Haible  <bruno@clisp.org>
75950
75951         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75952
75953 2005-08-17  Bruno Haible  <bruno@clisp.org>
75954
75955         * modules/mbuiter: New file.
75956         * MODULES.html.sh (Extended multibyte and wide character utilities):
75957         Add mbuiter.
75958
75959 2005-08-17  Bruno Haible  <bruno@clisp.org>
75960
75961         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75962         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75963
75964 2005-08-17  Bruno Haible  <bruno@clisp.org>
75965
75966         * m4/strcasestr.m4: New file.
75967
75968 2005-08-17  Bruno Haible  <bruno@clisp.org>
75969
75970         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75971         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75972
75973 2005-08-17  Bruno Haible  <bruno@clisp.org>
75974
75975         * lib/strcasestr.h: New file.
75976         * lib/strcasestr.c: New file.
75977
75978 2005-08-17  Bruno Haible  <bruno@clisp.org>
75979
75980         * lib/strcasecmp.c: Use mbuiter.h.
75981
75982 2005-08-17  Bruno Haible  <bruno@clisp.org>
75983
75984         * lib/mbuiter.h: New file.
75985
75986 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75989         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75990         and gl_GETOPT are both invoked via different paths (as happens
75991         with GNU tar CVS because it uses both argp and getopt), the former
75992         wins.
75993
75994 2005-08-16  Bruno Haible  <bruno@clisp.org>
75995
75996         * modules/tls: New file.
75997         * MODULES.html.sh (Multithreading): Add tls.
75998
75999 2005-08-16  Bruno Haible  <bruno@clisp.org>
76000
76001         * modules/strnlen1: New file.
76002         * MODULES.html.sh (String handling): Add strnlen1.
76003
76004 2005-08-16  Bruno Haible  <bruno@clisp.org>
76005
76006         * modules/strcase (Files): Add m4/mbrtowc.m4.
76007         (Depends-on): Add strnlen1, mbchar.
76008
76009 2005-08-16  Bruno Haible  <bruno@clisp.org>
76010
76011         * modules/mbiter: New file.
76012         * MODULES.html.sh (Extended multibyte and wide character utilities):
76013         Add mbiter.
76014
76015 2005-08-16  Bruno Haible  <bruno@clisp.org>
76016
76017         * modules/mbfile: New file.
76018         * MODULES.html.sh (Extended multibyte and wide character utilities):
76019         Add mbfile.
76020
76021 2005-08-16  Bruno Haible  <bruno@clisp.org>
76022
76023         * modules/mbchar: New file.
76024         * MODULES.html.sh (Extended multibyte and wide character utilities):
76025         New section.
76026
76027 2005-08-16  Bruno Haible  <bruno@clisp.org>
76028
76029         * m4/tls.m4: New file, from GNU gettext.
76030
76031 2005-08-16  Bruno Haible  <bruno@clisp.org>
76032
76033         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76034         always.
76035         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76036
76037 2005-08-16  Bruno Haible  <bruno@clisp.org>
76038
76039         * m4/mbiter.m4: New file.
76040
76041 2005-08-16  Bruno Haible  <bruno@clisp.org>
76042
76043         * m4/mbfile.m4: New file.
76044
76045 2005-08-16  Bruno Haible  <bruno@clisp.org>
76046
76047         * m4/mbchar.m4: New file.
76048
76049 2005-08-16  Bruno Haible  <bruno@clisp.org>
76050
76051         * lib/tls.h: New file, from GNU gettext.
76052         * lib/tls.c: New file, from GNU gettext.
76053
76054 2005-08-16  Bruno Haible  <bruno@clisp.org>
76055
76056         * lib/strnlen1.h: New file.
76057         * lib/strnlen1.c: New file.
76058
76059 2005-08-16  Bruno Haible  <bruno@clisp.org>
76060
76061         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76062         (mbi_init): Update.
76063         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76064         NUL byte, not after it.
76065
76066 2005-08-16  Bruno Haible  <bruno@clisp.org>
76067
76068         * lib/strcase.h (strcasecmp): Add note in comments.
76069         * lib/strncasecmp.c: Use code from strcasecmp.c.
76070         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76071         (strcasecmp): Work correctly in multibyte locales.
76072
76073 2005-08-16  Bruno Haible  <bruno@clisp.org>
76074
76075         * lib/mbiter.h: New file.
76076
76077 2005-08-16  Bruno Haible  <bruno@clisp.org>
76078
76079         * lib/mbfile.h: New file.
76080
76081 2005-08-16  Bruno Haible  <bruno@clisp.org>
76082
76083         * lib/mbchar.h: New file.
76084         * lib/mbchar.c: New file.
76085
76086 2005-08-16  Bruno Haible  <bruno@clisp.org>
76087
76088         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76089         the valid ones. Makes the comparison operations transitive:
76090         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76091         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76092
76093 2005-08-15  Simon Josefsson  <jas@extundo.com>
76094
76095         * modules/ssize_t (License): Change to 'unlimited'.
76096
76097         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76098
76099 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76102         Add comments for each pending glibc patch.
76103
76104 2005-08-15  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76107         __cplusplus is defined.
76108
76109 2005-08-14  Jim Meyering  <jim@meyering.net>
76110
76111         Sync from coreutils.
76112
76113         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76114         Use the hash-table-based cycle-detection code not just when
76115         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76116         Reported by James Youngman in
76117         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76118         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76119         FTS_TIGHT_CYCLE_CHECK.
76120         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76121         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76122         once again.
76123         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76124         * lib/fts.c (fd_safer): Remove decl.
76125         Include fcntl--.h rather than unistd-safer.h
76126         (fts_safe_changedir): Don't call fd_safer; no longer needed
76127         now that we include fcntl--.h.
76128
76129 2005-08-12  Simon Josefsson  <jas@extundo.com>
76130
76131         * modules/getndelim2: Use ssize_t module.
76132         * modules/getnline: Likewise.
76133         * modules/safe-read: Likewise.
76134         * modules/xreadlink: Likewise.
76135
76136         * modules/ssize_t: New file.
76137
76138 2005-08-12  Simon Josefsson  <jas@extundo.com>
76139
76140         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76141
76142 2005-08-12  Simon Josefsson  <jas@extundo.com>
76143
76144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76145         ssize_t.
76146
76147 2005-08-12  Simon Josefsson  <jas@extundo.com>
76148
76149         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76150         readline, getdelim and check_version.
76151         (Support for systems lacking ISO C 99: Sizes of integer types):
76152         Add size_max.
76153
76154 2005-08-12  Bruno Haible  <bruno@clisp.org>
76155
76156         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76157
76158 2005-08-11  Simon Josefsson  <jas@extundo.com>
76159
76160         * modules/readline: New file.
76161
76162         * modules/strnlen (Files): Add strnlen.h.
76163
76164 2005-08-11  Simon Josefsson  <jas@extundo.com>
76165
76166         * m4/readline.m4: New file.
76167
76168 2005-08-11  Simon Josefsson  <jas@extundo.com>
76169
76170         * lib/readline.h, readline.c: New file.
76171
76172 2005-08-11  Simon Josefsson  <jas@extundo.com>
76173
76174         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76175         gl_AVOID.
76176
76177 2005-08-11  Bruno Haible  <bruno@clisp.org>
76178
76179         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76180
76181 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76182
76183         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76184
76185 2005-08-10  Simon Josefsson  <jas@extundo.com>
76186
76187         * tests/test-iconvme.c: New file.
76188
76189 2005-08-10  Simon Josefsson  <jas@extundo.com>
76190
76191         * m4/strnlen.m4: New file.
76192
76193         * m4/strndup.m4: Don't check for strnlen declaration, done in
76194         strnlen.m4.
76195
76196 2005-08-10  Simon Josefsson  <jas@extundo.com>
76197
76198         * lib/strndup.c: Use strnlen.h.
76199
76200         * lib/strnlen.h: New file.
76201
76202 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76203
76204         * README: Typos.
76205
76206 2005-08-02  Simon Josefsson  <jas@extundo.com>
76207
76208         * modules/readline: New file.
76209
76210 2005-08-02  Simon Josefsson  <jas@extundo.com>
76211
76212         * modules/getdelim: New file.
76213
76214         * modules/getline: Rewrite, don't use getndelim2.
76215
76216 2005-08-02  Simon Josefsson  <jas@extundo.com>
76217
76218         * m4/getline.m4: Separate out getdelim stuff into separate module.
76219
76220         * m4/getdelim.m4: New file.
76221
76222 2005-08-02  Simon Josefsson  <jas@extundo.com>
76223
76224         * lib/getline.h, getline.c: Rewrite.
76225
76226         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76227
76228 2005-07-31  Bruno Haible  <bruno@clisp.org>
76229
76230         * lib/lock.h (gl_lock_initializer): New macro.
76231         (gl_lock_define_initialized): Use it.
76232         (gl_rwlock_initializer): New macro.
76233         (gl_rwlock_define_initialized): Use it.
76234         (gl_recursive_lock_initializer): New macro.
76235         (gl_recursive_lock_define_initialized): Use it.
76236
76237 2005-07-30  Karl Berry  <karl@gnu.org>
76238
76239         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76240         Report from Ben Pfaff, regarding getopt.
76241
76242 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76243
76244         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76245         normal way.
76246         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76247         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76248         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76249         (gl_GETOPT): Use the new macros.  Most of the implementation
76250         is moved to the new macros.  This is for programs like Emacs
76251         that don't want all the functionality of gl_GETOPT.
76252
76253 2005-07-26  Bruno Haible  <bruno@clisp.org>
76254
76255         * m4/lock.m4: Update from GNU gettext.
76256
76257 2005-07-26  Bruno Haible  <bruno@clisp.org>
76258
76259         * lib/lock.h: Update from GNU gettext.
76260         * lib/lock.c: Update from GNU gettext.
76261
76262 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76265         obsolescent AC_TRY_RUN.  Include the default includes files, for
76266         'exit'.
76267
76268 2005-07-24  Bruno Haible  <bruno@clisp.org>
76269
76270         * modules/visibility: New file.
76271         * MODULES.html.sh (Misc): Add visibility.
76272
76273 2005-07-24  Bruno Haible  <bruno@clisp.org>
76274
76275         * m4/visibility.m4: New file.
76276
76277 2005-07-24  Bruno Haible  <bruno@clisp.org>
76278
76279         * doc/visibility.texi: New file.
76280
76281 2005-07-22  Bruno Haible  <bruno@clisp.org>
76282
76283         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76284         $(ALLOCA_H), redundant through BUILT_SOURCES.
76285         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76286         redundant through BUILT_SOURCES.
76287         * modules/byteswap (Makefile.am): Remove explicit dependency on
76288         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76289         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76290         $(FNMATCH_H), redundant through BUILT_SOURCES.
76291         * modules/getopt (Makefile.am): Remove explicit dependency on
76292         $(GETOPT_H), redundant through BUILT_SOURCES.
76293         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76294         redundant through BUILT_SOURCES.
76295         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76296         redundant through BUILT_SOURCES.
76297         * modules/stdbool (Makefile.am): Remove explicit dependency on
76298         $(STDBOOL_H), redundant through BUILT_SOURCES.
76299         * modules/stdint (Makefile.am): Remove explicit dependency on
76300         $(STDINT_H), redundant through BUILT_SOURCES.
76301         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76302         Remove explicit dependency on $(SYSEXITS_H).
76303         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76304
76305 2005-07-18  Simon Josefsson  <jas@extundo.com>
76306
76307         * lib/check-version.c (check_version): Accept identical versions too.
76308
76309 2005-07-18  Bruno Haible  <bruno@clisp.org>
76310
76311         * modules/lock: New file.
76312         * MODULES.html.sh (Multithreading): New section.
76313
76314 2005-07-18  Bruno Haible  <bruno@clisp.org>
76315
76316         * m4/lock.m4: New file, from GNU gettext.
76317
76318 2005-07-18  Bruno Haible  <bruno@clisp.org>
76319
76320         * lib/lock.h: New file, from GNU gettext.
76321         * lib/lock.c: New file, from GNU gettext.
76322
76323 2005-07-18  Bruno Haible  <bruno@clisp.org>
76324
76325         * lib/lock.h (gl_once_t): New type.
76326         (gl_once_define, gl_once): New macros.
76327         * lib/lock.c (fresh_once): New variable.
76328         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76329         functions.
76330
76331 2005-07-16  Simon Josefsson  <jas@extundo.com>
76332
76333         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76334         workaround, suggested by Bruno.
76335
76336 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76337
76338         * modules/xalloc (Depends-on): Add xalloc-die.
76339         * modules/xvasprintf (Depends-on): Add xalloc-die.
76340
76341 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76344         with a minor change.
76345
76346 2005-07-15  Bruno Haible  <bruno@clisp.org>
76347
76348         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76349         When using lib/poll.c, define poll as rpl_poll.
76350
76351 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76352
76353         * modules/argp (Depends-on): Remove unlocked-io.
76354
76355 2005-07-14  Derek Price  <derek@ximbiot.com>
76356
76357         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76358         for glob symlink bug.
76359
76360 2005-07-14  Bruno Haible  <bruno@clisp.org>
76361
76362         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76363         Instead, test for *_unlocked function declarations directly.
76364
76365 2005-07-11  Simon Josefsson  <jas@extundo.com>
76366
76367         * modules/size_max: New file.
76368
76369         * modules/xsize: Depend on size_max module for size_max.m4.
76370
76371 2005-07-11  Simon Josefsson  <jas@extundo.com>
76372
76373         * lib/size_max.h: New file.
76374
76375 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76378         copyright symbol and the year.
76379         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76380         (version_etc_va): Use parameterized copyright notice.
76381         Reword to conform to the current GNU coding standards.
76382
76383 2005-07-11  Karl Berry  <karl@gnu.org>
76384
76385         * doc/gnulib.texi (Quoting): new node.
76386         (Initial import): more info, from Patrice.
76387
76388 2005-07-11  Bruno Haible  <bruno@clisp.org>
76389
76390         * gnulib-tool (func_usage): Document option --avoid.
76391         (Command line options): Handle --avoid.
76392         (func_acceptable): New function.
76393         (func_modules_transitive_closure): Use it.
76394
76395 2005-07-11  Bruno Haible  <bruno@clisp.org>
76396
76397         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76398         Reported by Jim Meyering.
76399
76400 2005-07-10  Bruno Haible  <bruno@clisp.org>
76401
76402         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76403         Needed when size_t is smaller than 'unsigned int'.
76404         Reported by Paul Eggert.
76405
76406 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76407
76408         * modules/argp (Depends-on): Add unlocked-io
76409
76410 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76411
76412         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76413         block of defines.
76414
76415 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76416
76417         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76418         fix now.
76419
76420 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76421         and Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76424         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76425
76426 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         * modules/regex (Files): Add lib/regex_internal.c,
76429         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76430         (Depends-on): Add extensions.
76431         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76432
76433 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76434
76435         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76436         pathconf.
76437         * m4/same.m4 (gl_SAME): Likewise.
76438         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76439
76440         * m4/regex.m4: Adjust to new libc regex implementation.
76441         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76442         all the .c and .h parts of (the new) regex.
76443         Quote the m4 stuff better.
76444         Check for RE_ICASE bug of old gnulib.
76445         Check for REG_STARTEND of recent libc.
76446         Rename local variables from jm_* to gl_*.
76447         Quote operand of "test -f".
76448         Say "recent enough" version of libc, not "version 2".
76449         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76450         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76451         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76452         Remove check for btowc, isascii.
76453         Require AM_LANGINFO_CODESET.
76454
76455 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * lib/regex.c, regex.h: Sync from libc.
76458         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76459         * lib/regexec.c:
76460         New files, synced from libc, except that regex_internal.h
76461         currently has a small porting fix.
76462
76463 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76466         regex_internal.c, regexec.c.
76467         Add regex_internal.h too, but as a comment, since the libc version
76468         is currently broken in gnulib mode.
76469
76470 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76471
76472         Support programs like Emacs that use gnulib but not gettext.
76473         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76474         * modules/gettext-h: New file.
76475         * modules/gettext (Files): Remove lib/gettext.h.
76476         (Depends-on): Add gettext-h.
76477         (Makefile.am): Remove lib_SOURCES.
76478         * modules/argmatch, modules/c-stack, modules/closeout:
76479         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76480         * modules/execute, modules/file-type, modules/getaddrinfo:
76481         * modules/getopt, modules/human, modules/javacomp:
76482         * modules/javaexec, modules/mkdir-p, modules/obstack:
76483         * modules/openat, modules/pagealign_alloc, modules/pipe:
76484         * modules/quotearg, modules/regex, modules/rpmatch:
76485         * modules/unicodeio, modules/userspec, modules/version-etc:
76486         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76487         * modules/xsetenv:
76488         Depend on gettext-h, not gettext.
76489
76490 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * gnulib-tool (func_import): Add support for 'public domain' license.
76493         * modules/alloca, modules/atexit, modules/memmove:
76494         Now public domain, not GPL.
76495         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76496         * modules/realloc, modules/strerror, modules/strtod:
76497         Now LGPL, not GPL.
76498
76499 2005-07-05  Bruno Haible  <bruno@clisp.org>
76500
76501         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76502         autoconf CVS. Needed for mingw.
76503
76504 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         Remove the dependency of the strftime module on the tzset module.
76507         * modules/strftime (Depends-on): Remove dependency on tzset.
76508
76509 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76510
76511         Remove the dependency of the strftime module on the tzset module.
76512         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76513         gl_FUNC_TZSET_CLOBBER.
76514
76515 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76516
76517         Remove the dependency of the strftime module on the tzset module.
76518         * lib/strftime.c (my_strftime)
76519         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76520         Copy the input structure, to work around some of the bug with
76521         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76522         Solaris releases, you should also use the tzset module, but we won't
76523         require it as a dependency any more since we don't want LGPLed code
76524         to depend on GPLed code.
76525
76526 2005-07-02  Jim Meyering  <jim@meyering.net>
76527
76528         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76529         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76530         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76531         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76532
76533 2005-07-02  Jim Meyering  <jim@meyering.net>
76534
76535         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76536
76537 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76538
76539         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76540         declares only 'struct timespec;' (!).
76541
76542 2005-07-01  Jim Meyering  <jim@meyering.net>
76543
76544         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76545         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76546         * lib/save-cwd.c, tempname.c:
76547         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76548         and don't include <sys/file.h>).
76549
76550 2005-06-29  Jim Meyering  <jim@meyering.net>
76551
76552         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76553         type name.  Use the variable name instead.
76554         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76555         Likewise.
76556
76557 2005-06-28  Simon Josefsson  <jas@extundo.com>
76558
76559         * modules/check-version (Files): Add check-version.m4.
76560
76561 2005-06-28  Simon Josefsson  <jas@extundo.com>
76562
76563         * m4/check-version.m4: New file, suggested by Jim Meyering
76564         <jim@meyering.net>.
76565
76566 2005-06-28  Simon Josefsson  <jas@extundo.com>
76567
76568         * lib/check-version.h, lib/check-version.c: New files.
76569
76570 2005-06-28  Simon Josefsson  <jas@extundo.com>
76571
76572         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76573         collision with global variable.  Better indentation.  Don't
76574         increment buffer pointer beyond buffer end.  Based on comments
76575         from Paul Eggert <eggert@cs.ucla.edu>.
76576
76577         * lib/base64.h: Indent.
76578
76579 2005-06-28  Simon Josefsson  <jas@extundo.com>
76580
76581         * doc/gnulib.texi (Library version handling): New section.
76582
76583 2005-06-28  Jim Meyering  <jim@meyering.net>
76584
76585         * check-module (find_included_lib_files): Hard-code another
76586         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76587         but modules/fts-lgpl (correctly) does not list those files.
76588
76589         * modules/canonicalize (Files): Add lib/pathmax.h.
76590
76591 2005-06-25  Simon Josefsson  <jas@extundo.com>
76592
76593         * modules/check-version: New file.
76594
76595 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76596
76597         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76598         initializer of struct addrinfo, as an indication that we don't
76599         care how many members the structure has.
76600
76601 2005-06-24  Derek Price  <derek@ximbiot.com>
76602         and Bruno Haible  <bruno@clisp.org>
76603
76604         Remove stat module & update lstat.
76605         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76606         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76607         * m4/stat.m4: Remove this file.
76608
76609 2005-06-24  Derek Price  <derek@ximbiot.com>
76610         and Bruno Haible  <bruno@clisp.org>
76611
76612         Remove stat module & update lstat.
76613         * lib/stat.c: Remove this file...
76614         (slash_aware_lstat): ...moving this content and its support...
76615         * lib/lstat.c (rpl_lstat): ...into here.
76616         * lib/lstat.h: New file.
76617
76618 2005-06-24  Derek Price  <derek@ximbiot.com>
76619         and Bruno Haible  <bruno@clisp.org>
76620
76621         Remove stat module & update lstat.
76622         * config/srclist.txt (libc sources): Remove stat.
76623
76624 2005-06-24  Derek Price  <derek@ximbiot.com>
76625         and Bruno Haible  <bruno@clisp.org>
76626
76627         Remove stat module & update lstat.
76628         * MODULES.html.sh (stat): Remove.
76629         * MODULES.html: Regenerated.
76630         * modules/lstat (Description): Correct function name.
76631         (Files): Add "lstat.h".
76632         (Depends-on): Remove stat, add xalloc, stat-macros.
76633         * modules/stat: Remove this file.
76634         (Include): Add "lstat.h", remove <sys/stat.h>.
76635
76636 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76639         (ranged_convert): Don't save conversion in a temporary struct.
76640         This causes a warning with GCC 4.0.0, and anyway in the typical
76641         case it's not worth the extra 100 bytes or so of code.
76642         (ranged_convert, __mktime_internal): When calling a function via a
76643         pointer P, use P () rather than (*P) (), as we now assume C89 or
76644         better.
76645
76646 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76649         "who -r" failed to give output.  Problem reported by Tim Waugh.
76650
76651         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76652         (xcalloc): Use it to avoid needless tests.
76653         Problem reported by Jim Meyering.
76654
76655 2005-06-20  Derek Price  <derek@ximbiot.com>
76656
76657         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76658         unnecessary for Autoconfs > 2.59c.
76659
76660 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76661
76662         * lib/argp.h (__option_is_short): Check upper limit of
76663         __key. Isprint() requires its argument to have the value
76664         of an unsigned char or EOF.
76665
76666 2005-06-16  Jim Meyering  <jim@meyering.net>
76667
76668         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76669         when either N or S is zero.
76670
76671 2005-06-16  Derek Price  <derek@ximbiot.com>
76672
76673         * m4/bison.m4: Declare YACC & YFLAGS precious.
76674
76675 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76676
76677         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76678         multibyte string or pattern, fall back on unibyte matching.
76679         Problem reported by James Youngman.
76680
76681 2005-06-08  Bruno Haible  <bruno@clisp.org>
76682
76683         * modules/csharpcomp: New file.
76684         * MODULES.html.sh (C#): Add csharpcomp.
76685
76686 2005-06-08  Bruno Haible  <bruno@clisp.org>
76687
76688         * m4/csharpcomp.m4: New file, from GNU gettext.
76689
76690 2005-06-08  Bruno Haible  <bruno@clisp.org>
76691
76692         * lib/csharpcomp.h: New file, from GNU gettext.
76693         * lib/csharpcomp.c: New file, from GNU gettext.
76694         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76695
76696 2005-06-08  Bruno Haible  <bruno@clisp.org>
76697
76698         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76699         warning on mingw.
76700
76701 2005-06-07  Derek Price  <derek@ximbiot.com>
76702
76703         Sync from CVS.
76704         * lib/glob_.h: Indent nested #ifdef.
76705
76706 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         Sync from coreutils.
76709         Use "file name" when talking about file names, instead of "filename"
76710         or "path", as per the GNU coding standards.
76711         * lib/mkdir-p.c: Renamed from makepath.c.
76712         (make_dir_parents): Renamed from make_path.  All callers changed.
76713         * lib/mkdir-p.h: Likewise.  All includers changed.
76714         * lib/filenamecat.c: Renamed from path-concat.c.
76715         (file_name_concat): Renamed from path_concat.  All callers changed.
76716         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76717         * lib/filenamecat.h: Likewise.  All includers changed.
76718         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76719         in comments or local variable names.
76720         * lib/basename.c: Likewise.
76721         * lib/canonicalize.c, canonicalize.h: Likewise.
76722         * lib/dirname.c, dirname.h: Likewise.
76723         * lib/euidaccess.c: Likewise.
76724         * lib/exclude.c: Likewise
76725         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76726         * lib/fsusage.c, fsuage.h: Likewise.
76727         * lib/fts.c, fts_.h: Likewise.
76728         * lib/getcwd.c: Likewise.
76729         * lib/getloadavg.c: Likewise.
76730         * lib/mkstemp.c: Likewise.
76731         * lib/mountlist.c, mountlist.h: Likewise.
76732         * lib/openat.c, openat.h: Likewise.
76733         * lib/readlink-stub.c: Likewise.
76734         * lib/readutmp.c, readutmp.h: Likewise.
76735         * lib/rename.c: Likewise.
76736         * lib/rmdir.c: Likewise.
76737         * lib/same.c: Likewise.
76738         * lib/savedir.c: Likewise.
76739         * lib/stripslash.c: Likewise.
76740         * lib/tempname.c: Likewise.
76741         * lib/xreadlink.c: Likewise.
76742         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76743         All uses changed.
76744         * lib/exclude.h: Likewise.
76745
76746         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76747         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76748         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76749         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76750         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76751         files have been getting away with it for years (MORE/BSD 4.3
76752         is extinct now).
76753         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76754         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76755
76756         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76757         Define to 256, not 255, as per modern POSIX.
76758
76759 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         Sync from coreutils.
76762         Use "file name" when talking about file names, instead of "filename"
76763         or "path", as per the GNU coding standards.
76764         * MODULES.html.sh: mkdir-p renamed from makepath.
76765         filenamecat renamed from path-concat.
76766         * modules/filenamecat: Renamed from modules/path-concat.
76767         (Files): filenamecat.h and filenamecat.c renamed from
76768         path-concat.h and path-concat.c.
76769         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76770         (Include): filenamecat.h, not path-concat.h.
76771         * modules/mkdir-p: Renamed from modules/makepath.
76772         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76773         makepath.c.
76774         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76775         (Include): mkdir-p.h, not makepath.h.
76776
76777 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76778
76779         Sync from coreutils.
76780         * m4/mkdir-p.m4: Renamed from makepath.m4.
76781         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76782         Rename files from makepath.c to mkdir-p.c, and from
76783         makepath.h to mkdir-p.h.
76784         * m4/filenamecat.m4: Renamed from path-concat.m4.
76785         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76786         Rename files from path-concat.c to filenamecat.c,
76787         and from path-concat.h to filenamecat.h.
76788         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76789         "file name" in local variables or comments.
76790         * m4/rename.m4: Likewise.
76791
76792 2005-06-01  Bruno Haible  <bruno@clisp.org>
76793
76794         * modules/csharpexec: New file.
76795         * MODULES.html.sh (C#): New section.
76796
76797 2005-06-01  Bruno Haible  <bruno@clisp.org>
76798
76799         * m4/csharp.m4: New file, from GNU gettext.
76800         * m4/csharpexec.m4: New file, from GNU gettext.
76801
76802 2005-06-01  Bruno Haible  <bruno@clisp.org>
76803
76804         * lib/csharpexec.h: New file, from GNU gettext.
76805         * lib/csharpexec.c: New file, from GNU gettext.
76806         * lib/csharpexec.sh.in: New file, from GNU gettext.
76807
76808 2005-05-31  Derek Price  <derek@ximbiot.com>
76809             Paul Eggert  <eggert@cs.ucla.edu>
76810
76811         Sync from cvs.
76812         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76813
76814 2005-05-31  Derek Price  <derek@ximbiot.com>
76815             Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         Sync from cvs.
76818         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76819
76820 2005-05-29  Derek Price  <derek@ximbiot.com>
76821
76822         * config/srclist.txt (glob_.h, glob.c): Add these files.
76823
76824 2005-05-29  Derek Price  <derek@ximbiot.com>
76825
76826         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76827         * modules/glob: New file.
76828         * modules/getlogin_r: Add link to POSIX spec in description.
76829
76830 2005-05-29  Derek Price  <derek@ximbiot.com>
76831             Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * m4/glob.m4: New file.
76834
76835 2005-05-29  Derek Price  <derek@ximbiot.com>
76836             Paul Eggert  <eggert@cs.ucla.edu>
76837
76838         * lib/glob_.h, lib/glob.c: New files.
76839
76840 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76843         * modules/fts-lgpl (Depends-on): Remove gettext.
76844
76845 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76846
76847         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76848         and don't require gt_INTTYPES_PRI.
76849
76850 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76851
76852         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76853
76854         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76855         the configuration hassle isn't worth it.
76856         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76857         (LONGEST_MODIFIER, PRIuMAX): Remove.
76858
76859 2005-05-27  Bruno Haible  <bruno@clisp.org>
76860
76861         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76862
76863 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76866         _POSIX_PTHREAD_SEMANTICS for Solaris.
76867
76868 2005-05-25  Derek Price  <derek@ximbiot.com>
76869
76870         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76871
76872 2005-05-25  Derek Price  <derek@ximbiot.com>
76873             Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76876         * lib/getlogin_r.c, getlogin_r.h: New files.
76877
76878 2005-05-25  Bruno Haible  <bruno@clisp.org>
76879             Derek Price  <derek@ximbiot.com>
76880
76881         * lib/getlogin_r.h: Simplify API documentation.
76882
76883 2005-05-23  Derek Price  <derek@ximbiot.com>
76884
76885         * modules/minmax (Files): Add m4/minmax.m4.
76886         (configure.ac): Add gl_MINMAX.
76887
76888 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76891         so that unistd-safer.h (GPL'ed code) need not be included.
76892
76893 2005-05-22  Bruno Haible  <bruno@clisp.org>
76894
76895         * m4/minmax.m4: New file.
76896         Based on a patch by Derek Price <derek@ximbiot.com>.
76897
76898 2005-05-22  Bruno Haible  <bruno@clisp.org>
76899
76900         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76901         (INT64_MIN): Fix definition.
76902         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76903
76904         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76905         NEED_SIGNED_INT_TYPES.
76906
76907         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76908         HAVE_SYSTEM_INTTYPES.
76909
76910 2005-05-22  Bruno Haible  <bruno@clisp.org>
76911
76912         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76913         Also include <sys/param.h> if it defines MIN, MAX.
76914         Based on a patch by Derek Price <derek@ximbiot.com>.
76915
76916 2005-05-21  Jim Meyering  <jim@meyering.net>
76917
76918         * modules/fts (Files): Add m4/inttypes-pri.m4.
76919         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76920
76921 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         New fts module.
76924         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76925         (setup_dir, free_dir): New functions.
76926         (enter_dir, leave_dir): Define trivial
76927         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76928         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76929         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76930         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76931         Move to fts-cycle.c.
76932         (fts_open): Use setup_dir.
76933         (fts_close): Use free_dir.
76934         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76935         This adds a label and some gotos, but the alternatives were messier.
76936         Check for memory allocation failure when entering a dir.
76937         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76938         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76939         (FTS): New member fts_cycle, that is a union that contains the
76940         old active_dir_ht and cycle_state.  All uses changed to mention
76941         fts_cycle.ht and fts_cycle.state.
76942         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76943         fts.c, with the following changes:
76944         (setup_dir, free_dir): New functions.
76945         (enter_dir): Now returns bool.  Return true if successful, false
76946         if memory exhausted.  All callers changed.
76947         Do not bother partly cleaning up on
76948         memory allocation failure; that is free_dir's job.
76949         However, free ad if hash_insert fails, to avoid memory leak.
76950         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76951         fts->fts_options to see which union member to use.
76952
76953 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76956         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76957
76958 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76961
76962 2005-05-20  Jim Meyering  <jim@meyering.net>
76963
76964         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76965         Now a macro, to pacify GCC.
76966
76967 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76968
76969         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76970         of -1.
76971
76972 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76973
76974         * lib/chown.c (rpl_chown): Return -1 on failure.
76975
76976 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76979         Don't check for stddef.h.
76980         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76981         don't use its results.
76982         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76983         since we include them unconditionally.  Don't require
76984         AM_STDBOOL_H, since stdbool is a prerequisite.
76985         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76986         since we assume C89 or better.
76987         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76988         as we don't use their results.
76989         Don't check for fchdir, memmove, memset, strrchr, as we use
76990         them unconditionally.
76991         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76992         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76993
76994 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76997         Include <stddef.h> unconditionally, since we assume C89 now.
76998         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76999         * lib/fts.c: Include fts_.h first, to check interface.
77000         Do not include intprops.h; no longer needed.
77001         Include cycle-check.h and hash.h, since fts_.h no longer does.
77002         Remove unnecessary casts of closedir to void.
77003         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77004         decide whether to decrement nlinks.
77005         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77006         (FTS): Use struct hash_table * instead of Hash_table, so that
77007         we no longer need to include hash.h here.
77008
77009 2005-05-18  Jim Meyering  <jim@meyering.net>
77010
77011         * modules/dirfd (License): Change to LGPL.  Most of the code
77012         is already in the public domain.
77013
77014 2005-05-18  Jim Meyering  <jim@meyering.net>
77015
77016         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77017         Reported by Yoann Vandoorselaere.
77018
77019 2005-05-17  Jim Meyering  <jim@meyering.net>
77020
77021         * m4/fts.m4: New file, from coreutils.
77022
77023 2005-05-17  Jim Meyering  <jim@meyering.net>
77024
77025         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77026
77027 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77028
77029         Sync from coreutils.
77030         * m4/unlinkdir.m4: New file.
77031
77032 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         Sync from coreutils.
77035         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77036         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77037         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77038         White space changes only.
77039         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77040         special.
77041         * lib/yesno.c: Include getline.h, not ctype.h.
77042         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77043         Use getline to remove arbitrary restriction on response length.
77044
77045 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * config/srclist-update: Spell out "Street" in FSF postal
77048         mail address; this is the style the FSF seems to prefer.
77049
77050         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77051         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77052         this updates FSF postal mail address.
77053
77054         Sync from coreutils.
77055         * modules/unlinkdir: New file.
77056         * modules/yesno (Depends-on): Add getline.
77057         * MODULES.html.sh (File system functions): Add unlinkdir.
77058
77059 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77062         lib/strsep.h:
77063         Change the initial comment to refer to GPL, not LGPL.
77064         gnulib-tool will change it to LGPL as needed.
77065
77066         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77067         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77068         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77069         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77070         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77071         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77072         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77073         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77074         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77075         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77076         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77077         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77078         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77079         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77080         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77081         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77082         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77083         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77084         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77085         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77086         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77087         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77088         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77089         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77090         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77091         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77092         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77093         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77094         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77095         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77096         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77097         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77098         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77099         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77100         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77101         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77102         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77103         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77104         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77105         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77106         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77107         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77108         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77109         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77110         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77111         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77112         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77113         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77114         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77115         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77116         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77117         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77118         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77119         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77120         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77121         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77122         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77123         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77124         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77125         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77126         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77127         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77128         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77129         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77130         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77131         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77132         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77133         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77134         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77135         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77136         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77137         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77138         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77139         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77140         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77141         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77142         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77143         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77144         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77145         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77146         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77147         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77148         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77149         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77150         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77151         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77152         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77153         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77154         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77155         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77156         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77157         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77158         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77159         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77160         lib/yesno.c, lib/yesno.h:
77161         Update FSF postal mail address.
77162
77163 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77166         tests/test-memmem.c, tests/test-stpncpy.c:
77167         Update FSF postal mail address.
77168
77169 2005-05-13  Bruno Haible  <bruno@clisp.org>
77170
77171         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77172         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77173         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77174         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77175         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77176         Add support for 64-bit integers in the MSVC compiler.
77177
77178 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77179
77180         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77181
77182 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77183
77184         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77185
77186 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * doc/getdate.texi (General date syntax): Don't say that date
77189         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77190         Problem reported by Nic Ferrier.
77191
77192 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77193
77194         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77195         specified in ai_socktype. Fix invalid ai_protocol
77196         check. ai_protocol is usually set to 0 or depending on
77197         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77198         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77199         ai_socktype / ai_protocol in the returned addrinfo structure.
77200
77201 2005-05-10  Simon Josefsson  <jas@extundo.com>
77202
77203         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77204         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77205
77206 2005-05-10  Karl Berry  <karl@gnu.org>
77207
77208         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77209         (from http://www.gnu.org/licenses).
77210         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77211         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77212         fdl.texi suffices.
77213
77214 2005-05-10  Karl Berry  <karl@gnu.org>
77215
77216         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77217         (COPYING.DOC): remove.
77218
77219         * config/srclist-update: new FSF address.
77220
77221 2005-05-10  Derek Price  <derek@ximbiot.com>
77222
77223         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77224         possible.
77225
77226 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77227             Bruno Haible  <bruno@clisp.org>
77228
77229         * modules/inet_ntop: New file.
77230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77231         inet_ntop.
77232
77233 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77234             Bruno Haible  <bruno@clisp.org>
77235
77236         * m4/inet_ntop.m4: New file.
77237
77238 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77239             Bruno Haible  <bruno@clisp.org>
77240
77241         * lib/inet_ntop.h: New file.
77242         * lib/inet_ntop.c: New file, from glibc with modifications.
77243
77244 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77245
77246         * modules/time_r (License): Change to LGPL.
77247         * modules/extensions (License): Change to LGPL.  Actually,
77248         the license is more permissive than that, but currently gnulib-tool
77249         doesn't know how to handle more-permissive licenses.
77250
77251         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77252         Problem reported by Dave Love.
77253
77254 2005-05-08  Jim Meyering  <jim@meyering.net>
77255
77256         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77257         blank.
77258
77259 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77260
77261         * modules/argmatch (Depends-on): Add stdbool.
77262         * modules/backupfile (Depends-on): Likewise.
77263         * modules/chdir-long (Depends-on): Likewise.
77264         * modules/closeout (Depends-on): Likewise.
77265         * modules/cycle-check (Depends-on): Likewise.
77266         * modules/dirname (Depends-on): Likewise.
77267         * modules/fnmatch (Depends-on): Likewise.
77268         * modules/fsusage (Depends-on): Likewise.
77269         * modules/fwriteerror (Depends-on): Likewise.
77270         * modules/getcwd (Depends-on): Likewise.
77271         * modules/getloadavg (Depends-on): Likewise.
77272         * modules/hard-locale (Depends-on): Likewise.
77273         * modules/makepath (Depends-on): Likewise.
77274         * modules/mountlist (Depends-on): Likewise.
77275         * modules/nanosleep (Depends-on): Likewise.
77276         * modules/posixtm (Depends-on): Likewise.
77277         * modules/quotearg (Depends-on): Likewise.
77278         * modules/readtokens (Depends-on): Likewise.
77279         * modules/readtokens0 (Depends-on): Likewise.
77280         * modules/readutmp (Depends-on): Likewise.
77281         * modules/save-cwd (Depends-on): Likewise.
77282         * modules/strftime (Depends-on): Likewise.
77283         * modules/userspec (Depends-on): Likewise.
77284         * modules/utimecmp (Depends-on): Likewise.
77285         * modules/xgetcwd (Depends-on): Likewise.
77286         * modules/xnanosleep (Depends-on): Likewise.
77287         * modules/xstrtod (Depends-on): Likewise.
77288         * modules/yesno (Depends-on): Likewise.
77289
77290 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77291
77292         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77293         needless checks.
77294
77295 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         Merge from coreutils.  Among other things,
77298         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77299         * lib/fd-safer.c: New file.
77300         * lib/fcntl-safer.h, open-safer.c: Remove.
77301         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77302         * lib/dup-safer.c: Include unistd-safer.h first.
77303         Don't include errno.h.
77304         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77305         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77306         * lib/file-type.c: Rely on file-type.h change.
77307         * lib/getloadavg.c: Include unistd-safer.h.
77308         (getloadavg): Use safer open.
77309         * lib/getusershell.c: Include "stdio-safer.h".
77310         (getusershell): Use safer fopen.
77311         * lib/long-options.c (long_options): Use NULL rather than 0.
77312         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77313         'free'.
77314         * lib/modechange.c: Likewise.
77315         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77316         (MODE_DONE): New constant.
77317         (struct mode_change): Remove 'next' member.
77318         (make_node_op_equals): New function; like the old one of the
77319         same name, except it allocates an array.
77320         (mode_compile, mode_create_from_ref): Use it.
77321         (mode_compile): Allocate result as an array, not a linked list.
77322         Parse octal string ourself, so that we catch mistakes like "+0".
77323         (mode_adjust): Arg is an array, not a linked list.
77324         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77325         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77326         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77327         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77328         Remove.  This is now stat-macros.h's job.
77329         (talloc): Remove.  All callers replaced by xalloc, so that
77330         our invokers don't have to worry about reporting memory failures.
77331         (make_node_op_equals): Remove.
77332         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77333         New constants.
77334         (struct mode_change): Moved here from modechange.h.
77335         (mode_append_entry): Remove.
77336         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77337         apps to have incorrect behavior.  Use simpler algorithm for head
77338         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77339         Detect more invalid usages rather than having somewhat-random behavior.
77340         Don't insert an "a=" action, as that leads to incorrect behavior.
77341         (mode_compile, mode_create_from_ref): Return NULL on error instead
77342         of an enum, since now there's only one way to have an error.  All
77343         callers changed.
77344         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77345         at the correct time.  Simplify calculation of "+u" and its ilk.
77346         Don't mishandle "+X".
77347         (mode_free): Remove "register" and localize decls.
77348         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77349         (struct mode_change): Move to modechange.c; callers don't
77350         need to see this stuff.
77351         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77352         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77353         (mode_change, mode_adjust): Reflect the new signatures noted above.
77354         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77355         that might redefine system include files.
77356         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77357         (my_usleep): Use NULL rather than (void *) 0.
77358         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77359         Use siginterrupt to specify that system calls should be interrupted.
77360         (rpl_nanosleep): Move initialization of suspended closer to call of
77361         my_usleep.
77362         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77363         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77364         (desirable_utmp_entry): New function.
77365         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77366         using x2nrealloc, to simplify logic.
77367         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77368         size calculation.  Do not assume utmp file is a regular file.
77369         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77370         (READ_UTMP_CHECK_PIDS): New constant.
77371         * lib/save-cwd.c: Include unistd-safer.h.
77372         (save_cwd): Use fd_safer.
77373         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77374         [!_LIBC] Include "stat-macros.h" instead.
77375         * lib/unistd-safer.h (fd_safer): New decl.
77376
77377 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         * modules/getloadavg (Depends-on): Add unistd-safer.
77380         * modules/getusershell (Depends-on): Add stdio-safer.
77381         * modules/lstat (Depends-on): Remove xalloc.
77382         * modules/mkstemp (Depends-on): Add stat-macros.
77383         * modules/modechange (Depends-on): Remove xstrtol.
77384         Add stat-macros, xalloc.
77385         * modules/save-cwd (Depends-on): Add unistd-safer.
77386         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77387         * modules/unistd-safer (Files): Add lib/fd-safer.c
77388         (Makefile.am): Remove lib_SOURCES.
77389
77390         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77391         Remove fcntl-safer; unistd-safer supersedes it.
77392
77393 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77394
77395         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77396         AC_HEADER_STAT.
77397         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77398         (gl_PREREQ_CHOWN): Remove.
77399         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77400         it.  Don't require AC_HEADER_STAT.
77401         (gl_PREREQ_LSTAT): Remove.
77402         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77403         Don't require AC_HEADER_STAT.
77404         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77405         (gl_PREREQ_RMDIR): Remove.
77406         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77407         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77408         the stat-macros module a prerequisite.
77409         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77410         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77411         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77412         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77413         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77414         variable names.
77415         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77416         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77417         variable prefixes.
77418         * m4/fcntl-safer.m4: Remove.
77419         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77421         Invoke gl_PREREQ_FD_SAFER.
77422         (gl_PREREQ_FD_SAFER): New macro.
77423         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77424         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77425         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77426         Remove duplicate call to AC_LIBOBJ(readutmp).
77427         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77428
77429         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77430         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77431
77432 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77433
77434         * MODULES.html.sh (Misc): Add byteswap.
77435
77436 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77437
77438         * modules/getcwd (Depends-on): Add extensions.
77439         * modules/openat (Depends-on): Likewise.
77440
77441 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77442
77443         * modules/byteswap: New file.
77444
77445 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77446
77447         * m4/byteswap.m4: New file.
77448
77449 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77450
77451         * lib/byteswap_.h: New file.
77452
77453 2005-04-25  Karl Berry  <karl@gnu.org>
77454
77455         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77456
77457 2005-04-25  Albert Chin  <china@thewrittenword.com>
77458
77459         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77460         Toolkit C bug.
77461
77462 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77463
77464         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77465         (func_ln_if_changed): Remove forcibly for no error message
77466         in case file does not exist.
77467
77468 2005-04-19  Simon Josefsson  <jas@extundo.com>
77469
77470         * gnulib-tool (Options): Make --symlink mean --symbolic.
77471
77472 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77473
77474         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77475
77476 2005-04-16  Simon Josefsson  <jas@extundo.com>
77477
77478         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77479
77480 2005-04-15  Simon Josefsson  <jas@extundo.com>
77481
77482         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77483
77484 2005-04-15  Simon Josefsson  <jas@extundo.com>
77485
77486         * gnulib-tool: Rename --symlink to --symbolic.
77487
77488 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77489
77490         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77491         symbolic links to files instead of copying/moving.  Add --aux-dir,
77492         specifying directory relative --dir where auxiliary build tools
77493         are placed.
77494
77495 2005-04-14  Bruno Haible  <bruno@clisp.org>
77496
77497         * modules/allocsa (License): Change to LGPL.
77498         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77499
77500 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77503         that "UTC +1 second" continues to work.  Problem reported
77504         by Dmitry V. Levin.
77505         (relunit_snumber): New rule.
77506         (relunit): Use it.
77507
77508 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * lib/getdate.y (universal_time_zone_table): New constant.
77511         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77512         universal_time_zone_table.
77513         (lookup_zone): Prefer universal_time_zone_table to
77514         local_time_zone_table, so that "GMT" time stamps are allowed in
77515         London during the summer.  Problem reported by Ian Abbott.
77516
77517 2005-04-12  Jim Meyering  <jim@meyering.net>
77518
77519         * lib/human.c (humblock): Set *options even when returning due to
77520         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77521         warning from gcc-4.
77522
77523 2005-04-09  Jim Meyering  <jim@meyering.net>
77524
77525         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77526         -Wuninitialized: initialize tm0.tm_year.
77527
77528 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77531         count, since there's no maximum.  All uses changed.
77532         Add member dsts_seen.
77533         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77534         not being INT_MAX.
77535         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77536         Use pc_rels_seen to decide whther a date is absolute.
77537
77538         * lib/getdate.y (number): Don't overwrite year.
77539         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77540         check.
77541
77542 2005-04-02  Simon Josefsson  <jas@extundo.com>
77543
77544         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77545         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77546
77547 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77548
77549         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77550         where no absolute path name can be longer than PATH_MAX.
77551
77552 2005-03-27  Jim Meyering  <jim@meyering.net>
77553
77554         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77555
77556 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77559         "one's complement" -> "ones' complement" in comment, as per Knuth.
77560         "value of type" -> "type or expression" in comment.
77561         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77562
77563 2005-03-26  Jim Meyering  <jim@meyering.net>
77564
77565         Comment nits.
77566         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77567         Correct typos: s/or/of/.
77568
77569 2005-03-26  Jim Meyering  <jim@meyering.net>
77570
77571         * modules/check-include-files: Move to ../ and rename to...
77572         * check-module: ...this.
77573
77574 2005-03-25  Jim Meyering  <jim@meyering.net>
77575
77576         * modules/xvasprintf (Files): Add xalloc.h.
77577
77578 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         * modules/gettext (Files): config/config.rpath ->
77581         build-aux/config.rpath
77582         * modules/iconv (Files): Likewise.
77583         Problem reported by Oskar Liljeblad.
77584
77585 2005-03-23  Jim Meyering  <jim@meyering.net>
77586
77587         * modules/check-include-files: New script to check for
77588         missing dependencies, multiple includes, etc.
77589
77590         * modules/c-strtold (Depends-on): Add xalloc.
77591         * modules/c-strtod (Depends-on): Add xalloc.
77592         * modules/hash (Depends-on): Add xalloc.
77593         (Files): Remove lib/xalloc.h.
77594
77595         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77596         * modules/userspec (Files): Add lib/inttostr.h.
77597
77598 2005-03-23  Jim Meyering  <jim@meyering.net>
77599
77600         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77601
77602 2005-03-22  Jim Meyering  <jim@meyering.net>
77603
77604         * modules/stat-macros: New module.
77605         * modules/canonicalize, modules/euidaccess, modules/file-type,
77606         * modules/filemode, modules/lchown, modules/makepath,
77607         * modules/rmdir, modules/stat: Depend on new stat-macros module
77608         rather than listing lib/stat-macros.h manually.
77609         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77610
77611 2005-03-22  Jim Meyering  <jim@meyering.net>
77612
77613         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77614
77615 2005-03-22  Bruno Haible  <bruno@clisp.org>
77616
77617         * config/srclist.txt: Replace target directory 'config' with
77618         'build-aux'.
77619         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77620         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77621         ../build-aux/.
77622
77623 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77624
77625         * modules/chdir-long (Depends-on): Add mempcpy.
77626
77627         * modules/acl, modules/backupfile, modules/c-strtod,
77628         modules/c-strtold, modules/canon-host, modules/canonicalize,
77629         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77630         modules/exclude, modules/exitfail, modules/file-type,
77631         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77632         modules/getdate, modules/getline, modules/getpagesize,
77633         modules/getpass, modules/getugroups, modules/group-member,
77634         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77635         modules/inttostr, modules/long-options, modules/makepath,
77636         modules/md5, modules/memcasecmp, modules/memcoll,
77637         modules/modechange, modules/mountlist, modules/path-concat,
77638         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77639         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77640         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77641         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77642         modules/strftime, modules/strndup, modules/strverscmp,
77643         modules/timespec, modules/unlocked-io, modules/userspec,
77644         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77645         modules/yesno:
77646         Remove lib_SOURCES line from Makefile.am section, as this is now
77647         done automatically by the corresponding Autoconf macro.
77648
77649 2005-03-21  Jim Meyering  <jim@meyering.net>
77650
77651         Changes imported from coreutils.
77652
77653         * lib/cycle-check.c: Don't include xalloc.h.
77654
77655         * lib/path-concat.c: Don't include assert.h.
77656         (path_concat): Remove assertion that would have triggered
77657         for ABASE starting with more than one slash.
77658         Reported by Andreas Schwab.
77659
77660         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77661         properly when ABASE is an absolute file name.
77662         Correct the description of this function.
77663         Include <assert.h>.
77664         Add an assertion and a test driver.
77665         This fixes a bug introduced on 2004-07-02.
77666         Andreas Schwab reported the resulting failure of cp --parents:
77667         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77668
77669 2005-03-21  Jim Meyering  <jim@meyering.net>
77670
77671         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77672         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77673
77674 2005-03-21  Jim Meyering  <jim@meyering.net>
77675         and  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77678         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77679         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77680         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77681         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77682         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77683         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77684         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77685         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77686         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77687         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77688         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77689         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77690         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77691         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77692         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77693         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77694         for these modules.
77695
77696 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77699         (which shouldn't happen), generate nothing instead of returning 0
77700         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77701
77702 2005-03-16  Bruno Haible  <bruno@clisp.org>
77703
77704         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77705         HAVE_LONGLONG_64BIT.
77706
77707 2005-03-16  Bruno Haible  <bruno@clisp.org>
77708
77709         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77710         HAVE_LONGLONG_64BIT.
77711
77712 2005-03-16  Bruno Haible  <bruno@clisp.org>
77713
77714         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77715         HAVE_LONGLONG_64BIT.
77716
77717 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77720         reliably distinguish strftime failure from empty output on POSIX
77721         hosts.
77722
77723 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77726         (iconv_string): Don't guess a size-zero buffer, as that might cause
77727         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77728         result would be 'too large', where 'too large' is (heuristically)
77729         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77730         overflow concerns.  This will prevent some unwanted malloc failures
77731         when the inputs are very large.
77732
77733 2005-03-15  Karl Berry  <karl@gnu.org>
77734
77735         * config/srclist.txt (config.rpath): from gettext.
77736         * config/config.rpath: update.
77737
77738 2005-03-15  Bruno Haible  <bruno@clisp.org>
77739
77740         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77741         to 'negate'.
77742
77743         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77744         variable.
77745
77746         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77747         results.
77748
77749 2005-03-14  Simon Josefsson  <jas@extundo.com>
77750
77751         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77752         <fx@gnu.org>.
77753
77754 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77755
77756         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77757         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77758         intprops.h.
77759         * lib/strtol.c: Likewise.
77760
77761 2005-03-14  Jim Meyering  <jim@meyering.net>
77762
77763         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77764         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77765         to be nonzero so that we (and caller) can detect the difference
77766         between a valid zero-length expansion and an error return, even
77767         when the underlying strftime fails before writing anything into
77768         that location.
77769
77770 2005-03-14  Bruno Haible  <bruno@clisp.org>
77771
77772         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77773         Update from GNU gettext 0.14.3.
77774
77775 2005-03-10  Jim Meyering  <jim@meyering.net>
77776
77777         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77778
77779 2005-03-10  Jim Meyering  <jim@meyering.net>
77780
77781         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77782         so that this module works on systems without fchdir.
77783
77784 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         Factor int-properties macros into a single file, except for
77787         glibc-related files.
77788         * lib/intprops.h: New file.
77789         * lib/getloadavg.c: Include it instead of limits.h.
77790         (INT_STRLEN_BOUND): Remove.
77791         * lib/human.c: Include intprops.h.
77792         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77793         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77794         302/1000.
77795         * lib/inttostr.h: Include intprops.h instead of limits.h.
77796         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77797         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77798         for consistency with intprops.h.
77799         (time_t_is_integer, twos_complement_arithmetic): Use them.
77800         * lib/sig2str.h: Include <signal.h>, intprops.h.
77801         (INT_STRLEN_BOUND): Remove.
77802         * lib/strftime.c (TYPE_SIGNED): Remove.
77803         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77804         * lib/strtol.c: Adjust comments to match intprops.h.
77805         * lib/userspec.c: Include intprops.h.
77806         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77807         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77808         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77809         instead of rolling our own expressions.
77810         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77811
77812         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77813         instead of int.
77814         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77815         the right thing even if adding 1900 would overflow.  Similarly
77816         for tm_mon + 1 and tm_yday + 1.
77817         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77818         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77819         (DO_SIGNED_NUMBER): New macro.
77820         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77821
77822 2005-03-07  Bruno Haible  <bruno@clisp.org>
77823
77824         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77825
77826 2005-03-07  Bruno Haible  <bruno@clisp.org>
77827
77828         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77829
77830 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77831
77832         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77833         (func_import): Only replace files via --import when they have actually
77834         changed.
77835
77836 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77837
77838         * m4/mmap-anon.m4: New file.
77839         * m4/pagealign_alloc.m4: New file.
77840
77841 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77842             Bruno Haible  <bruno@clisp.org>
77843
77844         * modules/pagealign_alloc: New file.
77845         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77846
77847 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77848             Bruno Haible  <bruno@clisp.org>
77849
77850         * lib/pagealign_alloc.h: New file.
77851         * lib/pagealign_alloc.c: New file.
77852
77853 2005-03-03  Bruno Haible  <bruno@clisp.org>
77854
77855         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77856         Use an all-permissive copyright notice, recommended by RMS.
77857
77858 2005-03-02  Bruno Haible  <bruno@clisp.org>
77859
77860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77861         of AIX, the replacement has to be done only after <string.h> is
77862         included, therefore not in config.h. stpncpy.h does the replacement,
77863         and stpncpy.c uses it.
77864
77865 2005-03-02  Bruno Haible  <bruno@clisp.org>
77866
77867         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77868         stpncpy.c uses it.
77869
77870 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77871
77872         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77873         The workaround isn't strictly needed for POSIX conformance, and
77874         it's too much of a pain to configure and maintain.  We'll ask
77875         people to fix their kernels instead.
77876         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77877         (NANOSLEEP_BUG_WORKAROUND): Remove.
77878         (xnanosleep): Remove the workaround.
77879
77880 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77883         Reported by Derek Price.
77884         (Include): Add "timespec.h".
77885
77886         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77887
77888 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77889
77890         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77891         to detect nanosleep bug.
77892
77893 2005-03-01  Bruno Haible  <bruno@clisp.org>
77894
77895         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77896
77897 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * modules/gethrxtime: New file.
77900         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77901         (Depends-on): Add gethrxtime.
77902         (configure.ac): Add gl_XNANOSLEEP.
77903         (Makefile.am): Remove lib_SOURCES line.
77904
77905 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77908         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77909
77910 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77911
77912         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77913         * lib/timespec.h (gettime): Return void, since it always
77914         succeeds now.  All uses changed.
77915         * lib/gettime.c (gettime): Likewise.
77916         [HAVE_NANOTIME]: Prefer nanotime.
77917         Assume gettimeofday succeeds, as POSIX requires.
77918         Assime time () succeeds, since other code already does.
77919         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77920         (timespec_subtract): Remove.
77921         (NANOSLEEP_BUG_WORKAROUND): New constant.
77922         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77923         things considerably.  Use it only on GNU/Linux hosts, since the
77924         workaround shouldn't be needed elsewhere.
77925
77926 2005-02-24  Bruno Haible  <bruno@clisp.org>
77927
77928         * modules/gettext (Files): Add m4/glibc2.m4.
77929
77930 2005-02-24  Bruno Haible  <bruno@clisp.org>
77931
77932         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77933         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77934         * m4/progtest.m4:
77935         Update from GNU gettext 0.14.2.
77936         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77937
77938 2005-02-24  Bruno Haible  <bruno@clisp.org>
77939
77940         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77941         * lib/config.charset: Update from GNU gettext 0.14.2.
77942
77943 2005-02-24  Bruno Haible  <bruno@clisp.org>
77944
77945         * lib/gettext.h: Update from GNU gettext 0.14.2.
77946
77947 2005-02-23  Simon Josefsson  <jas@extundo.com>
77948
77949         * m4/iconvme.m4: New file.
77950
77951 2005-02-23  Jim Meyering  <jim@meyering.net>
77952
77953         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77954         change.
77955         Thanks to Bruno Haible for catching it.
77956
77957 2005-02-22  Simon Josefsson  <jas@extundo.com>
77958
77959         * modules/iconvme: New file.
77960
77961         * MODULES.html.sh: Add iconvme.
77962
77963 2005-02-22  Simon Josefsson  <jas@extundo.com>
77964
77965         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77966
77967 2005-02-22  Simon Josefsson  <jas@extundo.com>
77968
77969         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77970
77971 2005-02-22  Jim Meyering  <jim@meyering.net>
77972
77973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77974         s/ifndef/ifdef/.
77975
77976 2005-02-20  Neil Conway  <neilc@samurai.com>
77977
77978         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77979         returned by OSX/Darwin if the specified buffer is not large
77980         enough for the hostname.
77981
77982 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77983
77984         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77985         pass it to _help, otherwise the latter coredumps trying to
77986         dereference state.root_argp.
77987
77988 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * modules/chdir-long (Depends-on): Add memrchr.
77991         * modules/memrchr (Files): Add lib/memrchr.h.
77992         (Include): "memrchr.h".
77993
77994 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77995
77996         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77997
77998 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * lib/memrchr.h: New file.
78001         * lib/chdir-long.c: Include it.
78002         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78003         Don't bother including stddef.h.
78004
78005 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78008         inclusion.
78009         Include <sys/types.h>, for dev_t.
78010         (ME_DUMMY, ME_REMOTE): Move from here....
78011         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78012         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78013         Dmitry V. Levin.
78014         Include mountlist.h first, to test the interface.
78015
78016 2005-01-29  Bruno Haible  <bruno@clisp.org>
78017
78018         * lib/progname.c (program_name): Initialize.
78019         Needed when linking statically on MacOS X.
78020
78021 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         Sync from coreutils.
78024         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78025         (Depends-on): Add c-strtod.
78026         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78027
78028 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         Sync from coreutils.
78031         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78032
78033         Remove files that are specific to coreutils.
78034         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78035
78036 2005-01-28  Bruno Haible  <bruno@clisp.org>
78037
78038         * modules/javacomp: New file.
78039         * MODULES.html.sh (Java): Add javacomp.
78040
78041 2005-01-28  Bruno Haible  <bruno@clisp.org>
78042
78043         * m4/javacomp.m4: New file, from GNU gettext.
78044
78045 2005-01-28  Bruno Haible  <bruno@clisp.org>
78046
78047         * lib/javacomp.sh.in: New file, from GNU gettext.
78048         * lib/javacomp.h: New file, from GNU gettext.
78049         * lib/javacomp.c: New file, from GNU gettext.
78050
78051 2005-01-26  Simon Josefsson  <jas@extundo.com>
78052
78053         * lib/gai_strerror.c: Use GPL in header.
78054
78055 2005-01-26  Bruno Haible  <bruno@clisp.org>
78056
78057         * modules/javaexec: New file.
78058         * MODULES.html.sh (Java): Add javaexec.
78059
78060 2005-01-26  Bruno Haible  <bruno@clisp.org>
78061
78062         * m4/javaexec.m4: New file, from GNU gettext.
78063
78064 2005-01-26  Bruno Haible  <bruno@clisp.org>
78065
78066         * lib/javaexec.sh.in: New file, from GNU gettext.
78067         * lib/javaexec.h: New file, from GNU gettext.
78068         * lib/javaexec.c: New file, from GNU gettext.
78069
78070 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78071
78072         * modules/lchown (Depends-on): Remove lchown.h
78073
78074 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78075
78076         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78077         must be defined if the header file was not found, in order
78078         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78079
78080 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78081
78082         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78083         initializers for struct pentry_state.
78084         (__argp_error): Check return value of __asprintf
78085         (__argp_failure): Translate error message
78086
78087         * lib/argp-parse.c: Removed braces around the expansion of N_()
78088
78089 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78090
78091         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78092         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78093         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78094         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78095         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78096         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78097         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78098         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78099         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78100         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78101         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78102         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78103         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78104         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78105         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78106         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78107         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78108         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78109         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78110         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78111         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78112         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78113         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78114         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78115         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78116         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78117         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78118         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78119         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78120         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78121         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78122         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78123         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78124         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78125         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78126         Use an all-permissive copyright notice, recommended by RMS.
78127
78128 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * modules/chdir-long (Depends-on): Remove mempcpy.
78131
78132 2005-01-21  Jim Meyering  <jim@meyering.net>
78133
78134         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78135         same value as for Solaris 9.
78136
78137         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78138         component length.  This included changing the parameter to be
78139         of type `char *' rather than `char const *'.
78140         * lib/chdir-long.h (chdir_long): Update prototype.
78141
78142         * lib/openat.c (fdopendir, fstatat): New functions.
78143         * lib/openat.h: Include headers required for use of DIR and struct
78144         stat.
78145         [AT_SYMLINK_NOFOLLOW]: Define.
78146         (fdopendir, fstatat): Add prototypes.
78147
78148 2005-01-21  Bruno Haible  <bruno@clisp.org>
78149
78150         * modules/classpath: New file.
78151         * MODULES.html.sh (Java): Add classpath.
78152
78153 2005-01-21  Bruno Haible  <bruno@clisp.org>
78154
78155         * lib/classpath.h: New file, from GNU gettext.
78156         * lib/classpath.c: New file, from GNU gettext.
78157
78158 2005-01-20  Simon Josefsson  <jas@extundo.com>
78159
78160         * modules/version-etc-fsf: New file.
78161
78162 2005-01-20  Simon Josefsson  <jas@extundo.com>
78163
78164         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78165         * lib/version-etc.c: Remove version_etc_copyright.
78166         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78167         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78168
78169 2005-01-20  Simon Josefsson  <jas@extundo.com>
78170
78171         * lib/base64.h (isbase64): Add.
78172
78173         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78174         using a unsigned prototype, don't inline.
78175         (base64_decode): Use it.
78176
78177 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78180         it.
78181
78182 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * lib/save-cwd.c (save_cwd): Remove code to support the case
78185         where fchdir is missing or flaky.
78186
78187 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78190
78191 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78194         AC_LIBSOURCES now does this.
78195         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78196         with new ullong_max module.
78197
78198 2005-01-19  Bruno Haible  <bruno@clisp.org>
78199
78200         * modules/sh-quote: New file.
78201         * MODULES.html.sh (Executing programs): Add sh-quote.
78202
78203 2005-01-19  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/sh-quote.h: New file, from GNU gettext.
78206         * lib/sh-quote.c: New file, from GNU gettext.
78207
78208 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         Merge from coreutils.
78211         * m4/ullong_max.m4: New file.
78212         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78213         (gl_MACROS): Assume localeconv exists.
78214
78215 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78216
78217         Merge changes from coreutils, as described below in several
78218         changelogs dated today.
78219
78220         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78221         (O_DIRECTORY): Remove; not needed here, since "." must be
78222         a directory.  All uses removed.
78223         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78224         universal on Suns, and we also need to test for IRIX.
78225         Revamp code to use 'if' rather than '#if'.
78226         Avoid unnecessary comparison of cwd->desc to 0.
78227
78228         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78229         for known valid error numbers rather than observed invalid ones.
78230
78231 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         * modules/ullong_max: New file.
78234
78235         * modules/chdir-long, modules/openat: New files.
78236         * modules/save-cwd (Depends-on): Depend on chdir-long.
78237         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78238
78239 2005-01-18  Jim Meyering  <jim@meyering.net>
78240
78241         Merge from coreutils.
78242         * m4/chdir-long.m4, m4/openat.m4: New files.
78243         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78244         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78245         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78246         is sane and DOES follow symlinks.  Besides, testing 20 different
78247         systems found no broken chown implementations.
78248         Prompted by a change in rsync's copy of this macro.
78249         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78250
78251         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78252
78253         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78254         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78255         NULL-means-set-to-current-time semantics.
78256         Remove temporary file immediately, rather than waiting
78257         for configure's at-exit trap code to do it.
78258
78259 2005-01-18  Jim Meyering  <jim@meyering.net>
78260
78261         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78262
78263         * lib/utimens.c (futimens): Account for the fact that futimes
78264         can also fail with errno == ENOSYS or errno == ENOENT.
78265         Patch from Dmitry V. Levin.
78266
78267         Change the name of the robust chdir function from chdir to chdir_long.
78268         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78269         (restore_cwd): Use chdir_long, not chdir.
78270         * lib/chdir-long.c: Renamed from chdir.c.
78271         * lib/chdir-long.h: Renamed from chdir.h.
78272         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78273         Hurd.
78274
78275 2005-01-18  Bruno Haible  <bruno@clisp.org>
78276
78277         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78278         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78279         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78280         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78281         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78282         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78283         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78284         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78285         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78286         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78287         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78288         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78289         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78290         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78291         Use an all-permissive copyright notice, recommended by RMS.
78292
78293 2005-01-18  Bob Proulx  <bob@proulx.com>
78294
78295         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78296         simplify offsetof() macro construct to avoid compile failure with
78297         native HP-UX 11.0 ANSI C compiler.
78298
78299 2005-01-17  Bruno Haible  <bruno@clisp.org>
78300
78301         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78302         redundant because stpncpy.m4 takes care of it.
78303
78304 2005-01-17  Bruno Haible  <bruno@clisp.org>
78305
78306         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78307
78308 2005-01-17  Bruno Haible  <bruno@clisp.org>
78309
78310         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78311         used.
78312
78313 2005-01-17  Bruno Haible  <bruno@clisp.org>
78314
78315         * lib/fwriteerror.h (fwriteerror): Change specification to include
78316         fclose.
78317         * lib/fwriteerror.c: Include <stdbool.h>.
78318         (fwriteerror): At the end, close the file stream. Record whether
78319         stdout was already closed.
78320
78321 2005-01-17  Bruno Haible  <bruno@clisp.org>
78322
78323         * lib/execute.c (environ): Declare if needed.
78324         * lib/pipe.c (environ): Likewise.
78325         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78326
78327 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78328
78329         * modules/argp: Depend on vsnprintf
78330
78331 2005-01-10  Jim Meyering  <jim@meyering.net>
78332
78333         * modules/closeout (Depends-on): Add atexit.
78334
78335 2005-01-06  Bruno Haible  <bruno@clisp.org>
78336
78337         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78338
78339 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78340
78341         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78342         definitions to be after all include files, to avoid collisions.
78343         Problem reported by Bob Proulx.
78344
78345 2005-01-04  Jim Meyering  <jim@meyering.net>
78346
78347         Changes imported from coreutils.
78348         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78349         as the mkstemp template, use a temporary directory and an
78350         8.3-friendly template to avoid trouble on systems like DJGPP.
78351         Reported by Juan M. Guerrero via Stepan Kasal.
78352         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78353         close. Remove the temporary directory right away, rather than waiting
78354         for configure's at-exit trap code to do it.
78355         Suggestion from Stepan Kasal.
78356
78357 2005-01-01  Simon Josefsson  <jas@extundo.com>
78358
78359         * gnulib-tool: Print #include directives when --import'ing.
78360
78361 2004-12-28  Simon Josefsson  <jas@extundo.com>
78362
78363         * tests/test-base64.c: Include required header files.  Remove
78364         unused variables.
78365
78366 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78367
78368         * modules/error (Depends-on): Remove gettext.
78369
78370 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78373         not needed.  This removes a dependency on the gettext module.
78374         [defined _LIBC]: Do not include <libintl.h>; not needed.
78375
78376 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78379         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78380
78381 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78384         HAVE_DECL_STRTOLD.
78385
78386 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * modules/getdate (Depends-on): Remove alloca-opt.
78389
78390 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78393
78394 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * lib/argp-parse.c: Include <stddef.h>.
78397         (alignof, alignto): New macros.
78398         (parser_init): Don't assume that void * is aligned sufficiently
78399         for struct option.
78400
78401         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78402         need to extend the stack.
78403         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78404         large.
78405
78406 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78407
78408         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78409
78410 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78413         (2004-10-24) change.  Apparently this was a false alarm.
78414
78415         * modules/getdate: Depend on alloca-opt, not alloca.
78416
78417 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78420         Remove now-obsolete comment about AIX.
78421         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78422         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78423         (YYMAXDEPTH): New macro.
78424
78425 2004-12-18  Simon Josefsson  <jas@extundo.com>
78426
78427         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78428
78429 2004-12-18  Bruno Haible  <bruno@clisp.org>
78430
78431         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78432
78433 2004-12-18  Bruno Haible  <bruno@clisp.org>
78434
78435         * lib/fatal-signal.c (fatal_signals): Make non-const.
78436         (init_fatal_signals): New function.
78437         (uninstall_handlers, install_handlers): Ignore signals that were set to
78438         SIG_IGN.
78439         (at_fatal_signal): Call init_fatal_signals.
78440         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78441         SIG_IGN.
78442         Reported by Paul Eggert.
78443
78444 2004-12-18  Bruno Haible  <bruno@clisp.org>
78445
78446         * doc/alloca.texi: New file.
78447         * doc/alloca-opt.texi: New file.
78448
78449 2004-12-17  Jim Meyering  <jim@meyering.net>
78450
78451         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78452         Otherwise, install-sh could exit with improper exit status when
78453         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78454
78455 2004-12-16  Simon Josefsson  <jas@extundo.com>
78456
78457         * tests/test-base64.c: Add license.
78458
78459 2004-12-15  Stepan Kasal  <address@hidden>
78460
78461         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78462
78463 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * modules/getcwd (Files): Add m4/d-ino.m4.
78466         Suggested by Mark D. Baushke.
78467
78468 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * lib/getdate.y (textint): New member "negative".
78471         (time_zone_hhmm): New function.
78472         Expect 14 shift-reduce conflicts, not 13.
78473         (o_colon_minutes): New rule.
78474         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78475         (yylex): Set the "negative" member of signed numbers.
78476
78477 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         * doc/getdate.texi (Time of day items, Time zone items):
78480         Describe new formats +00:00, UTC+00:00.
78481
78482 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78483
78484         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78485         spurious "-l"s.  Problem reported by Stepan Kasal.
78486
78487 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78488
78489         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78490         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78491
78492 2004-12-04  Simon Josefsson  <jas@extundo.com>
78493
78494         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78495         Vandoorselaere <yoann@prelude-ids.org>.
78496
78497 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         Changes imported from coreutils.
78500         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78501         exist.
78502         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78503
78504 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78505
78506         Changes imported from coreutils.
78507         * lib/hard-locale.c: Assume <locale.h> exists.
78508         Include "strdup.h".
78509         (GLIBC_VERSION): New macro.
78510         (hard_locale): Assume setlocale exists.
78511         Rewrite to avoid #ifdef.
78512         Use strdup rather than malloc + strcpy.
78513         * lib/human.c: Assume <locale.h> exists.
78514         (human_readable): Assume localeconv exists.
78515
78516 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         * modules/hard-locale (Depends-on): Add strdup.
78519
78520 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78521
78522         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78523         convert T2, not T.  (Imported from libc.)
78524
78525 2004-11-30  Simon Josefsson  <jas@extundo.com>
78526
78527         * modules/restrict (License): Change to LGPL.
78528
78529 2004-11-30  Simon Josefsson  <jas@extundo.com>
78530
78531         * m4/restrict.m4: Add copyright and copying conditions.
78532
78533 2004-11-30  Simon Josefsson  <jas@extundo.com>
78534
78535         * m4/base64.m4: New file.
78536
78537 2004-11-30  Simon Josefsson  <jas@extundo.com>
78538
78539         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78540         base64.
78541
78542         * tests/test-base64.c: New file.
78543
78544         * modules/base64: New file.
78545
78546 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78547
78548         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78549         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78550
78551         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78552
78553 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78554
78555         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78556         (__getcwd.c): Don't restore errno; glibc doesn't.
78557         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78558         first, falling back to our code only if its results look suspicious.
78559         Ensure that the resulting buffer is only as large as necessary.
78560
78561         * lib/readutmp.c: Include readutmp.h first.
78562         Include <errno.h>, since readutmp.h no longer does that.
78563         * lib/readutmp.h: Don't include <errno.h>,
78564         <sys/param.h>, <time.h>; not needed to establish interface.
78565         (errno): Remove decl.
78566         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78567         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78568         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78569
78570 2004-11-28  Simon Josefsson  <jas@extundo.com>
78571
78572         * lib/base64.h, base64.c: New file.
78573
78574 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78577
78578 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78581         (Depends-on): Remove pathmax, same.  Add mempcpy.
78582         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78583         (Makefile.am): Append getcwd.h to lib_SOURCES.
78584         (Include): Add getcwd.h.
78585         (Maintainer): Change from Jim Meyering to "all, glibc",
78586         since getdate now uses intended-for-glibc code.
78587         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78588         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78589
78590 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78593         HP's ANSI C compiler.
78594         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78595         Declaring int functions causes warnings on some modern systems and
78596         shouldn't be needed to compile on ancient ones.
78597         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78598         defined.
78599
78600         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78601         with the following changes.
78602         (__set_errno): Parenthesize properly.
78603         Include <stdbool.h>.
78604         (MIN, MAX, MATCHING_INO): New macros.
78605         (__getcwd): Define with prototype, not K&R form.
78606         Use heuristics to allocate default buffer on stack if possible.
78607         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78608         behavior, and to avoid the PATH_MAX limit when computing
78609         ../../../../...
78610         Use MATCHING_INO to compare inode number to file.
78611         Check for arithmetic overflow in size calculations.
78612         Fix bug in reallocation of dot array that caused getcwd to fail
78613         on directories nested deeper than 75.
78614         Be more careful about saving errno on error.
78615         Do not use realloc; use only free+malloc, as this is a bit
78616         more flexible and avoids a needless copy operation.
78617         Do not inspect st_dev and st_ino for symbolic links; POSIX
78618         doesn't specify the latter.
78619         Check for closedir errors.
78620         Avoid needless casts.
78621         Use "#ifdef weak_alias" around weak_alias, to be like other
78622         glibc code.
78623         The following changes to getcwd.c have effect only when used in
78624         gnulib; they have no effect inside glibc proper.
78625         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78626         as alloca isn't used.
78627         (alloca, __alloca): Likewise.
78628         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78629         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78630         unconditionally, as gnulib assumes C89 or better.
78631         Do not include <sys/param.h>.
78632         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78633         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78634         better.
78635         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78636         Include <dirent.h> in a way that is compatible with modern Autoconf.
78637         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78638         New macros, if not already defined.
78639         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78640         Use "_LIBC", not "defined _LIBC", for consistency.
78641         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78642         a mempcpy module.
78643         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78644         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78645         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78646         credit only to Jim Meyering and adjust the copyright dates.
78647         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78648         <stdlib.h>, <unistd.h>, "pathmax.h".
78649         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78650         (INITIAL_BUFFER_SIZE): Remove.
78651         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78652
78653 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78656         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78657         Use the _ONCE methods, for efficiency.
78658         Check for fcntl.h.  In test program, include <errno.h>
78659         and <fcntl.h> if available.  Remove old K&R cruft from
78660         test program.  Check for common errors in GNU/Linux,
78661         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78662         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78663         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78664         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78665         name accordingly.
78666         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78667         accommodate new getcwd.c.
78668         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78669         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78670         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78671         that's all we need now.
78672
78673 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78674
78675         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78676         argp-parse.c depends on getopt internals, that means we should
78677         always use our getopt, to be on the safe side.
78678         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78679         order not to spoil the result of an eventual previous invocation
78680         of gl_GETOPT_SUBSTITUTE.
78681
78682 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78683
78684         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78685         redefinition warnings. To avoid them, include the defines
78686         in `#if !defined __need_getopt ... #endif'. The only place
78687         where __getopt_argv_const is used is in definitions
78688         of getopt_long and getopt_long_only below, which are as well
78689         protected by `#ifndef __need_getopt'.
78690         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78691         __need_getopt after including <stdio.h> and <unistd.h> These
78692         headers might have defined it.
78693
78694 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78697
78698 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78699
78700         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78701         (futimens): New function, which uses futimes if available.
78702         (futimens, utimens): Support timespec==NULL, with same semantics
78703         as utime and utimens.
78704         * lib/utimens.h (futimens): New decl.
78705
78706 2004-11-23  Jim Meyering  <jim@meyering.net>
78707
78708         * lib/getopt_.h: Remove trailing blanks.
78709
78710 2004-11-23  Jim Meyering  <jim@meyering.net>
78711
78712         * lib/__fpending.c: Add comment.
78713
78714 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78715
78716         * modules/canonicalize (Depends-on): Add xreadlink.
78717         Problem reported by James Youngman.
78718
78719 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78722         New macros.
78723         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78724         optopt): Use them instead of invoking ## directly; otherwise, the
78725         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78726
78727 2004-11-19  Bruno Haible  <bruno@clisp.org>
78728
78729         * lib/strtok_r.c: Move comments from here...
78730         * lib/strtok_r.h: ... to here.
78731
78732 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78735         implementations that mishandle size_t overflow.
78736
78737 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78740         might fail.  Problem reported by Yoann Vandoorselaere.
78741         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78742         implementations that mishandle size_t overflow.
78743
78744 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         * modules/canon-host (Depends-on): Add strdup.
78747
78748 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78751
78752 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * lib/canon-host.c: Include "strdup.h".
78755         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78756         Use strdup instead of malloc/strcpy to duplicate strings.
78757
78758         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78759         (human_space_before_unit): New constant.
78760         * lib/human.c (human_readable): Support it.
78761
78762         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78763         (xgetcwd): Set errno correctly when failing.
78764         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78765         the failure is actually due to a PATH_MAX problem.
78766
78767         Further getopt changes to make it more likely that glibc will
78768         buy the changes back.
78769         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78770         (getopt): Use it, so to preserve glibc semantic
78771         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78772         when compiling for libc.
78773         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78774         (getopt_long, getopt_long_only): Use it.
78775
78776         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78777         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78778         (getopt): Argv is now char * const *, as per standard.
78779         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78780         not char *__getopt_argv_const *.
78781         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78782         _getopt_long_only_r): Likewise.
78783         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78784         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78785         _getopt_long_r, _getopt_long_only_r): Likewise.
78786         * lib/getopt_.h (__getopt_argv_const): Remove.
78787         (getopt): Argv is now char * const *, as per standard.
78788
78789         * lib/getdate.y (tORDINAL): New token.
78790         (day, relunit): Allow it for relative times.
78791         (relative_time_table): Use tORDINAL for ordinals.
78792
78793 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78794
78795         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78796         Document that "second" isn't allowed as an ordinal number.
78797
78798 2004-11-16  Jim Meyering  <jim@meyering.net>
78799
78800         * modules/closeout (Depends-on): Add fpending.
78801
78802 2004-11-15  Jim Meyering  <jim@meyering.net>
78803
78804         * lib/closeout.c: Include "__fpending.h" once again.
78805         Include <stdbool.h>.
78806         (close_stdout): Don't fail just because stdout was closed initially,
78807         since some programs don't write to stdout in the normal course of
78808         operation (other than --version and --help), and we don't want this
78809         function to make e.g. `touch file >&-' fail.
78810         But do fail if it was closed and someone has tried to write to it.
78811         E.g., `printf foo >&-' must fail.
78812
78813 2004-11-13  Jim Meyering  <jim@meyering.net>
78814
78815         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78816
78817 2004-11-12  Simon Josefsson  <jas@extundo.com>
78818
78819         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78820         small doc fix is still pending.
78821
78822 2004-11-11  Simon Josefsson  <jas@extundo.com>
78823
78824         * modules/strtok_r: New file.
78825
78826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78827         strtok_r.
78828
78829 2004-11-11  Simon Josefsson  <jas@extundo.com>
78830
78831         * m4/strtok_r.m4: New file.
78832
78833         * m4/getopt.m4: Replace opterr.
78834
78835 2004-11-11  Simon Josefsson  <jas@extundo.com>
78836
78837         * lib/strtok_r.h, strtok_r.c: New file.
78838
78839 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78842         of replacing opterr, getopt, etc.  This should handle the
78843         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78844
78845 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78848         we can stop lying to compilers about the constness of argv when we
78849         are compiled outside glibc.
78850         (getopt, getopt_long, getopt_long_only): Use it.
78851         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78852         _getopt_internal, getopt): Likewise.
78853         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78854         _getopt_long_only_r): Likewise.
78855         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78856         _getopt_long_r, _getopt_long_only_r): Likewise.
78857
78858         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78859         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78860         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78861         the other external symbols.
78862         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78863         declaration, since the above renaming now works around collisions.
78864
78865 2004-11-11  Jim Meyering  <jim@meyering.net>
78866
78867         * lib/linebreak.c: Remove trailing blanks.
78868         * lib/alloca_.h: Likewise.
78869         * lib/acosl.c: Likewise.
78870         * lib/euidaccess.c: Likewise.
78871         * lib/allocsa.h: Likewise.
78872
78873 2004-11-10  Simon Josefsson  <jas@extundo.com>
78874
78875         * m4/getaddrinfo.m4: New file.
78876
78877 2004-11-10  Simon Josefsson  <jas@extundo.com>
78878
78879         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78880
78881 2004-11-10  Simon Josefsson  <jas@extundo.com>
78882
78883         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78884         getaddrinfo.
78885
78886         * modules/getaddrinfo: New file.
78887
78888 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78891
78892 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * lib/mktime.c (SHR): New macro, which is a portable
78895         substitute for >> that should work even on Crays.
78896         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78897         Problem reported by Mark D. Baushke in
78898         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78899         * lib/getdate.y (SHR): Likewise.
78900         (tm_diff): Use it.
78901         * lib/strftime.c (SHR): Likewise.
78902         (tm_diff): Use it.
78903         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78904         quote_these_too, so that right shifts are well defined.  All uses
78905         changed.
78906
78907 2004-11-10  Jim Meyering  <jim@meyering.net>
78908
78909         Ensure that no close failure goes unreported.
78910         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78911         return early when it seems there's nothing to flush.
78912         Don't include __fpending.h.
78913
78914 2004-11-10  Jim Meyering  <jim@meyering.net>
78915
78916         * modules/closeout (Depends-on): Remove fpending.
78917
78918 2004-11-10  Jim Meyering  <jim@meyering.net>
78919
78920         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78921
78922 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78923
78924         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78925         gl_FUNC_STRFTIME.
78926         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78927         and AC_REQUIRE when possible, to avoid duplicate checks.
78928         Check for <wchar.h>.
78929
78930 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78933
78934 2004-11-09  Bruno Haible  <bruno@clisp.org>
78935
78936         * m4/sockpfaf.m4: New file.
78937
78938 2004-11-05  Bruno Haible  <bruno@clisp.org>
78939
78940         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78941         Reported by Mark D. Baushke <mdb@cvshome.org>.
78942
78943 2004-11-04  Bruno Haible  <bruno@clisp.org>
78944
78945         2004-09-11  Bruno Haible  <bruno@clisp.org>
78946                 * allocsa.valgrind: New file.
78947         2004-02-06  Bruno Haible  <bruno@clisp.org>
78948                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78949                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78950                 Reported by Christopher Seip <chris.seip@hp.com>.
78951
78952 2004-11-04  Bruno Haible  <bruno@clisp.org>
78953
78954         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78955         (Makefile.am): Distribute it.
78956
78957 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78958
78959         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78960         with errno == ERANGE if the buffer is too small.
78961         Problem reported by Mark D. Baushke.
78962
78963 2004-11-03  Albert Chin  <china@thewrittenword.com>
78964             Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78967         equivalent, substitute $ac_type for equivalent type rather than
78968         blindly using uint32_t *always* which won't work if uint32_t is not
78969         available.  Define _UINT32_T to work around typedef of uint32_t if
78970         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78971         2.5.1.
78972
78973 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78974
78975         * m4/jm-macros.m4: Sync from coreutils.
78976         (gl_MACROS): Check for mbrlen, for pathchk.
78977         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78978
78979 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * lib/xreadlink.c (MAXSIZE): New macro.
78982         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78983         size does not exceed MAXSIZE.  Avoid cast.
78984         As suggested by Mark D. Baushke in
78985         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78986         if readlink fails with buffer size just under MAXSIZE, try again
78987         with MAXSIZE.
78988
78989 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78992
78993 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78994         and  Paul Eggert  <eggert@cs.ucla.edu>
78995
78996         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78997         (get_date): Overparenthesize to avoid GCC warning.
78998
78999 2004-11-02  Bruno Haible  <bruno@clisp.org>
79000
79001         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79002         returns void.
79003
79004 2004-11-02  Bruno Haible  <bruno@clisp.org>
79005
79006         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79007         function returns void.
79008
79009 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79010
79011         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79012         fflush_unlocked, flockfile, funlockfile, funlockfile,
79013         fputs_unlocked, putc_unlocked.
79014
79015 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79018         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79019         already declared.
79020
79021 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * modules/getdate (Files): Add doc/getdate.texi.
79024         (Depends-on): Add setenv, xalloc.
79025
79026 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         * lib/getdate.y: Add support for TZ="foo" within a date string.
79029         Fix some bugs near time_t boundaries.  Reject dates with
79030         out-of-range components, e.g., "Sept 31".
79031         Include <stdlib.h>, "setenv.h", "xalloc.h".
79032         (ISDIGIT_LOCALE): Remove; unused.
79033         Note that the TZ and time functions used here are not reentrant.
79034         (mktime_ok, get_tz): New functions.
79035         (TZBUFSIZE): New constant.
79036         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79037         This requires that we sometimes generate our own TZ="XXX..." setting.
79038
79039 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79040
79041         * doc/getdate.texi: New file, from coreutils with modifications for
79042         the new TZ parsing.
79043
79044 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79045
79046         * lib/mktime.c (not_equal_tm): Remove redundant check.
79047
79048 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         * modules/regex (lib_SOURCES): Add regex.c.
79051         Reported by James Youngman in
79052         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79053
79054 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79055
79056         * lib/getdate.y: Use Bison 1.875 features, and some minor
79057         code cleanups.  This change does not affect semantics.
79058         Don't include <stdlib.h>; no longer needed.
79059         Don't include unlocked-io.h; only the "#if TEST" code uses
79060         stdio, and performance isn't crucial there.
79061         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79062         Bison 1.875 features as described below.
79063         All uses of "PC." replaced by "pc->".
79064         (YYSTYPE): Add a forward declaration.
79065         (yylex, yyerror): Use full prototypes in forward decls.
79066         Use "%pure-parser" rather than obsolescent "%pure_parser".
79067         Use %parse-param and %lex-param instead of obsolescent
79068         YYPARSE_PARAM and YYLEX_PARAM.
79069         (meridian_table, month_and_day_table, time_units_table,
79070         relative_time_table, time_zone_table, military_table,
79071         lookup_zone, lookup_word, get_date):
79072         Use NULL instead of 0 where appropriate.
79073         (to_hour): Avoid abort (), to avoid a dependency on
79074         stdlib.h.
79075         (yyerror, yylex): Now accepts parser_control * arg.
79076         (main) [TEST]: Use '\0' rather than 0 for char.
79077
79078 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79079
79080         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79081
79082 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79085         It's now the caller's responsibility to handle the case where
79086         !HAVE_GETPAGESIZE && !defined getpagesize.
79087
79088         * lib/mktime.c (leapyear): Arg is long int, not int.
79089
79090 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79093
79094 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79097         missing.  Problem reported by James Youngman.
79098
79099 2004-10-16  Simon Josefsson  <jas@extundo.com>
79100
79101         * gnulib-tool: Fix comments.  Fix parse problem.
79102         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79103
79104 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79107         implementation of getopt_long.  Problem reported by Alexander Taler in:
79108         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79109
79110 2004-10-15  Bruno Haible  <bruno@clisp.org>
79111
79112         * gnulib-tool: Untabify. Initialize supplied_libname.
79113         (func_usage): More homogenous output.
79114         (func_modules_transitive_closure, func_modules_to_filelist,
79115         func_emit_lib_Makefile_am): New functions.
79116         (func_import): New function, extracted from big case statement. Use
79117         func_get_license, func_modules_transitive_closure,
79118         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79119         opt_lgpl. Don't use test -a, as it's not portable.
79120         (func_create_testdir): Use func_modules_transitive_closure,
79121         func_modules_to_filelist, func_emit_lib_Makefile_am.
79122
79123 2004-10-15  Bruno Haible  <bruno@clisp.org>
79124
79125         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79126
79127 2004-10-15  Bruno Haible  <bruno@clisp.org>
79128
79129         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79130         the portions belonging to each module.
79131         Suggested by Derek Robert Price <derek@ximbiot.com>.
79132
79133 2004-10-12  Simon Josefsson  <jas@extundo.com>
79134
79135         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79136         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79137         to real functions.
79138
79139 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79140
79141         * modules/vsnprintf: New file.
79142
79143 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79144
79145         * m4/vsnprintf.m4: New file.
79146
79147 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79148
79149         * lib/vsnprintf.h: New file.
79150         * lib/vsnprintf.c: New file.
79151
79152 2004-10-11  Bruno Haible  <bruno@clisp.org>
79153
79154         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79155         vsnprintf.
79156
79157 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79158
79159         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79160
79161 2004-10-07  Bruno Haible  <bruno@clisp.org>
79162
79163         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79164         fits into the provided buffer.
79165
79166 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * lib/diacrit.c, diacrit.h: Add GPL notice.
79169
79170         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79171         notice.
79172         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79173         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79174         This avoids a potential constant-folding bug.
79175
79176 2004-10-05  Bruno Haible  <bruno@clisp.org>
79177
79178         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79179         for the declaration of strsep.
79180
79181 2004-10-05  Bruno Haible  <bruno@clisp.org>
79182
79183         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79184
79185 2004-10-04  Simon Josefsson  <jas@extundo.com>
79186
79187         * modules/memmem: New file.
79188         * tests/test-memmem.c: New file.
79189         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79190
79191 2004-10-04  Simon Josefsson  <jas@extundo.com>
79192
79193         * m4/memmem.m4: New file.
79194
79195 2004-10-04  Simon Josefsson  <jas@extundo.com>
79196
79197         * lib/memmem.h: New file.
79198         * lib/memmem.c: New file, taken from glibc.
79199
79200 2004-10-04  Simon Josefsson  <jas@extundo.com>
79201
79202         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79203         '#ifdef USE_UNLOCKED_IO'.
79204
79205 2004-10-04  Simon Josefsson  <jas@extundo.com>
79206
79207         * config/srclist.txt: Add memmem from glibc.
79208
79209 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79212
79213         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79214         modules/exclude, modules/getdate, modules/getline,
79215         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79216         modules/getusershell, modules/linebuffer, modules/md5,
79217         modules/mountlist, modules/posixtm, modules/readtokens,
79218         modules/readutmp, modules/regex, modules/sha1,
79219         modules/version-etc, modules/yesno:
79220         Remove dependency on unlocked-io.
79221
79222 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79223
79224         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79225
79226         * m4/unlocked-io.m4: Add copyright notice.
79227         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79228
79229 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79232         * lib/xmalloc.c (xmemdup): Likewise.
79233         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79234         XFREE): Remove these long-obsolescent macros.
79235         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79236         * lib/xstrdup.c: Remove.
79237
79238         * lib/regex.c (re_comp): Cast gettext return value to char *,
79239         Problem reported by Martin Neitzel via Mark D. Baushke.
79240
79241 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79242
79243         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79244         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79245         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79246         regex.c, sha1.c, version-etc.c, yesno.c:
79247         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79248         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79249         the includer's responsibility.
79250
79251         Sync from coreutils.
79252
79253         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79254         points to the start of a string, as the C Standard says the
79255         resulting behavior is undefined.
79256
79257         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79258         simple -> simple_backups, numbered_existing ->
79259         numbered_existing_backups, numbered -> numbered_backups
79260         to avoid shadowing problems.  All uses changed.
79261         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79262         * lib/backupfile.c (check_extension, numbered_backup):
79263         Rename locals to avoid shadowing 'basename'.
79264         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79265         once.
79266
79267         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79268         * lib/.cvsignore: Add getopt.h.
79269
79270 2004-10-04  Bruno Haible  <bruno@clisp.org>
79271
79272         * modules/README: New file.
79273         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79274         not a module.
79275
79276 2004-10-02  Jim Meyering  <jim@meyering.net>
79277
79278         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79279
79280 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79281
79282         * modules/strsep: New file.
79283
79284 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79285
79286         * m4/strsep.m4: New file.
79287
79288 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79289
79290         * lib/strsep.h: New file.
79291         * lib/strsep.c: New file.
79292
79293 2004-10-01  Simon Josefsson  <jas@extundo.com>
79294
79295         * lib/snprintf.c (snprintf): Handle size==0.
79296
79297 2004-10-01  Simon Josefsson  <jas@extundo.com>
79298             Bruno Haible  <bruno@clisp.org>
79299
79300         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79301         (snprintf): Declare 'args'.
79302
79303 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79304
79305         * lib/snprintf.c: Remove comments as to why each header is needed.
79306
79307 2004-10-01  Bruno Haible  <bruno@clisp.org>
79308
79309         * MODULES.html.sh: Add strsep.
79310
79311 2004-09-30  Simon Josefsson  <jas@extundo.com>
79312
79313         * modules/snprintf: New file.
79314
79315 2004-09-30  Simon Josefsson  <jas@extundo.com>
79316
79317         * m4/snprintf.m4: New file.
79318
79319 2004-09-30  Simon Josefsson  <jas@extundo.com>
79320
79321         * lib/snprintf.h, lib/snprintf.c: New files.
79322
79323 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79324
79325         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79326         (hol_entry_help): Never translate an empty string.
79327         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79328         * lib/argp.h (OPTION_NO_TRANS): New option.
79329
79330 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79331
79332         * modules/argp (Maintainer): Replace Simon Josefsson
79333         by Sergey Poznyakoff.
79334
79335 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79338         changes merged back into glibc.
79339
79340 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79343
79344 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79345
79346         * lib/xvasprintf.c: Include xalloc.h.
79347         (xvasprintf): Use xalloc_die, not xmalloc_die.
79348
79349 2004-09-29  Bruno Haible  <bruno@clisp.org>
79350
79351         * modules/alloca-opt: New file, derived from modules/alloca.
79352         * modules/allocsa: Depend on alloca-opt instead of alloca.
79353         * modules/setenv: Likewise.
79354         * modules/vasnprintf: Likewise.
79355         * MODULES.html.sh: Add alloca-opt.
79356
79357 2004-09-28  Simon Josefsson  <jas@extundo.com>
79358
79359         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79360         LGPL, and to replace license template from GPL to LGPL.
79361
79362 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79363
79364         * modules/dummy: Change license to LGPL.
79365
79366 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79367
79368         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79369
79370 2004-09-24  Simon Josefsson  <jas@extundo.com>
79371
79372         * modules/minmax (License): Change from GPL to LGPL.
79373
79374 2004-09-23  Simon Josefsson  <jas@extundo.com>
79375
79376         * gnulib-tool (--import): Typo.
79377
79378 2004-09-23  Simon Josefsson  <jas@extundo.com>
79379
79380         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79381
79382 2004-09-22  Bruno Haible  <bruno@clisp.org>
79383
79384         * modules/*: Add 'License' field.
79385         * gnulib-tool: Accept --extract-license option.
79386         (func_get_license): New function.
79387
79388 2004-09-21  Bruno Haible  <bruno@clisp.org>
79389
79390         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79391         Reported by Simon Josefsson.
79392
79393 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79396         gl_AC_TYPE_LONG_LONG.
79397
79398 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79399
79400         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79401
79402 2004-09-18  Simon Josefsson  <jas@extundo.com>
79403         and  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79406         calls with autoreconf.  Define GL_LIB.
79407
79408 2004-09-14  Karl Berry  <karl@gnu.org>
79409
79410         * config/srclist.txt: unsync setenv.c, sigh.
79411
79412 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79415         Problem reported by Bruno Haible in:
79416         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79417
79418 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * config/srclist.txt: Comment out argp-pvh.c.
79421
79422 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79425         in case some system header has #define'd it.  Problem reported by
79426         Soeren D. Schulze in
79427         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79428
79429 2004-09-09  Karl Berry  <karl@gnu.org>
79430
79431         * regex.[ch]: delete from the root.  These were supposed to be
79432                 synced with emacs cvs, but this has not happened for about
79433                 a year, and anyway nothing else uses emacs regex.[ch].
79434                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79435                 lib/regex[.ch] is untouched.
79436
79437 2004-09-09  Bruno Haible  <bruno@clisp.org>
79438
79439         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79440
79441 2004-09-09  Bruno Haible  <bruno@clisp.org>
79442
79443         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79444         modifications.
79445         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79446
79447 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79448
79449         * modules/xvasprintf: New file.
79450         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79451
79452 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79453
79454         * lib/xvasprintf.h: New file.
79455         * lib/xvasprintf.c: New file.
79456         * lib/xasprintf.c: New file.
79457
79458 2004-09-08  Bruno Haible  <bruno@clisp.org>
79459
79460         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79461
79462 2004-09-08  Bruno Haible  <bruno@clisp.org>
79463
79464         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79465         length is > INT_MAX.
79466         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79467         more.
79468
79469 2004-09-08  Bruno Haible  <bruno@clisp.org>
79470
79471         * lib/stdint_.h: New file, taken from GNU clisp.
79472
79473 2004-09-08  Bruno Haible  <bruno@clisp.org>
79474             Oskar Liljeblad  <oskar@osk.mine.nu>
79475
79476         * modules/stdint: New file.
79477         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79478
79479 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         Import from coreutils.
79482         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79483         strings on unbounded length.  alloca's performance benefits aren't
79484         that important here.
79485         (V_STRDUP): Remove.
79486         (parse_with_separator): New function, with most of the internals
79487         of the old parse_user_spec.  Allow user to omit both user and group,
79488         for compatibility with FreeBSD.
79489         Clone only the user name, not the entire spec.
79490         Do not set *uid, *gid unless entirely successful.
79491         Avoid memory leak in some failing cases.
79492         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79493         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79494         (parse_user_spec): Rewrite to use parse_with_separator.
79495
79496 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79497
79498         * modules/userspec: Don't depend on alloca.
79499
79500 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79501
79502         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79503
79504 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79505
79506         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79507         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79508         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79509
79510 2004-08-16  Simon Josefsson  <jas@extundo.com>
79511
79512         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79513         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79514         Add --dry-run for --import.
79515         Let user provided command line parameters override configure.ac
79516         settings.
79517
79518 2004-08-12  Simon Josefsson  <jas@extundo.com>
79519
79520         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79521         as discussed with Paul Eggert in threads rooted at
79522         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79523         and
79524         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79525         Before, the test was empty, and relied on ELIDE_CODE in source
79526         code.)
79527         (gl_PREREQ_GETOPT): New macro.
79528         (gl_GETOPT): Use them.
79529
79530 2004-08-12  Simon Josefsson  <jas@extundo.com>
79531
79532         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79533         * lib/getopt_.h: Renamed from getopt.h.
79534
79535 2004-08-12  Simon Josefsson  <jas@extundo.com>
79536
79537         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79538         Change default library name from libfoo to libgnu.
79539         Now, if you have a configure.ac that says:
79540                 gl_SOURCE_BASE(gl)
79541                 gl_M4_BASE(gl/m4)
79542                 gl_MODULES(error getopt etcetera)
79543                 gl_INIT
79544         you can import all you need by running:
79545                 ../gnulib/gnulib-tool --import
79546
79547         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79548         (Makefile.am): Rewrite, use logic from argz.
79549         (Include): Use <getopt.h> instead of "getopt.h".
79550
79551 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * modules/argp (Files): Add m4/unlocked-io.m4.
79554         (Depends-on): Add extensions.
79555
79556 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79559         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79560         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79561         Check for program_invocation_name, program_invocation_short_name,
79562         flockfile, funlockfile, features.h, _getopt_long_only_r.
79563
79564 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79565
79566         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79567         its complicated substitute.
79568         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79569         and program_invocation_name.
79570         (__argp_basename) [!_LIBC]: Remove; the only use was
79571         replaced by its body.
79572         (__argp_short_program_name): Change condition from
79573         !defined __argp_short_program_name to
79574         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79575         to match argp-namefrob.h.
79576         (__argp_failure): Don't assume strerror_r returns char *.
79577         * lib/argp-parse.c (N_): Define unconditionally.
79578         (argp_default_options): Fill out initializers with 0 to avoid
79579         gcc warnings.
79580
79581 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79584         getopt1.c.
79585
79586 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         Merge from coreutils.
79589
79590         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79591
79592         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79593         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79594
79595 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79596
79597         Merge from coreutils.
79598
79599         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79600         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79601         for Reliant Unix 5.43.
79602
79603         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79604         (union fooround): Use uintmax_t, not long int.
79605         The rest is a merge from libc:
79606         [defined _LIBC]: Include <shlib-compat.h>.
79607         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79608
79609         * lib/settime.c (settime): Recode to avoid warning with
79610         Sun Forte C 6U2.
79611
79612         * lib/strverscmp.c: Convert to UTF-8.
79613
79614 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79615
79616         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79617         m4/uintmax_t.m4.
79618
79619 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79620
79621         * modules/xalloc-die: New file.
79622         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79623
79624         * modules/md5 (Files): Add m4/uint32_t.m4.
79625         * modules/sha1: Renamed from modules/sha.
79626         (Files):
79627         Rename lib/sha.h to lib/sha1.h.
79628         Rename lib/sha.c to lib/sha1.c.
79629         Rename m4/sha.m4 to m4/sha1.m4.
79630         (lib_SOURCES): Likewise.
79631         (configure.ac): Rename gl_SHA to gl_SHA1.
79632         (Include): sha.h -> sha1.h.
79633
79634 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79637         * m4/sha1.m4: Renamed from sha.m4.
79638         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79639
79640 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * lib/obstack.h (obstack_empty_p):
79643         Don't assume that chunk->contents is suitably aligned.
79644         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79645         Likewise. Problem reported by Benno in
79646         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79647
79648         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79649         readable.  This could be improved further but it'd take some work.
79650
79651 2004-08-08  Simon Josefsson  <jas@extundo.com>
79652
79653         * modules/xgethostname (Depends-on): Remove exit and error (not
79654         used).
79655
79656         * modules/getpass-gnu: Add getpass.h.
79657         (Depends-on): Add stdbool.
79658         * modules/getpass: Add getpass.h.
79659
79660 2004-08-08  Simon Josefsson  <jas@extundo.com>
79661
79662         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79663         Check getpass declaration.
79664
79665 2004-08-08  Simon Josefsson  <jas@extundo.com>
79666
79667         * lib/xgethostname.c: Don't include error.h (not used).
79668
79669         * lib/getpass.h: Add.
79670         * lib/getpass.c: Include getpass.h first.
79671
79672 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79673
79674         * lib/xalloc-die.c: New file.
79675         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79676         All uses removed.
79677         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79678         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79679         xalloc-die.c.
79680         (_, N_, xalloc_die): Move to xalloc-die.c.
79681         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79682         so that we needn't mess with xalloc_msg_memory_exhausted.
79683
79684         * lib/sha1.h: Renamed from sha.h.
79685         (SHA1_H): Renamed from _SHA_H.
79686         (sha1_ctx): Renamed from sha_ctx.
79687         (sha1_init_ctx): Renamed from sha_init_ctx.
79688         (sha1_process_block): Renamed from sha_process_block.
79689         (sha1_process_bytes): Renamed from sha_process_bytes.
79690         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79691         (sha1_read_ctx): Renamed from sha_read_ctx.
79692         (sha1_stream): Renamed from sha_stream.
79693         (sha1_buffer): Renamed from sha_buffer.
79694         * lib/sha1.c: Likewise; renamed from sha.c.
79695         Do not include <sys/types.h>.
79696         Include <stddef.h> rather than <stdlib.h>.
79697
79698 2004-08-08  Bruno Haible  <bruno@clisp.org>
79699
79700         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79701         FILESYSTEM_PREFIX_LEN.
79702         * lib/progreloc.c: Likewise.
79703         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79704
79705 2004-08-06  Simon Josefsson  <jas@extundo.com>
79706
79707         * modules/progname (Depends-on): Don't depend on stdbool.
79708
79709 2004-08-06  Simon Josefsson  <jas@extundo.com>
79710
79711         * modules/getsubopt: New file.
79712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79713         getsubopt.
79714
79715 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         More merge from coreutils.
79718
79719         * m4/utimens.m4, m4/utimecmp.m4: New files.
79720         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79721         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79722         prereq.m4, sha.m4: Import changes from coreutils.
79723
79724 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         More merge from coreutils.
79727         * modules/raise, modules/readtokens0, modules/utimens:
79728         * modules/utimecmp, module/xnanosleep: New files.
79729         * modules/strftime: Add lib/strftime.h.
79730         Change include from <time.h> to "strftime.h".
79731         * modules/yesno: Add lib/yesno.h.
79732         * modules/backupfile: Remove lib/addext.c.
79733         * modules/euidaccess: Add stat-macros.h.
79734         * modules/canonicalize, modules/euidaccess,
79735         modules/filemode, modules/lchown, modules/makepath,
79736         modules/rmdir, modules/stat: Likewise.
79737
79738 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         Merge from tar.
79741         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79742         SIZE_MAX is a valid preprocessor constant.
79743         (__argp_basename): Change from "#ifndef _LIBC"
79744         to "#ifndef __argp_short_program_name", so that
79745         we don't compile these functions for tar.
79746
79747         More merges from coreutils.
79748         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79749         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79750         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79751         * lib/addext.c: Remove; no longer needed.
79752         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79753         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79754         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79755         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79756         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79757         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79758         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79759         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79760         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79761         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79762         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79763         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79764         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79765         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79766         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79767         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79768         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79769         Import changes from coreutils.
79770
79771 2004-08-05  Simon Josefsson  <jas@extundo.com>
79772
79773         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79774
79775 2004-08-05  Simon Josefsson  <jas@extundo.com>
79776
79777         * m4/getsubopt.m4: New file.
79778
79779 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         Merge from coreutils.
79782
79783         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79784         * m4/getcwd-path-max.m4: New files.
79785
79786         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79787         FILESYSTEM_PREFIX_LEN ->
79788         FILE_SYSTEM_PREFIX_LEN.
79789         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79790         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79791         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79792         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79793
79794         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79795         prerequisite modules now handle the DOS stuff.
79796         Don't check for unistd.h.
79797
79798 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         Merge from coreutils.
79801
79802         * lib/.gdb-history: Remove; this doesn't belong here.
79803
79804         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79805         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79806         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79807         * lib/getcwd.c: New files.
79808
79809         * lib/dirname.h: Include <stdbool.h>.
79810         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79811         for consistency with POSIX terminology.  All uses changed.
79812         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79813         (strip_trailing_slashes): Use bool for booleans.
79814         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79815
79816         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79817         sometimes returns a positive errno value even when it succeeds.
79818         (print_errno_message) [!LIBC]: Fall back on strerror if
79819         __strerror_r fails.
79820
79821         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79822         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79823         (longest_relative_suffix): New function.
79824         (path_concat): Use it.  Assume first argument is not NULL.
79825         Port to DOS.  Omit redundant separators.
79826         Report an error instead of returning NULL.
79827         Use mempcpy instead of memcpy.
79828         (xpath_concat): Remove: not declared or used.
79829
79830         * lib/same.h: Include <stdbool.h>
79831         (same_name): Return bool, not int.
79832         * lib/same.c (same_name): Likewise.
79833         (errno): Don't declare; we assume C89 or better now.
79834
79835         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79836         if not already defined.
79837
79838         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79839         * lib/dup-safer.c (errno): Likewise.
79840
79841 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         Merge from coreutils.
79844         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79845         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79846         * modules/path-concat: Don't depend on strdup.
79847
79848 2004-08-03  Simon Josefsson  <jas@extundo.com>
79849
79850         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79851         * lib/progname.h: Don't include stdbool.h.
79852
79853 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79856         * MODULES.html.sh (func_all_modules): Remove fatal.
79857
79858 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79861
79862 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79863
79864         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79865         working.
79866
79867 2004-08-02  Simon Josefsson  <jas@extundo.com>
79868
79869         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79870         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79871         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79872
79873 2004-08-01  Simon Josefsson  <jas@extundo.com>
79874
79875         * lib/xgetdomainname.c: Include stdlib.h, for free().
79876
79877 2004-07-19  Bruno Haible  <bruno@clisp.org>
79878
79879         * MODULES.html.sh (func_all_modules): Add dummy.
79880
79881 2004-07-16  Simon Josefsson  <jas@extundo.com>
79882
79883         * modules/dummy: New file.
79884
79885 2004-07-16  Simon Josefsson  <jas@extundo.com>
79886
79887         * lib/dummy.c: New file.
79888
79889 2004-07-16  Bruno Haible  <bruno@clisp.org>
79890
79891         * lib/backupfile.h: Add extern "C" for C++.
79892         * lib/closeout.h: Likewise.
79893         * lib/copy-file.h: Likewise.
79894         * lib/findprog.h: Likewise.
79895         * lib/full-write.h: Likewise.
79896         * lib/pathname.h: Likewise.
79897         * lib/progname.h: Likewise.
79898         * lib/stpcpy.h: Likewise.
79899         * lib/stpncpy.h: Likewise.
79900         * lib/strcase.h: Likewise.
79901         * lib/strstr.h: Likewise.
79902         * lib/xalloc.h: Likewise.
79903
79904         * lib/mbswidth.h: Add extern "C" for C++.
79905         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79906
79907 2004-07-13  Robert Millan  <robertmh@gnu.org>
79908
79909         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79910
79911 2004-07-09  Simon Josefsson  <jas@extundo.com>
79912
79913         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79914         failed without this.)
79915
79916 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79917
79918         * modules/chown (Files): Add lib/fchown-stub.c, since
79919         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79920
79921 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * lib/fchown-stub.c: New file.
79924
79925 2004-06-24  Jim Meyering  <jim@meyering.net>
79926
79927         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79928
79929 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         * modules/argz: Omit "#include".
79932
79933         * MODULES.html.sh (func_all_modules): Add calloc, to match
79934         2004-06-01 addition of calloc module.
79935
79936 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79937
79938         * m4/argz.m4: New file, which is autoupdated from libtool.
79939
79940 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79943         libtool.
79944
79945 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         * config/srclist-update: Don't insist on "USA." before the
79948         close-comment, as libtool omits the period and puts the */ on a
79949         separate line.
79950         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79951         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79952
79953 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79954
79955         * modules/argz: New file.
79956         * MODULES.html.sh (func_all_modules): Add argz.
79957
79958 2004-06-12  Jim Meyering  <jim@meyering.net>
79959         and  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * modules/hash (Files): Add lib/xalloc.h.
79962         * modules/pipe (Depends-on): Add wait-process.
79963         * modules/stat (Depends-on): Add xalloc.
79964         * modules/userspec (Files): Add lib/userspec.h.
79965         * modules/xstrto
79966
79967         Upgrade from gettext-0.13.
79968         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79969         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79970         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79971
79972 2004-06-10  Jim Meyering  <jim@meyering.net>
79973
79974         * lib/calloc.c: New file.
79975
79976 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * lib/getdate.y (yylex): Allow space between sign and number.
79979         Problem reported by Dan Jacobson.
79980
79981 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         Merge from coreutils CVS.
79984
79985         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79986         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79987         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79988         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79989         xstrtol.m4: Fix copyright date and/or serial number.
79990
79991         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79992         See if we need an fchown replacement.
79993         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79994         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79995         and use the replacement function if we detect either defect.
79996
79997         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79998         gl_UTIMECMP.
79999
80000 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80001         and  Jim Meyering  <jim@meyering.net>
80002
80003         Merge from coreutils CVS.
80004
80005         * lib/stat-macros.h: New file, with contents from file-type.h
80006         and coreutils' system.h.
80007         * lib/file-type.c: Include "stat-macros.h".
80008         * lib/file-type.h (file_type): Move all macro definitions to new file,
80009         stat-macros.h.
80010
80011         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80012         Wrap old code with this conditional.
80013         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80014         function that does not dereference symlinks.
80015         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80016
80017         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80018         dependency problems.
80019         (xreadlink): Accept new arg SIZE, for efficiency.
80020         All decls and uses changed.
80021         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80022
80023         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80024         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80025
80026         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80027         sysexits.h.
80028
80029 2004-06-01  Jim Meyering  <jim@meyering.net>
80030
80031         * m4/calloc.m4: New file.
80032
80033 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80036         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80037         Also, fix a typo in a diagnostic.
80038
80039 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80042         or AC_FUNC_REALLOC.
80043
80044 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80047         macros to be defined.
80048         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80049         the allocator returns NULL because the requested size is zero.
80050
80051 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80054         var.  Add comment explaining why libc still defines it.  This
80055         merges the following patch from glibc:
80056         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80057
80058 2004-05-20  Andreas Schwab  <schwab@suse.de>
80059
80060         * m4/free.m4: Replace free if it not known to work, not the other
80061         way round.
80062
80063 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80064
80065         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80066         present in glibc since revision 1.1 of this file.
80067         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80068         obstack_alignment_mask, obstack_alloc, obstack_base,
80069         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80070         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80071         obstack_grow0, obstack_init, obstack_int_grow,
80072         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80073         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80074         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80075         nonexistent functions.
80076
80077 2004-05-18  Karl Berry  <karl@gnu.org>
80078
80079         * config/srclist.txt: break link for vasnprintf.c.
80080
80081 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         Port obstack to the AS/400, where pointers are 16 bytes wide and
80084         you cannot cast an integer to a valid pointer.  This patch is
80085         currently waiting to be integrated into glibc; see
80086         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80087
80088         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80089         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80090         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80091         (struct obstack): temp member is now a union of a pointer and
80092         an integer, instead of an integer.  All integer uses changed.
80093         This does not affect the physical layout of struct obstack,
80094         except on hosts (like the AS/400) where the size or alignment of
80095         void * is greater than that of ptrdiff_t.
80096         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80097         __STDC__)]: Store temporary in pointer member of union, not
80098         integer member.
80099         * lib/obstack.c: Include <stddef.h>, for offsetof.
80100         (struct fooalign): Remove; it doesn't need a name.
80101         (union fooround): Change double to long double, and add void *.
80102         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80103         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80104         not a macro.  Hence the values are always int; so remove all
80105         casts-to-int in uses.
80106
80107 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80110         we can get this patch merged into glibc.
80111
80112 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80113             Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * m4/argp: Depend on alloca.
80116
80117 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80118             Paul Eggert  <eggert@cs.ucla.edu>
80119
80120         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80121         freecoding.
80122
80123 2004-05-17  Bruno Haible  <bruno@clisp.org>
80124
80125         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80126         precision that consists of a '.' followed by an empty digit string.
80127         Patch by Tor Lillqvist <tml@iki.fi>.
80128
80129 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80132         for backward compatibility with older code.  We need our own
80133         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80134         it under some other name, and our alloca.h will define it.
80135
80136 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80137             Derek Price  <derek@ximbiot.com>
80138
80139         * lib/alloca.c: Include <alloca.h>, to get our interface.
80140         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80141         include <alloca.h> first.  Use C89 prototype for alloca; this
80142         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80143         Use #elif for simplicity, since we can assume C89 now.
80144         Don't try to source the system alloca.h since it will not be found
80145         and to prevent recursively including its replacement.
80146         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80147         * lib/regex.c: Likewise.
80148
80149 2004-05-16  Derek Price  <derek@ximbiot.com>
80150             Paul Eggert  <eggert@cs.ucla.edu>
80151
80152         getline cleanup.  This changes the getndelim2 API: both order of
80153         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80154         no delimiter).
80155
80156         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80157         interface does that.
80158         (getline): Always use getdelim, so that we don't have two
80159         copies of this code.
80160         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80161         if available.
80162         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80163         (GETNDELIM2_MAXIMUM): New macro.
80164         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80165         instead of the old practice of delim2==0.  All callers changed.
80166         Return -1 on overflow, instead of returning junk.
80167         Do not set *linesize unless allocation succeeds.
80168         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80169         that we include sys/types.h.
80170         * lib/getnline.h: Likewise.
80171         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80172         (getndelim2): Reorder arguments.
80173         * lib/getnline.c (getnline, getndelim):
80174         Don't discard the NMAX argument.
80175         (getnline): Invoke getndelim, to avoid code duplication.
80176         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80177         of (size_t) -1 by callers of the getnline family.
80178
80179 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80182         Check for gettimeofday.
80183         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80184         Check for settimeofday, stime.
80185
80186 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * lib/nanosleep.c (suspended): Change its type from int to
80189         sig_atomic_t volatile.
80190         (first_call): Make it private to rpl_nanosleep, and have it
80191         be zero initially as that's a bit faster.
80192         (my_usleep): Round up fractional times instead of truncating them,
80193         as this is the usual meaning for 'sleep'.
80194
80195         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80196         doesn't work.
80197         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80198         (ENOSYS): Define if not defined.
80199         (settime): Fall back on stime if it exists and settimeofday fails.
80200         But don't bother with fallbacks if a method fails with errno == EPERM.
80201
80202 2004-05-11  Jim Meyering  <jim@meyering.net>
80203
80204         Prior to this change, the save_cwd caller required read access to the
80205         current directory on most systems (ones with the fchdir function).
80206
80207         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80208         fails, try write-only, and finally, resort to using xgetcwd.
80209
80210 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         * lib/obstack.c, obstack.h: Import changes from libc.
80213
80214 2004-04-28  Bruno Haible  <bruno@clisp.org>
80215
80216         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80217         also implicitly appends .exe to executables.
80218         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80219         accepts Windows pathnames.
80220         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80221         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80222         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80223         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80224         Reported by Derek Robert Price <derek@ximbiot.com>.
80225
80226 2004-04-21  Karl Berry  <karl@gnu.org>
80227
80228         * config/srclist.txt (localcharset.c): break sync.
80229
80230 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80231
80232         * m4/host-os.m4: Add a copyright notice.
80233
80234 2004-04-20  Jim Meyering  <jim@meyering.net>
80235
80236         Change UTILS_ to gl_ in AC_DEFINE'd names.
80237         Change utils_- and jm_-prefixed variables, too.
80238         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80239         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80240         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80241
80242         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80243         Don't emit trailing blanks.
80244         Also rename jm_-prefixed variables to have gl_ prefix.
80245
80246         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80247         Also rename jm_-prefixed variables to have gl_ prefix.
80248
80249         * m4/jm-macros.m4: Reflect the renamings.
80250         * m4/prereq.m4: Likewise.
80251
80252 2004-04-20  Jim Meyering  <jim@meyering.net>
80253
80254         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80255         memory.
80256
80257 2004-04-20  Jim Meyering  <jim@meyering.net>
80258             Bruno Haible  <bruno@clisp.org>
80259
80260         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80261         memory when realloc fails.
80262
80263 2004-04-19  Jim Meyering  <jim@meyering.net>
80264
80265         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80266         now that readutmp.c may call `free (0)'.
80267
80268 2004-04-19  Bruno Haible  <bruno@clisp.org>
80269
80270         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80271         * m4/inttypes_h.m4: Likewise.
80272         * m4/stdint_h.m4: Likewise.
80273         * m4/intmax_t.m4: Likewise.
80274         * m4/uintmax_t.m4: Likewise.
80275
80276 2004-04-18  Jim Meyering  <jim@meyering.net>
80277
80278         * m4/prereq.m4: Don't forbid jm_ prefix.
80279
80280         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80281         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80282         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80283         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80284         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80285         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80286         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80287         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80288         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80289         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80290         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80291         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80292         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80293         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80294         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80295         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80296         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80297         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80298         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80299
80300 2004-04-18  Jim Meyering  <jim@meyering.net>
80301
80302         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80303         failure, don't leak memory and do call END_UTMP_ENT.
80304
80305 2004-04-16  Jim Meyering  <jim@meyering.net>
80306
80307         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80308         coreutils' stat program.
80309         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80310
80311 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80312
80313         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80314         C89.
80315         (CHAR_BIT): Remove, since we assume C89.
80316         Include <stdint.h> if available, as per current Autoconf CVS advice.
80317
80318 2004-03-31  Jim Meyering  <jim@meyering.net>
80319
80320         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80321         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80322         * m4/xalloc.m4: Likewise.
80323
80324 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80325
80326         Merge from coreutils.
80327
80328         * m4/inttostr.m4: New file.
80329         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80330         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80331         Require gl_CLOCK_TIME.
80332         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80333
80334 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80335
80336         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80337         not bool, to be more consistent with Unix conventions.
80338         Suggested by Bruno Haible.
80339
80340         Merge from coreutils.
80341
80342         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80343         * lib/umaxtostr.c: New files.
80344
80345         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80346         the usual <time.h> dance.
80347         (get_date): Change signature to support fractional time stamps.
80348         All callers changed.
80349         * lib/getdate.y: Include "getdate.h" first, as we can now
80350         assume C89 and don't need to worry about 'const'.
80351         Similarly, include "unlocked-io.h" near start, not in middle.
80352         Include <limits.h>.
80353         (textint.value): Use long int rather than int.
80354         (textint.digits): Use size_t rather than int.
80355         (BILLION, LOG10_BILLION): New constants.
80356         (parser_control): New member rel_ns.  Members day_ordinal,
80357         time_zone, month, day, hour, minutes, rel_year, rel_month,
80358         rel_day, rel_hour, rel_minutes, rel_seconds
80359         are now long int, not int.  Member seconds is now struct timespec,
80360         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80361         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80362         not int.
80363         (%union.intval): Now long int, not int.
80364         New member timespec.
80365         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80366         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80367         (spec): Now is a timespec or an item list.
80368         (timespec, items): New nonterminals.
80369         (time, rel, relunit, number, get_date):
80370         Add support for fractional seconds.
80371         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80372         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80373         (to_hour): First arg is now long int, not int.
80374         (to_year): Returns long int, not int.
80375         Don't treat year -70 like 70.
80376         (tm_diff): Returns long int, not int.
80377         (lookup_word): Use bool instead of int when appropriate.
80378         (yylex): Use size_t for count, not int.
80379         Detect overflow when parsing large integer constants.
80380         Add support for fractions.
80381         (get_date): Make pointers 'const' if possible.
80382         Use more-portable code to detect integer overflow.
80383         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80384         Don't use ctime; it's not reliable if the year has >4 digits.
80385
80386         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80387         This is for compatibility with BSD.
80388
80389         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80390         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80391         From coreutils' system.h.
80392
80393         * lib/userspec.c: Don't include "posixver.h".
80394         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80395         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80396         compatible extension.  Simplify code by removing a boolean int
80397         that was always nonzero if a string was nonnull.
80398
80399 2004-03-30  Jim Meyering  <jim@meyering.net>
80400
80401         Merge from coreutils.
80402
80403         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80404         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80405         on some systems one must include <grp.h> before it.
80406         Reported by Christian Krackowizer.
80407
80408 2004-03-30  Jim Meyering  <jim@meyering.net>
80409
80410         Merge from coreutils.
80411
80412         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80413
80414         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80415         an empty input stream.
80416
80417         * lib/readtokens.c: Include <stdbool.h>.
80418         (readtoken): Use `size_t' rather than int/long.
80419         All callers adjusted.
80420         Use `bool' rather than `int' where appropriate.
80421         Use memset rather than an explicit loop.
80422         Use x2nrealloc rather than xrealloc.
80423         Allow the use of `\0' as a delimiter.
80424         (readtokens): Likewise.
80425         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80426
80427 2004-03-30  Jim Meyering  <jim@meyering.net>
80428
80429         * m4/realloc.m4: Remove file, since now it does no more than
80430         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80431         the `configure.ac' section of module/realloc.
80432         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80433
80434 2004-03-30  Bruno Haible  <bruno@clisp.org>
80435
80436         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80437         nonnull.
80438
80439 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80440
80441         Merge changes to getloadavg.c from coreutils and Emacs.
80442
80443         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80444         Define to an expression, not to the empty string.
80445         Include cloexec.h and xalloc.h.
80446         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80447         Use set_cloexec_flag rather than rolling our own.
80448         * lib/cloexec.c, lib/cloexec.h: New files.
80449
80450 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80451
80452         * m4/cloexec.m4: New file.
80453
80454 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80455
80456         * lib/getopt.h: Sync with libc CVS.
80457
80458 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80459             Bruno Haible  <bruno@clisp.org>
80460
80461         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80462         mbswidth.
80463
80464 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80465             Bruno Haible  <bruno@clisp.org>
80466
80467         * lib/mbswidth.h: Include <wchar.h> only if
80468         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80469         <wchar.h>.
80470         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80471
80472 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80473
80474         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80475         Sync with libc CVS.
80476         * lib/getopt_int.h: New file, also synced from libc.
80477
80478 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80479
80480         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80481         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80482         Bring back getopt.c, getopt.h, getopt1.c.
80483
80484 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80485
80486         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80487         All uses changed.  Check for sa_sigaction member; this fixes
80488         a bug first reported by Jason Andrade in
80489         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80490
80491 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80492
80493         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80494         '#if' expressions.  Unlike the code it replaces, it does not
80495         depend on (defined _SC_PAGESIZE).  However, it does depend on
80496         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80497         first reported by Jason Andrade in
80498         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80499
80500 2004-02-25  Simon Josefsson  <jas@extundo.com>
80501
80502         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80503
80504 2004-02-25  Simon Josefsson  <jas@extundo.com>
80505
80506         * lib/strdup.h: New file.
80507         * lib/strdup.c: Include it.
80508         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80509         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80510
80511 2004-02-23  Karl Berry  <karl@gnu.org>
80512
80513         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80514         (from fencepost.gnu.org:/gd/gnuorg).
80515
80516 2004-02-23  Karl Berry  <karl@gnu.org>
80517
80518         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80519         * config/srclist.txt: add maintain/standards documents.
80520
80521 2004-02-18  Bruno Haible  <bruno@clisp.org>
80522
80523         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80524         Reported by Derek Robert Price <derek@ximbiot.com>.
80525
80526 2004-02-16  Karl Berry  <karl@gnu.org>
80527
80528         * config/mkinstalldirs, install-sh: update from automake.
80529
80530 2004-02-06  Karl Berry  <karl@gnu.org>
80531
80532         * m4/po.m4: update from gettext 0.14.1.
80533
80534 2004-02-06  Karl Berry  <karl@gnu.org>
80535
80536         * lib/config.charset: update from gettext 0.14.1.
80537
80538 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80539
80540         Add comments and code, prompted by suggestions from Bruno Haible
80541         for sh-quote.
80542         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80543         describing the enum quoting_style values.
80544         * lib/quotearg.c (quotearg_alloc): New function.
80545         (quotearg_buffer_restyled): Treat lone { and } as special.
80546         Treat = as special.  Work around bug with older shells
80547         that "see" a '\' that is really the 2nd byte of a multibyte char.
80548         Quote empty string with shell_quoting_style.
80549
80550 2004-02-03  Bruno Haible  <bruno@clisp.org>
80551
80552         * m4/pipe.m4: New file, from GNU gettext.
80553
80554 2004-02-03  Bruno Haible  <bruno@clisp.org>
80555
80556         * lib/pipe.h: New file, from GNU gettext.
80557         * lib/pipe.c: New file, from GNU gettext.
80558
80559 2004-01-27  Bruno Haible  <bruno@clisp.org>
80560
80561         * m4/execute.m4: New file, from GNU gettext.
80562
80563 2004-01-27  Bruno Haible  <bruno@clisp.org>
80564
80565         * lib/execute.h: New file, from GNU gettext.
80566         * lib/execute.c: New file, from GNU gettext.
80567         * lib/w32spawn.h: New file, from GNU gettext.
80568
80569 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80570
80571         Merge from diffutils.
80572
80573         * lib/file-type.c (file_type): Add typed memory objects.
80574         * lib/file-type.h (S_TYPEISTMO): New macro.
80575
80576         * lib/c-stack.h (c_stack_action): Remove argv argument.
80577         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80578         (die): Don't calculate message unless segv_action returns.
80579         (get_stack_location, min_address_from_argv, max_address_from_argv,
80580         volatile stack_base, volatile_stack_size): Remove.
80581         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80582         that every segmentation violation is a stack overflow.  (Ouch!)
80583         See Debian bug 136249 (still outstanding) for more info about why
80584         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80585
80586 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80587
80588         Exit-status fix from coreutils.
80589
80590         Use exit_failure consistently in place of EXIT_FAILURE,
80591         so that program exit statuses are consistent on failure.
80592
80593         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80594         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80595         * lib/argmatch.h: Comment fix to match the above.
80596         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80597         Now a macro referring to exit_failure, instead of a separate
80598         variable.  Include "exitfail.h" to get it.
80599         * lib/xstrtol.h: Include "exitfail.h".
80600         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80601
80602         * lib/long-options.c (parse_long_options): Use prototype
80603         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80604         for clarity.
80605
80606 2004-01-21  Jim Meyering  <jim@meyering.net>
80607
80608         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80609         so as not to conflict with a different-sized __mktime_internal
80610         function in GNU libc.
80611         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80612         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80613
80614 2004-01-20  Karl Berry  <karl@gnu.org>
80615
80616         * config/config.guess: update from config.
80617
80618         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80619
80620 2004-01-20  Bruno Haible  <bruno@clisp.org>
80621
80622         Safer stack allocation.
80623         * lib/setenv.c: Include allocsa.h.
80624         (alloca): Remove fallback definition.
80625         (freea): Remove macro.
80626         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80627         instead of freea.
80628
80629 2004-01-20  Bruno Haible  <bruno@clisp.org>
80630
80631         * m4/eealloc.m4: New file, from GNU gettext.
80632
80633 2004-01-20  Bruno Haible  <bruno@clisp.org>
80634
80635         * m4/allocsa.m4: New file, from GNU gettext.
80636
80637 2004-01-20  Bruno Haible  <bruno@clisp.org>
80638
80639         * lib/xallocsa.h: New file, from GNU gettext.
80640         * lib/xallocsa.c: New file, from GNU gettext.
80641
80642 2004-01-20  Bruno Haible  <bruno@clisp.org>
80643
80644         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80645
80646 2004-01-20  Bruno Haible  <bruno@clisp.org>
80647
80648         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80649         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80650         specially.
80651
80652 2004-01-20  Bruno Haible  <bruno@clisp.org>
80653
80654         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80655         patch.
80656
80657 2004-01-20  Bruno Haible  <bruno@clisp.org>
80658
80659         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80660
80661 2004-01-20  Bruno Haible  <bruno@clisp.org>
80662
80663         * lib/eealloc.h: New file.
80664
80665 2004-01-20  Bruno Haible  <bruno@clisp.org>
80666
80667         * lib/binary-io.h: Avoid warnings on Cygwin.
80668
80669 2004-01-20  Bruno Haible  <bruno@clisp.org>
80670
80671         * lib/allocsa.h: New file, from GNU gettext.
80672         * lib/allocsa.c: New file, from GNU gettext.
80673
80674 2004-01-18  Karl Berry  <karl@gnu.org>
80675
80676         * doc/gpl.texi, doc/lgpl.texi: new files.
80677
80678 2004-01-18  Karl Berry  <karl@gnu.org>
80679
80680         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80681         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80682
80683 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80684
80685         Merge from coreutils.
80686
80687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80688         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80689         (gl_DEFAULT_POSIX2_VERSION): Move
80690         the documentation from 'configure' into 'config.hin',
80691         so that 'configure --help' isn't burdened by it and
80692         we don't have to worry about its formatting there.
80693         Reword the documentation so that it's more succinct
80694         and can be run together into a single paragraph.
80695         * m4/same.m4 (gl_SAME): Check for pathconf.
80696
80697 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80698
80699         Merge from coreutils.
80700
80701         * lib/posixver.c: Include posixver.h.
80702
80703         * lib/same.c: Include <stdbool.h>, <limits.h>.
80704         (_POSIX_NAME_MAX): Define if not defined.
80705         (MIN): New macro.
80706         (same_name): If file names are silently truncated, report
80707         that the file names are the same if they are the same after
80708         the silent truncation.
80709
80710         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80711         conversion function.
80712         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80713         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80714         longer needed.
80715
80716 2004-01-15  Jim Meyering  <jim@meyering.net>
80717
80718         Merge from coreutils.
80719
80720         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80721         if no library is required.
80722         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80723         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80724         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80725         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80726         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80727         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80728         value, $ac_cv_search_crypt, if it's "none required".
80729         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80730         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80731         not gl_FUNC_GETLOADAVG.
80732         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80733         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80734
80735 2004-01-15  Jim Meyering  <jim@meyering.net>
80736
80737         Merge from coreutils.
80738
80739         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80740         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80741         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80742
80743         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80744         optional configure-time default.
80745
80746         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80747
80748         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80749
80750 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80751
80752         Merge from coreutils.
80753
80754         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80755         value, $ac_cv_search_nanosleep, if it's "none required".
80756
80757 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80758
80759         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80760         with like-named macro in fnmatch.c.
80761         (EXT): Use an internal constant instead.
80762
80763         Merge fnmatch patches from glibc.
80764         * lib/fnmatch.c (mbsinit): Remove define.
80765         Add libc_hidden_ver (__fnmatch, fnmatch).
80766         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80767         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80768
80769 2004-01-14  Karl Berry  <karl@gnu.org>
80770
80771         * config/install-sh: update from automake.
80772
80773 2004-01-13  Karl Berry  <karl@gnu.org>
80774
80775         * config/install-sh: update from automake.
80776
80777 2004-01-09  Karl Berry  <karl@gnu.org>
80778
80779         * config/install-sh: update from automake.
80780
80781 2004-01-05  Karl Berry  <karl@gnu.org>
80782
80783         * config/config.{sub,guess}: update from config.
80784
80785 2003-12-31  Karl Berry  <karl@gnu.org>
80786
80787         * config/depcomp: update from automake.
80788
80789 2003-12-14  Karl Berry  <karl@gnu.org>
80790
80791         * lib/config.charset: update from gettext-runtime.
80792
80793 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80794
80795         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80796         Bug reported by Alfred M. Szmidt.
80797
80798 2003-12-03  Bruno Haible  <bruno@clisp.org>
80799
80800         * m4/gettext.m4: Upgrade from gettext-0.13.
80801         * m4/po.m4: Upgrade from gettext-0.13.
80802         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80803         * m4/intmax.m4: New file, from gettext-0.13.
80804         * m4/printf-posix.m4: New file, from gettext-0.13.
80805
80806 2003-11-29  Karl Berry  <karl@gnu.org>
80807
80808         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80809
80810 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80811             Bruno Haible  <bruno@clisp.org>
80812
80813         * lib/printf-parse.h: Don't include sys/types.h.
80814         (ARG_NONE): New macro.
80815         (char_directive): Change type of *arg_index fields to size_t.
80816         * lib/printf-parse.c: Don't include sys/types.h.
80817         (SSIZE_MAX): Remove macro.
80818         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80819         Remove unnecessary overflow check.
80820         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80821         fields.
80822
80823 2003-11-25  Bruno Haible  <bruno@clisp.org>
80824
80825         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80826
80827 2003-11-25  Bruno Haible  <bruno@clisp.org>
80828
80829         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80830         gt_TYPE_SSIZE_T.
80831
80832 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80833
80834         * modules/alloca: Remove dependency on xalloc.
80835
80836 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80837
80838         * lib/alloca.c: Remove dependency on xalloc module.
80839         (xalloc_die): Remove.
80840         (memory_full) [!defined emacs]: New macro.
80841         [!defined emacs]: Don't include xalloc.h.
80842         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80843         address arithmetic overflows.  Change datatypes a bit to avoid
80844         unnecessary casts.
80845
80846 2003-11-22  Jim Meyering  <jim@meyering.net>
80847
80848         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80849         s/size/size_t/.
80850
80851 2003-11-21  Karl Berry  <karl@gnu.org>
80852
80853         * config/config.{sub,guess}: update from config.
80854
80855 2003-11-18  Karl Berry  <karl@gnu.org>
80856
80857         * config/config.{sub,guess}: update from config.
80858
80859         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80860
80861 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80862
80863         * README: Mention that S+T cannot overflow if S is the size of
80864         an existing object and T is sufficiently small.
80865
80866 2003-11-17  Jim Meyering  <jim@meyering.net>
80867
80868         On systems without utime and without a utimes function capable of
80869         dealing with a NULL struct utimbuf* argument, this utime replacement
80870         could -- in unusual circumstances -- leak a file descriptor.
80871         * lib/utime.c: Include <unistd.h> and <errno.h>.
80872         (utime_null): Be sure to close `fd' and to preserve errno.
80873         Reported by Geoff Collyer via Arnold Robbins.
80874
80875 2003-11-17  Bruno Haible  <bruno@clisp.org>
80876
80877         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80878         (Depends-on): Add xsize.
80879
80880 2003-11-17  Bruno Haible  <bruno@clisp.org>
80881
80882         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80883
80884 2003-11-17  Bruno Haible  <bruno@clisp.org>
80885
80886         * lib/vasnprintf.c (alloca): Remove fallback definition.
80887         (freea): Remove definition.
80888         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80889         Reported by Paul Eggert.
80890
80891 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80892             Bruno Haible  <bruno@clisp.org>
80893
80894         Protect against address arithmetic overflow.
80895         * lib/printf-args.h: Include stddef.h.
80896         (arguments): Change type of field 'count' to size_t.
80897         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80898         'unsigned int' where appropriate.
80899         * lib/printf-parse.h: Include sys/types.h.
80900         (char_directive): Change type of *arg_index fields to ssize_t.
80901         (char_directives): Change type of fields 'count', max_*_length to
80902         size_t.
80903         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80904         (SSIZE_MAX): Define fallback value.
80905         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80906         instead of 'int' where appropriate. Check a_allocated, d_allocated
80907         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80908         * lib/vasnprintf.c: Include xsize.h.
80909         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80910         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80911         overflow. Avoid wraparound when converting a width or precision from
80912         decimal to binary.
80913
80914 2003-11-16  Bruno Haible  <bruno@clisp.org>
80915
80916         Update from GNU gettext.
80917         * lib/printf-parse.c: Generalize to it can be compiled for wide
80918         strings.
80919         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80920         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80921         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80922         SNPRINTF): New macros.
80923         Don't include <alloca.h> if the file is used inside libintl.
80924         (local_wcslen): New function, for Solaris 2.5.1.
80925         (VASNPRINTF): Use it instead of wcslen.
80926
80927 2003-11-16  Bruno Haible  <bruno@clisp.org>
80928
80929         * lib/xsize.h (xmax): New function.
80930         (xsum, xsum3, xsum4): Declare as "pure" functions.
80931
80932 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80933
80934         * modules/xalloc (Files): Undo latest change, since xalloc.h
80935         no longer needs SIZE_MAX or PTRDIFF_MAX.
80936
80937 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80938
80939         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80940         gl_PTRDIFF_MAX.
80941
80942 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80943
80944         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80945         "return", to pacify some unknown compiler.  Problem reported
80946         by Joerg Schilling.
80947
80948 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80949
80950         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80951         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80952         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80953         heuristic is just as accurate as far as we know, and it removes a
80954         dependency on size_max.m4 and ptrdiff_max.m4.
80955
80956 2003-11-11  Bruno Haible  <bruno@clisp.org>
80957
80958         * modules/xsize (Files): Add m4/size_max.m4.
80959         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80960
80961 2003-11-11  Bruno Haible  <bruno@clisp.org>
80962
80963         * m4/size_max.m4: New file.
80964         * m4/ptrdiff_max.m4: New file.
80965         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80966         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80967         (gl_XALLOC): Invoke it.
80968
80969 2003-11-11  Bruno Haible  <bruno@clisp.org>
80970
80971         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80972         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80973         defined.
80974
80975 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80976
80977         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80978         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80979         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80980         From Bruno Haible.
80981         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80982         not (size_t) -1, since it's defined here.
80983
80984 2003-11-09  Karl Berry  <karl@gnu.org>
80985
80986         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80987
80988 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80989
80990         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80991         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80992         Reject sizes of exactly SIZE_MAX bytes.
80993         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80994         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80995
80996 2003-11-05  Bruno Haible  <bruno@clisp.org>
80997
80998         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80999         SIZE_MAX defined in <limits.h> on Solaris.
81000
81001 2003-11-04  Jim Meyering  <jim@meyering.net>
81002
81003         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81004         variable names, rather than @VAR@.
81005         * modules/poll: Likewise.
81006
81007 2003-11-04  Bruno Haible  <bruno@clisp.org>
81008
81009         * modules/xsize: New file.
81010         * modules/linebreak: Depend on xsize.
81011         * MODULES.html.sh (func_all_modules): Add xsize.
81012
81013 2003-11-04  Bruno Haible  <bruno@clisp.org>
81014
81015         * m4/xsize.m4: New file.
81016
81017 2003-11-04  Bruno Haible  <bruno@clisp.org>
81018
81019         * lib/xsize.h: New file.
81020         * lib/linebreak.c: Include xsize.h.
81021         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81022         argument for overflow.
81023         Suggested by Paul Eggert.
81024
81025 2003-11-03  Karl Berry  <karl@gnu.org>
81026
81027         * config/config.{guess,sub}: update from config.
81028
81029 2003-11-03  Jim Meyering  <jim@meyering.net>
81030
81031         * modules/userspec (lib_SOURCES): Add userspec.h.
81032         (Include): Add "userspec.h".
81033         Improve description.
81034
81035 2003-11-03  Jim Meyering  <jim@meyering.net>
81036
81037         * lib/userspec.c: Include "userspec.h".
81038         * lib/userspec.h: New file.
81039
81040 2003-11-03  Bruno Haible  <bruno@clisp.org>
81041
81042         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81043
81044 2003-11-03  Bruno Haible  <bruno@clisp.org>
81045
81046         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81047         available, to avoid (extremely rare) race condition.
81048         Suggested by Paul Eggert.
81049
81050 2003-11-02  Karl Berry  <karl@gnu.org>
81051
81052         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81053
81054 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81055
81056         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81057         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81058         (read_filesystem_list): Set and use me_type_malloced.
81059         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81060         whatever the type happens to be), for brevity and consistency.
81061         Check for size calculation overflow on Alphas running OSF/1.
81062
81063 2003-10-31  Jim Meyering  <jim@meyering.net>
81064
81065         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81066
81067         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81068
81069 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81070             Bruno Haible  <bruno@clisp.org>
81071
81072         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81073         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81074
81075 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81076
81077         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81078         netbsd*-gnu*.  Suggested by Robert Millan.
81079
81080 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81081
81082         * modules/group-member: Depend on stdbool.
81083
81084 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81085
81086         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81087
81088 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81089
81090         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81091         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81092         after the 'gnu' in these cases.  This fixes some bugs in the
81093         previous change, and is based on suggestions by Robert Millan.
81094
81095 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81096
81097         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81098         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81099         no longer needed.
81100         * lib/quotearg.c (quotearg_n_options): Use it.
81101         * lib/group-member.c: Include <stdbool.h>.
81102         (free_group_info): Arg is now const *; don't free arg.
81103         (get_group_info): Now returns bool and accepts struct group_info *,
81104         rather than returning a malloc'ed struct group_info *.
81105         All uses changed.  Check for overflow in internal size calculation.
81106
81107         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81108         rather than xmalloc/xrealloc.
81109         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81110         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81111         conformance bug: the old code used a pointer after freeing the
81112         storage that it addressed.
81113         * lib/hash.c (hash_initialize): Simplify the code by using
81114         xalloc_oversized rather than doing it by hand.
81115         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81116         the buffer preserved.  Use free and xmalloc instead.
81117         * lib/quotearg.c (quotearg_n_options): Likewise.
81118         Use a simpler test for size overflow.  Don't use xalloc_oversized
81119         because unsigned int might be wider than size_t (!); this suggests
81120         that we should switch from unsigned int to size_t for slot numbers.
81121
81122 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81123
81124         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81125         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81126         NetBSD kernels.  Requested by Richard Stallman.
81127
81128 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81129
81130         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81131         to allocate the returned structure.  Do not allocate a subarray,
81132         as x2nrealloc will do that.
81133         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81134         instead of xnrealloc.
81135         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81136
81137 2003-10-27  Bruno Haible  <bruno@clisp.org>
81138
81139         * lib/stdbool_.h: Better support for BeOS.
81140
81141 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81142
81143         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81144         now uses inline.
81145
81146 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81147
81148         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81149         callers that want to do their own size-overflow checking.  Include
81150         <stdbool.h>, since xalloc_oversized returns bool.
81151         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81152         to use xalloc_oversized.
81153
81154         Add two functions x2realloc, x2nrealloc, for programs that grow
81155         arrays dynamically by doubling their sizes.
81156         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81157         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81158         New functions.
81159
81160         Port to C99 semantics for 'inline' of external functions.
81161         Bug reported by Bruno Haible.
81162         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81163         with the old contents of xnmalloc.
81164         (xnmalloc, xmalloc): Use it.
81165         (xnrealloc_inline): New static inline function,
81166         with the old contents of xnrealloc.
81167         (xnrealloc, xrealloc): Use it.
81168
81169         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81170         that.
81171
81172 2003-10-26  Karl Berry  <karl@gnu.org>
81173
81174         * config/srclist.txt (COPYING.DOC): no longer available from
81175         /gd/gnuorg; don't know where the ultimate source is.
81176
81177 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81178
81179         Fix several address-calculation bugs in the hash modules,
81180         plus some minor code cleanup.
81181
81182         * lib/hash.h: Include <stdbool.h>, for bool.
81183         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81184         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81185         hash_get_n_entries, hash_get_max_bucket_length,
81186         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81187         hash_rehash): Use size_t rather than unsigned.
81188         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81189         hash_get_n_buckets_used, hash_get_n_entries,
81190         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81191         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81192         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81193         Likewise.
81194         (SIZE_MAX): Define if not defined.
81195         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81196         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81197         hash_print):
81198         Use const * when possible.
81199         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81200         (check_tuning): Fix bug: if tuning parameters were very close to
81201         0 or 1, rounding errors could have caused subscript violations.
81202         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81203         (hash_initialize): Add 'fail:' label
81204         to free table and return NULL, and use it to simplify code.
81205         Use calloc rather than clearing the storage ourself.
81206         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81207         buffer size calculations.
81208         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81209         Include <stddef.h>, for size_t.
81210         * lib/hash-pjw.c (hash_pjw): Likewise.
81211         Switch to method described by Bruno Haible.
81212         Include <limits.h>, for CHAR_BIT.
81213         (SIZE_BITS): New macro.
81214
81215 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81216
81217         * m4/getline.m4 (AM_FUNC_GETLINE):
81218         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81219         hosts.  Problem reported by Derek Robert Price in
81220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81221         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81222         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81223
81224 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81225
81226         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81227         ceiling the allocation at NMAX bytes rather than silently
81228         discarding input bytes before NMAX is reached.  This makes
81229         a difference only if NMAX exceeds SIZE_MAX / 2.
81230
81231         * lib/obstack.c: Merge from glibc.
81232         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81233         Add libc_hidden_def (_obstack_newchunk).
81234         (_obstack_free) [! defined _LIBC]: Remove.
81235         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81236         a clone of the function body.
81237         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81238         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81239
81240         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81241         glibc.
81242         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81243         arg to memcpy.
81244
81245         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81246         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81247         Don't use lvalue casts, as GCC plans to remove support for them
81248         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81249         was also present in the non-GCC version, indicating that this
81250         code had always been buggy and had never been widely used.
81251         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81252         Use the fast variant of each macro, rather than copying the
81253         definiens of the fast variant; that way, we'll be more likely to
81254         catch future bugs in the fast variants.
81255
81256 2003-10-20  Bruno Haible  <bruno@clisp.org>
81257
81258         * modules/wait-process: New file.
81259         * MODULES.html.sh (func_all_modules): Add wait-process.
81260
81261 2003-10-20  Bruno Haible  <bruno@clisp.org>
81262
81263         * m4/wait-process.m4: New file.
81264
81265 2003-10-20  Bruno Haible  <bruno@clisp.org>
81266
81267         * lib/wait-process.h: New file, from GNU gettext.
81268         * lib/wait-process.c: New file, from GNU gettext.
81269
81270 2003-10-19  Jim Meyering  <jim@meyering.net>
81271
81272         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81273         HPUX 10.20.
81274
81275 2003-10-18  Karl Berry  <karl@gnu.org>
81276
81277         * config/config.guess: update from config.
81278
81279 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81280
81281         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81282         (getgroups): First arg is int, not size_t.
81283         Don't let 'free' mangle errno.
81284
81285 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81286
81287         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81288
81289 2003-10-16  Karl Berry  <karl@gnu.org>
81290
81291         * config/config.{guess,sub}: update from config.
81292
81293 2003-10-16  Jim Meyering  <jim@meyering.net>
81294
81295         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81296         memcpy.
81297
81298 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81299
81300         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81301         (SIZE_MAX): Remove.
81302         (new_exclude, add_exclude_file): Initial size no longer needs to
81303         be a power of 2.
81304         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81305         our own address arithmetic overflow checking.
81306
81307         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81308         (fnmatch): Do not alloca more than 2000 wide characters;
81309         instead, use malloc for large buffers.
81310         Check for address arithmetic overflow, and return -1
81311         with errno set to ENOMEM in that case.
81312         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81313         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81314         instead, return -1.  Check for address arithmetic overflow.
81315
81316 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81317
81318         Handle invalid suffixes and overflow independently, so that
81319         callers can treat them independently as needed.  Fix some bugs in
81320         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81321         suffix for a human-readable blocksize.  The major caller-visible
81322         change is the addition of a new
81323         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81324         that both overflow and suffix chars were found.
81325
81326         * lib/human.c (humblock): Don't check separately for invalid suffix
81327         char; that is xstrtoumax's job (now that its bug is fixed).
81328         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81329         INTMAX_MAX]: New macros.
81330         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81331         TYPE_MAXIMUM): New macros.
81332         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81333         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81334         if overflow occurs, as it's what __strtol does and it's more useful
81335         in practice.
81336         (__xstrtol): If __strtol reports some error other than ERANGE,
81337         reflect it to the caller as LONGINT_INVALID.  If it reports
81338         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81339         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81340         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81341         value.
81342         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81343         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81344         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81345         [defined UINTMAX_MAX]: New macros.
81346
81347 2003-10-14  Bruno Haible  <bruno@clisp.org>
81348
81349         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81350
81351 2003-10-14  Bruno Haible  <bruno@clisp.org>
81352
81353         * m4/sig_atomic_t: New file, from GNU gettext.
81354         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81355
81356 2003-10-14  Bruno Haible  <bruno@clisp.org>
81357
81358         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81359         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81360         Also use volatile where needed.
81361
81362 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81363
81364         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81365         Change maintainer from Bruno Haible to 'all'.
81366
81367 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81368
81369         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81370
81371 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81372
81373         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81374         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81375         and define in terms of the other primitives.
81376         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81377         (SIZE_MAX): Define if not already defined.
81378         (array_size_overflow): New function.
81379         (xalloc_die): Abort instead of exiting if 'error' returns.
81380         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81381         (xmalloc, xrealloc): Use them.
81382         (xcalloc): Check for address arithmetic overflow.
81383         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81384         a bit faster than strcpy.
81385
81386 2003-10-10  Simon Josefsson  <jas@extundo.com>
81387
81388         * modules/argp (Depends-on): Add restrict and strcase.
81389
81390 2003-10-10  Simon Josefsson  <jas@extundo.com>
81391
81392         * m4/argp.m4: Add AC_C_INLINE.
81393
81394 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81395
81396         Merge getpass from libc, plus a few fixes.
81397
81398         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81399         Include <stdbool.h>.
81400         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81401         __fsetlocking to empty.
81402         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81403         do include <bits/libc-lock.h>.
81404         Do not include <fcntl.h>; not needed.
81405         [_LIBC]: Include <wchar.h>.
81406         (NOTCANCEL_MODE): New macro.
81407         (flockfile, funlockfile) [_LIBC]: New macros.
81408         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81409         [!_LIBC]: New macros.
81410         (call_fclose): New function.
81411         (getpass): Use it.  Save tty stream separately; this simplifies the
81412         code and makes it more reliable if stdin happens to equal stdout.
81413         Invoke __fsetlocking on tty.
81414         Handle thread cancellation if needed.
81415         Namespace cleanup (use __tcgetattr, __getline).
81416         Use bool for Booleans.
81417         [USE_IN_LIBIO]: Handle wide streams.
81418         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81419         stream might go where.
81420
81421         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81422         doesn't have to include <stdio.h> before us.
81423         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81424         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81425         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81426         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81427         if not declared, so that we can use getpass.c code from libc without
81428         rewriting it.
81429         (flockfile, ftrylockfile, funlockfile): New macros.
81430
81431 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81432
81433         * modules/getpass: Depend on stdbool.
81434
81435 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81436
81437         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81438
81439 2003-10-07  Karl Berry  <karl@gnu.org>
81440
81441         * config/config.{guess,sub}: update from config.
81442
81443 2003-10-06  Jim Meyering  <jim@meyering.net>
81444             Bruno Haible  <bruno@clisp.org>
81445
81446         This lets translators provide better translations for the
81447         "Written by ..." part of --version output.
81448         * lib/version-etc.h: Include stdarg.h.
81449         (version_etc_copyright): Declare as readonly.
81450         (version_etc): Make this function variadic with a NULL-terminated list
81451         of author name strings.
81452         (version_etc_va): New declaration.
81453         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81454         (version_etc_copyright): Declare as readonly.
81455         (version_etc_va): New function. Provide a different translatable string
81456         for each possible number of authors < 10. Abbreviate when there are 10
81457         authors or more.
81458         (version_etc): Make this function variadic. Call version_etc_va.
81459         Suggestion from Gary V. Vaughan.
81460
81461         * lib/long-options.h (parse_long_options): Change prototype: the
81462         authors string is moved to the end and becomes variadic.
81463         * lib/long-options.c: Include stdarg.h.
81464         (parse_long_options): Make this function variadic, too.
81465         Call version_etc_va, not version_etc.
81466
81467 2003-10-06  Bruno Haible  <bruno@clisp.org>
81468
81469         * modules/version-etc-2: Remove file.
81470         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81471
81472 2003-10-06  Bruno Haible  <bruno@clisp.org>
81473
81474         * modules/fatal-signal: New file.
81475         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81476
81477 2003-10-06  Bruno Haible  <bruno@clisp.org>
81478
81479         * m4/fatal-signal.m4: New file.
81480         * m4/signalblocking.m4: New file, from GNU gettext.
81481
81482 2003-10-06  Bruno Haible  <bruno@clisp.org>
81483
81484         * lib/version-etc-2.h: Remove file.
81485         * lib/version-etc-2.c: Remove file.
81486
81487 2003-10-06  Bruno Haible  <bruno@clisp.org>
81488
81489         * lib/fatal-signal.h: New file, from GNU gettext.
81490         * lib/fatal-signal.c: New file, from GNU gettext.
81491
81492 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81493
81494         * README: Rework advice for preventing empty .o files.
81495         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81496         not <sys/types.h>.
81497
81498 2003-10-04  Karl Berry  <karl@gnu.org>
81499
81500         * lib/argp*: update from libc.
81501
81502 2003-10-04  Karl Berry  <karl@gnu.org>
81503
81504         * config/config.{guess,sub}: update from config.
81505
81506 2003-10-02  Bruno Haible  <bruno@clisp.org>
81507
81508         * modules/lchown (Include): Add lchown.h.
81509         * modules/time_r (Include): Use "..." syntax.
81510         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81511
81512 2003-10-01  Simon Josefsson  <jas@extundo.com>
81513
81514         * MODULES.html.sh (func_all_modules): Move gethostname from section
81515         'based on' to section 'lacking' POSIX:2001.
81516
81517 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81518
81519         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81520         to output mode on the same stream.
81521
81522 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81523
81524         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81525         Fix arg typo in previous patch.
81526
81527 2003-09-28  Jim Meyering  <jim@meyering.net>
81528
81529         * lib/error.c: Correct cpp indentation.
81530
81531 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81532
81533         * modules/free: New file.
81534
81535 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81536
81537         * m4/free.m4: New file.
81538
81539 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81540
81541         * lib/minmax.h (MIN, MAX)
81542         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81543         Omit the special code that used __typeof__, since we worry that
81544         it could be more trouble than it's worth.  See:
81545         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81546         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81547
81548         * lib/free.c: New file.
81549
81550 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81551
81552         Trivial fixes to Makefile.am parts of module listings.
81553         * modules/strstr: Append strstr.h to lib_SOURCES.
81554         * modules/strcase: Likewise, for strcase.h.
81555
81556 2003-09-27  Karl Berry  <karl@gnu.org>
81557
81558         * config/mkinstalldirs: update from automake.
81559
81560 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81561
81562         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81563         (error_tail): Do not loop, reallocating temporary buffer, since
81564         the output cannot contain more wide characters than the input
81565         contains bytes, the size must be big enough already.  This avoids
81566         one potential size overflow calculation.  Check for size overflow
81567         when calculating temporary buffer size.  Free temporary buffer
81568         when done, if it was allocated with malloc; this plugs a memory
81569         leak.  Remove casts from void * to pointers, that are no longer
81570         needed now that we're assuming C89 or better.
81571
81572         Merge error changes from glibc.
81573
81574         * lib/error.c, error.h: Update copyright notice header to match glibc.
81575         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81576         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81577         Disable cancellation while printing error.
81578         * lib/error.h: Prepend __ to parameter names.
81579
81580 2003-09-26  Jim Meyering  <jim@meyering.net>
81581
81582         * lib/error.c (error_tail): Move some declarations
81583         into inner scope where the local variables are used.
81584
81585 2003-09-26  Bruno Haible  <bruno@clisp.org>
81586
81587         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81588         stpncpy().
81589         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81590
81591 2003-09-26  Bruno Haible  <bruno@clisp.org>
81592
81593         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81594         (stpncpy): Define as alias for gnu_stpncpy.
81595         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81596
81597 2003-09-25  Simon Josefsson  <jas@extundo.com>
81598
81599         * lib/xgetdomainname.h: New file.
81600         * lib/xgetdomainname.c: New file.
81601
81602 2003-09-25  Simon Josefsson  <jas@extundo.com>
81603             Bruno Haible  <bruno@clisp.org>
81604
81605         * modules/getdomainname: New file.
81606         * modules/xgetdomainname: New file.
81607         * MODULES.html.sh (func_all_modules): Add getdomainname,
81608         xgetdomainname.
81609
81610 2003-09-25  Simon Josefsson  <jas@extundo.com>
81611             Bruno Haible  <bruno@clisp.org>
81612
81613         * m4/getdomainname.m4: New file.
81614
81615 2003-09-25  Simon Josefsson  <jas@extundo.com>
81616             Bruno Haible  <bruno@clisp.org>
81617
81618         * lib/getdomainname.h: New file.
81619         * lib/getdomainname.c: New file.
81620
81621 2003-09-25  Karl Berry  <karl@gnu.org>
81622
81623         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81624
81625 2003-09-25  Karl Berry  <karl@gnu.org>
81626
81627         * config/install-sh: update from automake.
81628
81629 2003-09-25  Bruno Haible  <bruno@clisp.org>
81630
81631         * modules/version-etc-2: New file, from modules/version-etc with
81632         modifications.
81633         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81634
81635 2003-09-25  Bruno Haible  <bruno@clisp.org>
81636
81637         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81638         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81639
81640 2003-09-24  Simon Josefsson  <jas@extundo.com>
81641
81642         * modules/xgethostname: Add xgethostname.h.
81643
81644 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81645
81646         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81647         the buffer associated with the argument.  Bug reported by
81648         Simon Josefsson.
81649
81650 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81651
81652         * README: Document assumptions that 'int' is at least 32 bits
81653         wide, that integer arithmetic is 2's complement without overflow,
81654         that there are no holes in integer values, that adding sizes of
81655         two nonoverlapping objects can't overflow, and that all-bits-zero
81656         yields scalar zero.  Fix spelling and capitalization typos.
81657
81658 2003-09-19  Karl Berry  <karl@gnu.org>
81659
81660         * lib/argp.h: update from libc.
81661
81662 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81663
81664         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81665         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81666         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81667
81668 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81669
81670         * gnulib-tool: Use "test -h", not "test -L", for portability
81671         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81672         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81673         (sed_extract_prog): Issue s commands one-by-one, rather than
81674         using \| in one s command.
81675
81676 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81677
81678         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81679         input error, instead of returning NULL the next time we are called
81680         (and therefore losing track of errno).
81681
81682 2003-09-16  Bruno Haible  <bruno@clisp.org>
81683
81684         * gnulib-tool (func_create_testdir): Warn about duplicated
81685         dependencies.
81686
81687 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81688
81689         * modules/argmatch, modules/fatal, modules/obstack,
81690         modules/xalloc, modules/xgethostname: Sort dependencies by
81691         importance, not alphabetically.
81692
81693 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81694
81695         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81696         fails, so that the caller gets the proper errno.
81697
81698         * lib/readutmp.c (read_utmp): Likewise.
81699         Check for fstat error.  Close stream and free storage
81700         when failing.
81701
81702 2003-09-14  Karl Berry  <karl@gnu.org>
81703
81704         * config/srclist.txt (strdup.c): disable for c89 changes.
81705
81706 2003-09-14  Jim Meyering  <jim@meyering.net>
81707
81708         * lib/getloadavg.c: Correct cpp indentation.
81709         * lib/strdup.c: Likewise.
81710         * lib/vasnprintf.c: Likewise.
81711
81712 2003-09-14  Bruno Haible  <bruno@clisp.org>
81713
81714         * modules/fwriteerror: New file.
81715         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81716
81717 2003-09-14  Bruno Haible  <bruno@clisp.org>
81718
81719         * lib/fwriteerror.h: New file.
81720         * lib/fwriteerror.c: New file.
81721
81722 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81723
81724         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81725         modules/xgethostname, modules/xalloc: Depend on exit.
81726
81727 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81728
81729         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81730
81731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81732         and AC_MINIX, too, so that their extensions are available.
81733
81734         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81735         This macro has been superseded by gl_BACKUPFILE.
81736
81737         More patches to assume C89 or better.
81738
81739         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81740
81741         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81742         unconditionally.
81743         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81744         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81745         Include <string.h>, <stdlib.h> unconditionally.
81746         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81747         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81748         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81749         headers or for string.h.
81750         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81751         or strtoul.
81752
81753         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81754         headers.
81755         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81756         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81757         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81758         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81759         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81760         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81761         memcpy, memset.
81762         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81763         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81764         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81765         strtol.
81766         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81767         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81768         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81769         strtoul.
81770
81771 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81772
81773         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81774         * lib/obstack.c [!defined _LIBC]: Likewise.
81775         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81776         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81777         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81778
81779         More changes to assume C89 or better.
81780
81781         * lib/error.c (error_tail): Assume vprintf.
81782
81783         * lib/argmatch.c (getenv): Remove decl.
81784         * lib/progreloc.c (get_full_program_name): Define via prototype.
81785         * lib/setenv.c (clearenv): Likewise.
81786         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81787         needed.
81788         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81789         (malloc, memcpy): Remove decls.
81790         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81791         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81792         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81793         (memcpy): Remove macro.
81794         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81795         (__P): Remove.  All uses removed.
81796         (PTR): Remove.  All uses changed to void *.
81797         (CHAR_BIT, NULL): Remove.
81798         (spaces, zeros, memset_space, memset_zero)
81799         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81800         Remove.
81801         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81802         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81803         Define with prototype.
81804         Remove now-unnecessary prototype decl.
81805         (extra_args_spec): Assume ANSI C.  All uses changed.
81806         (extra_args_spec_iso): Remove.
81807         (my_strftime, emacs_strftimeu): Define via prototype.
81808         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81809         unconditionally.
81810         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81811         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81812         (strtoul, strtol): Remove decls.
81813         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81814         LONG_MAX): Remove.
81815         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81816         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81817         (LOCALE_PARAM_PROTO): New macro.
81818         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81819         (INTERNAL (strtol), strtol): Define with a prototype.
81820         (PARAMS): Remove.  All uses removed.
81821         * lib/tempname.c: Include <string.h> unconditionally.
81822         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81823         * lib/xgethostname.c (main): Define with a prototype.
81824         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81825         Include <stdlib.h> unconditionally.
81826         (calloc, malloc, realloc, free): Remove decls.
81827         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81828         Include <stdlib.h> unconditionally.  Sort include file names.
81829         (strtod): Remove.
81830         (xstrtod): Define with a prototype.
81831         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81832         (strtol, strtoul): Remove decls.
81833
81834 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81835
81836         More patches to assume C89 or better.
81837         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81838         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81839         string.h, memchr, STDC_HEADERS.
81840
81841 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81842
81843         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81844         Include <stdlib.h>, <string.h> unconditionally.
81845         Remove now-unnecessary cast to char *.
81846         * lib/strnlen.c: Include <string.h> unconditionally.
81847         * lib/yesno.c (yesno): Define with a prototype.
81848
81849 2003-09-11  Bruno Haible  <bruno@clisp.org>
81850
81851         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81852
81853 2003-09-10  Jim Meyering  <jim@meyering.net>
81854
81855         * lib/error.c: Correct indentation of cpp directives.
81856
81857 2003-09-10  Bruno Haible  <bruno@clisp.org>
81858
81859         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81860         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81861         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81862         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81863         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81864         <stdlib.h> and <string.h> checks.
81865         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81866         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81867
81868 2003-09-10  Bruno Haible  <bruno@clisp.org>
81869
81870         * lib/strcspn.c: Include <string.h> unconditionally.
81871         * lib/strpbrk.c: Include <string.h> unconditionally.
81872         * lib/strstr.c: Include <string.h> unconditionally.
81873         * lib/unicodeio.c: Include <string.h> unconditionally.
81874         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81875         * lib/unsetenv.c: Likewise.
81876         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81877         * lib/yesno.c: Include <stdlib.h> unconditionally.
81878         (rpmatch): Add prototype.
81879
81880 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81881
81882         More patches to assume C89 or better.
81883         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81884         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81885         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81886         or for string.h.
81887         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81888         stdlib.h.
81889         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81890         C headers.
81891         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81892         string.h.
81893         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81894         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81895         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81896         or for string.h.
81897         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81898         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81899         C headers.
81900         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81901         memcpy.
81902         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81903         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81904         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81905         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81906         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81907         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81908         string.h, free.
81909         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81910         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81911         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81912         C headers, or for string.h.
81913         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81914         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81915         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81916         headers, memory.h, stdlib.h, string.h, strings.h.
81917         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81918         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81919         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81920         strchr.
81921         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81922         headers, memory.h, string.h.
81923         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81924         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81925         free.
81926         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81927         headers.
81928         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81929         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81930         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81931         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81932         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81933
81934 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81935
81936         More K&R removal.
81937
81938         * lib/acosl.c (main): Use a prototype.
81939         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81940         tanl.c: Likewise.
81941
81942         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81943
81944         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81945         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81946         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81947         with a prototype.
81948         * lib/getopt.c (const): Remove macro.
81949         Include <string.h> unconditionally.
81950         (my_index): Remove; all uses changed to strchr.
81951         (strlen): Remove decl.
81952         (exchange): Remove forward decl; no longer needed.
81953         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81954         Define with prototype.
81955         * lib/getopt1.c (const): Remove macro.
81956         (getopt_long, getopt_long_only, main): Define with prototype.
81957
81958         * lib/getugroups.c: Include <string.h> unconditionally.
81959
81960         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81961         (getusershell, setusershell, endusershell, readname, main):
81962         Define with prototypes.
81963
81964         * lib/group-member.c: Include group-member.h first.
81965         Include <stdlib.h> unconditionally.
81966
81967         * lib/hard-locale.c: Include hard-locale.h first.
81968         Include <stdlib.h>, <string.h> unconditionally.
81969
81970         * lib/hash.c (free, malloc): Remove decls.
81971         Include <stdlib.h> unconditionally.
81972
81973         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81974         (getenv): Do not declare.
81975
81976         * lib/idcache.c: Include <string.h> unconditionally.
81977
81978         * lib/long-options.c: Include long-options.h first, to test interface.
81979         Include <stdlib.h> unconditionally.
81980
81981         * lib/makepath.c: Include makepath.h first, to test interface.
81982         Include <stdlib.h> and <string.h> unconditionally.
81983
81984         * lib/linebuffer.c: Include <stdlib.h>.
81985         (free): Remove decl.
81986
81987         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81988         stddef.h. rpl_malloc returns void *, not char *.
81989         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81990         prototype.
81991
81992         * lib/md5.h: Include <limits.h> unconditionally.
81993         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81994         (__P): Remove; all uses removed.
81995         * lib/md5.c: Include "md5.h" first.
81996         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81997         md5_buffer, md5_process_bytes, md5_process_block):
81998         Define with prototypes.
81999         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82000         * lib/sha.c: Include "sha.h" first.
82001         Include <stdlib.h>, <string.h> unconditionally.
82002
82003         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82004         * lib/memcmp.c (__ptr_t): Likewise.
82005         * lib/memrchr.c (__ptr_t): Likewise.
82006         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82007         Include <string.h> unconditionally.
82008         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82009         * lib/memchr.c: Include <stdlib.h> unconditionally.
82010         * lib/memchr.c (LONG_MAX): Remove.
82011         * lib/memrchr.c (LONG_MAX): Likewise.
82012         * lib/memchr.c (__memchr): Define via a prototype.
82013         * lib/memrchr.c (__memrchr): Likewise.
82014         * lib/memcmp.c (__P): Remove, and remove all uses.
82015         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82016         Remove forward decls; no longer needed.
82017         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82018         Use types required by C89 in prototype.
82019
82020         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82021         * lib/savedir.c: Likewise.
82022         * lib/mkdir.c (free): Remove decl.
82023         * lib/rmdir.c (rmdir): Define with a prototype.
82024         * lib/savedir.c: Include savedir.h first, to test interface.
82025
82026         * lib/mktime.c (STDC_HEADERS): Remove.
82027         Include <stdlib.h>, <string.h> unconditionally.
82028
82029         * lib/modechange.c: Include <stdlib.h> unconditionally.
82030         (malloc): Remove decl.
82031
82032         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82033         (free): Remove decl.
82034
82035         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82036         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82037         (This type really should be intptr_t, but that's a C99ism.)
82038         (_obstack_memcpy): Remove: all uses changed to memcpy.
82039         Include <string.h> unconditionally.
82040         (struct obstack): Assume __STDC__ for types of members
82041         chunkfun, freefun, extra_arg.
82042         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82043         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82044         obstack_begin, obstack_specify_allocation,
82045         obstack_specify_allocation_with_arg, obstack_chunkfun,
82046         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82047         Remove unprototyped decls and the macros that use them.
82048         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82049         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82050         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82051         (defined __STDC__ && __STDC__)]:
82052         Remove nonprototyped code.
82053         Include <stdlib.h> unconditionally.
82054         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82055         _obstack_allocated_p, _obstack_free, obstack_free,
82056         _obstack_memory_used, print_and_abort):
82057         Define using prototypes.
82058         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82059         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82060         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82061         obstack_next_free, obstack_object_size, obstack_room) [0]:
82062         Remove unused, unprototyped code.
82063
82064         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82065
82066         * lib/physmem.c (physmem_total, physmem_available, main): Define
82067         with prototypes.
82068
82069         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82070         (main): Define with a prototype.
82071
82072         * lib/posixver.c (getenv): Remove decl.
82073
82074         * lib/putenv.c (malloc): Returns void *, not char *.
82075         Include <string.h> unconditionally.
82076         (strchr, memcpy, NULL): Do not define.
82077
82078         * lib/readtokens.c: Include readtokens.h first, to test interface.
82079         Include <stdlib.h>, <string.h> unconditionally.
82080         (init_tokenbuffer): Define with a prototype.
82081
82082         * lib/regex.c (PARAMS): Remove.  All uses removed.
82083         All uses of _RE_ARGS removed, too.
82084         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82085         unconditionally.
82086         (bzero): Assume memset exists.
82087         (memcmp, memcpy, NULL): Remove.
82088         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82089         char, or assignments to local vars of type signed char.
82090         (init_syntax_once, PREFIX(extract_number_and_incr),
82091         PREFIX(print_partial_compiled_pattern),
82092         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82093         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82094         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82095         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82096         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82097         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82098         wcs_compile_range, byte_compile_range, truncate_wchar,
82099         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82100         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82101         count_mbs_length, wcs_re_match_2_internal,
82102         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82103         PREFIX(alt_match_null_string_p),
82104         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82105         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82106         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82107         now-unnecessary declaration, if any.
82108         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82109         regcomp, regexec):
82110         Remove now-unnecessary casts among pointer types.
82111         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82112
82113         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82114         (free): Remove decl.
82115
82116         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82117
82118         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82119         (free): Remove decl.
82120
82121         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82122         * lib/xgetcwd.c: Likewise.
82123
82124         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82125         (free): Remove decl.
82126
82127         * lib/strchrnul.c (strchrnul): Define with a prototype.
82128         Fix bug: c_in was not converted to char before searching.
82129
82130         The following changes are not K&R related:
82131
82132         * lib/group-member.h: Include <sys/types.h>, so that this file is
82133         self-contained.
82134         * lib/makepath.h: Likewise.
82135
82136         * lib/getusershell.c (readname, default_index, line_size, readname):
82137         Use size_t, not int, for sizes.
82138         (readname): If the size overflows, report an error instead of
82139         looping forever.
82140
82141 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82142
82143         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82144         libc.
82145
82146 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82147
82148         * README: New section: portability guidelines.
82149
82150 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82151
82152         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82153         C89 spec.
82154
82155 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82156
82157         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82158
82159 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82160
82161         Assume C89 or better; remove K&R cruft.
82162         A few of these changes were first proposed by Derek Robert Price
82163         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82164
82165         * lib/addext.c: Include <string.h> unconditionally.
82166         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82167         Don't declare getenv or malloc.
82168
82169         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82170         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82171         (NULL): Remove.
82172         (find_stack_direction, alloca): Use prototypes.
82173
82174         * lib/atexit.c (atexit): Define using a prototype.
82175
82176         * lib/basename.c, dirname.c, stripslash.c:
82177         Include <string.h> unconditionally.
82178
82179         * lib/bcopy.c: Include <stddef.h>.
82180         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82181
82182         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82183
82184         * lib/error.h (error, error_at_line, error_print_progname)
82185         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82186         * lib/error.c: Include error.h first, to check interface.
82187         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82188         (VA_START): Remove; all uses changeed to va_start.
82189         (exit, strerror): Remove decls.
82190         (error_print_progname): Prototype uncondionally.
82191         Don't include <errno.h>; no longer needed.
82192         (private_strerror): Remove.
82193         (error_tail): Always define.
82194         (error, error_at_line): Assume C89 or better; always use prototypes.
82195         * lib/fatal.c: Include "fatal.h" first, to test interface.
82196         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82197         (VA_START): Remove; all uses changed to va_start.
82198         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82199         this case.
82200         (exit): Remove decl.
82201         (fatal): Prototype unconditionally.  Assume va_start works.
82202         Abort at end, to pacify gcc.
82203
82204         * lib/euidaccess.c (main): Define with a prototype.
82205
82206         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82207
82208         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82209
82210         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82211         prototypes.
82212         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82213         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82214         (getenv): Remove decl.
82215         (fnmatch): Define using a prototype.
82216         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82217         (FCT): Define using a prototype.
82218
82219         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82220
82221         * lib/gethostname.c: Include <stddef.h>.
82222         (gethostname): Define with prototype.  Length is size_t, not int.
82223
82224 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82225
82226         Assume C89 or better; remove K&R cruft.
82227         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82228         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82229         string.h, getenv, malloc.
82230         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82231         headers.
82232         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82233         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82234         do not check for strerror.
82235         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82236         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82237         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82238         do not check for doprnt or vprintf.
82239         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82240         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82241
82242 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82243
82244         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82245         getversion.c should have been removed then, but was accidentally
82246         preserved.
82247
82248         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82249         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82250
82251 2003-09-08  Karl Berry  <karl@gnu.org>
82252
82253         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82254                 config, forget about prep.
82255
82256         * config/depcomp, missing: update from automake.
82257
82258 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82259
82260         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82261         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82262
82263 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82264
82265         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82266         copy_tm_result.  Bug reported by Simon Josefsson in
82267         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82268
82269 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82270
82271         * m4/time_r.m4: New file.
82272         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82273         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82274         is. Check for timegm declaration.
82275         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82276         Do not check for gmtime_r.
82277         Replace mktime if __mktime_internal does not exist and if mktime
82278         hasn't been replaced already.
82279
82280 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82281
82282         * lib/time_r.c, lib/time_r.h: New files.
82283
82284         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82285         __localtime_r.
82286         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82287         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82288
82289         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82290         __gmtime_r.
82291         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82292         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82293         Include <time_r.h>.
82294
82295         * lib/timegm.c: Switch to glibc implementation, with the following
82296         changes:
82297         [defined HAVE_CONFIG_H]: Include <config.h>.
82298         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82299         (__mktime_internal) [!defined _LIBC]: New decl.
82300         (__gmtime_r) [!defined _LIBC]: New macro and function.
82301         (timegm): Use a prototype, since gnulib assumes C89.
82302         Do not bother declaring tmp to be const, as it's not really usefu.
82303         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82304         (timegm): Declare only if HAVE_DECL_TIMEGM.
82305
82306 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82307
82308         * MODULES.html.sh (func_all_modules): Add time_r.
82309         * modules/time_r: New file.
82310         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82311         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82312
82313 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82314
82315         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82316         Bug reported by Lute Kamstra in
82317         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82318
82319         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82320         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82321         course with correspondingly smaller numbers for tomorrow and
82322         yesterday.  From Tadayoshi Funaba.  Originally installed into
82323         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82324         coreutils merge?).
82325
82326 2003-08-31  Simon Josefsson  <jas@extundo.com>
82327
82328         * modules/timegm: New file.
82329         * MODULES.html.sh (func_all_modules): Add timegm.
82330
82331 2003-08-31  Simon Josefsson  <jas@extundo.com>
82332
82333         * m4/timegm.m4: New file.
82334
82335 2003-08-31  Simon Josefsson  <jas@extundo.com>
82336
82337         * lib/timegm.h: New file.
82338         * lib/timegm.c: New file.  Based on
82339         wget-1.8.2/src/http.c:mktime_from_utc.
82340
82341 2003-08-31  Karl Berry  <karl@gnu.org>
82342
82343         * lib/argp.h: update from libc.
82344
82345 2003-08-28  Bruno Haible  <bruno@clisp.org>
82346
82347         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82348         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82349         followed by '#define fnmatch fnmatch_posix' gives an error.
82350
82351 2003-08-28  Bruno Haible  <bruno@clisp.org>
82352
82353         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82354         warning on QNX, which defines O_BINARY to 000000.
82355
82356 2003-08-27  Jim Meyering  <jim@meyering.net>
82357
82358         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82359         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82360         would fail after 32.  Reported by Danny Levinson.  Details here:
82361         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82362
82363 2003-08-24  Bruno Haible  <bruno@clisp.org>
82364
82365         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82366         MSVC7 <stdio.h> is included later.
82367
82368 2003-08-22  Simon Josefsson  <jas@extundo.com>
82369
82370         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82371
82372 2003-08-20  Karl Berry  <karl@gnu.org>
82373
82374         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82375
82376 2003-08-20  Bruno Haible  <bruno@clisp.org>
82377
82378         * modules/progname: New file.
82379         * MODULES.html.sh (func_all_modules): Add progname.
82380
82381 2003-08-20  Bruno Haible  <bruno@clisp.org>
82382
82383         * lib/progname.h: New file, from GNU gettext.
82384         * lib/progname.c: New file, from GNU gettext.
82385         * lib/progreloc.c: New file, from GNU gettext.
82386
82387 2003-08-19  Jim Meyering  <jim@meyering.net>
82388
82389         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82390         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82391
82392 2003-08-19  Bruno Haible  <bruno@clisp.org>
82393
82394         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82395         more.
82396
82397 2003-08-19  Bruno Haible  <bruno@clisp.org>
82398
82399         * lib/xstrdup.c: Assume <string.h> exists.
82400
82401 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82402
82403         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82404         in makefile rules.
82405
82406 2003-08-18  Jim Meyering  <jim@meyering.net>
82407
82408         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82409         * m4/lib-ld.m4: Likewise.
82410
82411 2003-08-18  Jim Meyering  <jim@meyering.net>
82412
82413         * lib/setenv.h: Indent nested cpp directive.
82414         * lib/vasnprintf.c: Remove trailing blanks.
82415
82416 2003-08-17  Simon Josefsson  <jas@extundo.com>
82417
82418         * modules/xstrndup: New file.
82419         * MODULES.html.sh (func_all_modules): Add xstrndup.
82420
82421 2003-08-17  Simon Josefsson  <jas@extundo.com>
82422
82423         * modules/argp: Fix autoconf macro name. Add more dependencies.
82424
82425 2003-08-17  Simon Josefsson  <jas@extundo.com>
82426
82427         * m4/xstrndup.m4: New file.
82428
82429 2003-08-17  Simon Josefsson  <jas@extundo.com>
82430
82431         * m4/argp.m4: New file.
82432
82433 2003-08-17  Simon Josefsson  <jas@extundo.com>
82434             Bruno Haible  <bruno@clisp.org>
82435
82436         * lib/xstrndup.h: New file.
82437         * lib/xstrndup.c: New file.
82438
82439 2003-08-17  Bruno Haible  <bruno@clisp.org>
82440
82441         * modules/strndup (Files, Include): Add lib/strndup.h.
82442
82443 2003-08-17  Bruno Haible  <bruno@clisp.org>
82444
82445         * modules/euidaccess (Files): Add lib/euidaccess.h.
82446
82447 2003-08-17  Bruno Haible  <bruno@clisp.org>
82448
82449         * lib/strndup.h: New file.
82450
82451 2003-08-17  Bruno Haible  <bruno@clisp.org>
82452
82453         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82454         like AC_GNU_SOURCE.
82455         * modules/extensions (configure.ac): Comment out the invocation of
82456         gl_USE_SYSTEM_EXTENSIONS.
82457
82458 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82459
82460         Merges from coreutils, etc.
82461         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82462         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82463         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82464         fixing a typo.
82465         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82466         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82467
82468 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82469
82470         Document merge from coreutils.
82471         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82472         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82473         * modules/utime: Add m4/utimes-null.m4.
82474
82475 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82476
82477         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82478         space, undoing this 2003-08-12 change:
82479         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82480
82481 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82482
82483         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82484         strtoul.c from libc, undoing this 2003-08-12 change:
82485         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82486
82487 2003-08-16  Jim Meyering  <jim@meyering.net>
82488
82489         Merges from coreutils.
82490         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82491         prefix.  Adjust cache variables similarly.  Create 500 rather than
82492         just 300 files, to exercise bug on Darwin6.5, too.
82493         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82494         $missing_dir.
82495         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82496         AM_SYS_POSIX_TERMIOS.
82497         Reported by mkc@mathdogs.com.
82498         Also change use of $am_cv_sys_posix_termios
82499         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82500         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82501         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82502         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82503         in /proc/mounts until it finds one with matching device number.  This
82504         is unnecessary when the FILE argument *is* a mount point.  No stat call
82505         is necessary in that case.  So, disable the statvfs-testing code on
82506         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82507         as RedHat bug# 84846.
82508         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82509         to 1MB, so as not to render systems with no stack size limit (e.g.,
82510         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82511         Include <unistd.h>.  On some systems,
82512         it is required for the definition of _SC_PAGESIZE.
82513
82514 2003-08-16  Jim Meyering  <jim@meyering.net>
82515
82516         Merge from coreutils.
82517         * lib/xstrtoimax.c: #else #if -> #elif.
82518         * lib/xstrtoumax.c: Likewise.
82519
82520 2003-08-16  Jim Meyering  <jim@meyering.net>
82521
82522         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82523         * m4/utimes.m4: Removed.
82524         * m4/utimes-null.m4: Renamed from utimes.m4.
82525
82526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82527         to 1MB, so as not to render systems with no stack size limit (e.g.,
82528         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82529         Include <unistd.h>.  On some systems,
82530         it is required for the definition of _SC_PAGESIZE.
82531
82532 2003-08-16  Jim Meyering  <jim@meyering.net>
82533         and Paul Eggert  <eggert@cs.ucla.edu>
82534
82535         Merges from coreutils, etc.
82536
82537         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82538         using the latest version from cvs.  This avoids problems with #line
82539         directives using a vendor (Sun) compiler.
82540         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82541         Don't set GETGROUPS_LIB here; now it's
82542         done via getgroups.m4's wrapper function.
82543         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82544         rather than just in sh-util/configure.in, so that the
82545         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82546         same.
82547         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82548         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82549         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82550         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82551         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82552         Remove code that is now done by the newly-required macros.
82553         Append $(EXEEXT) to DF_PROG.
82554         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82555         Do not invoke or require the following here,
82556         since prereq.m4 or some gnulib .m4 now does this for us:
82557         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82558         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82559         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82560         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82561         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82562         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82563         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82564         AC_FUNC_OBSTACK.
82565         Do not replace the following functions, as this is now the job
82566         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82567         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82568         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82569         atexit getpass, strdup, getpagesize.
82570         Replace 'raise'.
82571         Do not check for the following functions, as this is now the job
82572         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82573         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82574         setregid.
82575         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82576         Check for sys/sysctl.h.
82577         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82578         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82579         of checking for ssize_t ourselves.
82580
82581         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82582         Require every macro that gnulib/modules/* suggests for us.
82583         (jm_PREREQ_ADDEXT): New macro.
82584         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82585         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82586
82587         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82588         (gl_PHYSMEM): Use it.
82589         Also check for `table' function.
82590         Check for new headers and functions.
82591         Add check for sys/sysmp.h.
82592         With suggestions from Kaveh Ghazi.
82593         Ignore headers that are present but cannot be compiled.  This
82594         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82595         C 5.4.
82596
82597 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82598
82599         Document merge from coreutils.
82600         * modules/userspec: Depend on posixver.
82601         * modules/strftime: Depend on tzset.
82602
82603 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82604
82605         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82606         rather than tab, after '#' in shell-script copyright notices.
82607         Suggested by Bruno Haible.
82608
82609 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82610
82611         * config/srclist-update: Use three spaces, rather than tab, after '#'
82612         in shell-script copyright notices.  Suggested by Bruno Haible.
82613         Remove unnecessary parenthesization in regular expression.
82614
82615 2003-08-15  Jim Meyering  <jim@meyering.net>
82616
82617         Merge from coreutils.
82618         * lib/xgethostname.c: Include <stdlib.h>.
82619         (xghostname): Don't exit for anything other than memory-related
82620         failure; just return NULL.
82621         * lib/userspec.c: Include "posixver.h".
82622         (parse_user_spec): Accept `.' as a separator only
82623         in pre-POSIX-200112 mode.
82624         * lib/strtoimax.c: Use #elif rather than #else #if.
82625         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82626         Remove function, now that we can rely on a working tzset function.
82627         [!_LIBC]: Ensure that the required autoconf test has been run.
82628         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82629         Use underlying_strftime for %r.
82630         * lib/sha.c: Merge in some clean-up and optimization changes from
82631         glibc.
82632         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82633         Ensure that it is a multiple of 64.
82634         Rearrange loop exit tests so as to avoid performing an
82635         additional fread after encountering an error or EOF.
82636         * lib/realloc.c: Update copyright date.
82637
82638 2003-08-15  Jim Meyering  <jim@meyering.net>
82639         and Paul Eggert  <eggert@twinsun.com>
82640
82641         Merge from coreutils.
82642         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82643         member but strut utmpx does not.  Needed for AIX 4.3.3.
82644         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82645
82646 2003-08-15  Jim Meyering  <jim@meyering.net>
82647         and Paul Eggert  <eggert@cs.ucla.edu>
82648
82649         Merges from coreutils, etc.
82650         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82651         Require gl_FUNC_TZSET_CLOBBER.
82652         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82653         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82654         members.
82655
82656 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82657
82658         Help the merge from coreutils.
82659         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82660         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82661         * m4/tzset.m4: Use it too.
82662
82663 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82664
82665         * modules/tzset: New file.
82666
82667 2003-08-14  Jim Meyering  <jim@meyering.net>
82668
82669         Merges from coreutils.
82670         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82671         variable names, rather than @FNMATCH_H@.
82672         * modules/alloca: Likewise for $(ALLOCA_H).
82673
82674         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82675         the three copies of the literal target, `fnmatch.h'.
82676         * modules/alloca (alloca.h): Likewise.
82677
82678 2003-08-14  Jim Meyering  <jim@meyering.net>
82679
82680         Merge from coreutils.
82681         * m4/tzset.m4: New file.
82682         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82683         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82684         otherwise, AIX 5.1 systems would end up using the latter.
82685         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82686         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82687         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82688         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82689
82690 2003-08-14  Jim Meyering  <jim@meyering.net>
82691
82692         Merge from coreutils.
82693         * lib/obstack.h: Whitespace changes.
82694         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82695         and xcalloc return values.
82696         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82697         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82698         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82699         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82700         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82701         error from mntctl.
82702         Use mntctl's return value to drive the entry-processing loop, since
82703         we can't rely on the value of the vmt_length member in the last
82704         entry.  On some systems doing so could result in exhausting
82705         virtual memory.  Based in part on a patch from Mike Jetzer.
82706
82707 2003-08-14  Jim Meyering  <jim@meyering.net>
82708         and Paul Eggert  <eggert@twinsun.com>
82709
82710         Merges from coreutils, plus other fixes.
82711         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82712         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82713         for credits and details.  Thanks to Kaveh Ghazi for helping
82714         to keep these files in sync.
82715         (ARRAY_SIZE): Define it.
82716         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82717         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82718         (memcasecmp): Don't assume size_t fits in unsigned int.
82719         Remove casts and duplicate code.
82720         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82721         (memcpy): Remove definition.
82722         Merge in some clean-up and optimization changes from glibc.
82723         [BLOCKSIZE]: Move definition to top of file.
82724         Ensure that it is a multiple of 64.
82725         Rearrange loop exit tests so as to avoid performing an
82726         additional fread after encountering an error or EOF.
82727         * lib/md5.h (md5_uintptr): Define.
82728         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82729         return to the initial working directory.  Preserve errno
82730         for caller.
82731         * lib/idcache.c: Include "xalloc.h".
82732         (xmalloc, xrealloc): Remove decls.
82733         (getuser): Remove casts no longer required in C89.
82734         * lib/human.c: Include stdio.h, for sprintf.
82735         * lib/group-member.c: Include "xalloc.h".
82736         (xmalloc, xrealloc): Remove decls.
82737         (get_group_info): Remove casts no longer required in C89.
82738         * lib/getusershell.c (readname): Remove casts no longer required in
82739         C89.
82740         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82741         * lib/getline.c: Whitespace fix, from coreutils.
82742
82743 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82744
82745         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82746         Check for isascii.
82747
82748         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82749         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82750         Undo previous (whitespace-only) change.
82751
82752 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82753
82754         * lib/exclude.c: Include <ctype.h>
82755         (IN_CTYPE_DOMAIN): New macro.
82756         (is_space): New fn.
82757         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82758         and empty lines.
82759
82760         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82761         Undo previous (whitespace-only) change.
82762
82763 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82764
82765         * config/srclist-update: Change update back to the old behavior,
82766         leaving whitespace alone.  Use one 'sed' command rather than a
82767         pipeline.
82768         (fixlicense): Now a variable, not a function.
82769         (remove_trailing_blanks): Remove.
82770         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82771         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82772         Undo previous (whitespace-only) change.
82773
82774 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82775
82776         Merge from coreutils.
82777         * modules/euidaccess: Add lib_SOURCES, include for new
82778         file euidaccess.h
82779
82780 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82781
82782         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82783         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82784         Normalize leading white space and remove trailing white space.
82785
82786         Merge from coreutils
82787         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82788
82789         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82790         0.12.1.  These files are now being upgraded automatically by
82791         ../config/srclist-update.
82792
82793 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82794
82795         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82796         Normalize leading white space and remove trailing white space.
82797         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82798         notice, as per ../config/srclist-update.
82799
82800         Merge from coreutils.
82801         * lib/euidaccess.h: New file.
82802         * lib/euidaccess.c: Include it.
82803         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82804         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82805         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82806
82807 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82808
82809         * config/srclist-update: Add copyright notice.
82810         (remove_id_lines, remove_trailing_blanks): New constants.
82811         (fixfile): Use them to normalize spacing a bit in copied files.
82812         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82813         Normalize leading white space and remove trailing white space.
82814
82815         * config/texinfo.tex: Sync with texinfo.
82816
82817         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82818         strtoul.c from libc, to merge coreutils whitespace changes.
82819
82820         * config/srclist.txt: Get the following m4 files from gettext:
82821         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82822         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82823         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82824         wint_t.m4.
82825
82826 2003-08-12  Karl Berry  <karl@gnu.org>
82827
82828         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82829         been made.
82830
82831 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82832
82833         * modules/gnu-source, m4/gnu-source.m4:
82834         Remove; we're assuming Autoconf 2.54 or later now.
82835         Suggested by Bruno Haible.
82836         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82837
82838 2003-08-11  Bruno Haible  <bruno@clisp.org>
82839
82840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82841
82842 2003-08-11  Bruno Haible  <bruno@clisp.org>
82843
82844         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82845         (vasnprintf): Use it instead of wcslen.
82846
82847 2003-08-11  Bruno Haible  <bruno@clisp.org>
82848
82849         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82850         value to ensure that _Bool promotes to int. Use #define for _Bool when
82851         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82852
82853 2003-08-10  Karl Berry  <karl@gnu.org>
82854
82855         * lib/regex.h: update from libc (whitespace fix).
82856
82857 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82858
82859         Merge some files from coreutils.  These changes were
82860         originally made by Jim Meyering.
82861         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82862         many older Unixes require this.
82863         * lib/alloca.c (alloca): Remove cast to argument of free;
82864         no longer needed in C89.
82865         * lib/alloca_.h, regex.h: Fix white space to match
82866         what GNU indent does.
82867
82868 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82869
82870         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82871         apparently Emacs's Unicode mode got confused before my 2003-08-05
82872         checkin.
82873
82874 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82875
82876         * m4/extensions.m4: New file.
82877         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82878         Require gl_USE_SYSTEM_EXTENSIONS.
82879         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82880         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82881
82882 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82883
82884         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82885         * modules/extensions, modules/gnu-source: New files.
82886         * modules/timespec, modules/unlocked-io: Depend on extensions.
82887
82888 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82889
82890         * modules/restrict: New file.
82891         * MODULES.html.sh (func_all_modules): Add restrict.
82892         * modules/regex: Depend on restrict.
82893
82894 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82895
82896         * m4/restrict.m4: New file.
82897         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82898
82899 2003-08-07  Bruno Haible  <bruno@clisp.org>
82900
82901         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82902         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82903
82904 2003-08-07  Bruno Haible  <bruno@clisp.org>
82905
82906         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82907         makes the module 'getndelim2' compatible with the module 'getline'.
82908
82909 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82910
82911         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82912         byte with "\201" to avoid glitches when editing that source file
82913         with multi-gnome-terminal.
82914
82915 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82916
82917         * lib/bumpalloc.h: Remove.
82918
82919 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82920
82921         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82922         * modules/bumpalloc: Remove.
82923
82924 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82925
82926         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82927         GNU coding style.
82928
82929         Merge from coreutils.
82930         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82931         1. From glibc.
82932         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82933         from Karl Berry, implemented by Jim Meyering.
82934         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82935         from Dmitry V. Levin.
82936         Remove anachronistic cast of xrealloc.
82937         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82938         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82939         type. Otherwise, it wouldn't compile with at least /bin/cc on
82940         ymp-cray-unicos9.0.2.X.
82941         Combine two mostly-identical uses of alloca into one.
82942         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82943
82944 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82945
82946         [From Emacs.]
82947
82948         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82949         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82950         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82951         obsolete NLIST_NAME_UNION.
82952         [__GNU__]: Undef BSD and FSCALE.
82953         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82954
82955 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82956
82957         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82958         an enum type, so that it's guaranteed to promote to int.  See:
82959         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82960
82961 2003-08-03  Karl Berry  <karl@gnu.org>
82962
82963         * config/depcomp: update from automake.
82964
82965 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82966
82967         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82968         (strerror): Don't assume that a printable int fits in 14 bytes.
82969
82970 2003-07-31  Bruno Haible  <bruno@clisp.org>
82971
82972         * modules/getpass-gnu: New file.
82973         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82974
82975 2003-07-31  Bruno Haible  <bruno@clisp.org>
82976
82977         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82978
82979 2003-07-24  Karl Berry  <karl@gnu.org>
82980
82981         * config/missing: update from automake.
82982
82983 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82984             Bruno Haible  <bruno@clisp.org>
82985
82986         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82987         * lib/getline.c (getline, getdelim): Likewise.
82988         Remove _GNU_SOURCE define; now it's defined in config.h through
82989         m4/getline.m4.
82990
82991 2003-07-23  Karl Berry  <karl@gnu.org>
82992
82993         * config/config.sub: update from prep.
82994
82995 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82996
82997         * modules/xalloc (Depends-on): Add exitfail.
82998         * modules/xmemcoll: Likewise.
82999
83000 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83001
83002         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83003         over-parenthesization in macros.
83004
83005         Sync with coreutils.
83006
83007         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83008         required by C99.
83009
83010         Use `exit_failure' for xalloc and xmemcoll instead of their own
83011         private exit-failure variables.
83012         * lib/xalloc.h (xalloc_exit_failure): Remove.
83013         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83014         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83015         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83016         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83017         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83018
83019 2003-07-20  Jim Meyering  <jim@meyering.net>
83020
83021         * modules/closeout (Depends-on): Add exitfail.
83022         Suggestion from Bruno Haible.
83023
83024 2003-07-19  Karl Berry  <karl@gnu.org>
83025
83026         * config/config.sub: update from prep.
83027
83028 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83029
83030         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83031         Remove.
83032         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83033         to test that it can stand by itself.  Include "exitfail.h".
83034         Clients should set exit_failure instead.
83035         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83036
83037 2003-07-18  Bruno Haible  <bruno@clisp.org>
83038
83039         * modules/getndelim2: New file.
83040         * modules/getline: Share files with module getndelim2.
83041         * modules/getnline: Depend on getndelim2 instead of sharing files with
83042         it. Add getnline.c to lib_SOURCES.
83043         * MODULES.html.sh (func_all_modules): Add getndelim2.
83044
83045 2003-07-18  Bruno Haible  <bruno@clisp.org>
83046
83047         * m4/getndelim2.m4: New file.
83048         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83049         invoke gl_PREREQ_GETNDELIM2.
83050         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83051         gl_PREREQ_GETNDELIM2.
83052         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83053         gl_GETNDELIM2.
83054
83055 2003-07-18  Bruno Haible  <bruno@clisp.org>
83056
83057         * lib/getndelim2.h: New file.
83058         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83059         getndelim2.h.
83060         (getndelim2): Make non-static. Change return type to ssize_t.
83061         * lib/getline.h: Change argument names.
83062         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83063         * lib/getnline.c: Include getndelim2.h.
83064
83065 2003-07-18  Andreas Schwab  <schwab@suse.de>
83066
83067         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83068
83069 2003-07-17  Karl Berry  <karl@gnu.org>
83070
83071         * config/config.sub: update from prep.
83072
83073 2003-07-17  Bruno Haible  <bruno@clisp.org>
83074
83075         * modules/getnline: New file.
83076         * modules/getline: Add lib/getndelim2.c to source file list.
83077         * MODULES.html.sh (func_all_modules): Add getnline.
83078
83079 2003-07-17  Bruno Haible  <bruno@clisp.org>
83080
83081         * m4/getnline.m4: New file.
83082
83083 2003-07-17  Bruno Haible  <bruno@clisp.org>
83084
83085         * m4/Makefile.am.in: Remove file.
83086         * m4/Makefile.am: Remove file.
83087         * m4/Makefile.in: Remove file.
83088
83089 2003-07-17  Bruno Haible  <bruno@clisp.org>
83090
83091         * lib/getnline.h: New file.
83092         * lib/getnline.c: New file.
83093         * lib/getndelim2.c: New file, extracted from getline.c.
83094         (getndelim2): Renamed from getdelim2, with added nmax argument.
83095         * lib/getline.c: Include getndelim2.c.
83096         (getdelim2): Moved out to getndelim2.c.
83097         (getline, getdelim): Update.
83098
83099 2003-07-17  Bruno Haible  <bruno@clisp.org>
83100
83101         * lib/Makefile.am: Remove file.
83102         * lib/Makefile.in: Remove file.
83103
83104 2003-07-17  Bruno Haible  <bruno@clisp.org>
83105
83106         * configure.in: Remove file.
83107         * Makefile.in: Remove file.
83108
83109 2003-07-17  Bruno Haible  <bruno@clisp.org>
83110
83111         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83112
83113 2003-07-16  Karl Berry  <karl@gnu.org>
83114
83115         * config/srclist-update: was running fixlicense twice, which caused
83116                 texinfo.tex to be nullified for some reason.  Simplify,
83117                 $gplsrc is no longer needed as far as I can see?
83118
83119 2003-07-16  Jim Meyering  <jim@meyering.net>
83120
83121         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83122
83123 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83124
83125         * config/srclist.txt: Get the following files from gettext-runtime/intl
83126         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83127         ref-del.sin.  From Bruno Haible.
83128         * config/srclist-update (fixfile): Change grep pattern again, since the
83129         previous fix didn't work (there was another trailing $).  Use
83130         '[$]' to escape the $s.
83131
83132 2003-07-15  Karl Berry  <karl@gnu.org>
83133
83134         * lib/vasnprintf.c: update from gettext.
83135
83136 2003-07-15  Karl Berry  <karl@gnu.org>
83137
83138         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83139         gets expanded when surrounded by '$'.
83140
83141 2003-07-15  Jim Meyering  <jim@meyering.net>
83142
83143         * modules/save-cwd: Don't depend on error.  From Derek Price.
83144
83145 2003-07-15  Jim Meyering  <jim@meyering.net>
83146
83147         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83148
83149 2003-07-14  Simon Josefsson  <jas@extundo.com>
83150
83151         * modules/mempcpy: New file.
83152         * MODULES.html.sh (func_all_modules): Add mempcpy.
83153
83154 2003-07-14  Simon Josefsson  <jas@extundo.com>
83155
83156         * m4/mempcpy.m4: New file.
83157
83158 2003-07-14  Simon Josefsson  <jas@extundo.com>
83159
83160         * lib/mempcpy.h: New file.
83161         * lib/mempcpy.c: New file.
83162
83163 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83164
83165         * modules/getdate, modules/posixtm: Depend on mktime.
83166
83167 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83168
83169         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83170         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83171         unicodeio.c, unicodeio.h, unlocked-io.h:
83172         Switch from LGPL to GPL.
83173
83174 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83175
83176         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83177         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83178         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83179         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83180         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83181         updated automatically by ../config/srclist-update.  This changes
83182         their license from LPGL to GPL.
83183
83184 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83185
83186         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83187         assumed to refer to the root of the most recent stable gettext version.
83188         * config/srclistvars.sh: Add defaults for eggert.
83189         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83190         Match "This program" as well as "The program".  This is needed
83191         for gettext.
83192
83193 2003-07-14  Jim Meyering  <jim@meyering.net>
83194
83195         Don't emit diagnostics.  Let callers do that.
83196         * lib/save-cwd.c: Don't include "error.h".
83197         (save_cwd): Don't call error.  Ensure that errno is valid
83198         when returning nonzero.
83199
83200         * lib/save-cwd.h (restore_cwd): Update prototype.
83201         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83202         Simplify.  Don't call error upon failure.  Let callers do that.
83203         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83204         when auditing is enabled.  But don't bother updating the #if.
83205
83206 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83207
83208         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83209         it breaks C++ compilation.
83210         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83211
83212 2003-07-10  Simon Josefsson  <jas@extundo.com>
83213
83214         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83215
83216 2003-07-10  Jim Meyering  <jim@meyering.net>
83217
83218         * m4/clock_time.m4: Remove trailing blank.
83219         * m4/intmax_t.m4: Likewise.
83220
83221 2003-07-10  Jim Meyering  <jim@meyering.net>
83222
83223         * lib/vasnprintf.c: Remove trailing blanks.
83224         Make cpp indentation consistent.
83225
83226 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83227
83228         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83229         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83230         Switch from LGPL to GPL.
83231
83232 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83233
83234         * config/srclist.txt: Sort sublists.  Add
83235         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83236         that differ from gnulib for one reason or another; we'd like this list
83237         to be smaller but for now let's document what we have.
83238
83239 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83240
83241         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83242         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83243         and sweeter "eval x=$x".
83244         * config/srclist.txt: Get lib/argp* from glibc.
83245
83246 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83247
83248         * lib/mktime.c: Fix some boundary cases and remove need for floating
83249         point.
83250
83251         Issue a compile-time diagnostic if time_t is floating point, or if
83252         two's complement arithmetic is not in effect, or if arithmetic
83253         right shift does not propagate the sign.  These assumptions were
83254         all in the original code but they weren't checked.
83255
83256         (TIME_T_MIDPOINT, verify): New macros.
83257         (__isleap): Remove; it has integer overflow problems.
83258         (leapyear): New function, without those problems.
83259         (ydhms_tm_diff): Remove; splitting into two parts.
83260         (ydhms_diff): New function, containing the arithmetic part of
83261         the old ydhms_tm_diff function.  Issue a compile-time
83262         diagnostic if we are not using C99 integer division.
83263         Avoid casts when possible.
83264         (guess_time_tm): New function, containing the checking part of
83265         the old ydhms_tm_diff function.  Return the new value, rather than
83266         the difference between it and the old.  Accept a new argument T
83267         so that *T specifies the old value.  Check for overflow in the result.
83268
83269         (__mktime_internal): Use a time_t offset, not a long int offset.
83270         This undoes the 2003-06-04 change, which is no longer needed now
83271         that we have better overflow checking.
83272         (localtime_offset): Likewise.
83273
83274         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83275         and long are 64-bit but int is only 32-bit.
83276         (ydhms_diff): Use long int to store year1 and yday1.
83277         Issue a compile-time diagnostic if long int is not wide enough.
83278
83279         (__mktime_internal): Use long int to store adjusted year and yday.
83280         Use plain C rather than preprocessor commands, if that doesn't
83281         affect efficiency.
83282         Check for overflow (and try to repair) after each probe
83283         rather than checking only at the very end.  This avoids some bugs
83284         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83285         does not equal GMT offset at maximum time).
83286         Use integer to check for overflow rather than floating point; this
83287         is more portable to non-IEEE hosts, and is a tad faster.
83288         When we detect that we are oscillating between two values,
83289         don't check whether tm_isdst has the requested value, since
83290         we already know the answer.  When tm_isdst has the wrong value,
83291         use a different heuristic to find the right one, based on the
83292         extreme values actually observed in practice in tz2003a,
83293         rather than the (overly optimistic) "previous 3 calendar quarters".
83294
83295         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83296         "T const" to accommodate glibc style.
83297         (check_result): Use less-confusing report format.  "long" -> "long int.
83298         (main): Likewise.
83299         Don't loop if the iteration overflows time_t.
83300         Allow a negative step in the iteration.
83301
83302 2003-07-06  Karl Berry  <karl@gnu.org>
83303
83304         * config/depcomp: update from automake.
83305         * config/config.sub: update from prep.
83306
83307 2003-07-03  Karl Berry  <karl@gnu.org>
83308
83309         * config/config.guess: update from prep.
83310
83311 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83312
83313         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83314         xreadlink.c now includes it unconditionally.
83315
83316 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83317
83318         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83319         having it depend on HAVE_SYS_TYPES_H.
83320
83321 2003-07-01  Bruno Haible  <bruno@clisp.org>
83322
83323         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83324         <sys/types.h> should be sufficient.
83325         Reported by Paul Eggert.
83326
83327 2003-06-26  Karl Berry  <karl@gnu.org>
83328
83329         * config/depcomp: update from automake.
83330
83331 2003-06-26  Bruno Haible  <bruno@clisp.org>
83332
83333         * modules/human: Depend on module stdbool.
83334
83335 2003-06-25  Bruno Haible  <bruno@clisp.org>
83336
83337         * modules/readlink: New file.
83338         * modules/xreadlink: Depend on it.
83339         * MODULES.html.sh (func_all_modules): Add readlink.
83340
83341 2003-06-25  Bruno Haible  <bruno@clisp.org>
83342
83343         * m4/readlink.m4: New file.
83344
83345 2003-06-25  Bruno Haible  <bruno@clisp.org>
83346
83347         * lib/readlink.c: New file.
83348
83349 2003-06-22  Karl Berry  <karl@gnu.org>
83350
83351         * config/srclist.txt: update mkinstalldirs from automake.
83352         * config/mkinstalldirs: update.
83353
83354 2003-06-22  Bruno Haible  <bruno@clisp.org>
83355
83356         Portability to mingw32.
83357         * m4/ssize_t.m4: New file, from GNU gettext.
83358         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83359         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83360
83361 2003-06-22  Bruno Haible  <bruno@clisp.org>
83362
83363         * modules/safe-read: Add m4/ssize_t.m4.
83364         * modules/xreadlink: Add m4/ssize_t.m4.
83365
83366 2003-06-20  Bruno Haible  <bruno@clisp.org>
83367
83368         Assume C89, so PARAMS isn't needed.
83369         * lib/unicodeio.h (PARAMS): Remove.
83370         * lib/unicodeio.c: Don't use PARAMS.
83371
83372 2003-06-18  Karl Berry  <karl@gnu.org>
83373
83374         * config/config.{guess,sub}: update from prep.
83375
83376 2003-06-18  Jim Meyering  <jim@meyering.net>
83377
83378         Merge changes from coreutils.
83379         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83380         Remove explicit declarations of xmalloc and realloc.
83381         Include xalloc.h.
83382         (read_utmp): Remove anachronistic cast of xmalloc.
83383
83384 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83385
83386         Assume C89, so PARAMS isn't needed.
83387         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83388         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83389         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83390         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83391         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83392         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83393         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83394         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83395         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83396         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83397         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83398         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83399         no longer needed. Anyway, config.h should always be included before any
83400         other file.
83401
83402 2003-06-11  Simon Josefsson  <jas@extundo.com>
83403
83404         * modules/sysexits: New file.
83405         * MODULES.html.sh (func_all_modules): Add sysexits.
83406
83407 2003-06-11  Simon Josefsson  <jas@extundo.com>
83408
83409         * lib/sysexit_.h: New file.
83410
83411 2003-06-11  Derek Price  <derek@ximbiot.com>
83412
83413         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83414         necessary.
83415
83416 2003-06-11  Bruno Haible  <bruno@clisp.org>
83417
83418         * m4/sysexits.m4: New file.
83419
83420 2003-06-10  Simon Josefsson  <jas@extundo.com>
83421
83422         * lib/argp.h: New file, from glibc.
83423         * lib/argp-ba.c: New file, from glibc.
83424         * lib/argp-eexst.c: New file, from glibc.
83425         * lib/argp-fmtstream.c: New file, from glibc.
83426         * lib/argp-fmtstream.h: New file, from glibc.
83427         * lib/argp-fs-xinl.c: New file, from glibc.
83428         * lib/argp-help.c: New file, from glibc.
83429         * lib/argp-namefrob.h: New file, from glibc.
83430         * lib/argp-parse.c: New file, from glibc.
83431         * lib/argp-pv.c: New file, from glibc.
83432         * lib/argp-pvh.c: New file, from glibc.
83433         * lib/argp-xinl.c: New file, from glibc.
83434
83435 2003-06-10  Simon Josefsson  <jas@extundo.com>
83436
83437         * modules/strchrnul: New file.
83438
83439 2003-06-10  Simon Josefsson  <jas@extundo.com>
83440
83441         * modules/argp: New file.
83442
83443 2003-06-10  Simon Josefsson  <jas@extundo.com>
83444
83445         * m4/strchrnul.m4: New file.
83446
83447 2003-06-10  Simon Josefsson  <jas@extundo.com>
83448
83449         * lib/strchrnul.h: New file.
83450         * lib/strchrnul.c: New file.
83451
83452 2003-06-10  Bruno Haible  <bruno@clisp.org>
83453
83454         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83455
83456 2003-06-07  Karl Berry  <karl@gnu.org>
83457
83458         * config/config.{guess,sub}: update from prep.
83459
83460 2003-06-07  Jim Meyering  <jim@meyering.net>
83461
83462         * modules/strtod: Use $(...) notation, not @...@ for
83463         AC_REPLACE'd variables.
83464         * modules/localcharset: Likewise.
83465
83466 2003-06-07  Jim Meyering  <jim@meyering.net>
83467
83468         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83469         in place of my name in the copyright comment.
83470         Remove definition and uses of __P.
83471
83472         From coreutils.
83473         * lib/stat.c: Don't declare xmalloc explicitly.
83474         Instead, include "xalloc.h".
83475         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83476         xrealloc, and xcalloc return values.
83477         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83478         Improve comment.
83479         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83480
83481 2003-06-07  Bruno Haible  <bruno@clisp.org>
83482
83483         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83484         avoid AC_CONFIG_LINKS.
83485         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83486         fnmatch.h, to avoid AC_CONFIG_LINKS.
83487         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83488
83489 2003-06-07  Bruno Haible  <bruno@clisp.org>
83490
83491         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83492         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83493         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83494         directory.
83495         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83496         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83497         directory.
83498
83499 2003-06-06  Jim Meyering  <jim@meyering.net>
83500
83501         Merge from coreutils.
83502         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83503         Consolidate declarations and initializations of *_base* locals.
83504
83505         Merge from coreutils.
83506         This avoids a core dump on systems without GNU putenv,
83507         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83508         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83509         (unsetenv): New static function, from GNU libc.
83510         (rpl_putenv): Use it.
83511
83512         * lib/modechange.c: Remove trailing blanks.
83513
83514         Merge from coreutils.
83515         * lib/fsusage.c: Remove declaration of statfs.
83516         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83517
83518         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83519
83520 2003-06-06  Jim Meyering  <jim@meyering.net>
83521
83522         * lib/stdbool_.h: Renamed from stdbool.h.in.
83523
83524 2003-06-06  Jim Meyering  <jim@meyering.net>
83525             Bruno Haible  <bruno@clisp.org>
83526
83527         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83528         Adjust Makefile.am snippet not to redirect directly to target.
83529         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83530
83531 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83532
83533         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83534         mismatch, look in future quarters as well as past.  This fixes a
83535         bug when processing fall-backwards gaps immediately after a long
83536         period of daylight-saving time.
83537
83538         * lib/mktime.c: Assume freestanding C89 or better.
83539         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83540         (__P): Remove; not used.
83541         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83542         (mktime, not_equal_tm, print_tm, check_result,
83543         main): Use prototypes.  Use const * where appropriate.
83544         (main): Fix typo in testing code that uncovered by above changes.
83545         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83546
83547 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83548
83549         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83550         locale.h, localeconv.  This merges changes from coreutils.
83551
83552         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83553         It can be removed after the next Autoconf is released.
83554         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83555         needed.
83556
83557 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83558
83559         * lib/mktime.c: Fix Debian bug 177940
83560         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83561         (localtime_offset): Now long int, not time_t, because we want it
83562         to be guaranteed to be signed.  All uses changed.
83563         (__mktime_internal): If overflow would occur when adding offset,
83564         don't add it.
83565
83566         Merge 'human' changes from coreutils.  Rewrite to support
83567         locale-specific notations like thousands separators.
83568         * lib/human.c: Simplify authorship notice.
83569         Include human.h immediately after config.h.
83570         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83571         <limits.h>: Do not include, since human.h does.
83572         (SIZE_MAX, UINTMAX_MAX): New macros.
83573         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83574         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83575         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83576         (power_letter): Renamed from suffixes.
83577         (generate_suffix_backwards): Remove.
83578         (adjust_value): Now takes int style (because of human.h changes)
83579         and long double value (for greater precision on some platforms).
83580         (group_number): New function.
83581         (human_readable): Use it.  Use integer options, not enum.
83582         Put the options before the sizes in the arg list.
83583         Support all the new options.
83584         The old human_readable function has been removed;
83585         use inttostr.h instead.
83586         (human_readable, default_block_size, humblock):
83587         Use uintmax_t, not int, for block sizes.
83588         (human_readable_inexact, block_size_types): Remove.
83589         (block_size_opts): New constant.
83590         (human_options): Renamed from human_block_size, with new signature
83591         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83592         * lib/human.h: Add copyright and authorship notice.
83593         Include <limits.h> and <stdbool.h> unconditionally.
83594         (PARAMS): Remove.  All uses removed.
83595         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83596         (enum human_inexact_style): Remove tag; now a nameless enum.
83597         (human_floor, human_ceiling, human_round_to_even): Now have
83598         values 2, 0, 1 rather than -1, 1, 0.
83599         (human_group_digits, human_suppress_point_zero, human_autoscale,
83600         human_base_1024, human_SI, human_B): New constants.
83601         (human_readable_inexact, human_block_size): Remove.
83602         (human_readable): Size args are now uintmax_t, not int.
83603         (human_options): New decl.
83604
83605         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83606         unnecessary now that we assume C89 or better.  This change
83607         imported from coreutils.
83608
83609         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83610         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83611         in the 2003-05-30 sync from glibc.
83612
83613         .h files should stand alone, but we shouldn't include <sys/types.h>
83614         if we can get away with just <stddef.h>.
83615
83616         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83617         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83618         rather than <sys/types.h>, as we merely need size_t.
83619         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83620         to get size_t.
83621         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83622         Include <stdio.h>, to get FILE.
83623         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83624         memcasecmp.h has included <stddef.h> and all we need is size_t.
83625         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83626         our interface, instead of including <sys/types.h>
83627
83628 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83629
83630         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83631         now, as glibc mktime is buggy on non-glibc systems.
83632
83633 2003-06-03  Karl Berry  <karl@gnu.org>
83634
83635         * config/config.sub: update from prep.
83636
83637 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83638
83639         [from coreutils]
83640         Fix some minor time-related bugs with POSIX time arguments.
83641         Some valid time stamps were being rejected (notably -1, and
83642         time stamps before 1900 on 64-bit hosts).  And some invalid
83643         time stamps were being accepted, e.g. September 31.
83644
83645         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83646         that we can return (time_t) -1 successfully.
83647         * lib/posixtm.c: Likewise.
83648         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83649         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83650         (t): Remove static var.
83651         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83652         of static var.  All uses changed.
83653         (year): Do not reject years before 1900; they can occur with
83654         64-bit time_t.
83655         (posix_time_parse): Do not check for out-of-range components;
83656         that is now the caller's responsibility, since our checks were
83657         only approximations.
83658         (posixtime): Use mktime to check for out-of-range components,
83659         since it knows them exactly.
83660         If mktime returns (time_t) -1, check whether an error actually occurred
83661         by invoking localtime on -1.
83662         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83663         posixtime failures better.
83664         Improve the test data (in comments only).
83665
83666 2003-06-02  Karl Berry  <karl@gnu.org>
83667
83668         * config/mkinstalldirs (version): new variable.
83669         (--version): new option.
83670         (usage): improve message.
83671
83672 2003-05-30  Karl Berry  <karl@gnu.org>
83673
83674         * lib/mktime.c: update from libc.
83675
83676 2003-05-30  Bruno Haible  <bruno@clisp.org>
83677
83678         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83679         * config/config.rpath: Upgrade to gettext-0.12.1.
83680
83681 2003-05-30  Bruno Haible  <bruno@clisp.org>
83682
83683         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83684         * m4/nls.m4: New file, from gettext-0.12.1.
83685         * m4/po.m4: New file, from gettext-0.12.1.
83686         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83687
83688 2003-05-30  Bruno Haible  <bruno@clisp.org>
83689
83690         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83691         * lib/localcharset.h: Likewise.
83692         * lib/localcharset.c: Likewise.
83693
83694 2003-05-29  Karl Berry  <karl@gnu.org>
83695
83696         * config/config.rpath: update from gettext.
83697
83698 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83699
83700         Assume the headers required for C89 freestanding compilers.
83701         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83702         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83703         * m4/human.m4 (gl_HUMAN): Likewise.
83704         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83705         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83706         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83707         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83709         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83710
83711 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83712
83713         Assume the headers required for C89 freestanding compilers.
83714         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83715         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83716         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83717         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83718         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83719         define, since <limits.h> is guaranteed to do that.
83720         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83721         * lib/exclude.c: Include <stdbool.h> unconditionally.
83722         * lib/tempname.c: Include <stddef.h> unconditionally.
83723         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83724         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83725         <stddef.h> does that.
83726         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83727         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83728         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83729         needed.
83730         * lib/xstrtol.c: Likewise.
83731         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83732         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83733
83734         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83735         warnings on some platforms.
83736
83737         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83738         arbitrarily.
83739
83740 2003-05-26  Jim Meyering  <jim@meyering.net>
83741
83742         Merge in a change from coreutils:
83743         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83744         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83745         that condition, rather than `-1' which is slightly misleading.
83746         Change the name of the cache variable to have the gl_ prefix.
83747         Prompted by a patch from Richard Dawe for DJGPP.
83748
83749 2003-05-24  Karl Berry  <karl@gnu.org>
83750
83751         * config/config.guess: update from prep.
83752
83753 2003-05-22  Karl Berry  <karl@gnu.org>
83754
83755         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83756
83757 2003-05-20  Karl Berry  <karl@gnu.org>
83758
83759         * config/config.guess: update from prep.
83760
83761 2003-05-18  Karl Berry  <karl@gnu.org>
83762
83763         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83764         might actually be set by the user.
83765
83766         * config/depcomp, install-sh, mdate-sh: update from automake.
83767
83768 2003-05-17  Bruno Haible  <bruno@clisp.org>
83769
83770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83771         invalid expansion for AC_EGREP_CPP.
83772         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83773         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83774         Suggested by Akim Demaille <akim@epita.fr> in
83775         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83776
83777 2003-05-12  Jim Meyering  <jim@meyering.net>
83778
83779         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83780         the space-padded-by-default conversion specifiers, %e, %k, %l.
83781
83782 2003-05-12  Bruno Haible  <bruno@clisp.org>
83783
83784         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83785         the string is longer than 4 KB.
83786
83787 2003-05-11  Karl Berry  <karl@gnu.org>
83788
83789         * config/config.{guess,sub}: update from prep.
83790
83791 2003-05-09  Bruno Haible  <bruno@clisp.org>
83792
83793         * modules/error: Add m4/strerror_r.m4 to file list.
83794
83795 2003-05-03  Bruno Haible  <bruno@clisp.org>
83796
83797         Upgrade to Unicode-4.0.
83798         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83799         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83800         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83801         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83802         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83803         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83804         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83805         Change width of U+E0100..U+E01EF from 1 to 0.
83806
83807 2003-04-25  Jim Meyering  <jim@meyering.net>
83808
83809         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83810         of type size_t, not int.
83811
83812 2003-04-25  Bruno Haible  <bruno@clisp.org>
83813
83814         * lib/copy-file.c: Include <stddef.h>, for size_t.
83815
83816 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83817
83818         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83819         code which expansion is under static control.  Patch imported from
83820         Akim Demaille's patch to Bison; see
83821         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83822
83823 2003-04-14  Bruno Haible  <bruno@clisp.org>
83824
83825         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83826
83827 2003-04-11  Jim Meyering  <jim@meyering.net>
83828
83829         Merge changes from Coreutils.
83830
83831         2003-03-22  Jim Meyering  <jim@meyering.net>
83832
83833         * lib/strftime.c (widen): Cast alloca return value to proper type.
83834
83835         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83836
83837         From GNU libc.
83838         * lib/strftime.c (my_strftime): Handle very large width
83839         specifications for numeric values correctly.  Improve checks for
83840         overflow.
83841
83842         2003-01-19  Jim Meyering  <jim@meyering.net>
83843
83844         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83845         definitions.
83846         (nl_get_alt_digit) [! defined my_strftime]: Define.
83847         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83848         _nl_get_alt_digit and _nl_get_walt_digit.
83849
83850         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83851         libc. These changes have no effect outside of _LIBC.
83852
83853 2003-04-10  Bruno Haible  <bruno@clisp.org>
83854
83855         * modules/findprog: New file.
83856         * MODULES.html.sh (func_all_modules): Add it.
83857
83858 2003-04-10  Bruno Haible  <bruno@clisp.org>
83859
83860         * m4/findprog.m4: New file.
83861         * m4/eaccess.m4: New file.
83862
83863 2003-04-10  Bruno Haible  <bruno@clisp.org>
83864
83865         * lib/findprog.h: New file, from GNU gettext.
83866         * lib/findprog.c: New file, from GNU gettext.
83867
83868 2003-04-05  Jim Meyering  <jim@meyering.net>
83869
83870         Merge changes from Coreutils.
83871
83872         * lib/exclude.h (PARAMS): Remove definition and uses.
83873         * lib/exclude.c: Remove uses of `PARAMS'.
83874
83875         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83876         Add test-cases for DOS filenames. Declare program_name.
83877         (main): Set up program_name.  Patch by Rich Dawe.
83878
83879         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83880         error from mntctl.
83881         Use mntctl's return value to drive the entry-processing loop, since
83882         we can't rely on the value of the vmt_length member in the last
83883         entry.  On some systems doing so could result in exhausting
83884         virtual memory.  Based in part on a patch from Mike Jetzer.
83885
83886 2003-04-04  Bruno Haible  <bruno@clisp.org>
83887
83888         * modules/linebreak: New file.
83889         * MODULES.html.sh (func_all_modules): Add it.
83890
83891 2003-04-04  Bruno Haible  <bruno@clisp.org>
83892
83893         * m4/linebreak.m4: New file.
83894
83895 2003-04-04  Bruno Haible  <bruno@clisp.org>
83896
83897         * lib/linebreak.h: New file, from GNU gettext.
83898         * lib/linebreak.c: New file, from GNU gettext with slight
83899         modifications.
83900         * lib/lbrkprop.h: New file, from GNU gettext.
83901
83902 2003-04-03  Bruno Haible  <bruno@clisp.org>
83903
83904         * modules/utf8-ucs4: New file.
83905         * modules/utf16-ucs4: New file.
83906         * modules/ucs4-utf8: New file.
83907         * modules/ucs4-utf16: New file.
83908         * MODULES.html.sh (func_all_modules): Add them.
83909
83910 2003-04-03  Bruno Haible  <bruno@clisp.org>
83911
83912         * m4/utf-ucs4.m4: New file.
83913         * m4/ucs4-utf.m4: New file.
83914
83915 2003-04-03  Bruno Haible  <bruno@clisp.org>
83916
83917         * lib/utf8-ucs4.h: New file, from GNU gettext.
83918         * lib/utf16-ucs4.h: New file, from GNU gettext.
83919         * lib/ucs4-utf8.h: New file, from GNU gettext.
83920         * lib/ucs4-utf16.h: New file, from GNU gettext.
83921
83922 2003-04-02  Bruno Haible  <bruno@clisp.org>
83923
83924         * modules/binary-io: New file.
83925         * MODULES.html.sh (func_all_modules): Add it.
83926
83927 2003-04-02  Bruno Haible  <bruno@clisp.org>
83928
83929         * lib/binary-io.h: New file, from GNU gettext.
83930
83931 2003-04-01  Bruno Haible  <bruno@clisp.org>
83932
83933         * modules/pathname: New file.
83934         * MODULES.html.sh (func_all_modules): Add it.
83935
83936 2003-04-01  Bruno Haible  <bruno@clisp.org>
83937
83938         * lib/pathname.h: New file, from GNU gettext.
83939         * lib/concatpath.c: New file, from GNU gettext.
83940
83941 2003-03-30  Bruno Haible  <bruno@clisp.org>
83942
83943         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83944
83945 2003-03-30  Bruno Haible  <bruno@clisp.org>
83946
83947         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83948         function chown() doesn't exist.
83949
83950 2003-03-28  Bruno Haible  <bruno@clisp.org>
83951
83952         * modules/copy-file: New file.
83953         * MODULES.html.sh (func_all_modules): Add it.
83954
83955 2003-03-28  Bruno Haible  <bruno@clisp.org>
83956
83957         * m4/copy-file.m4: New file.
83958
83959 2003-03-28  Bruno Haible  <bruno@clisp.org>
83960
83961         * lib/copy-file.h: New file, from GNU gettext.
83962         * lib/copy-file.c: New file, from GNU gettext.
83963
83964 2003-03-18  Jim Meyering  <jim@meyering.net>
83965
83966         * lib/quote.c (quote_n): Fix typo in comment.
83967
83968 2003-03-18  Bruno Haible  <bruno@clisp.org>
83969
83970         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83971         checking.
83972         * m4/onceonly_2_57.m4: Likewise.
83973
83974 2003-03-17  Bruno Haible  <bruno@clisp.org>
83975
83976         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83977         (m4_quote): Remove macro.
83978         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83979
83980 2003-03-14  Jim Meyering  <jim@meyering.net>
83981
83982         Merge changes from Coreutils.
83983         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83984         to be const, in order to avoid warnings.
83985         (obstack_room): Likewise.
83986         (obstack_empty_p): Likewise.
83987
83988 2003-03-14  Bruno Haible  <bruno@clisp.org>
83989
83990         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83991         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83992
83993 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83994
83995         Merge changes from Bison.
83996         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83997         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83998         when compiling Bison 1.875's `bitset bset = obstack_alloc
83999         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84000         * lib/hash.c: Include <stdbool.h> unconditionally.
84001
84002 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84003
84004         * m4/onceonly.m4 (m4_quote): New macro.
84005         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84006         Quote AC_FOREACH variable-expansions properly.
84007
84008 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84009
84010         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84011
84012 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84013
84014         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84015         Reported by Bruce Becker; see:
84016         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84017
84018 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84019             Bruno Haible  <bruno@clisp.org>
84020
84021         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84022         Reported by John Hughes, see
84023         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84024
84025 2003-02-20  Bruno Haible  <bruno@clisp.org>
84026
84027         * MODULES.html.sh (func_all_modules): Add poll.
84028
84029 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84030
84031         * modules/poll: New file.
84032
84033 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84034
84035         * lib/poll_.h: New file.
84036         * lib/poll.c: New file.
84037
84038 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84039
84040         * m4/poll.m4: New file.
84041
84042 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84043
84044         * modules/mathl: New file.
84045
84046 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84047
84048         * lib/mathl.h: New file.
84049         * lib/acosl.c: New file.
84050         * lib/asinl.c: New file.
84051         * lib/atanl.c: New file.
84052         * lib/ceill.c: New file.
84053         * lib/cosl.c: New file.
84054         * lib/expl.c: New file.
84055         * lib/floorl.c: New file.
84056         * lib/frexpl.c: New file.
84057         * lib/ldexpl.c: New file.
84058         * lib/logl.c: New file.
84059         * lib/sincosl.c: New file.
84060         * lib/sinl.c: New file.
84061         * lib/sqrtl.c: New file.
84062         * lib/tanl.c: New file.
84063         * lib/trigl.c: New file.
84064         * lib/trigl.h: New file.
84065
84066 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84067
84068         * m4/mathl.m4: New file.
84069
84070 2003-02-18  Bruno Haible  <bruno@clisp.org>
84071
84072         * MODULES.html.sh (func_all_modules): Add mathl.
84073
84074 2003-02-17  Bruno Haible  <bruno@clisp.org>
84075
84076         * modules/mkdtemp: New module.
84077         * MODULES.html.sh (func_all_modules): Add it.
84078
84079 2003-02-17  Bruno Haible  <bruno@clisp.org>
84080
84081         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84082
84083 2003-02-17  Bruno Haible  <bruno@clisp.org>
84084
84085         * lib/mkdtemp.h: New file, from GNU gettext.
84086         * lib/mkdtemp.c: New file, from GNU gettext.
84087
84088 2003-02-02  Jim Meyering  <jim@meyering.net>
84089
84090         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84091         e.g. glibc-2.2.93.
84092
84093 2003-01-31  Bruno Haible  <bruno@clisp.org>
84094
84095         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84096         'rpl_rename'.
84097         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84098         'rpl_strnlen'.
84099         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84100         'rpl_strtod'.
84101         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84102         'rpl_utime'.
84103
84104 2003-01-31  Bruno Haible  <bruno@clisp.org>
84105
84106         * lib/rename.c: #undef rename before defining rpl_rename.
84107         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84108
84109 2003-01-30  Bruno Haible  <bruno@clisp.org>
84110
84111         * modules/vasnprintf, modules/vasprintf: New modules.
84112         * MODULES.html.sh (func_all_modules): Add them.
84113
84114 2003-01-30  Bruno Haible  <bruno@clisp.org>
84115
84116         * m4/signed.m4: New file, from GNU gettext.
84117         * m4/longdouble.m4: New file, from GNU gettext.
84118         * m4/wchar_t.m4: New file, from GNU gettext.
84119         * m4/wint_t.m4: New file, from GNU gettext.
84120         * m4/vasnprintf.m4: New file.
84121         * m4/vasprintf.m4: New file.
84122
84123 2003-01-30  Bruno Haible  <bruno@clisp.org>
84124
84125         * lib/printf-args.h: New file, from GNU gettext.
84126         * lib/printf-args.c: New file, from GNU gettext.
84127         * lib/printf-parse.h: New file, from GNU gettext.
84128         * lib/printf-parse.c: New file, from GNU gettext.
84129         * lib/vasnprintf.h: New file, from GNU gettext.
84130         * lib/vasnprintf.c: New file, from GNU gettext.
84131         * lib/asnprintf.c: New file, from GNU gettext.
84132         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84133         * lib/vasprintf.c: New file, from GNU gettext.
84134         * lib/asprintf.c: New file, from GNU gettext.
84135
84136 2003-01-29  Bruno Haible  <bruno@clisp.org>
84137
84138         * modules/stpncpy: New module.
84139         * MODULES.html.sh (func_all_modules): Add it.
84140
84141 2003-01-29  Bruno Haible  <bruno@clisp.org>
84142
84143         * m4/stpncpy.m4: New file.
84144
84145 2003-01-29  Bruno Haible  <bruno@clisp.org>
84146
84147         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84148         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84149
84150 2003-01-28  Bruno Haible  <bruno@clisp.org>
84151
84152         * modules/c-ctype: New module.
84153         * MODULES.html.sh (func_all_modules): Add it.
84154
84155 2003-01-28  Bruno Haible  <bruno@clisp.org>
84156
84157         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84158         Paul Eggert.
84159         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84160         Paul Eggert.
84161
84162 2003-01-27  Bruno Haible  <bruno@clisp.org>
84163
84164         * modules/xsetenv: New module.
84165         * MODULES.html.sh (func_all_modules): Add it.
84166
84167 2003-01-27  Bruno Haible  <bruno@clisp.org>
84168
84169         * lib/xsetenv.h: New file, from GNU gettext.
84170         * lib/xsetenv.c: New file, from GNU gettext.
84171
84172 2003-01-23  Jim Meyering  <jim@meyering.net>
84173
84174         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84175         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84176
84177 2003-01-23  Bruno Haible  <bruno@clisp.org>
84178
84179         * modules/minmax: New module.
84180         * MODULES.html.sh (func_all_modules): Add it.
84181
84182 2003-01-23  Bruno Haible  <bruno@clisp.org>
84183
84184         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84185         Eggert.
84186
84187 2003-01-22  Bruno Haible  <bruno@clisp.org>
84188
84189         * modules/exit: New module.
84190         * MODULES.html.sh (func_all_modules): Add it.
84191
84192 2003-01-22  Bruno Haible  <bruno@clisp.org>
84193
84194         * lib/exit.h: New file, from GNU gettext.
84195
84196 2003-01-19  Bruno Haible  <bruno@clisp.org>
84197
84198         * gnulib-tool: Recognize option --extract-maintainer.
84199         (func_get_maintainer): New function.
84200         * modules/*: Add Maintainer entry.
84201
84202 2003-01-16  Jim Meyering  <jim@meyering.net>
84203
84204         * m4/regex.m4: The `regex' struct is both input and output.
84205         Initialize it before each use.  Patch by Tim Waugh.
84206
84207 2003-01-16  Bruno Haible  <bruno@clisp.org>
84208
84209         * MODULES.html.sh: Add a table of contents. Add the module name as
84210         leftmost column. Add hyperlinks.
84211
84212 2003-01-15  Bruno Haible  <bruno@clisp.org>
84213
84214         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84215
84216 2003-01-15  Bruno Haible  <bruno@clisp.org>
84217
84218         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84219         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84220         suffix.
84221
84222 2003-01-15  Bruno Haible  <bruno@clisp.org>
84223
84224         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84225
84226 2003-01-15  Bruno Haible  <bruno@clisp.org>
84227
84228         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84229         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84230
84231 2003-01-14  Jim Meyering  <jim@meyering.net>
84232
84233         * lib/same.c (same_name): Tweak a comment.
84234
84235 2003-01-14  Bruno Haible  <bruno@clisp.org>
84236
84237         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84238         when a string comparison is sufficient.
84239
84240 2003-01-14  Bruno Haible  <bruno@clisp.org>
84241
84242         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84243         'unsigned int'.
84244
84245 2003-01-14  Bruno Haible  <bruno@clisp.org>
84246
84247         * lib/hash-pjw.c: Add comment about low quality of this function.
84248
84249 2003-01-13  Bruno Haible  <bruno@clisp.org>
84250
84251         * modules/stpcpy: Distribute lib/stpcpy.h.
84252         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84253
84254 2003-01-13  Bruno Haible  <bruno@clisp.org>
84255
84256         * modules/*: Add a description.
84257         * modules/strpbrk: Fix Makefile.am snippet.
84258         * modules/strtoimax: Fix dependencies.
84259         * modules/strtoumax: Likewise.
84260
84261 2003-01-13  Bruno Haible  <bruno@clisp.org>
84262
84263         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84264         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84265         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84266
84267 2003-01-13  Bruno Haible  <bruno@clisp.org>
84268
84269         * gnulib-tool (func_create_testdir): Store config/* files in the main
84270         directory.
84271         * config.rpath: Move to ...
84272         * config/config.rpath: ... here.
84273         * modules/gettext: Contains config/config.rpath, not config.rpath.
84274         * modules/iconv: Likewise.
84275
84276 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84277
84278         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84279         to avoid collisions with libcurses and libreadline.
84280
84281         * m4/getstr.m4: Remove.
84282         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84283
84284 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84285
84286         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84287         to avoid collisions with libcurses and libreadline.
84288
84289         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84290         * lib/getstr.h, getstr.c: Remove.
84291         * lib/getline.c: Include "getline.h", to check interface.
84292         Move body of old getstr.c here: this defines MIN_CHUNK and
84293         declares getdelim2, which is renamed from getstr.
84294         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84295
84296         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84297         All uses changed.
84298         * lib/linebuffer.h: Likewise.
84299         (readline): Remove backward-compatibility macro.
84300
84301 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84302
84303         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84304         to avoid collisions with libcurses and libreadline.
84305         * getstr: Remove.
84306         * MODULES.html.sh: Remove getstr.
84307         * modules/getline: Depend on unlocked-io, not getstr.
84308
84309 2003-01-12  Jim Meyering  <jim@meyering.net>
84310
84311         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84312
84313 2003-01-10  Bruno Haible  <bruno@clisp.org>
84314
84315         * modules/alloca: Change Makefile.am requirements. Simplify Include
84316         requirements. Add lib/alloca_.h to file list.
84317
84318 2003-01-10  Bruno Haible  <bruno@clisp.org>
84319
84320         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84321
84322 2003-01-10  Bruno Haible  <bruno@clisp.org>
84323
84324         * lib/alloca_.h: New file.
84325         * lib/getdate.y: Unconditionally include alloca.h.
84326         * lib/makepath.c: Likewise.
84327         * lib/setenv.c: Likewise.
84328         * lib/userspec.c: Likewise.
84329
84330 2003-01-09  Karl Berry  <karl@gnu.org>
84331
84332         * MODULES.html.sh: include `dirname $0` in PATH, to find
84333         gnulib-tool.
84334
84335 2003-01-09  Bruno Haible  <bruno@clisp.org>
84336
84337         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84338         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84339
84340 2003-01-09  Bruno Haible  <bruno@clisp.org>
84341
84342         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84343
84344 2003-01-09  Bruno Haible  <bruno@clisp.org>
84345
84346         * lib/stdbool.h.in: New file.
84347
84348 2003-01-09  Bruno Haible  <bruno@clisp.org>
84349
84350         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84351         * MODULES.html.sh: Likewise.
84352
84353 2003-01-08  Jim Meyering  <jim@meyering.net>
84354
84355         * lib/full-write.c: Undefine and define-away `const' after inclusion
84356         of errno.h, not before.  Suggestion from Bruno Haible.
84357
84358 2003-01-08  Bruno Haible  <bruno@clisp.org>
84359
84360         * modules/full-read: Depend on full-write.
84361
84362 2003-01-08  Bruno Haible  <bruno@clisp.org>
84363
84364         * lib/safe-read.c: Include specification header first, to ensure its
84365         selfcontainedness.
84366         * lib/full-write.c: Likewise.
84367
84368 2003-01-07  Jim Meyering  <jim@meyering.net>
84369
84370         * lib/full-write.c: Rework so that it may serve to define full_read,
84371         too.
84372         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84373
84374 2003-01-07  Bruno Haible  <bruno@clisp.org>
84375
84376         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84377         <inttypes.h>.
84378         * lib/xstrtol.h: Likewise.
84379         * lib/xstrtoimax.c: Likewise.
84380         * lib/xstrtoumax.c: Likewise.
84381         * lib/human.h: Likewise.
84382
84383         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84384         on systems that have <inttypes.h> but not <stdint.h>.
84385
84386 2003-01-07  Bruno Haible  <bruno@clisp.org>
84387
84388         * MODULES.html.sh: Add copyright notice.
84389         (missed_files): Omit CVS directory entries.
84390         (func_module): Make it work with sed-3.02.
84391         * MODULES.txt: Remove file.
84392
84393 2003-01-06  Jim Meyering  <jim@meyering.net>
84394
84395         * lib/version-etc.c: Update year in translatable copyright string.
84396
84397 2003-01-03  Karl Berry  <karl@gnu.org>
84398
84399         * config/config.{guess,sub}: update from prep.
84400
84401 2003-01-02  Karl Berry  <karl@gnu.org>
84402
84403         * doc/COPYING.DOC: belatedly updated to 1.2.
84404
84405 2003-01-01  Karl Berry  <karl@gnu.org>
84406
84407         * gnulib-tool (func_verify_module): report module name $module in
84408         error message, not $1.
84409         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84410         be created, only if it doesn't exist.
84411         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84412
84413 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84414
84415         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84416
84417 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84418
84419         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84420         memcmp if strcoll doesn't work.
84421
84422 2002-12-31  Bruno Haible  <bruno@clisp.org>
84423
84424         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84425         nonempty.
84426
84427 2002-12-31  Bruno Haible  <bruno@clisp.org>
84428
84429         * lib/memcoll.c (STRCOLL): New macro.
84430         (memcoll): Use it.
84431
84432 2002-12-31  Bruno Haible  <bruno@clisp.org>
84433
84434         * lib/localcharset.h: New file.
84435         * lib/localcharset.c: Include it.
84436         * lib/unicodeio.c: Likewise.
84437
84438 2002-12-31  Bruno Haible  <bruno@clisp.org>
84439
84440         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84441         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84442
84443 2002-12-31  Bruno Haible  <bruno@clisp.org>
84444
84445         * lib/getline.h: Include <stddef.h>, for size_t.
84446
84447         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84448         * lib/unicodeio.c: Don't include <stddef.h>.
84449
84450 2002-12-31  Bruno Haible  <bruno@clisp.org>
84451
84452         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84453         HAVE_TM_ZONE.
84454
84455 2002-12-24  Karl Berry  <karl@gnu.org>
84456
84457         * config/config.guess: update from prep.
84458
84459 2002-12-24  Bruno Haible  <bruno@clisp.org>
84460
84461         General infrasructure.
84462         * m4/README: Rewritten.
84463         * m4/onceonly.m4: New file.
84464         * m4/onceonly_2_57.m4: New file.
84465
84466         Module atexit.
84467         * m4/atexit.m4: New file.
84468
84469         Module strtod.
84470         * m4/strtod.m4: New file.
84471
84472         Module strtol.
84473         * m4/strtol.m4: New file.
84474
84475         Module strtoul.
84476         * m4/strtoul.m4: New file.
84477
84478         Module memchr.
84479         * m4/memchr.m4: New file.
84480
84481         Module memcmp.
84482         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84483         (jm_FUNC_MEMCMP): Invoke it.
84484
84485         Module memcpy.
84486         * m4/memcpy.m4: New file.
84487
84488         Module memmove.
84489         * m4/memmove.m4: New file.
84490
84491         Module memset.
84492         * m4/memset.m4: New file.
84493
84494         Module strcspn.
84495         * m4/strcspn.m4: New file.
84496
84497         Module strpbrk.
84498         * m4/strpbrk.m4: New file.
84499
84500         Module strstr.
84501         * m4/strstr.m4: New file.
84502
84503         Module strerror.
84504         * m4/strerror.m4: New file.
84505
84506         Module mktime.
84507         * m4/mktime.m4: Renamed from jm-mktime.m4.
84508         (gl_PREREQ_MKTIME): New macro.
84509         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84510
84511         Module malloc.
84512         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84513         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84514         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84515
84516         Module realloc.
84517         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84518         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84519         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84520
84521         Module strftime.
84522         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84523         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84524         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84525         gl_TM_GMTOFF.
84526         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84527
84528         Module xalloc.
84529         * m4/xalloc.m4: New file.
84530
84531         Module alloca.
84532         * m4/alloca.m4: New file.
84533
84534         Module putenv.
84535         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84536         (jm_FUNC_PUTENV): Invoke it.
84537
84538         Module setenv.
84539         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84540         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84541         when invoked twice.
84542         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84543         gt_FUNC_SETENV.
84544
84545         Module memrchr.
84546         * m4/memrchr.m4: New file.
84547
84548         Module stpcpy.
84549         * m4/stpcpy.m4: New file.
84550
84551         Module strcase.
84552         * m4/strcase.m4: New file.
84553
84554         Module strdup.
84555         * m4/strdup.m4: New file.
84556
84557         Module strnlen.
84558         * m4/strnlen.m4: New file.
84559
84560         Module strndup.
84561         * m4/strndup.m4: New file.
84562
84563         Module xstrtod.
84564         * m4/xstrtod.m4: New file.
84565
84566         Module xstrtol.
84567         * m4/xstrtol.m4: New file.
84568
84569         Module getdate.
84570         * m4/getdate.m4: New file.
84571
84572         Module unlocked-io.
84573         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84574         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84575         * m4/jm-glibc-io.m4n: Remove file.
84576
84577         Module long-options.
84578         * m4/long-options.m4: New file.
84579
84580         Module md5.
84581         * m4/md5.m4: New file.
84582
84583         Module sha.
84584         * m4/sha.m4: New file.
84585
84586         Module getstr.
84587         * m4/getstr.m4: New file.
84588
84589         Module getline.
84590         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84591         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84592         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84593         simply getline. Infoke gl_PREREQ_GETLINE.
84594
84595         Module obstack.
84596         * m4/obstack.m4: New file.
84597
84598         Module hash.
84599         * m4/hash.m4: New file.
84600
84601         Module readtokens.
84602         * m4/readtokens.m4: New file.
84603
84604         Module strverscmp.
84605         * m4/strverscmp.m4: New file.
84606
84607         Module stdbool.
84608         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84609         OSF/1.
84610
84611         Module strtoll.
84612         * m4/strtoll.m4: New file.
84613
84614         Module strtoull.
84615         * m4/strtoull.m4: New file.
84616
84617         Module strtoimax.
84618         * m4/strtoimax.m4: New file.
84619
84620         Module strtoumax.
84621         * m4/strtoumax.m4: New file.
84622
84623         Module xstrtoimax.
84624         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84625         jm_AC_PREREQ_XSTRTOIMAX.
84626         Moved the strtol prerequisites to strtol.m4.
84627         Moved the strtoll prerequisites to strtoll.m4.
84628         Moved the strtoimax prerequisites to strtoimax.m4.
84629
84630         Module xstrtoumax.
84631         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84632         jm_AC_PREREQ_XSTRTOUMAX.
84633         Moved the strtoul prerequisites to strtoul.m4.
84634         Moved the strtoull prerequisites to strtoull.m4.
84635         Moved the strtoumax prerequisites to strtoumax.m4.
84636
84637         Module chown.
84638         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84639         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84640
84641         Module dup2.
84642         * m4/dup2.m4: New file.
84643
84644         Module ftruncate.
84645         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84646         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84647
84648         Module getgroups.
84649         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84650         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84651
84652         Module gettimeofday.
84653         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84654         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84655         gl_PREREQ_GETTIMEOFDAY.
84656
84657         Module mkdir.
84658         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84659         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84660
84661         Module mkstemp.
84662         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84663         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84664         jm_AC_TYPE_UINTMAX_T.
84665         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84666
84667         Module stat.
84668         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84669         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84670
84671         Module lstat.
84672         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84673         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84674
84675         Module timespec.
84676         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84677         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84678         * m4/st_mtim.m4: Indentation.
84679
84680         Module nanosleep.
84681         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84682         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84683         gl_PREREQ_NANOSLEEP.
84684
84685         Module regex.
84686         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84687         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84688         (gl_REGEX): New macro.
84689
84690         Module rename.
84691         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84692         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84693
84694         Module rmdir.
84695         * m4/rmdir.m4: New file.
84696
84697         Module utime.
84698         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84699         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84700         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84701
84702         Module dirname.
84703         * m4/dirname.m4: New file.
84704
84705         Module getopt.
84706         * m4/getopt.m4: New file.
84707
84708         Module unistd-safer.
84709         * m4/unistd-safer.m4: New file.
84710
84711         Module fnmatch.
84712         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84713         declaration.
84714         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84715         (gl_FUNC_FNMATCH_POSIX): New macro.
84716         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84717         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84718         simply fnmatch.
84719
84720         Module exclude.
84721         * m4/exclude.m4: New file.
84722
84723         Module human.
84724         * m4/human.m4: New file.
84725
84726         Module acl.
84727         * m4/acl.m4: Nop.
84728
84729         Module backupfile.
84730         * m4/backupfile.m4: New file.
84731         * m4/d-ino.m4: Indentation.
84732
84733         Module fsusage.
84734         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84735         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84736         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84737
84738         Module dirfd.
84739         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84740         requirements.
84741
84742         Module euidaccess.
84743         * m4/euidaccess.m4: New file.
84744
84745         Module file-type.
84746         * m4/file-type.m4: New file.
84747
84748         Module fileblocks.
84749         * m4/fileblocks.m4: New file.
84750
84751         Module filemode.
84752         * m4/filemode.m4: New file.
84753
84754         Module isdir.
84755         * m4/isdir.m4: New file.
84756
84757         Module lchown.
84758         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84759         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84760
84761         Module makepath.
84762         * m4/makepath.m4: New file.
84763
84764         Module modechange.
84765         * m4/modechange.m4: New file.
84766
84767         Module mountlist.
84768         * m4/mountlist.m4: New file.
84769         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84770         Indentation.
84771
84772         Module path-concat.
84773         * m4/path-concat.m4: New file.
84774
84775         Module pathmax.
84776         * m4/pathmax.m4: New file.
84777
84778         Module same.
84779         * m4/same.m4: New file.
84780
84781         Module save-cwd.
84782         * m4/save-cwd.m4: New file.
84783
84784         Module savedir.
84785         * m4/savedir.m4: New file.
84786
84787         Module xgetcwd.
84788         * m4/xgetcwd.m4: New file.
84789         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84790
84791         Module xreadlink.
84792         * m4/xreadlink.m4: New file.
84793
84794         Module safe-read.
84795         * m4/safe-read.m4: New file.
84796
84797         Module safe-write.
84798         * m4/safe-write.m4: New file.
84799
84800         Module closeout.
84801         * m4/closeout.m4: New file.
84802
84803         Module stdio-safer.
84804         * m4/stdio-safer.m4: New file.
84805
84806         Module getpass.
84807         * m4/getpass.m4: New file.
84808
84809         Module getugroups.
84810         * m4/getugroups.m4: New file.
84811
84812         Module group-member.
84813         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84814         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84815
84816         Module idcache.
84817         * m4/idcache.m4: New file.
84818
84819         Module userspec.
84820         * m4/userspec.m4: New file.
84821
84822         Module gettime.
84823         * m4/clock_time.m4: New file.
84824         * m4/gettime.m4: New file.
84825
84826         Module settime.
84827         * m4/settime.m4: New file.
84828
84829         Module posixtm.
84830         * m4/posixtm.m4: New file.
84831
84832         Module gethostname.
84833         * m4/gethostname.m4: New file.
84834
84835         Module canon-host.
84836         * m4/canon-host.m4: New file.
84837
84838         Module gettext.
84839         * m4/codeset.m4: New file, from gettext-0.11.5.
84840         * m4/gettext.m4: New file, from gettext-0.11.5.
84841         * m4/glibc21.m4: New file, from gettext-0.11.5.
84842         * m4/iconv.m4: New file, from gettext-0.11.5.
84843         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84844         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84845         * m4/inttypes.m4: New file, from gettext-0.11.5.
84846         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84847         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84848         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84849         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84850         * m4/lib-link.m4: New file, from gettext-0.11.5.
84851         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84852         * m4/progtest.m4: New file, from gettext-0.11.5.
84853         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84854         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84855         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84856
84857         Module localcharset.
84858         * m4/localcharset.m4: New file.
84859
84860         Module hard-locale.
84861         * m4/hard-locale.m4: New file.
84862
84863         Module mbswidth.
84864         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84865         onceonly macros.
84866         * m4/mbrtowc.m4: Add comment.
84867
84868         Module memcasecmp.
84869         * m4/memcasecmp.m4: New file.
84870
84871         Module memcoll.
84872         * m4/memcoll.m4: New file.
84873
84874         Module unicodeio.
84875         * m4/unicodeio.m4: New file.
84876
84877         Module rpmatch.
84878         * m4/rpmatch.m4: New file.
84879
84880         Module yesno.
84881         * m4/yesno.m4: New file.
84882
84883         Module exitfail.
84884         * m4/exitfail.m4: New file.
84885
84886         Module c-stack.
84887         * m4/c-stack.m4 (gl_C_STACK): New macro.
84888         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84889
84890         Module error.
84891         * m4/error.m4 (gl_ERROR): New macro.
84892         (jm_PREREQ_ERROR): Use onceonly macros.
84893
84894         Module fatal.
84895         * m4/fatal.m4: New file.
84896
84897         Module getloadavg.
84898         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84899         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84900
84901         Module getpagesize.
84902         * m4/getpagesize.m4: New file.
84903
84904         Module getusershell.
84905         * m4/getusershell.m4: New file.
84906
84907         Module physmem.
84908         * m4/physmem.m4: New file.
84909
84910         Module posixver.
84911         * m4/posixver.m4: New file.
84912
84913         Module quotearg.
84914         * m4/quotearg.m4: New file.
84915
84916         Module quote.
84917         * m4/quote.m4: New file.
84918
84919         Module readutmp.
84920         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84921
84922         Module sig2str.
84923         * m4/sig2str.m4: New file.
84924
84925         Other.
84926         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84927         ulonglong.m4.
84928         * m4/intmax_t.m4: New file.
84929         * m4/d-type.m4: Indentation.
84930         * m4/jm-macros.m4: Update.
84931         * m4/prereq.m4 (jm_PREREQ): Update.
84932         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84933         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84934         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84935         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84936         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84937         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84938         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84939         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84940         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84941         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84942         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84943         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84944         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84945         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84946         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84947         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84948         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84949         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84950         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84951
84952 2002-12-24  Bruno Haible  <bruno@clisp.org>
84953
84954         * MODULES.txt: Update according to m4/ changes.
84955
84956         Module gettext.
84957         * config.rpath: New file, from gettext-0.11.5.
84958
84959         * modules/*: New module descriptions.
84960         * gnulib-tool: New file.
84961         * MODULES.html.sh: New file.
84962
84963 2002-12-21  Karl Berry  <karl@gnu.org>
84964
84965         * doc/fdl.texi: update to version 1.2.
84966
84967 2002-12-19  Karl Berry  <karl@gnu.org>
84968
84969         * config/config.guess: update from prep.
84970
84971 2002-12-18  Bruno Haible  <bruno@clisp.org>
84972
84973         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84974         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84975
84976 2002-12-17  Bruno Haible  <bruno@clisp.org>
84977
84978         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84979         stdlib.h, string.h.
84980
84981 2002-12-17  Bruno Haible  <bruno@clisp.org>
84982
84983         * lib/canon-host.c (strdup): Remove unused declaration.
84984
84985         * lib/fsusage.c: Include full_read.h.
84986         (get_fs_usage): Use full_read instead of safe_read.
84987
84988         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84989
84990 2002-12-12  Karl Berry  <karl@gnu.org>
84991
84992         * config/config.guess: update from prep.
84993
84994 2002-12-11  Bruno Haible  <bruno@clisp.org>
84995
84996         * m4/setenv.m4: New file, from gettext-0.11.5.
84997
84998 2002-12-11  Bruno Haible  <bruno@clisp.org>
84999
85000         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85001         not unsetenv().
85002         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85003         modifications:
85004
85005         2002-12-11  Bruno Haible  <bruno@clisp.org>
85006
85007                 * setenv.c (alloca): Fall back to malloc.
85008                 (freea): New macro.
85009                 (setenv): Use freea() to free memory allocated with alloca().
85010
85011         2002-11-13  Bruno Haible  <bruno@clisp.org>
85012
85013                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85014                 function declarations.
85015                 * unsetenv.c (unsetenv): Likewise.
85016
85017         2002-03-04  Bruno Haible  <bruno@clisp.org>
85018
85019                 Portability to AIX 4.3.3.
85020                 * unsetenv.c: New file, extracted from setenv.c.
85021                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85022
85023         2001-12-20  Bruno Haible  <bruno@clisp.org>
85024
85025                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85026                 use malloc instead. For SunOS 4.
85027
85028         2001-12-11  Bruno Haible  <bruno@clisp.org>
85029
85030                 * setenv.c: Declare alloca.
85031                 (compar_fn_t): New typedef.
85032                 (KNOWN_VALUE, STORE_VALUE): Use it.
85033
85034         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85035         setenv.h.
85036
85037 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85038
85039         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85040         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85041         Choose values that are less likely to collide with system fnmatch
85042         options.
85043         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85044         defined (e.g., a pure POSIX system).
85045         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85046         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85047
85048 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85049
85050         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85051         a pain in practice to deal with generated m4 files.  This change
85052         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85053
85054         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85055         and jm-glibc-io.m4, as they are no longer a special case.
85056         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85057         kludge and the auto-generation stuff.  Check only whether the
85058         functions are declared, not whether they exist, since older hosts
85059         that don't declare the functions can't use the optimization anyway.
85060
85061 2002-12-06  Jim Meyering  <jim@meyering.net>
85062
85063         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85064
85065         Merge in changes from libc's misc/error.c, in preparation
85066         for the merge of gnulib's changes back into libc.
85067
85068         * lib/error.c (_): Define only if not already defined.
85069         Move definition to follow all #include directives.
85070         Include unlocked-io.h only if !_LIBC.
85071         [_LIBC]: Include <libio/libioP.h>.
85072         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85073         (fflush): Tweak definition to use INTUSE.
85074         (putc): Define.
85075
85076 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85077
85078         * lib/alloca.c [defined emacs]: Include "lisp.h".
85079         (xalloc_die) [defined emacs]: New macro.
85080         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85081         [! defined emacs]: Include <xalloc.h>.
85082         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85083         (pointer): Typedef to POINTER_TYPE *.
85084         (malloc): Remove decl; we now always use xmalloc.
85085         (alloca): Use old-style definition, since Emacs needs this.
85086         Check for arithmetic overflow when computing combined size.
85087
85088 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85089
85090         Do not generate unlocked-io.h automatically, since it's easier to
85091         maintain it by hand.
85092
85093         * lib/unlocked-io.h: New file, from GNU diffutils,
85094         but with proper copyright notice and attribution.
85095         * lib/gen-uio: Remove.
85096         * lib/Makefile.am: Add copyright notice.
85097         (libfetish_a_SOURCES): Add unlocked-io.h.
85098         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85099         (DISTCLEANFILES, io_functions): Remove macros.
85100         (EXTRA_DIST): Remove gen_uio.
85101         (unlocked-io.h): Remove rule.
85102
85103 2002-12-04  Jim Meyering  <jim@meyering.net>
85104
85105         Reflect the fact that stat.c and lstat.c are no longer generated.
85106         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85107         (DISTCLEANFILES): Likewise.
85108         (EXTRA_DIST): Likewise.
85109         (all_local): Don't depend on stat.c or lstat.c.
85110         (stat.c, lstat.c): Remove rules.
85111         (EXTRA_DIST): Remove xstat.in.
85112
85113         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85114         * lib/stat.c: New file.  Contents mostly from xstat.in.
85115         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85116         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85117
85118         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85119         too.
85120         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85121
85122 2002-12-03  Jim Meyering  <jim@meyering.net>
85123
85124         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85125         but not semantics, to minimize the differences between these two files.
85126         (safe_read): Change comment to mention SAFE_READ_ERROR.
85127
85128         * lib/safe-read.c (IS_EINTR): Define.
85129         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85130
85131 2002-12-02  Jim Meyering  <jim@meyering.net>
85132
85133         * lib/safe-read.c (EINTR): Define.
85134         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85135         (INT_MAX): Provide fallback.
85136         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85137
85138         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85139
85140 2002-12-02  Bruno Haible  <bruno@clisp.org>
85141
85142         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85143         Define, taken from safe-read.c.
85144         (INT_MAX): Provide fallback.
85145         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85146         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85147
85148         * lib/safe-read.c (EINTR): Remove definition.
85149         (safe_read): Don't use EINTR if it is absent.
85150
85151 2002-12-01  Jim Meyering  <jim@meyering.net>
85152
85153         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85154         zero.
85155         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85156
85157 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85158
85159         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85160         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85161         with `if (! (value < limit)) abort ();', for readability.
85162
85163 2002-11-26  Karl Berry  <karl@gnu.org>
85164
85165         * lib/strdup.c: copy from libc again, with jim's ok.
85166         * lib/.cppi-disable: re-add strdup.c
85167
85168 2002-11-25  Karl Berry  <karl@gnu.org>
85169
85170         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85171         instead of "strtol.c".
85172
85173 2002-11-25  Karl Berry  <karl@gnu.org>
85174
85175         * config/install-sh: update from automake for variable quoting, $0 in
85176         error msgs, etc.
85177
85178         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85179         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85180         entry.
85181
85182 2002-11-25  Jim Meyering  <jim@meyering.net>
85183
85184         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85185
85186 2002-11-24  Karl Berry  <karl@gnu.org>
85187
85188         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85189         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85190
85191 2002-11-24  Jim Meyering  <jim@meyering.net>
85192
85193         Update from coreutils:
85194
85195         * lib/mktime.c: Merge in changes from libc.
85196
85197         Avoid a link-time failure on some Linux systems.
85198         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85199         (otherwise).
85200         (__mon_yday): Declare with the STATIC attribute.
85201         (__mktime_internal): Likewise.
85202         Based on a report from Greg Schafer.
85203
85204 2002-11-23  Jim Meyering  <jim@meyering.net>
85205
85206         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85207         Use `unsigned', not `int', as type of index.
85208
85209         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85210
85211         * lib/fsusage.c: Remove unneeded parentheses around operands of
85212         `defined'.
85213
85214 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85215
85216         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85217         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85218         so that we can be included first.
85219         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85220         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85221         No need to include stddef.h or sys/types.h any more.
85222         Surround local include files with "", not "<>".
85223         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85224         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85225         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85226         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85227         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85228         (ISPRINT): Remove; no longer needed now that we assume C89.
85229
85230         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85231         Preserve errno.
85232
85233         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85234         quotearg_char): Use SIZE_MAX rather than
85235         (size_t) -1 when we are talking about "infinity".
85236
85237         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85238
85239 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85240
85241         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85242         hint that one should use `if (! x) abort ();' rather than `assert
85243         (x);', and anyway it's one less thing to worry about configuring.
85244         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85245         hash_rehash, hash_insert): Use abort rather than assert.
85246
85247 2002-11-22  Bruno Haible  <bruno@clisp.org>
85248
85249         * lib/safe-read.h: Assume C89. Add comments.
85250         (safe_read): Change return type to size_t.
85251         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85252         byte counts > SSIZE_MAX correctly.
85253         * lib/safe-write.h: New file.
85254         * lib/safe-write.c: New file.
85255         * lib/full-read.h: New file.
85256         * lib/full-read.c: New file.
85257         * lib/full-write.h: Assume C89. Add comments.
85258         * lib/full-write.c: Include safe-write.h.
85259         (full_write): Rewritten to use safe_write.
85260         Suggested by Jim Meyering and Paul Eggert.
85261
85262 2002-11-21  Jim Meyering  <jim@meyering.net>
85263
85264         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85265
85266         Merge in changes from the coreutils.
85267
85268         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85269         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85270         <stdint.h>.
85271         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85272         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85273         int.  Work more efficiently if X is the same width as uintmax_t.
85274         Do not compare X to -1, to avoid bogus compiler warning.
85275         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85276         Don't assume that f_frsize and f_bsize are the same type.
85277
85278         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85279         warning on FreeBSD.
85280
85281         * lib/makepath.c (make_path): Restore umask *before* creating the final
85282         component.
85283         (make_path): Minor reformatting.
85284
85285         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85286         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85287         HAVE_MALLOC/HAVE_REALLOC.
85288
85289         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85290         dummy ones.  At least on GNU/Linux systems, `auto' means something
85291         else.
85292         From Michael Stone.
85293
85294 2002-11-21  Bruno Haible  <bruno@clisp.org>
85295
85296         Remove case insensitive option matching.
85297         * lib/argmatch.h (argcasematch): Remove declaration.
85298         (ARGCASEMATCH): Remove macro.
85299         (__xargmatch_internal): Remove case_sensitive argument.
85300         (XARGMATCH): Update.
85301         (XARGCASEMATCH): Remove macro.
85302         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85303         case_sensitive argument.
85304         (argcasematch): Remove function.
85305         (__xargmatch_internal): Remove case_sensitive argument.
85306         (main): Use XARGMATCH instead of XARGCASEMATCH.
85307
85308         * lib/xmalloc.c: Change compile-time error message. Add comment about
85309         required autoconf version.
85310
85311 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85312
85313         Merge argmatch cleanups from Bison.  Assume C89.
85314
85315         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85316         Include stdlib.h, for EXIT_FAILURE.
85317         Always include <string.h>, since we assume C89.
85318         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85319         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85320         Include <stddef.h> instead, since it's all we need for size_t.
85321         (PARAMS): Remove.  All uses removed.
85322         (ARRAY_CARDINALITY): Do not bother to #undef.
85323         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85324         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85325         Remove unnecessary parentheses.
85326         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85327         Insert necessary parentheses.
85328         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85329         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85330
85331 2002-11-19  Bruno Haible  <bruno@clisp.org>
85332
85333         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85334         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85335
85336         * lib/mbswidth.h (PARAMS): Remove macro.
85337         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85338         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85339
85340         * lib/gcd.h (PARAMS): Remove macro.
85341         (gcd): Use ANSI C function declarations.
85342         * lib/gcd.c (gcd): Likewise.
85343
85344 2002-11-15  Bruno Haible  <bruno@clisp.org>
85345
85346         * lib/strcspn.c: Include <stddef.h>.
85347         (strcspn): Use ANSI C function declaration. Change return type to
85348         size_t. Use NULL.
85349         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85350         (strpbrk): Use NULL.
85351         * lib/strpbrk.h (PARAMS): Remove macro.
85352         (strpbrk): Use ANSI C function declaration.
85353         * lib/strstr.c: Don't include <sys/types.h>.
85354         * lib/strstr.h (PARAMS): Remove macro.
85355         (strstr): Use ANSI C function declarations.
85356
85357 2002-11-14  Karl Berry  <karl@gnu.org>
85358
85359         * config/mkinstalldirs: `do' on separate line, instead of
85360         `for var; do'.
85361
85362 2002-11-06  Bruno Haible  <bruno@clisp.org>
85363
85364         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85365         * lib/gcd.c (gcd): Likewise.
85366
85367 2002-11-05  Bruno Haible  <bruno@clisp.org>
85368
85369         * lib/gcd.h: New file, from gettext-0.11.5.
85370         * lib/gcd.c: New file, from gettext-0.11.5.
85371
85372 2002-11-05  Bruno Haible  <bruno@clisp.org>
85373
85374         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85375         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85376         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85377         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85378
85379         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85380         <libintl.h>.
85381         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85382         <libintl.h>.
85383
85384         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85385         * lib/human.c: Include gettext.h instead of <libintl.h>.
85386         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85387         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85388         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85389         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85390         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85391         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85392         (textdomain): Remove definition.
85393         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85394
85395         * lib/long-options.c: Remove include of <libintl.h> and definition of
85396         _.
85397         * lib/same.c: Remove include of <libintl.h> and definition of _.
85398
85399 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85400
85401         * lib/config.charset: A few additions for Solaris.
85402
85403 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85404
85405         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85406         * lib/localcharset.c (locale_charset): Declare as extern "C".
85407
85408 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85409
85410         * lib/config.charset: msdos in uk_UA uses CP1125.
85411
85412 2002-11-04  Bruno Haible  <bruno@clisp.org>
85413
85414         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85415         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85416         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85417         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85418         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85419
85420 2002-11-04  Bruno Haible  <bruno@clisp.org>
85421
85422         * lib/localcharset.c (locale_charset): Don't return an empty string.
85423
85424 2002-11-04  Bruno Haible  <bruno@clisp.org>
85425
85426         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85427         aliases.
85428
85429 2002-11-04  Bruno Haible  <bruno@clisp.org>
85430
85431         * lib/config.charset: Update for newest glibc. Add canonical names
85432         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85433
85434 2002-11-04  Bruno Haible  <bruno@clisp.org>
85435
85436         * lib/config.charset: Add support for NetBSD.
85437
85438 2002-11-04  Bruno Haible  <bruno@clisp.org>
85439
85440         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85441
85442 2002-11-01  Bruno Haible  <bruno@clisp.org>
85443
85444         * configure.in: Add AC_CONFIG_AUX_DIR call.
85445         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85446         test/Makefile.
85447         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85448
85449 2002-09-28  Karl Berry  <karl@gnu.org>
85450
85451         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85452         installed automake until the next release, since changes have been
85453         made.
85454
85455 2002-09-25  Karl Berry  <karl@gnu.org>
85456
85457         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85458         * lib/getopt*: copy from libc/posix.
85459         * lib/gettext.h: copy from gettext.
85460         * lib/.cppi-disable: add strdup.c, gettext.h.
85461
85462 2002-09-25  Karl Berry  <karl@gnu.org>
85463
85464         * config/srclist.txt: enable gettext.h check.
85465         * config/config.{guess,sub}: update from prep.
85466         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85467                 from automake 1.6.3.
85468         See srclist*.
85469
85470 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85471
85472         * regex.c (PATFETCH): Remove the translating fetch.
85473         (PATFETCH_RAW): Rename to PATFETCH.
85474         (set_image_of_range): New fun.
85475         (SET_RANGE_TABLE_WORK_AREA): Use it.
85476         (regex_compile): Don't translate the pattern chars so eagerly.
85477         Only do it when inserting an `exactn' bytecode or when handling
85478         a char-range.
85479         (mutually_exclusive_p): Avoid empty statement.
85480
85481 2002-07-06  Jim Meyering  <meyering@lucent.com>
85482
85483         * m4/README: Don't mention Makefile.am.in.
85484         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85485
85486 2002-07-01  Jim Meyering  <meyering@lucent.com>
85487
85488         * lib/c-stack.c: Include sys/time.h.
85489         From Volker Borchert.
85490
85491 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85492
85493         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85494
85495 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85496
85497         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85498         New macro.  Use it uniformly instead of
85499         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85500         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85501         reported by Vin Shelton.
85502
85503 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85504
85505         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85506         Do not assume SA_SIGINFO behavior.
85507         Bug reported by Jim Meyering on NetBSD 1.5.2.
85508
85509 2002-06-22  Jim Meyering  <meyering@lucent.com>
85510
85511         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85512         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85513
85514         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85515         now that configure.ac uses AC_GNU_SOURCE.
85516         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85517         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85518
85519         Update to latest tools.  Suggestions from Paul Eggert.
85520         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85521         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85522         * m4/fnmatch.m4: Likewise.
85523         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85524         to AC_HEADER_STDBOOL
85525
85526 2002-06-22  Jim Meyering  <meyering@lucent.com>
85527
85528         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85529         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85530
85531 2002-06-22  Jim Meyering  <meyering@lucent.com>
85532
85533         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85534
85535         * lib/exitfail.c, exitfail.h: Likewise.
85536         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85537
85538         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85539         of fnmatch.h.
85540         (EXTRA_DIST): Add fnmatch_loop.c.
85541         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85542
85543         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85544         * lib/fnmatch.c: Update from diffutils-2.8.2.
85545         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85546         * lib/fnmatch.h: Remove file.
85547
85548 2002-06-21  Jim Meyering  <meyering@lucent.com>
85549
85550         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85551         * m4/mbrtowc.m4: Likewise.
85552
85553         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85554         * m4/mbswidth.m4: Reflect name change:
85555         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85556         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85557
85558         * m4/lib-link.m4: Update from gettext-0.11.2.
85559         * m4/gettext.m4: Likewise.
85560
85561         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85562         From Alfred M. Szmidt.
85563
85564 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85565
85566         * lib/file-type.h: Report an error if neither S_ISREG nor
85567         S_IFREG is defined, instead of using a test specific to glibc
85568         2.2.  This should be safe, since POSIX requires S_ISREG and
85569         Unix Version 7 had S_IFREG.  We don't need to check for
85570         <sys/types.h> since we don't use any symbols that it defines.
85571
85572 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85573
85574         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85575         $@-t, so that each temporary file name is unique and valid in the first
85576         8 characters, for operation under DOS.
85577
85578 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85579
85580         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85581
85582 2002-06-15  Jim Meyering  <meyering@lucent.com>
85583
85584         Work even with DJGPP 2.03, which lacks support for symlinks.
85585         From Richard Dawe.
85586         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85587         is defined.
85588         * lib/lchown.c (S_ISLNK): Likewise.
85589
85590 2002-06-15  Jim Meyering  <meyering@lucent.com>
85591
85592         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85593         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85594         have been included before this file.
85595
85596 2002-06-14  Jim Meyering  <meyering@lucent.com>
85597
85598         * lib/file-type.h: Use the version from diffutils-2.8.2.
85599         * lib/file-type.c: Likewise.
85600
85601 2002-06-07  Jim Meyering  <meyering@lucent.com>
85602
85603         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85604         They're needed at least for NetBSD 1.5.2.
85605         ($statxfs_includes): Include those same headers.
85606         ($statxfs_includes): Include sys/vfs.h if available.
85607         ($statxfs_includes): Likewise for sys/statvfs.h.
85608         Check for the following members in both structs statfs and statvfs:
85609         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85610
85611 2002-06-01  Jim Meyering  <meyering@lucent.com>
85612
85613         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85614         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85615
85616 2002-05-28  Jim Meyering  <meyering@lucent.com>
85617
85618         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85619         Reported by Volker Borchert.
85620
85621 2002-05-27  Jim Meyering  <meyering@lucent.com>
85622
85623         Fix a problem seen only on nonconforming systems whereby ls.c's
85624         use of localtime, and then of gettimeofday would cause trouble:
85625         the localtime call used to initialize rpl_gettimeofday's save
85626         mechanism would clobber ls's current local time information so
85627         that in any long listing the first file would always be listed
85628         with date 1970-01-01.  Analysis by Volker Borchert.
85629
85630         * lib/gettimeofday.c (localtime): Undefine.
85631         (rpl_localtime): New function.
85632
85633 2002-05-27  Jim Meyering  <meyering@lucent.com>
85634
85635         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85636         localtime.
85637
85638         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85639         use the replacement function; it wouldn't resolve at link time.
85640         Reported by Volker Borchert.
85641
85642 2002-05-22  Jim Meyering  <meyering@lucent.com>
85643
85644         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85645         file-type.h.
85646         * lib/file-type.h: New file.
85647         * lib/file-type.c (file_type): New file/function.  Extracted from
85648         diffutils.
85649
85650 2002-04-30  Jim Meyering  <meyering@lucent.com>
85651
85652         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85653
85654 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85655
85656         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85657
85658 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85659
85660         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85661         Do not check for alloca.h (no longer used) or stdbool.h (was never
85662         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85663
85664 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85665
85666         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85667
85668 2002-04-29  Jim Meyering  <meyering@lucent.com>
85669
85670         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85671         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85672         Use AC_FUNC_STRNLEN here instead.
85673
85674         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85675         With autoconf-2.53a, it's part of AC_PROG_CC.
85676
85677 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85678
85679         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85680         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85681
85682 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85683
85684         * lib/sig2str.h, lib/sig2str.c: New files.
85685         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85686
85687 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85688
85689         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85690         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85691         of 127, since 64 is the largest conceivable number for ancient
85692         nonstandard hosts.
85693         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85694
85695 2002-04-28  Jim Meyering  <meyering@lucent.com>
85696
85697         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85698
85699 2002-04-24  Jim Meyering  <meyering@lucent.com>
85700
85701         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85702         (jm_PREREQ): Use it.
85703
85704         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85705         mach/mach.h fcntl.h.
85706         Check for this function: setlocale.
85707
85708 2002-04-24  Jim Meyering  <meyering@lucent.com>
85709
85710         * lib/gettext.h: New file, from Gettext.
85711         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85712         (libfetish_a_SOURCES): Add gettext.h.
85713
85714 2002-04-16  Jim Meyering  <meyering@lucent.com>
85715
85716         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85717         ut_pid, ut_id, ut_exit.
85718
85719 2002-04-16  Jim Meyering  <meyering@lucent.com>
85720
85721         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85722         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85723         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85724
85725 2002-04-12  Jim Meyering  <meyering@lucent.com>
85726
85727         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85728         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85729         existence of the getmntinfo function.  Needed for Darwin 5.3.
85730
85731         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85732         This is necessary at least on Darwin 5.3.
85733
85734         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85735         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85736         strnlen.o in the library, and that makes some versions of ranlib
85737         object.
85738
85739 2002-04-12  Jim Meyering  <meyering@lucent.com>
85740
85741         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85742
85743 2002-04-09  Jim Meyering  <meyering@lucent.com>
85744
85745         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85746         to be more precise.  Rather than saying we're checking whether the
85747         function `works', say what we're testing.
85748         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85749         Reported by Bruno Haible.
85750
85751 2002-03-10  Jim Meyering  <meyering@lucent.com>
85752
85753         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85754         Suggestion from Santiago Vila.
85755
85756 2002-03-08  Jim Meyering  <meyering@lucent.com>
85757
85758         * lib/rename.c: Mention that this wrapper is needed also on
85759         mips-dec-ultrix4.4 systems.
85760
85761 2002-03-02  Jim Meyering  <meyering@lucent.com>
85762
85763         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85764         not HAVE_CLOCK_SETTIME.
85765
85766 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85767
85768         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85769         Check for clock_settime.
85770
85771 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85772
85773         * lib/nanosleep.h: Rename to....
85774         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85775
85776         * lib/gettime.c: New file.
85777         * lib/settime.c: New file.
85778         * lib/stime.c: Remove.
85779
85780         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85781         timespec.h.  Remove nanosleep.h.
85782
85783 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85784
85785         * m4/acl.m4: New file.
85786         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85787         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85788
85789 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85790
85791         * lib/acl.c, lib/acl.h: New files.
85792         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85793
85794 2002-02-24  Jim Meyering  <meyering@lucent.com>
85795
85796         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85797         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85798         cause trouble.  Reported by Nelson Beebe.
85799
85800 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85801
85802         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85803         compilers that don't know that xalloc_die never returns.
85804
85805 2002-02-20  Jim Meyering  <meyering@lucent.com>
85806
85807         * lib/getdate.c: Regenerate using bison-1.33.
85808
85809 2002-02-17  Jim Meyering  <meyering@lucent.com>
85810
85811         * config/config.guess (main): Don't use `head -1'; it's no longer
85812         portable. Use `sed 1q' instead.
85813
85814 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85815
85816         * m4/codeset.m4: Upgrade to gettext-0.11.
85817         * m4/gettext.m4: Upgrade to gettext-0.11.
85818         * m4/glibc21.m4: Upgrade to gettext-0.11.
85819         * m4/iconv.m4: Upgrade to gettext-0.11.
85820         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85821         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85822         * m4/lib-ld.m4: New file, from gettext-0.11.
85823         * m4/lib-link.m4: New file, from gettext-0.11.
85824         * m4/lib-prefix.m4: New file, from gettext-0.11.
85825         * m4/progtest.m4: Upgrade to gettext-0.11.
85826
85827 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85828
85829         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85830         (jm_PREREQ): Use it.
85831
85832 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85833
85834         * lib/posixver.c, lib/posixver.h: New files.
85835         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85836
85837 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85838             Bruno Haible  <bruno@clisp.org>
85839
85840         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85841         (fwrite_success_callback): New declaration.
85842         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85843         print_unicode_char. Call failure callback instead of error.
85844         (fwrite_success_callback): New function.
85845         (exit_failure_callback): New function.
85846         (fallback_failure_callback): New function.
85847         (print_unicode_char): Call unicode_to_mb.
85848
85849 2002-01-26  Jim Meyering  <meyering@lucent.com>
85850
85851         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85852         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85853
85854 2002-01-26  Jim Meyering  <meyering@lucent.com>
85855
85856         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85857
85858 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85859
85860         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85861
85862 2002-01-22  Jim Meyering  <meyering@lucent.com>
85863
85864         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85865         Otherwise, some versions of automake would omit the rule that makes
85866         Makefile from Makefile.in.
85867
85868 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85869
85870         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85871         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85872         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85873         (memcoll): Set errno to zero if there is no error.
85874
85875         * lib/quotearg.c (quotearg_buffer_restyled):
85876         Fix bug with quoting buffers containing NUL when backslashing escapes.
85877         This bug was exposed by the other changes in this patch.
85878         (quotearg_n_options): New arg ARGSIZE.
85879         All callers changed.
85880         (quoting_options_from_style): New function.
85881         (quotearg_n_style): Use it.
85882         (quotearg_n_style_mem): New function.
85883
85884         * lib/quotearg.h (quotearg_n_style_mem): New function.
85885
85886 2002-01-19  Jim Meyering  <meyering@lucent.com>
85887
85888         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85889         Remove useless quotes: DF_PROG="df".
85890         * m4/strnlen.m4: New file.
85891
85892 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85893
85894         * lib/backupfile.c (ISDIGIT): Comment fix.
85895         * lib/getdate.y (ISDIGIT): Likewise.
85896         * lib/posixtm.c (ISDIGIT, year): Likewise.
85897         * lib/strverscmp.c (ISDIGIT): Likewise.
85898         * lib/userspec.c (ISDIGIT): Likewise.
85899
85900 2002-01-16  Jim Meyering  <meyering@lucent.com>
85901
85902         * lib/getdate.y: Add three semicolons, each just before a closing
85903         brace. Bison (as of version 1.31) no longer papers over that mistake.
85904
85905 2002-01-05  Jim Meyering  <meyering@lucent.com>
85906
85907         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85908
85909 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85910
85911         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85912         not silently exit merely because the output buffer happens to
85913         have nothing pending.
85914
85915 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85916
85917         See the big note in ../ChangeLog.
85918         * lib/human.c (suffixes): Prefer K to k for 1024.
85919         (generate_suffix_backwards): New function.
85920         (human_readable_inexact): Use it.
85921         * lib/xstrtol.c (__xstrtol): If there is no number but there
85922         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85923         Accept 'K' as well as 'k'.
85924
85925 2001-12-15  Jim Meyering  <meyering@lucent.com>
85926
85927         * lib/regex.h (__restrict_arr): Update from libc.
85928
85929         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85930         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85931         (STREQ): Define.
85932
85933 2001-12-14  Jim Meyering  <meyering@lucent.com>
85934
85935         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85936         Suggestion from Bruno Haible.
85937
85938 2001-12-10  Jim Meyering  <meyering@lucent.com>
85939
85940         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85941         xrealloc, Instead, include "xalloc.h".
85942         (initbuffer): Don't cast xmalloc return value to char*.
85943         (readline): Reword comment.
85944         Don't cast xrealloc return value to char*
85945         Return NULL, not 0.
85946
85947 2001-12-09  Jim Meyering  <meyering@lucent.com>
85948
85949         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85950         about `signed and unsigned type in conditional expression'.
85951         * lib/posixtm.c (posix_time_parse): Likewise.
85952
85953         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85954
85955         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85956         to avoid a pedantic warning.
85957
85958         * lib/getstr.c: Don't include assert.h.
85959         (getstr): Remove warning-evoking assertions.
85960         Return -1 if offset parameter is out of bounds.
85961         Change the type of a local from int to size_t.
85962
85963         * lib/strftime.c (my_strftime_localtime_r): Include this function
85964         definition in the `#if ! HAVE_TM_GMTOFF' block.
85965
85966         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85967         Include xalloc.h instead.
85968
85969 2001-12-02  Jim Meyering  <meyering@lucent.com>
85970
85971         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85972         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85973         included.
85974
85975         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85976         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85977
85978 2001-11-30  Akim Demaille  <akim@epita.fr>
85979
85980         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85981         before being defined.
85982
85983 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85984
85985         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85986         First arg is int, not unsigned.
85987         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85988         (SIZE_MAX, UINT_MAX): New macros.
85989         (quotearg_n_options): Abort if N is negative.
85990         Avoid overflow check on hosts where size_t is 64 bits and int
85991         is 32 bits, as overflow is impossible there.
85992         Fix off-by-one typo that caused unnecessary reallocation.
85993
85994 2001-11-27  Jim Meyering  <meyering@lucent.com>
85995
85996         * lib/tempname.c: Merge with version from libc.
85997         * lib/regex.c: Likewise.
85998
85999         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86000         systems for which STDC_HEADERS is 0, it was not included, resulting in
86001         a warning about an integer-to-pointer conversion problem with getenv.
86002         Reported by Volker Borchert.
86003
86004 2001-11-26  Jim Meyering  <meyering@lucent.com>
86005
86006         * lib/gtod.h: Remove file.
86007         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86008         * lib/gettimeofday.c: Don't include gtod.h.
86009         (GTOD_init): Remove function.
86010         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86011         Suggestion from Volker Borchert.
86012
86013 2001-11-23  Jim Meyering  <meyering@lucent.com>
86014
86015         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86016         it.
86017         * lib/hash.c (struct hash_table): Define it here instead.
86018
86019 2001-11-22  Jim Meyering  <meyering@lucent.com>
86020
86021         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86022
86023 2001-11-20  Jim Meyering  <meyering@lucent.com>
86024
86025         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86026         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86027
86028 2001-11-19  Jim Meyering  <meyering@lucent.com>
86029
86030         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86031         directory.  Use "conftestXXXXXX" as the template.
86032         Suggestion from Paul Eggert.
86033
86034         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86035         immediately, so the test doesn't mistakenly hit the max-open-files
86036         limit.
86037
86038 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86039
86040         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86041         (TEMPORARIES): New macro.
86042         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86043         removes an artificial limitation (e.g. HP-UX 10.20, where
86044         TMP_MAX is 17576).
86045
86046 2001-11-18  Jim Meyering  <meyering@lucent.com>
86047
86048         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86049
86050 2001-11-18  Jim Meyering  <meyering@lucent.com>
86051
86052         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86053         on SunOS 4.
86054
86055         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86056         files will be created before anything else.
86057
86058 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86059
86060         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86061         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86062
86063 2001-11-17  Jim Meyering  <meyering@lucent.com>
86064
86065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86066         Prompted by a report from Bob Proulx.
86067
86068         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86069         Instead, require UTILS_FUNC_MKSTEMP.
86070
86071 2001-11-17  Jim Meyering  <meyering@lucent.com>
86072
86073         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86074         Now, that's done as part of AC_FUNC_STRTOD.
86075
86076 2001-11-17  Jim Meyering  <meyering@lucent.com>
86077
86078         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86079         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86080         rather than group writable.  Patch by Juan F. Codagnone.
86081
86082         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86083         xrealloc, Instead, include "xalloc.h".
86084
86085         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86086         Remove explicit declarations of xmalloc, xrealloc,
86087         and xstrdup.  Instead, include "xalloc.h".
86088
86089         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86090         unlocked-io.h.
86091         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86092         Likewise.
86093         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86094
86095         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86096         Reported by Padraig Brady.
86097
86098         * lib/mkstemp.c: #undef mkstemp.
86099         Include config.h.
86100         (rpl_mkstemp): Rename from mkstemp.
86101         Protoize.
86102
86103 2001-11-16  Jim Meyering  <meyering@lucent.com>
86104
86105         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86106         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86107         determine the amount of total physical memory, use pstat_getstatic.
86108         HPUX-11 doesn't define _SC_PHYS_PAGES.
86109         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86110         If sysconf couldn't be used to determine the amount of available
86111         physical memory, use both pstat_getstatic and pstat_getdynamic.
86112         Based on a patch from Bob Proulx.
86113
86114 2001-11-10  Jim Meyering  <meyering@lucent.com>
86115
86116         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86117         (jm_PREREQ): Use it.
86118
86119 2001-11-09  Jim Meyering  <meyering@lucent.com>
86120
86121         * m4/jm-macros.m4: Require autoconf-2.52f.
86122         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86123         Use these AC_-prefixed names, not the AM_-prefixed ones.
86124
86125         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86126
86127 2001-11-05  Jim Meyering  <meyering@lucent.com>
86128
86129         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86130
86131 2001-11-04  Jim Meyering  <meyering@lucent.com>
86132
86133         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86134         $DEFS.
86135
86136 2001-11-03  Jim Meyering  <meyering@lucent.com>
86137
86138         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86139         of AC_DEFUN.
86140
86141         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86142         know the name of the variable in the macro definition.
86143
86144 2001-11-03  Jim Meyering  <meyering@lucent.com>
86145
86146         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86147         in argmatch_to_argument call.
86148
86149         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86150         argument.
86151
86152         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86153         e.g., a fault due to an attempt to free a NULL pointer.
86154
86155 2001-11-01  Jim Meyering  <meyering@lucent.com>
86156
86157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86158         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86159
86160 2001-11-01  Jim Meyering  <meyering@lucent.com>
86161
86162         * lib/dirfd.c, lib/dirfd.h: New files.
86163         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86164
86165         * lib/hash.c (hash_print) [TESTING]: Clean up.
86166
86167 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86168
86169         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86170         to avoid a warning if -Wall.
86171
86172 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86173
86174         * README: New file
86175         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86176         (per RMS's instructions, this is now the canonical source)
86177         * lgpl/, gpl/: New directories.
86178
86179 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86180
86181         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86182
86183 2001-10-21  Jim Meyering  <meyering@lucent.com>
86184
86185         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86186         this code would end up calling gettext even in packages built
86187         with --disable-nls.
86188         * lib/getopt.c (_): Likewise.
86189         * lib/regex.c (_): Likewise.
86190
86191 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86192
86193         * m4/error.m4 (jm_PREREQ_ERROR):
86194         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86195         AC_FUNC_STRERROR_R does that.
86196         Check for strerror declaration.
86197
86198         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86199         are supposed to have them these days.
86200         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86201         Merge changes from latest Autoconf CVS.
86202         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86203         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86204         POSIX decided to standardize on the int flavor of strerror_r.
86205
86206 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86207
86208         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86209         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86210         Use strerror_r that is only a macro, even if it is not a function.
86211         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86212         (private_strerror): Use prototypes, not old-style function definition.
86213         (print_errno_message): New function.
86214         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86215         char*-flavored one.
86216         (error_tail, error, error_at_line): Use it.
86217
86218 2001-10-11  Jim Meyering  <meyering@lucent.com>
86219
86220         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86221         and quote_n (1, ... to avoid clobbering a buffer.
86222
86223 2001-10-05  Jim Meyering  <meyering@lucent.com>
86224
86225         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86226         hash-pjw.h.
86227         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86228         * lib/hash-pjw.h: New file.
86229
86230 2001-09-30  Jim Meyering  <meyering@lucent.com>
86231
86232         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86233         `struct fsstat' has the `f_fstypename' member.
86234         Use that to define FS_TYPE, which is now used to make
86235         the getfsstat link test tighter.
86236
86237 2001-09-30  Jim Meyering  <meyering@lucent.com>
86238
86239         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86240         Include <sys/ucred.h>, for Apple Darwin.
86241         Include sys/mount.h and sys/fs_types.h only if available.
86242         (FS_TYPE): Define.
86243         (read_filesystem_list): Use FS_TYPE.
86244
86245 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86246
86247         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86248         a boolean context.
86249
86250 2001-09-29  Jim Meyering  <meyering@lucent.com>
86251
86252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86253         [one-argument getmntent function]): Include stdio.h before mntent.h.
86254         SunOS 4.1.x needs it for the declaration of `FILE'.
86255         Patch by Volker Borchert.
86256
86257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86258         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86259         sys/fs_types.h, and make the link-test for getfsstat guard #include
86260         directives with appropriate #if HAVE_*_H tests so that we can
86261         detect getfsstat on Apple Darwin1.3.7 systems.
86262         Reported by Nelson Beebe.
86263         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86264
86265 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86266
86267         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86268         #defines strtoimax.  Also treat the other strto* functions
86269         like strtoimax.
86270
86271         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86272         Check for strtoul and strtoumax,
86273         as those declarations are made even in the signed case.
86274         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86275         Likewise, for strtol and strtoimax.
86276
86277 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86278
86279         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86280         #defines strtoimax.  Also treat the other strto* functions
86281         like strtoimax.
86282
86283         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86284         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86285         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86286
86287 2001-09-26  Jim Meyering  <meyering@lucent.com>
86288
86289         Most macros in unlocked-io.h had the wrong number of arguments.
86290         * lib/gen-uio: New script.
86291         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86292         * lib/unlocked-io.hin: Remove file.
86293         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86294         rather than trying to embed it here.
86295         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86296         Reported by Padraig Brady.
86297
86298 2001-09-25  Volker Borchert  <bt@teknon.de>
86299
86300         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86301         `result'.
86302
86303 2001-09-24  Jim Meyering  <meyering@lucent.com>
86304
86305         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86306
86307 2001-09-23  Jim Meyering  <meyering@lucent.com>
86308
86309         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86310         instead of the mere test for existence of mntent.h.  The latter
86311         would get a false-positive on AIX 3.4 systems.
86312         In the outer getmntent if-block, don't die if neither of the getmntent
86313         tests succeeds.  Instead, just fall through and continue with the
86314         remaining tests.
86315
86316 2001-09-23  Jim Meyering  <meyering@lucent.com>
86317
86318         * lib/mountlist.c: Remove useless parentheses in #if directives.
86319         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86320         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86321
86322 2001-09-22  Jim Meyering  <meyering@lucent.com>
86323
86324         * m4/gettext.m4: New file.  From gettext.
86325         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86326         * m4/progtest.m4: Likewise
86327         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86328         * m4/glibc21.m4: Likewise.
86329
86330         * m4/libintl.m4: Remove.  No longer used.
86331
86332 2001-09-22  Jim Meyering  <meyering@lucent.com>
86333
86334         * lib/localcharset.c: Update from latest gettext.
86335         * lib/config.charset: Likewise.
86336
86337 2001-09-20  Jim Meyering  <meyering@lucent.com>
86338
86339         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86340         strtoimax.
86341         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86342         strtoumax.
86343
86344 2001-09-20  Jim Meyering  <meyering@lucent.com>
86345
86346         * lib/xstrtol.c (strtoimax): Guard declaration with
86347         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86348         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86349         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86350         (strtoumax): Likewise, for completeness (it wasn't necessary).
86351
86352 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86353
86354         * lib/strtoimax.c (HAVE_LONG_LONG):
86355         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86356         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86357         to work around bug in IBM C compiler.
86358
86359 2001-09-17  Jim Meyering  <meyering@lucent.com>
86360
86361         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86362         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86363         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86364         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86365         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86366         whenever the right hand side need not be expanded by the shell.
86367
86368 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86369
86370         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86371         library.  It's not correct, as some older glibcs are buggy.
86372         fnmatch wasn't fixed until glibc 2.2.
86373
86374         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86375         special shell magic here.
86376
86377 2001-09-16  Jim Meyering  <meyering@lucent.com>
86378
86379         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86380         * m4/jm-macros.m4: Require it.
86381
86382 2001-09-16  Jim Meyering  <meyering@lucent.com>
86383
86384         * lib/mkdir.c: New file.
86385
86386 2001-09-15  Jim Meyering  <meyering@lucent.com>
86387
86388         * m4/jm-macros.m4: Check for help2man.
86389
86390 2001-09-11  Jim Meyering  <meyering@lucent.com>
86391
86392         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86393         The body, by Paul Eggert, was moved here from configure.in.
86394         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86395
86396 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86397
86398         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86399         (jm_PREREQ): Use it.
86400
86401 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86402
86403         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86404         Use ssize_t, not int, to store result of readlink.
86405         Check for ssize_t overflow as well as size_t overflow,
86406         as POSIX says the result of readlink is implementation-defined
86407         when ssize_t overflows.
86408         Remove unnecessary cast to char*.
86409         Use free+malloc instead of realloc, as the storage doesn't need
86410         to be preserved and it's clearer and can be more efficient that way.
86411         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86412         * lib/xreadlink.h (xreadlink): Update prototype.
86413
86414 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86415
86416         * lib/xgetcwd.c: Revert some of the previous change; intead,
86417         fix the HAVE_GETCWD_NULL code to behave more like the
86418         !HAVE_GETCWD_NULL code used to.
86419
86420         Include "xalloc.h".
86421         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86422         invoke xalloc_die.
86423
86424 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86425
86426         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86427         sys/param.h, as pathmax.h includes them.
86428
86429 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86430
86431         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86432         (jm_PREREQ_XGETCWD): New macro.
86433
86434         * m4/getcwd.m4: New file.
86435
86436 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86437
86438         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86439         like the HAVE_GETCWD_NULL code.
86440         Include pathmax.h if not HAVE_GETCWD.
86441         Do not include xalloc.h.
86442         (INITIAL_BUFFER_SIZE): New symbol.
86443         Do not use xmalloc / xrealloc, since the caller is responsible for
86444         handling errors.  Preserve errno around `free' during failure.
86445         Do not overrun buffer when using getwd.
86446
86447 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86448
86449         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86450         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86451         getcwd (NULL, 0).
86452
86453 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86454
86455         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86456         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86457         spotted by Jim Meyering.
86458
86459 2001-09-03  Jim Meyering  <meyering@lucent.com>
86460
86461         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86462         failure.
86463
86464 2001-09-02  Jim Meyering  <meyering@lucent.com>
86465
86466         * lib/error.c: Update from GNU libc.
86467
86468 2001-09-01  Jim Meyering  <meyering@lucent.com>
86469
86470         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86471         Used by df.
86472
86473 2001-09-01  Jim Meyering  <meyering@lucent.com>
86474
86475         * lib/xreadlink.c: New file.
86476         * lib/xreadlink.h: New file.
86477         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86478         xreadlink.h.
86479
86480         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86481         doesn't conflict with sparc Solaris 7's definition in
86482         /usr/include/sys/int_types.h.
86483
86484         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86485         files.
86486         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86487         and strncasecmp as r-values.  Unixware didn't have declarations.
86488
86489 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86490
86491         * lib/xstrtol.h: Add copyright notice.
86492         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86493         LONGINT_INVALID_SUFFIX_CHAR.
86494
86495 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86496
86497         * lib/xstrtol.c (strtoimax): New decl.
86498
86499 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86500
86501         * lib/xgetcwd.c: Don't include pathmax.h.
86502         Include stdlib.h and unistd.h if available.
86503         Include xalloc.h.
86504         (xmalloc, xstrdup, free): Remove decls.
86505         (xgetcwd): Don't assume sizes fit in unsigned.
86506         Check for overflow when computing sizes.
86507         Simplify reallocation code.
86508
86509 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86510
86511         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86512         a directory's st_size can have an arbitrary value, so the old
86513         usage could waste an arbitrary amount of memory.  All uses
86514         changed.
86515         * lib/savedir.h: Update prototype.
86516
86517 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86518
86519         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86520
86521         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86522         old strtoimax.c.
86523
86524         Also, make the following further changes to make this file's
86525         configuration more similar to that of strtol.c:
86526         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86527         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86528         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86529         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86530         changed to signed values.
86531
86532         And make the following changes as well:
86533         Fix copyright notice, as 1999 was missing.
86534         (verify): New macro.
86535         (strtoimax): Check sizes at compile-time, not run-time.
86536         Prefer strtol to strtoll if both work.
86537         (main): Remove; it was not that useful and was a pain to maintain.
86538
86539         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86540
86541 2001-08-31  Jim Meyering  <meyering@lucent.com>
86542
86543         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86544         Use an initial, malloc'd, buffer of length 128 rather than
86545         a statically allocated one of length 1024.
86546
86547 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86548
86549         Simplify code, partly by assuming autoconf 2.52 semantics.
86550
86551         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86552
86553         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86554         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86555         All uses removed.
86556         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86557         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86558         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86559         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86560         jm_AC_HEADER_INTTYPES_H.
86561         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86562
86563         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86564
86565         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86566         Quote first arg of AC_DEFUN.
86567         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86568         since they are needed to parse the include file even if we need
86569         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86570         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86571         but with opposite signedness.
86572
86573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86574
86575         Merge 'exclude' changes from tar 1.13.22.
86576         This fixes one or two unlikely storage allocation overflow bugs,
86577         but doesn't change user-visible behavior otherwise.
86578
86579 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86580
86581         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86582         (jm_PREREQ_EXCLUDE): New macro.
86583
86584 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86585
86586         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86587         tm to be declared.
86588
86589 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86590
86591         * lib/hash.c: Remove '2001' from copyright notice.
86592
86593 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86594
86595         * lib/full-write.h: New file.
86596         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86597         * lib/full-write.c: Correct credits, as cccp.c no longer
86598         exists and anyway it was so heavily changed from the old cccp
86599         code as to be unrecognizable.  Include full-write.h.
86600         (full_write): Return size_t, with short writes meaning failure.
86601         All callers changed.  This fixes a bug with large buffers
86602         on 64-bit hosts.
86603         * lib/utime.c: Include full-write.h.
86604
86605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86606
86607         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86608         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86609         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86610         Include if available.
86611         (<xalloc.h>): Include
86612         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86613         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86614         collide with FNM macros.
86615         (struct patopts): New struct.
86616         (struct exclude): Use it, as exclude patterns now come with options.
86617         (new_exclude): Support above changes.
86618         (new_exclude, add_exclude_file):
86619         Initial size must now be a power of two to simplify overflow checking.
86620         (free_exclude, fnmatch_no_wildcards): New function.
86621         (excluded_filename): No longer requires options arg, as the options
86622         are determined by add_exclude.  Now returns bool, not int.
86623         (excluded_filename, add_exclude):
86624         Add support for the fancy new exclusion options.
86625         (add_exclude, add_exclude_file): Now takes int options arg.
86626         Check for arithmetic overflow when computing sizes.
86627         (add_exclude_file): xrealloc might modify errno, so don't
86628         realloc until after errno might be used.
86629
86630         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86631         New macros.
86632         (free_exclude): New decl.
86633         (add_exclude, add_exclude_file): Now takes int options arg.
86634         (excluded_filename): No longer requires options arg, as the options
86635         are determined by add_exclude.  Now returns bool, not int.
86636
86637 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86638
86639         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86640
86641 2001-08-27  Jim Meyering  <meyering@lucent.com>
86642
86643         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86644
86645         * lib/version-etc.c (N_): Remove definition.
86646         Revert most of last change.
86647         Instead, simply don't mark the `Copyright...' string for translation.
86648         Based on advice from Paul Eggert.
86649
86650         * lib/strtoxmax.c: Tweak comment.
86651
86652 2001-08-26  Jim Meyering  <meyering@lucent.com>
86653
86654         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86655
86656         * m4/xstrtoimax.m4: New file.
86657         * m4/xstrtoumax.m4: Add comments explaining why we
86658         AC_REPLACE_FUNCS(strtol).
86659
86660 2001-08-26  Jim Meyering  <meyering@lucent.com>
86661
86662         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86663         of copyright with `%s' so translators don't get an untranslated
86664         message in 2002.
86665         (COPYRIGHT_YEAR): Define.
86666         (version_etc): Use fprintf rather than fputs.
86667         Suggestion from Ulrich Drepper.
86668
86669         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86670
86671         * lib/strtoll.c: New file, from GNU libc.
86672         * lib/xstrtoimax.c: New file.
86673
86674         * lib/xstrtol.h: Add xstrtoimax.
86675         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86676         * lib/strtoimax.c: New file.  Likewise, but first define
86677         STRTOUXMAX_SIGNED.
86678
86679         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86680         ...
86681         * lib/strtoxmax.c: ... then renamed to this.
86682
86683 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86684
86685         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86686         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86687         (jm_AC_TYPE_INTMAX_T): New macro.
86688         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86689
86690         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86691
86692         * m4/longlong.m4: Renamed from ulonglong.m4.
86693         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86694         * m4/uintmax_t.m4: Removed.
86695
86696 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86697
86698         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86699         Port to Solaris 8, where 'sed' requires a space after the 'r'
86700         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86701         Redirect output to $tmp just once.
86702
86703 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86704
86705         * lib/addext.c (<errno.h>): Include.
86706         (errno): Declare if not defined.
86707         (addext): Work correctly when pathconf returns -1 and leaves
86708         errno alone because there is no limit.  Also, work even if
86709         pathconf returns a value greater than SIZE_MAX.
86710
86711 2001-08-12  Jim Meyering  <meyering@lucent.com>
86712
86713         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86714         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86715         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86716         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86717         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86718         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86719         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86720         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86721         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86722         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86723         utime.m4, utimes.m4, xstrtoumax.m4:
86724         Quote the first argument in each use of AC_DEFUN.
86725
86726 2001-08-12  Jim Meyering  <meyering@lucent.com>
86727
86728         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86729         Simply `return getcwd (NULL, 0);'.
86730         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86731         Use 1300 as initial value for length, not PATH_MAX.
86732
86733         * lib/pathmax.h: Clean up cpp syntax.
86734
86735 2001-08-12  Jim Meyering  <meyering@lucent.com>
86736
86737         * lib/gettimeofday.c: New file.
86738         * lib/gtod.h: New file.
86739         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86740
86741 2001-08-05  Jim Meyering  <meyering@lucent.com>
86742
86743         * m4/jm-macros.m4: Require autoconf-2.52.
86744
86745 2001-08-04  Jim Meyering  <meyering@lucent.com>
86746
86747         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86748         stmt, to get in sync with glibc.
86749
86750 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86751
86752         The following changes are from gettext 0.10.39 as maintained by
86753         Bruno Haible.
86754
86755         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86756         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86757         with inverted sense.  All uses changed.
86758
86759         * lib/mbswidth.c: Don't include <limits.h>.
86760         Include <stdlib.h> and <string.h> unconditionally.
86761         (iswcntrl, mbsinit, ISCNTRL): New macros.
86762         (mbsnwidth): Use K&R style function declarations.
86763         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86764         can optimize it when MB_CUR_MAX == 1.
86765         The width of control characters is zero, not 1.
86766
86767 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86768
86769         The following changes are from gettext 0.10.39 as maintained by
86770         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86771
86772         * m4/codeset.m4: Upgrade to serial AM1.
86773         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86774         all uses changed.  Quote first arg of AC_DEFUN.
86775         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86776
86777         * m4/iconv.m4: Upgrade to serial AM2.
86778         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86779         Add --with-libconv-prefix.
86780         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86781         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86782         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86783         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86784         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86785
86786         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86787         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86788         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86789         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86790         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86791         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86792         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86793         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86794         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86795
86796         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86797         string.h any more.
86798
86799         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86800         not the default value.
86801
86802         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86803         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86804         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86805         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86806         Also check for iswcntrl, used for wcwidth fallback.
86807         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86808         to Autoconf 2.13.
86809
86810 2001-08-03  Jim Meyering  <meyering@lucent.com>
86811
86812         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86813         as it was in the original.  Reported by Paul Eggert.
86814
86815 2001-07-16  Jim Meyering  <meyering@lucent.com>
86816
86817         * m4/gettimeofday.m4: New file.
86818         Prompted by a report from Bernhard Baehr.
86819
86820 2001-07-15  Jim Meyering  <meyering@lucent.com>
86821
86822         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86823         stuff. Now it's in ../Makefile.cfg.
86824
86825 2001-07-15  Jim Meyering  <meyering@lucent.com>
86826
86827         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86828         (BUILT_SOURCES): Add unlocked-io.h.
86829         (io_functions): Define.
86830         (unlocked-io.h): New rule.
86831         (DISTCLEANFILES): Add unlocked-io.h.
86832         (all-local): Depend on unlocked-io.h, to ensure it is created.
86833
86834         * lib/unlocked-io.hin: New file
86835
86836         * lib/regex.c: Update from glibc.
86837
86838 2001-07-05  Jim Meyering  <meyering@lucent.com>
86839
86840         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86841         recommendation.
86842         (libfetish_a_SOURCES): Put all .h files here instead.
86843         Remove a thus-exposed (better checks in automake) duplicate and
86844         two unnecessary .h files.
86845
86846 2001-07-04  Jim Meyering  <meyering@lucent.com>
86847
86848         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86849         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86850         distcheck failure.
86851
86852 2001-07-02  Jim Meyering  <meyering@lucent.com>
86853
86854         The following changes were prompted by suggestions from Bruno Haible.
86855
86856         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86857         is now generated.
86858         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86859         definition of EXTRA_DIST.
86860         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86861         ensure that the generated file is created/updated whenever the list
86862         of $(unlocked_functions) is changed.
86863         (jm-glibc-io.m4): New rule.
86864         (unlocked-io.h): New rule -- currently unused.
86865
86866 2001-06-24  Jim Meyering  <meyering@lucent.com>
86867
86868         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86869         unmatched right bracket, rather than kludging it with an extra,
86870         falsely-matching quote in a comment.  Patch by Akim Demaille.
86871
86872 2001-06-11  Jim Meyering  <meyering@lucent.com>
86873
86874         * lib/regex.c: Update from GNU libc.
86875
86876 2001-05-27  Jim Meyering  <meyering@lucent.com>
86877
86878         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86879         Check for ut_type in struct utmp.
86880
86881 2001-05-27  Jim Meyering  <meyering@lucent.com>
86882
86883         * lib/readutmp.h (UT_TYPE): Define.
86884
86885 2001-05-24  Jim Meyering  <meyering@lucent.com>
86886
86887         * lib/argmatch.c: Include "quote.h".
86888         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86889         quote function.  Reported by Göran Uddeborg.
86890
86891 2001-05-22  Jim Meyering  <meyering@lucent.com>
86892
86893         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86894         now that we use the package-supplied version unconditionally.
86895         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86896
86897 2001-05-21  Jim Meyering  <meyering@lucent.com>
86898
86899         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86900         shell syntax errors.
86901
86902 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86903
86904         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86905
86906 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86907
86908         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86909         Don't bother to check library strftime, since
86910         we'll be using our own my_strftime function anyway.
86911         Define my_strftime instead of strftime.
86912
86913 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86914
86915         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86916         which is not yet declared.
86917
86918 2001-05-15  Jim Meyering  <meyering@lucent.com>
86919
86920         * m4/regex.m4: Use proper quoting so brackets appear in the test
86921         program.
86922         Reported by, and with help from, Bruno Haible.
86923
86924 2001-05-13  Jim Meyering  <meyering@lucent.com>
86925
86926         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86927         undefined.
86928
86929 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86930
86931         dirname code cleanup.  base_name now behaves more compatibly
86932         with POSIX basename when given file names that have trailing
86933         slashes, and similarly for dir_name.  Add new primitives
86934         base_len and dir_len.  Put the directory-name-related decls
86935         into dirname.h.
86936
86937         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86938         * lib/backupfile.c (base_name): Likewise.
86939         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86940         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86941         * lib/makepath.c (strip_trailing_slashes): Likewise.
86942         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86943         ISSLASH): Likewise.
86944         * lib/rename.c (strip_trailing_slashes): Likewise.
86945         * lib/same.c (base_name): Likewise.
86946         * lib/stripslash.c (ISSLASH): Likewise.
86947
86948         * lib/addext.c: Include <dirname.h> after size_t is defined.
86949         * lib/backupfile.c: Likewise.
86950
86951         * lib/addext.c (addext): Use base_len to trim redundant
86952         trailing slashes instead of doing it ourselves.
86953         But do not trim the last slash if it is not redundant.
86954
86955         * lib/backupfile.c (find_backup_file_name,
86956         max_backup_version): Use base_len instead of rolling it ourselves.
86957         Handle the case of "" and (on DOS) "C:" correctly.
86958
86959         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86960         needed. Include <string.h>, <dirname.h>.
86961         (base_name): Allow file names ending in slashes, other than names
86962         that are all slashes.  In this case, return the basename followed
86963         by the slashes.  This is more general, and can be used in places
86964         where the original base_name purposely had an assertion failure.
86965         (base_len): New function.
86966
86967         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86968         Do not include <assert.h>; no longer needed.
86969         Include xalloc.h.
86970         (memrchr): Remove decl.
86971         (dir_name_r): Remove.
86972         (dir_len): Renamed from dirlen.  All callers changed.
86973         Rewrite in terms of base_name, for simplicity and consistency.
86974         (dir_name): Never return NULL.  All callers changed.
86975         Do not include <stdlib.h> in test program; no longer needed.
86976         return 0; is fine for test program.
86977
86978         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86979         New macros.
86980         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86981
86982         * lib/path-concat.c (path_concat): Use base_len to compute
86983         base length, not strlen; this means we cannot rely on memcpy
86984         to null-terminate.
86985
86986         * lib/same.c (STREQ): Remove.
86987         (same_name): Handle the case where the basename ends in trailing '/'.
86988
86989         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86990         a slash was stripped.  Do not strip the last slash after a
86991         file system prefix.
86992
86993 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86994
86995         * lib/Makefile.am (libfetish_a_SOURCES):
86996         Add strftime.c, since we now compile it on all hosts.
86997
86998         * lib/strftime.c (my_strftime):
86999         Define to nstrftime if emacs, but only if my_strftime is not defined.
87000         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87001         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87002         Add one more extra argument: a nanoseconds value.
87003         All uses changed.
87004         (ns): New macro.
87005         (my_strftime function): Add %N format.
87006         (emacs_strftimeu): Renamed from emacs_strftime,
87007         with extra ut argument.
87008
87009 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87010
87011         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87012
87013 2001-04-21  Jim Meyering  <meyering@lucent.com>
87014
87015         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87016         doesn't interfere.
87017
87018 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87019
87020         * m4/ftruncate.m4: Check for chsize.
87021         Link with ftruncate.o unconditionally if ftruncate is missing.
87022         This was required when cross-compiling to i586-mingw32msvc.
87023
87024 2001-04-08  Jim Meyering  <meyering@lucent.com>
87025
87026         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87027         recomputed; that's necessary when the offset spans a DST transition.
87028         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87029
87030 2001-04-02  Jim Meyering  <meyering@lucent.com>
87031
87032         * lib/regex.h, regex.c: Update from GNU libc.
87033
87034 2001-03-24  Jim Meyering  <meyering@lucent.com>
87035
87036         * m4/jm-macros.m4: Require autoconf-2.49d.
87037
87038 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87039
87040         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87041
87042 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87043
87044         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87045
87046 2001-03-17  Jim Meyering  <meyering@lucent.com>
87047
87048         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87049         now that the version in autoconf is equivalent.
87050         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87051
87052         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87053         Suggestion from Akim Demaille.
87054
87055         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87056         (jm_PREREQ_TEMPNAME): New function.
87057
87058 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87059
87060         * lib/tempname.c (uint64_t): Define to uintmax_t if
87061         not defined, and if UINT64_MAX is not defined.
87062         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87063         Reported by John David Anglin.
87064
87065 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87066
87067         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87068         resolve alias if codeset is empty.
87069         * lib/config.charset (BeOS): Use wildcard syntax.
87070
87071 2001-03-13  Jim Meyering  <meyering@lucent.com>
87072
87073         * lib/path-concat.c (path_concat)
87074         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87075         concatenating e.g., `C:' and `foo'.
87076         From Bruno Haible.
87077
87078 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87079
87080         * lib/localcharset.c (locale_charset): Don't use
87081         setlocale(LC_CTYPE,NULL). Don't return NULL.
87082         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87083
87084 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87085
87086         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87087         support for DOS/DJGPP.
87088
87089 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87090
87091         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87092         lacks mkstemp.  Compile our own tempname.c if we compile our own
87093         mkstemp.c, as mkstemp relies on tempname.
87094
87095 2001-03-01  Jim Meyering  <meyering@lucent.com>
87096
87097         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87098         AH_VERBATIM really does output its argument verbatim.
87099
87100 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87101
87102         * lib/Makefile.am (libfetish_a_SOURCES):
87103         Add dup-safer.c, fopen-safer.c.
87104         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87105
87106         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87107         * lib/unistd-safer.h: New files.
87108
87109 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87110
87111         The mkstemp replacement is taken from glibc 2.2.2, with some
87112         portability fixes for use outside glibc, as follows:
87113
87114         * lib/tempname.c (struct_stat64): New macro.
87115         (direxists, __gen_tempname): Use it.
87116         This avoids a portability problem with Solaris 8.
87117
87118         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87119         (<stddef.h>, <stdint.h>, <string.h>):
87120         Include only if STDC_HEADERS || _LIBC.
87121         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87122         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87123         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87124         (__set_errno): Define this macro if <errno.h> doesn't.
87125         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87126         Define these macros if <stdio.h> doesn't.
87127         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87128         Define these macros if <sys/stat.h>
87129         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87130         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87131         __xstat64): Define if not _LIBC.
87132         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87133         (__gen_tempname): Invoke gettimeofday only if
87134         HAVE_GETTIMEOFDAY || _LIBC;
87135         otherwise, fall back on plain "time".
87136         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87137
87138         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87139
87140         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87141
87142 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87143
87144         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87145
87146 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87147
87148         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87149         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87150         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87151         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87152
87153 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87154
87155         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87156         Remove workaround macros for hosts that have mbrtowc but not
87157         mbstate_t, as we now insist on proper declarations for both
87158         before using mbrtowc.
87159
87160 2001-02-17  Jim Meyering  <meyering@lucent.com>
87161
87162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87163         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87164         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87165         UnixWare 7.1.1.
87166
87167         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87168         rather than AC_CACHE_VAL.
87169
87170 2001-02-17  Jim Meyering  <meyering@lucent.com>
87171
87172         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87173         around included file name.
87174
87175         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87176
87177         * lib/strftime.c: Update from GNU libc (the only changes were to
87178         comments).
87179
87180 2001-02-17  Jim Meyering  <meyering@lucent.com>
87181
87182         * lib/regex.c: Update from libc.
87183
87184 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87185
87186         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87187         clash.
87188
87189 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87190
87191         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87192         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87193         Reported by Mark Hounschell via Paul Eggert.
87194
87195 2001-02-07  Jim Meyering  <meyering@lucent.com>
87196
87197         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87198
87199 2001-02-05  Jim Meyering  <meyering@lucent.com>
87200
87201         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87202         it includes the patch required for `large file' support with at least
87203         HP-UX's 10.20 /bin/cc.
87204
87205 2001-02-03  Jim Meyering  <meyering@lucent.com>
87206
87207         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87208         AS_IF, now that it works once again (mysteriously).
87209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87210
87211 2001-01-30  Jim Meyering  <meyering@lucent.com>
87212
87213         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87214         * m4/chown.m4: Rename conftestchown to conftest.chown.
87215         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87216         s/conftestdir2/conftest.d2/.
87217         * m4/utimes.m4: s/conftestdata/conftest.data/
87218         Inspired by Pavel Roskin's change in autoconf.
87219
87220 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87221
87222         * lib/config.charset: Update for FreeBSD 4.2.
87223
87224 2001-01-27  Jim Meyering  <meyering@lucent.com>
87225
87226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87227         a use of AS_IF.
87228         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87229
87230 2001-01-26  Jim Meyering  <meyering@lucent.com>
87231
87232         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87233         quotearg.c includes it.
87234
87235 2001-01-26  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/quotearg.c: Include stddef.h.
87238         * lib/quote.c: Include stddef.h.
87239         Reported by Axel Kittenberger.
87240
87241         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87242         line in double quotes so that it evokes a better diagnostic.
87243         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87244         Reported by Axel Kittenberger.
87245
87246 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87247
87248         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87249         as if it was a `charset'.
87250
87251 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87252
87253         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87254         has const.
87255
87256 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87257
87258         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87259         to avoid a warning.  Add back 'const' to inptr.
87260
87261 2001-01-20  Jim Meyering  <meyering@lucent.com>
87262
87263         Be sure that headers are checked before used in code compiled
87264         for the type checks.
87265         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87266         In place of that, invoke jm_CHECK_ALL_TYPES.
87267         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87268         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87269         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87270         The check for ssize_t was mistakenly run before the test for unistd.h.
87271
87272         The configure-time check for stdbool.h was missing.
87273         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87274         (jm_PREREQ_HASH): New function.
87275
87276 2001-01-17  Jim Meyering  <meyering@lucent.com>
87277
87278         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87279         for autoconf-2.49c.
87280         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87281
87282 2001-01-16  Jim Meyering  <meyering@lucent.com>
87283
87284         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87285         From Bruno Haible.
87286
87287 2001-01-14  Jim Meyering  <meyering@lucent.com>
87288
87289         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87290         foo and bar.  Create conftestdir/ in the script, not in the C code.
87291         Remove directories in the script, not in the C code.
87292         Remove conftestdir{,2} before trying to create the directory.
87293         Make the entire configure script fail if the mkdir fails.
87294
87295 2001-01-14  Jim Meyering  <meyering@lucent.com>
87296
87297         * lib/rename.c: New file.  From Volker Borchert.
87298         Include stdlib.h, string.h or strings.h, and xalloc.h.
87299         Use strip_trailing_slashes rather than open-coding it.
87300
87301 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87302
87303         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87304
87305 2001-01-03  Jim Meyering  <meyering@lucent.com>
87306
87307         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87308         of local `inptr' to avoid warning with some system declarations of
87309         iconv.
87310
87311 2001-01-02  Volker Borchert  <bt@teknon.de>
87312
87313         * m4/rename.m4: New file.
87314         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87315
87316 2001-01-01  Jim Meyering  <meyering@lucent.com>
87317
87318         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87319         even on systems with utmpx.h.  It's necessary for the declaration of
87320         utmp's ut_user member.  Reported by Andreas Jaeger.
87321
87322         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87323         available. They are required for the declarations of getgrgid and
87324         getpwuid resp.
87325         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87326         Reported by Andreas Jaeger.
87327
87328 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87329
87330         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87331         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87332         so `make install' also works in VPATH builds.
87333
87334 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87335
87336         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87337         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87338         can be used in subdirectories.
87339
87340 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87341
87342         * lib/modechange.c: Do not assume that mode_t uses the
87343         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87344         the other-execute bit of FOO even if S_IXOTH != 1.
87345
87346         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87347         WOTH, XOTH, ALLM): New macros.
87348         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87349          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87350         Use them.
87351         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87352         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87353         (mode_compile):
87354         No need to use uintmax_t; unsigned long is long enough.
87355         Don't bother to get suffix since we don't use it.
87356
87357 2000-12-26  Jim Meyering  <meyering@lucent.com>
87358
87359         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87360         better with autoheader.
87361
87362 2000-12-24  Jim Meyering  <meyering@lucent.com>
87363
87364         * lib/hash.c (is_prime): Return explicit boolean values.
87365         (hash_get_first): Return NULL to appease Irix5.6's 89.
87366         Reported by Nelson Beebe.
87367
87368 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87369
87370         * lib/localcharset.c (locale_charset): Add support for Win32.
87371
87372 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87373
87374         * lib/physmem.h, lib/physmem.c: New files.
87375
87376         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87377         (noinst_HEADERS): Add physmem.h.
87378
87379         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87380         't' for compatibility with Solaris 8 sort.
87381
87382 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87383
87384         * lib/config.charset: Add support for BeOS.
87385
87386 2000-12-17  Jim Meyering  <meyering@lucent.com>
87387
87388         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87389         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87390
87391 2000-12-16  Jim Meyering  <meyering@lucent.com>
87392
87393         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87394         N and M) would have treated it like `chown N:N FILE'.
87395
87396         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87397
87398 2000-12-16  Jim Meyering  <meyering@lucent.com>
87399
87400         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87401         SHELLS_FILE to a file name that's useful on djgpp systems.
87402         Include stdlib.h.
87403         (ADDITIONAL_DEFAULT_SHELLS): Define.
87404         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87405         Based mostly on a patch from Prashant TR.
87406
87407 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87408
87409         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87410         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87411         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87412
87413 2000-12-08  Andreas Schwab  <schwab@suse.de>
87414
87415         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87416         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87417
87418 2000-12-07  Jim Meyering  <meyering@lucent.com>
87419
87420         * lib/stripslash.c (ISSLASH): Define.
87421         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87422         `/'.
87423         From Prashant TR.
87424
87425         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87426         (dir_name_r): Declare this function as static.
87427         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87428         manifest itself on a name containing a mix of slashes and
87429         backslashes.
87430         Make this function work with names starting with a DOS-style
87431         drive letter and colon prefix.
87432         (dir_name): Append `.' if necessary.
87433         Based mostly on patches from Prashant TR and Eli Zaretskii.
87434
87435         * lib/dirname.h (dir_name_r): Remove prototype.
87436
87437 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87438
87439         * m4/off_t-format.m4: Remove this file.
87440         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87441
87442 2000-12-06  Jim Meyering  <meyering@lucent.com>
87443
87444         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87445         replacement strtoull, we may well need the replacement strtoul, too.
87446         Check for declarations of strtoul and strtoull.
87447         Check for strtol.  Mainly as a cue to cause automake to include
87448         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87449         Check for limits.h -- strtol.c needs it.
87450
87451 2000-12-05  Jim Meyering  <meyering@lucent.com>
87452
87453         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87454
87455 2000-12-04  Jim Meyering  <meyering@lucent.com>
87456
87457         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87458         Also include memory.h, stdlib.h, unistd.h if appropriate.
87459         Reported by Andreas Jaeger (conflicting declaration of malloc).
87460
87461 2000-12-02  Jim Meyering  <meyering@lucent.com>
87462
87463         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87464         * m4/jm-macros.m4 (jm_MACROS): require it.
87465
87466 2000-12-02  Jim Meyering  <meyering@lucent.com>
87467
87468         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87469
87470 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87471
87472         * lib/memrchr.c: Include <config.h> before any system include file.
87473
87474 2000-11-30  Jim Meyering  <meyering@lucent.com>
87475
87476         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87477
87478 2000-11-30  Jim Meyering  <meyering@lucent.com>
87479
87480         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87481
87482 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87483
87484         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87485
87486 2000-11-26  Jim Meyering  <meyering@lucent.com>
87487
87488         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87489
87490 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87491
87492         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87493         size of (size_t) -1; it's not portable.
87494
87495 2000-11-17  Jim Meyering  <meyering@lucent.com>
87496
87497         * lib/strstr.c: Update from GNU libc.
87498
87499 2000-11-17  Akim Demaille  <akim@epita.fr>
87500
87501         * lib/obstack.h: Formatting changes.
87502         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87503         prevent type checking.
87504         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87505         cast the value to (void *): assigning a `foo *' to a `void *'
87506         variable is valid.
87507         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87508
87509 2000-11-16  Jim Meyering  <meyering@lucent.com>
87510
87511         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87512
87513 2000-11-11  Jim Meyering  <meyering@lucent.com>
87514
87515         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87516
87517 2000-11-10  Jim Meyering  <meyering@lucent.com>
87518
87519         * lib/obstack.h: Update from GNU libc.
87520         * lib/obstack.c: Likewise.
87521
87522 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87523
87524         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87525
87526 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87527
87528         * lib/getusershell.c (setusershell): Use rewind rather than
87529         fseek/fseeko, to avoid configuration hassles with fseeko.
87530         Don't bother opening SHELLS_FILE if shellstream is NULL;
87531         it's not necessary.
87532
87533 2000-11-05  Jim Meyering  <meyering@lucent.com>
87534
87535         * lib/makepath.h (make_dir): Declare.
87536         * lib/makepath.c (make_dir): Remove `static' attribute.
87537         Tweak a comment.
87538
87539 2000-11-04  Jim Meyering  <meyering@lucent.com>
87540
87541         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87542
87543 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87544
87545         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87546         last one in a bucket, advance to the next bucket.
87547
87548 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87549
87550         * lib/fnmatch.c: Do not comment out all the code if we are using
87551         the GNU C library, because in some cases we are replacing buggy
87552         code in the GNU C library itself.
87553
87554 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87555
87556         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87557         (regex_compile): Catch bogus \(\1\).
87558
87559 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87560
87561         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87562         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87563         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87564
87565 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87566
87567         * lib/error.h, getline.h, modechange.h:
87568         Remove "2000" from Copyright line, as the file hasn't been
87569         changed this year other than in the copyright notice.
87570
87571         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87572         was changed this year.
87573
87574 2000-10-29  Jim Meyering  <meyering@lucent.com>
87575
87576         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87577         renaming.
87578         * m4/ls-mntd-fs.m4: Likewise
87579
87580 2000-10-29  Jim Meyering  <meyering@lucent.com>
87581
87582         * lib/xstat.in: Fix grammar in comment.
87583
87584 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87585
87586         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87587         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87588         doesn't define __restrict_arr.
87589
87590 2000-10-28  Jim Meyering  <meyering@lucent.com>
87591
87592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87593         (jm_PREREQ_MEMCHR): New function.
87594
87595 2000-10-28  Jim Meyering  <meyering@lucent.com>
87596
87597         * lib/memchr.c: Update from libc.
87598         Adjust for portability:
87599         [HAVE_STDLIB_H]: Include stdlib.h.
87600         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87601         Undef __memchr, too.
87602         [!weak_alias]: Define __memchr to memchr.
87603
87604         * lib/regex.c: Update from libc.
87605         * lib/regex.h: Likewise.
87606         * lib/getopt1.c: Likewise.
87607         * lib/memcmp.c: Likewise.
87608
87609         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87610         Avoid using fseek, when possible -- it's broken by design.
87611         Patch by Ulrich Drepper.
87612
87613 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87614
87615         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87616         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87617         Giving in to popular pressure to shut up the compiler with casts.
87618
87619 2000-10-26  Jim Meyering  <meyering@lucent.com>
87620
87621         * lib/strftime.c: Update from libc.
87622
87623 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87624
87625         * regex.c: More `unsigned char' -> `re_char' changes.
87626         Also change several `int' into `re_wchar_t'.
87627         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87628         (PUSH_FAILURE_POINTER): Don't cast any more.
87629         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87630         We want GCC to complain, since this piece of code makes
87631         re_match non-reentrant, which *should* be fixed.
87632         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87633         (EXTEND_BUFFER): Use RETALLOC.
87634         (SET_LIST_BIT): Don't cast.
87635         (re_wchar_t): New type.
87636         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87637         that those two functions will always properly return.
87638         (IMMEDIATE_QUIT_CHECK): Cast to void.
87639         (analyse_first): Use recursion rather than an explicit stack.
87640         (re_compile_fastmap): Can't fail anymore.
87641         (re_search_2): Don't check re_compile_fastmap for failure.
87642         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87643         Now also sets the new value (passed in a new argument).
87644         (re_match_2_internal): Use it.
87645         Also, use a new var `reg' of type size_t when looping through regs
87646         rather than reuse the inappropriate `mcnt'.
87647
87648 2000-10-25  Jim Meyering  <meyering@lucent.com>
87649
87650         * lib/obstack.c: Update from libc.
87651
87652 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87653
87654         * regex.c (regex_compile): Change the way of handling a range from
87655         a char less than 256 to a char not less than 256.
87656
87657 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87658
87659         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87660         NT-Emacs only.
87661         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87662         so that re_search functions only quit when callers expect them to.
87663
87664 2000-10-23  Jim Meyering  <meyering@lucent.com>
87665
87666         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87667         wrong.  That set_locale call must not have any side effects.
87668         From Paul Eggert.
87669
87670 2000-10-22  Jim Meyering  <meyering@lucent.com>
87671
87672         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87673         [CYCLIC]: Remove now-unused definition.
87674
87675         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87676         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87677         Suggestion from Ulrich Drepper.
87678
87679 2000-10-21  Jim Meyering  <meyering@lucent.com>
87680
87681         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87682         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87683         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87684
87685 2000-10-21  Jim Meyering  <meyering@lucent.com>
87686
87687         * lib/dirname.c (memrchr): Declare if necessary.
87688         (dir_name): Remove the restriction that there be no
87689         trailing slashes.  Now, this code skips past them, effectively
87690         ignoring them.
87691         [TEST_DIRNAME] (main): New unit tests.
87692
87693         * lib/memrchr.c: New file from GNU libc.
87694         Undef __memrchr, too.
87695         [!weak_alias]: Define __memrchr to memrchr.
87696         Guard weak_alias use with `#ifdef weak_alias'.
87697
87698 2000-10-21  Jim Meyering  <meyering@lucent.com>
87699
87700         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87701         (dir_name): Use dir_name_r.
87702         * lib/dirname.h (dir_name_r): Declare it.
87703
87704 2000-10-17  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/quote.h (PARAMS): Define and use.
87707         Reported by Akim Demaille.
87708
87709         * lib/getopt.c: Update from libc.
87710
87711 2000-10-16  Jim Meyering  <meyering@lucent.com>
87712
87713         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87714         setlocale.
87715         From Jan Fedak.
87716
87717 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87718
87719         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87720
87721 2000-09-25  Jim Meyering  <meyering@lucent.com>
87722
87723         * lib/md5.h (rol): Define (from GnuPG).
87724
87725         * lib/sha.c: Give credit (GnuPG) where due.
87726         (M): Use rol rather than open-coding it.
87727         Add a FIXME comment.
87728
87729 2000-09-21  Jim Meyering  <meyering@lucent.com>
87730
87731         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87732         Reported by Michael Stone.
87733
87734 2000-09-20  Jim Meyering  <meyering@lucent.com>
87735
87736         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87737         (noinst_HEADERS): Add sha.h.
87738         Based on code from Scott G. Miller and from GnuPG.
87739
87740 2000-09-18  Jim Meyering  <meyering@lucent.com>
87741
87742         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87743         LIBS. Otherwise, everyone ends up linking with -lelf for some
87744         configurations.
87745         Reported by Mike Stone.
87746
87747 2000-09-15  Jim Meyering  <meyering@lucent.com>
87748
87749         * lib/regex.c: Update from libc.
87750
87751 2000-09-10  Jim Meyering  <meyering@lucent.com>
87752
87753         * lib/getopt.c (_getopt_internal): Update from glibc.
87754
87755 2000-09-09  Jim Meyering  <meyering@lucent.com>
87756
87757         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87758         think it should be used as a general replacement for isascii.
87759         * lib/fnmatch.c: Likewise.
87760         * lib/mbswidth.c: Likewise
87761         * lib/regex.c: Likewise.
87762
87763         Don't use atoi.
87764         * lib/userspec.c: Include sys/param.h and limits.h.
87765         Include xstrtol.h.
87766         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87767         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87768         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87769         UID, GID.  Check range.
87770
87771 2000-09-06  Jim Meyering  <meyering@lucent.com>
87772
87773         * lib/getopt.c (_getopt_internal): Update from glibc.
87774
87775 2000-08-30  Jim Meyering  <meyering@lucent.com>
87776
87777         * lib/strftime.c: Merge in changes from GNU libc.
87778
87779 2000-08-26  Jim Meyering  <meyering@lucent.com>
87780
87781         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87782         * m4/fpending.m4: New file.
87783
87784 2000-08-26  Jim Meyering  <meyering@lucent.com>
87785
87786         * lib/closeout.c: Include "__fpending.h".
87787         (close_stdout_status): Return right away if there's nothing to flush.
87788
87789         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87790         * lib/__fpending.c: New file.
87791         * lib/__fpending.h: New file.
87792
87793 2000-08-20  Jim Meyering  <meyering@lucent.com>
87794
87795         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87796         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87797         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87798
87799 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87800
87801         Improve fileutils installation on systems where running
87802         programs (like install) can't be unlinked.
87803         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87804         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87805
87806 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87807
87808         Standardize on "memory exhausted" instead of "Memory exhausted"
87809         or "virtual memory exhausted".
87810         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87811         "virtual memory exhausted".
87812         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87813         our own message.
87814         * lib/userspec.c (parse_user_spec): Likewise.
87815         * lib/bumpalloc.h: comment fix
87816         * lib/same.c, userspec.c: Include xalloc.h.
87817
87818         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87819         not char *const and pointing to a constant array.
87820         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87821         (xrealloc): Comment fix.
87822
87823         * lib/userspec.c (parse_user_spec):
87824         Don't translate a message until just before returning,
87825         to avoid unnecessary translation.
87826
87827 2000-08-07  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87830         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87831         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87832         getgroups.c, gethostname.c, getopt.h, group-member.c,
87833         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87834         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87835         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87836         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87837         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87838         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87839         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87840         yesno.c: Back out Copyright date changes for each file with no change
87841         this year.  This eases coordination with other programs using the same
87842         source code modules.  From Paul Eggert.
87843
87844 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87845
87846         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87847         not char, for compatibility with glibc 2.1.3 strftime.c.
87848
87849 2000-08-03  Greg McGary  <greg@mcgary.org>
87850
87851         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87852         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87853         (EXTEND_BUFFER): Use them.
87854
87855 2000-08-01  Jim Meyering  <meyering@lucent.com>
87856
87857         * lib/dirname.c (ISSLASH): Define.
87858         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87859         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87860         both `\' and `/' may be use as path separators.
87861         Based on a patch from Prashant TR.
87862
87863 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87864
87865         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87866         slot vector a constant, since it might get modified.
87867
87868 2000-07-31  Jim Meyering  <meyering@lucent.com>
87869
87870         * lib/xmalloc.c: Use `virtual memory exhausted', not
87871         `Memory exhausted'.
87872         * lib/obstack.c (print_and_abort): Likewise.
87873
87874 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87875
87876         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87877         buffer, so that the caller can always quote one small
87878         component of a "memory exhausted" message in slot 0.
87879         From a suggestion by Jim Meyering.
87880
87881 2000-07-30  Jim Meyering  <meyering@lucent.com>
87882
87883         * lib/makepath.c (make_path): Quote the other instance, too.
87884
87885         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87886         (STATIC_BUF_SIZE): Define.
87887         (quotearg_n_options): Use only statically allocated storage when
87888         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87889         than STATIC_BUF_SIZE.
87890
87891 2000-07-29  Jim Meyering  <meyering@lucent.com>
87892
87893         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87894         * lib/dirname.c (dir_name): Likewise.
87895
87896         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87897         `/'.
87898
87899         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87900         (dir_name): Assert that there are no trailing slashes.
87901
87902 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87903
87904         * lib/mbswidth.h (mbswidth): Add a flags argument.
87905         (mbswidth): New declaration.
87906         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87907         * lib/mbswidth.c (mbswidth): Add a flags argument.
87908         (mbsnwidth): New function.
87909
87910 2000-07-24  Jim Meyering  <meyering@lucent.com>
87911
87912         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87913
87914 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87915
87916         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87917
87918 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87919
87920         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87921         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87922         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87923         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87924         invoke multibyte primitives.
87925
87926 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87927
87928         * lib/quotearg.c:
87929         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87930         so that mbstate_t is always defined.
87931
87932         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87933         be 1 in at least one GCC installation, and this configuration
87934         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87935         performance on hosts that have mbrtowc but have only unibyte
87936         locales, but I assume these hosts are rare.
87937
87938 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87939
87940         * lib/mbswidth.c (_XOPEN_SOURCE):
87941         Don't define; this causes problems on Solaris 7.
87942         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87943
87944 2000-07-23  Jim Meyering  <meyering@lucent.com>
87945
87946         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87947         too: getgrgid, getpwuid, getuid.
87948
87949 2000-07-23  Jim Meyering  <meyering@lucent.com>
87950
87951         * lib/basename.c (base_name): Add an assertion.
87952
87953 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87954
87955         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87956         shadow its mbsinit function.
87957
87958 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87959
87960         * lib/mbswidth.h: New file.
87961         * lib/mbswidth.c: New file.
87962         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87963         (noinst_HEADERS): Add mbswidth.h.
87964
87965 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87966
87967         * lib/config.charset: Add support for FreeBSD. Improve support for
87968         HP-UX and IRIX 6.
87969
87970 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87971
87972         * m4/mbswidth.m4: New file.
87973         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87974
87975 2000-07-15  Jim Meyering  <meyering@lucent.com>
87976
87977         * lib/makepath.c: Include quote.h.
87978         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87979         corresponding argument in a `quote (...)' call.
87980         Give better diagnostics.
87981
87982         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87983         (noinst_HEADERS): Add quote.h.
87984
87985         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87986         from tar's src/misc.c.
87987         * lib/quote.h: New file.  Prototypes for same.
87988
87989 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87990
87991         From a suggestion by Bruno Haible.
87992         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87993         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87994         to decide whether to define the BeOS workaround macro;
87995         this adjusts to the change to AC_MBSTATE_T.
87996
87997 2000-07-14  Jim Meyering  <meyering@lucent.com>
87998
87999         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88000         jm_AC_TYPE_UINTMAX_T.
88001
88002 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88003
88004         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88005
88006         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88007         quotearg_buffer_restyled): Add support for
88008         clocale_quoting_style.  Undo previous change to
88009         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88010         and "{RIGHT QUOTATION MARK}" msgids.
88011
88012 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88013
88014         From a suggestion by Bruno Haible.
88015         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88016         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88017         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88018         and mbstate_t, to a single-part test that simply defines mbstate_t.
88019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88020         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88021
88022 2000-07-10  Jim Meyering  <meyering@lucent.com>
88023
88024         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88025
88026         * m4/gnu-source.m4: Output to confdefs.h directly.
88027         Suggestion from Akim Demaille.
88028
88029 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88030
88031         The old behavior of quoting `like this' doesn't look good with
88032         newer, ISO-style fonts.  See:
88033         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88034
88035         Instead, quote "like this" by default.  Let the translator
88036         tailor the locale-specific quoting behavior by providing
88037         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88038
88039         * lib/quotearg.c (N_): New macro.
88040         (gettext_default): New function.
88041         (quotearg_buffer_restyled): Use
88042         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88043         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88044
88045 2000-07-09  Jim Meyering  <meyering@lucent.com>
88046
88047         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88048         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88049
88050         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88052
88053 2000-07-09  Jim Meyering  <meyering@lucent.com>
88054
88055         * lib/Most files: Update copyright dates to include 2000.
88056
88057 2000-07-08  Jim Meyering  <meyering@lucent.com>
88058
88059         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88060         if not defined.
88061         (xgethostname): Remove now-unnecessary #ifdef.
88062         Move declaration of `err' into loop where it's used.
88063
88064 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88065         and Bruno Haible  <haible@clisp.cons.org>
88066
88067         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88068         only if the test for an object-type mbstate_t fails.  This
88069         prevents us from mistakenly reporting that mbstate_t is a
88070         system object type after we "#define mbstate_t int" to work
88071         around its lack.
88072
88073 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88074         and Bruno Haible  <haible@clisp.cons.org>
88075
88076         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88077
88078 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88079
88080         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88081         to strerror_r.
88082         Include <ctype.h> for use of isalpha.
88083
88084 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88085
88086         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88087         by allocating a larger buffer. Test the gethostname return value for
88088         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88089         returns an error and ENAMETOOLONG isn't defined.
88090
88091 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88092
88093         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88094         dimension.
88095
88096 2000-07-04  Jim Meyering  <meyering@lucent.com>
88097
88098         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88099         of the deprecated AC_CHECKING.
88100
88101 2000-07-04  Jim Meyering  <meyering@lucent.com>
88102
88103         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88104         Reported by Bruno Haible.
88105
88106 2000-07-04  Jim Meyering  <meyering@lucent.com>
88107
88108         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88109         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88110         lacks mbrtowc.
88111
88112 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88113
88114         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88115         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88116
88117 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88118         and Bruno Haible  <haible@clisp.cons.org>
88119
88120         * lib/quotearg.c (mbrtowc):
88121         Assign to *pwc, and return 1 only if result is nonzero.
88122         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88123
88124 2000-07-03  Jim Meyering  <meyering@lucent.com>
88125
88126         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88127
88128 2000-07-03  Jim Meyering  <meyering@lucent.com>
88129
88130         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88131         This is necessary to get a definition of e.g., UTMP_FILE on
88132         HP-UX 10.20.
88133         From Bob Proulx.
88134
88135 2000-07-02  Jim Meyering  <meyering@lucent.com>
88136
88137         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88138
88139         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88140         AC_LIBOBJ(function_name).
88141         * m4/chown.m4: Likewise.
88142         * m4/fnmatch.m4: Likewise.
88143         * m4/ftruncate.m4: Likewise.
88144         * m4/getgroups.m4: Likewise.
88145         * m4/getline.m4: Likewise.
88146         * m4/group-member.m4: Likewise.
88147         * m4/jm-macros.m4: Likewise.
88148         * m4/lstat.m4: Likewise.
88149         * m4/malloc.m4: Likewise.
88150         * m4/memcmp.m4: Likewise.
88151         * m4/nanosleep.m4: Likewise.
88152         * m4/putenv.m4: Likewise.
88153         * m4/realloc.m4: Likewise.
88154         * m4/regex.m4: Likewise.
88155         * m4/stat.m4: Likewise.
88156         * m4/strftime.m4: Likewise.
88157
88158 2000-07-02  Jim Meyering  <meyering@lucent.com>
88159
88160         * lib/quotearg.c (mbstate_t): Don't define here.
88161
88162 2000-07-02  Jim Meyering  <meyering@lucent.com>
88163
88164         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88165
88166 2000-07-01  Jim Meyering  <meyering@lucent.com>
88167
88168         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88169
88170 2000-07-01  Jim Meyering  <meyering@lucent.com>
88171
88172         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88173         problem.
88174
88175 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88176
88177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88178         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88179
88180 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88181
88182         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88183         per change in ../m4/ls-mntd-fs.m4.
88184         (read_filesystem_list): Ignore symbolic links.
88185
88186 2000-06-29  Jim Meyering  <meyering@lucent.com>
88187
88188         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88189         for declaration of strcmp.
88190
88191         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88192
88193         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88194         Avoid warning by casting result to `char *' to remove `const'.
88195
88196 2000-06-28  Jim Meyering  <meyering@lucent.com>
88197
88198         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88199         included by quotearg.c, for which we perform this test.  From
88200         Bruno Haible.
88201
88202 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88203
88204         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88205         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88206         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88207
88208 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88209
88210         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88211
88212 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88213
88214         savedir now sets errno on failure and invokes xmalloc to get memory.
88215         Fix a couple of other minor bugs while we're at it.
88216
88217         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88218         (NAMLEN): Remove macro.
88219         (malloc, realloc): Remove decls.
88220         (stpcpy): Likewise.
88221         ("xalloc.h"): Include.
88222         (NAME_SIZE_DEFAULT): New macro.
88223         (savedir): Use xmalloc / xrealloc to allocate memory.
88224         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88225         Skip "" directory entries.
88226         Use strlen to calculate directory entry length, since the old method
88227         is rarely used these days and isn't worth supporting.
88228         Don't use a pointer after freeing it.
88229         Check for integer overflow when calculating allocation size.
88230         Use memcpy to copy entries, instead of stpcpy.
88231         Set errno properly when returning NULL.
88232         Check for readdir error.
88233
88234 2000-06-26  Jim Meyering  <meyering@lucent.com>
88235
88236         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88237
88238 2000-06-25  Jim Meyering  <meyering@lucent.com>
88239
88240         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88241         Linux header bug when _XOPEN_SOURCE is defined to 500.
88242
88243 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88244
88245         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88246         deficiency.
88247
88248 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88249
88250         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88251         Include xalloc.h.
88252         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88253
88254 2000-06-24  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88257         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88258         for which strerror does return char*, but which lacks a conveniently
88259         accessible declaration of the function.  If the compile-test says
88260         strerror_r doesn't work, then resort to a `run'-test that works on
88261         BeOS and segfaults on DEC Unix.
88262
88263 2000-06-24  Jim Meyering  <meyering@lucent.com>
88264
88265         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88266
88267 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88268
88269         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88270         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88271
88272 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88273
88274         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88275         (mbrtowc, mbstate_t): Define substitutes if
88276         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88277         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88278         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88279
88280 2000-06-23  Jim Meyering  <meyering@lucent.com>
88281
88282         * m4/afs.m4: Add missing AC_MSG_RESULT.
88283         Reported by Bruno Haible.
88284
88285         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88286         Suggestion from Bruno Haible.
88287
88288 2000-06-23  Jim Meyering  <meyering@lucent.com>
88289
88290         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88291
88292 2000-06-21  Jim Meyering  <meyering@lucent.com>
88293
88294         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88295
88296 2000-06-21  Jim Meyering  <meyering@lucent.com>
88297
88298         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88299         (noinst_HEADERS): Add getstr.h.
88300
88301         * lib/getline.c (getstr): Move into a separate file.
88302         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88303         the following changes: new parameter, delim2; both delim[12]
88304         parameters have type `int', not `char'.  The latter would lose
88305         with 8-bit delimiters.
88306         * lib/getstr.h: New file.
88307
88308 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88309
88310         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88311         than 1024, return a memory chunk of least possible size, instead
88312         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88313         Use free/xmalloc instead of xrealloc to avoid copying for very long
88314         paths.
88315
88316 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88317
88318         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88319         the empty string.
88320
88321 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88322
88323         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88324         address, not strdup.  Include <stdlib.h> and don't declare free().
88325
88326 2000-06-19  Jim Meyering  <meyering@lucent.com>
88327
88328         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88329
88330 2000-06-18  Jim Meyering  <meyering@lucent.com>
88331
88332         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88333
88334         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88335         `checking whether...' message to be consistent with that of the
88336         lstat test.
88337
88338 2000-06-18  Jim Meyering  <meyering@lucent.com>
88339
88340         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88341         Besides, these days every porting target provides a mkdir function.
88342
88343         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88344         needed. (this snippet comes from src/system.h).
88345
88346 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88347
88348         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88349
88350 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88351
88352         * lib/human.c (adjust_value): New function.
88353         (human_readable_inexact): Apply rounding style even when
88354         printing approximate values.
88355
88356 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88357
88358         * lib/human.c (human_readable_inexact): Allow an input block
88359         size that is not a multiple of the output block size, and vice versa.
88360         Reported by Piergiorgio Sartor.
88361
88362 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88363
88364         * lib/getdate.y (get_date): Apply relative times after time
88365         zone indicator, not before.  Reported by Todd A. Jacobs.
88366
88367 2000-06-13  Jim Meyering  <meyering@lucent.com>
88368
88369         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88370
88371         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88372
88373 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88374
88375         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88376
88377 2000-06-12  Jim Meyering  <meyering@lucent.com>
88378
88379         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88380         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88381         optional argument.
88382         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88383         the optional argument, `lib'.
88384
88385 2000-06-08  Jim Meyering  <meyering@lucent.com>
88386
88387         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88388
88389 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88390
88391         Rewrite largefile configuration so that we don't need to run
88392         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88393         AC_CANONICAL_HOST in configure.in -- jmm]
88394
88395         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88396         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88397         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88398         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88399         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88400         All uses changed.
88401         Instead of inspecting the output of getconf, try to compile the
88402         test program without and with the macro definition.
88403         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88404         for getconf.  Instead, check for the needed flags by compiling
88405         test programs.
88406
88407 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88408
88409         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88410
88411 2000-06-04  Jim Meyering  <meyering@lucent.com>
88412
88413         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88414         SunOS 4.1.4 for which gid_t is an unsigned type.
88415
88416 2000-06-03  Jim Meyering  <meyering@lucent.com>
88417
88418         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88419         now that autoconf requires that.
88420
88421         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88422         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88423         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88424
88425 2000-06-03  Jim Meyering  <meyering@lucent.com>
88426
88427         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88428
88429 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88430
88431         * m4/glibc21.m4: New file.
88432         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88433
88434 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88435
88436         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88437         newer, don't install charset.alias.
88438         * lib/config.charset: Change the Linux/glibc rules so they become empty
88439         on glibc-2.1 or newer.
88440
88441 2000-06-02  Jim Meyering  <meyering@lucent.com>
88442
88443         * lib/mountlist.c: Back out last change.  Instead, do this...
88444         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88445         me_dummy member using the same `ignore'-testing code.
88446         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88447         fs_type strings.
88448         From Mark D. Roth.
88449
88450 2000-05-29  Jim Meyering  <meyering@lucent.com>
88451
88452         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88453         mounts with the `ignore' attribute.  Based on a patch from
88454         Mark D. Roth.
88455
88456 2000-05-28  Jim Meyering  <meyering@lucent.com>
88457
88458         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88459         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88460         * m4/stat.m4: Likewise.
88461         * m4/lstat.m4: Likewise.
88462         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88463
88464         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88465         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88466
88467 2000-05-26  Jim Meyering  <meyering@lucent.com>
88468
88469         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88470
88471 2000-05-24  Jim Meyering  <meyering@lucent.com>
88472
88473         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88474         autoconf requires that.
88475         * m4/lib-check.m4: Likewise.
88476         * m4/jm-macros.m4: Likewise.
88477         * m4/strftime.m4: Likewise.
88478
88479         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88480         AC_CHECK_DECLS, now that autoconf requires that.
88481
88482 2000-05-22  Jim Meyering  <meyering@lucent.com>
88483
88484         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88485         * m4/lstat.m4: Likewise.
88486
88487 2000-05-22  Jim Meyering  <meyering@lucent.com>
88488
88489         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88490
88491 2000-05-20  Jim Meyering  <meyering@lucent.com>
88492
88493         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88494         (jm_PREREQ): Use it.
88495
88496 2000-05-18  Jim Meyering  <meyering@lucent.com>
88497
88498         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88499         back, too, since it may have been modified by allocate_entry.
88500         (hash_delete): Rewrite to use neither the assignment operator
88501         nor the comma operator in an if-expression.
88502
88503 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88504
88505         * lib/closeout.c:
88506         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88507         Remove; no longer needed.
88508         "quotearg.h": Add include.
88509         (file_name): Do not bother to explicitly initialize to NULL; it's less
88510         efficient on some hosts.
88511         (close_stdout_status): Remove test as to whether stdout was already
88512         closed; it breaks for the case "echo x | sort >&-".
88513         Quote file name colons.
88514         Do not assume that _("write error") lacks format strings.
88515
88516 2000-05-15  Jim Meyering  <meyering@lucent.com>
88517
88518         * lib/version-etc.c (version_etc_copyright): Update the copyright
88519         string used in all --version output.
88520
88521 2000-05-14  Jim Meyering  <meyering@lucent.com>
88522
88523         * lib/closeout.c (close_stdout_set_file_name): New function.
88524         (close_stdout_status): Use new file-scoped global.
88525         Return right away if fstat says the stdout file descriptor is invalid.
88526         * lib/closeout.h (close_stdout_set_file_name): Declare.
88527
88528 2000-05-10  Jim Meyering  <meyering@lucent.com>
88529
88530         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88531         (close_stdout_set_status): New function.
88532         * lib/closeout.h (close_stdout_set_status): Declare.
88533
88534 2000-05-09  Jim Meyering  <meyering@lucent.com>
88535
88536         * m4/gettext.m4: Rename this...
88537         * m4/libintl.m4: ...to this.
88538
88539 2000-05-08  Jim Meyering  <meyering@lucent.com>
88540
88541         * lib/long-options.c: Don't include closeout.h.
88542         (parse_long_options): Don't call close_stdout for --version.
88543
88544 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88545
88546         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88547         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88548         2.1.3 bug.  This avoids a clash when files like regex.c define
88549         _GNU_SOURCE.
88550
88551 2000-05-06  Jim Meyering  <meyering@lucent.com>
88552
88553         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88554         (AC_REPLACE_FUNCS): Add strnlen.
88555
88556         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88557         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88558
88559         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88560         AC_SEARCH_LIBS call for nanosleep.
88561         (LIB_NANOSLEEP): Set and AC_SUBST.
88562
88563 2000-05-06  Jim Meyering  <meyering@lucent.com>
88564
88565         * lib/strnlen.c: Undefine __strnlen and strnlen.
88566         [!weak_alias]: Define __strnlen to strnlen.
88567
88568         * lib/atexit.c: New file, from libiberty.
88569
88570 2000-05-06  Jim Meyering  <meyering@lucent.com>
88571
88572         * lib/closeout.c (close_stdout_status): Also check for errors on the
88573         stderr stream.
88574
88575 2000-05-05  Jim Meyering  <meyering@lucent.com>
88576
88577         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88578         AC_SEARCH_LIBS call for clock_gettime.
88579         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88580
88581         * m4/search-libs.m4: Update from autoconf.
88582
88583         su doesn't work on Solaris 2.6.
88584         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88585         <shadow.h>.  Reported by Dragos Harabor.
88586
88587 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88588
88589         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88590         memcpy instead of xmalloc, xrealloc, path_concat.
88591         (locale_charset): Treat empty environment variables as absent.
88592         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88593
88594 2000-05-04  Jim Meyering  <meyering@lucent.com>
88595
88596         * lib/getopt.c: Update from glibc.
88597         * lib/obstack.c: Likewise.
88598         * lib/obstack.h: Likewise.
88599         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88600         file
88601
88602         * lib/regex.h: Likewise.
88603         * lib/strndup.c: Likewise.
88604         * lib/strnlen.c: New file, from glibc.
88605
88606 2000-05-03  Jim Meyering  <meyering@lucent.com>
88607
88608         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88609
88610 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88611
88612         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88613         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88614         compile-time test, rather than inspecting host and OS, to
88615         decide whether to define _LARGEFILE_SOURCE.
88616
88617 2000-05-01  Jim Meyering  <meyering@lucent.com>
88618
88619         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88620
88621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88622         Based on a patch from Bruno Haible.
88623
88624 2000-05-01  Jim Meyering  <meyering@lucent.com>
88625
88626         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88627
88628 2000-04-29  Jim Meyering  <meyering@lucent.com>
88629
88630         * lib/path-concat.c: Declare strdup only if it's not defined.
88631         * lib/canon-host.c: Likewise.
88632
88633 2000-04-28  Jim Meyering  <meyering@lucent.com>
88634
88635         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88636         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88637         is included first, then limits.h is included by locale.h by libintl.h.
88638         From John David Anglin.
88639
88640 2000-04-25  Jim Meyering  <meyering@lucent.com>
88641
88642         * lib/makepath.c (S_IRWXUGO): Define.
88643         (make_path): Always perform explicit chmod if MODE specifies any
88644         of the `special' permission bits.  Prompted by a bug report against
88645         install from Mate Wierdl and Joost van Baal.
88646
88647 2000-04-18  Jim Meyering  <meyering@lucent.com>
88648
88649         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88650         (jm_PREREQ): Use it.
88651
88652 2000-04-18  Jim Meyering  <meyering@lucent.com>
88653
88654         * lib/README: New file.
88655
88656         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88657         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88658
88659 2000-04-17  Jim Meyering  <meyering@lucent.com>
88660
88661         Get it right :-)
88662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88663         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88664         Suggestion from Akim Demaille.
88665
88666 2000-04-17  Jim Meyering  <meyering@lucent.com>
88667
88668         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88669         the definition of it to rpl_strftime also defined-away the system's
88670         declaration.
88671
88672 2000-04-15  Jim Meyering  <meyering@lucent.com>
88673
88674         Use `C' to denote so-called `contiguous' files, the same way
88675         that tar does.
88676         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88677         (ftypelet): Use S_ISCTG.
88678         From Michael Deutschmann.
88679
88680 2000-04-14  Jim Meyering  <meyering@lucent.com>
88681
88682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88683         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88684         clobbered.
88685
88686 2000-04-14  Jim Meyering  <meyering@lucent.com>
88687
88688         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88689
88690 2000-04-13  Jim Meyering  <meyering@lucent.com>
88691
88692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88693         AH_VERBATIM to insert required #ifndef into config.h.in.
88694         Suggestion from Akim Demaille.
88695
88696 2000-04-12  Jim Meyering  <meyering@lucent.com>
88697
88698         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88699         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88700         Christian Krackowizer.
88701
88702         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88703         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88704         (AC_SYS_LARGEFILE): Require.
88705         (AM_C_PROTOTYPES): Require.
88706
88707 2000-04-08  Jim Meyering  <meyering@lucent.com>
88708
88709         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88710         names don't conflict.  Reported by Eli Zaretskii.
88711
88712 2000-04-07  Jim Meyering  <meyering@lucent.com>
88713
88714         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88715         sys/types.h, to work around system header problems on AIX 3.2.5.
88716         From Bruno Haible.
88717
88718 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88719
88720         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88721         bug.  Deal with the different error behavior of Irix iconv.
88722
88723 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88724
88725         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88726         IRIX if the installer said otherwise.
88727
88728 2000-04-05  Jim Meyering  <meyering@lucent.com>
88729
88730         Portability tweaks required for ultrix4.3.
88731         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88732         (jm_CHECK_DECLS): Add getutent to the list of functions.
88733         (_jm_DECL_HEADERS): Add utmpx.h.
88734         From John David Anglin.
88735
88736         * m4/strftime.m4: Back out the 2000-04-02 change.
88737         Instead of that change, simply undefine putenv in the test program.
88738
88739 2000-04-05  Jim Meyering  <meyering@lucent.com>
88740
88741         Portability tweaks required for ultrix4.3.
88742         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88743         getutent.
88744         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88745         * lib/canon-host.c: Declare strdup.
88746         * lib/path-concat.c: Likewise.
88747         From John David Anglin.
88748
88749 2000-04-04  Jim Meyering  <meyering@lucent.com>
88750
88751         Be more DOS 8.3-friendly.
88752         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88753         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88754         * lib/Makefile.am: Reflect renaming.
88755         Reported by Eli Zaretskii.
88756
88757         Use a temporary file name that won't clash with `charset.alias'
88758         in the DOS 8.3 name space.
88759         * lib/Makefile.am (charset_tmp): Define.
88760         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88761         (uninstall-local): Likewise.
88762         Reported by Eli Zaretskii.
88763
88764 2000-04-03  Jim Meyering  <meyering@lucent.com>
88765
88766         * m4/gettext.m4: Fix typo in comment.
88767
88768         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88769         textutils/configure.in).  Suggestion from Paul Eggert.
88770         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88771
88772 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88773
88774         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88775         variable in the shell rather than using putenv, which isn't
88776         portable.  This avoids the configure-time inter-test dependency
88777         on the potentially-renamed putenv function.
88778
88779 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88780
88781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88782         before checking struct stat.st_blksize, so that
88783         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88784
88785 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88786
88787         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88788         since strftime.c uses HAVE_STRFTIME to decide whether to use
88789         the underlying strftime.
88790
88791 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88792
88793         * lib/time/strftime.c (my_strftime): Make sure we call the system
88794         strftime, not ourselves, when invoking the underlying strftime.
88795
88796 2000-03-24  Jim Meyering  <meyering@lucent.com>
88797
88798         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88799         (charset_alias): Define.
88800         (install-exec-local): Factor out common code.
88801         (uninstall-local): Split lines longer than 80.
88802         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88803         (SUFFIXES): Define.
88804         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88805         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88806
88807 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88808
88809         * lib/config.charset: Output a line containing "Packages using this
88810         file".
88811         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88812         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88813         ref-del.sed): New rules.
88814
88815 2000-03-17  Jim Meyering  <meyering@lucent.com>
88816
88817         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88818         Otherwise, include <strings.h>
88819
88820 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88821
88822         * lib/unicodeio.c (utf8_wctomb): New function.
88823         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88824         format instead of in UCS-4 with platform dependent endianness.
88825
88826 2000-03-10  Jim Meyering  <meyering@lucent.com>
88827
88828         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88829         From Marco Franzen.
88830
88831 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88832
88833         * lib/savedir.c (savedir): Work even if directory size is
88834         negative; this can happen with some screwy NFS configurations.
88835
88836 2000-03-06  Jim Meyering  <meyering@lucent.com>
88837
88838         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88839         if it's NULL (because we ran out of memory).  From Bruno Haible.
88840
88841 2000-03-05  Jim Meyering  <meyering@lucent.com>
88842
88843         * lib/localcharset.c ("path-concat.h"): Include.
88844         (get_charset_aliases): Use path_concat instead of ANSI string
88845         concatenation.
88846
88847         * lib/unicodeio.h (PARAMS): Define.
88848         Use it to guard prototype.
88849
88850 2000-03-04  Jim Meyering  <meyering@lucent.com>
88851
88852         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88853         for lib/localcharset.c.
88854
88855 2000-03-04  Jim Meyering  <meyering@lucent.com>
88856
88857         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88858         installing into it.
88859         (uninstall-local): Uncomment this rule so `make distcheck' works
88860         once again.
88861
88862         * lib/unicodeio.c (<errno.h>): Include it.
88863         (errno): Declare if not defined.
88864
88865         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88866
88867         * lib/config.charset: New version, incorporating remarks from a linux
88868         i18n mailing list.  From Bruno Haible.
88869
88870 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88871
88872         * m4/codeset.m4: New file.
88873         * m4/iconv.m4: New file.
88874         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88875
88876 2000-03-03  Jim Meyering  <meyering@lucent.com>
88877
88878         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88879
88880 2000-03-02  Jim Meyering  <meyering@lucent.com>
88881
88882         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88883         the messages come out on separate lines.
88884
88885         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88886         rather than jm_CHECK_DECLARATIONS.
88887         * m4/decl.m4: Remove now-unused file.
88888
88889         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88890         geteuid.
88891
88892 2000-03-02  Jim Meyering  <meyering@lucent.com>
88893
88894         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88895
88896 2000-03-01  Jim Meyering  <meyering@lucent.com>
88897
88898         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88899         * lib/unicodeio.c: Likewise.
88900
88901 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88902
88903         * lib/config.charset: New file.
88904         * lib/localcharset.c: New file.
88905         * lib/unicodeio.h, lib/unicodeio.c: New files.
88906         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88907         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88908         (noinst_HEADERS): Add unicodeio.h.
88909         (all-local, install-exec-local, charset.alias): New targets.
88910
88911 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88912
88913         * lib/quotearg.c (ALERT_CHAR): New macro.
88914         (quotearg_buffer_restyled): Use it.
88915
88916 2000-02-27  Jim Meyering  <meyering@lucent.com>
88917
88918         * m4/check-decl.m4: Add getenv to the list.
88919
88920 2000-02-27  Jim Meyering  <meyering@lucent.com>
88921
88922         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88923         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88924
88925         * lib/backupfile.c: Guard inclusion of stdlib.h with
88926         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88927         Declare malloc if needed.
88928
88929         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88930         `#ifndef HAVE_DECL..'
88931         now that autoconf always defines the HAVE_DECL_ symbols.
88932         * lib/human.c: Likewise.
88933         * lib/same.c: Likewise.
88934         * lib/strtoumax.c: Likewise.
88935
88936         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88937         declaration check was not run.
88938         * lib/hash.c: Likewise.
88939         * lib/human.c: Likewise.
88940         * lib/same.c: Likewise.
88941         * lib/strtoumax.c: Likewise.
88942
88943         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88944         `.', then first look up the entire `.'-containing string as a login
88945         name.
88946
88947 2000-02-23  Jim Meyering  <meyering@lucent.com>
88948
88949         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88950         in place of my hack.
88951
88952 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88953
88954         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88955         (textint): New typedef.
88956         (parser_control): Member year changed from int to textint.
88957         All uses changed.
88958         (YYSTYPE): Removed; replaced by %union with int and textint members.
88959         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88960         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88961         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88962         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88963         (date, number, to_year): Use width of number in digits, not its value,
88964         to determine whether it's a 2-digit year, or a 2-digit time.
88965         (yylex): Store number of digits of numeric tokens.
88966         Reported by John Kendall.
88967
88968         (parser_control): Changed from struct parser_control to typedef (for
88969         consistency).  All uses changed.
88970
88971         (tID): Removed; not used.
88972         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88973
88974 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88975
88976         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88977         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88978
88979 2000-02-12  Jim Meyering  <meyering@lucent.com>
88980
88981         * lib/userspec.c (ISDIGIT): Define it.
88982         (isdigit): Remove definition.
88983         (is_number): Use ISDIGIT, not isdigit.
88984         <libintl.h>: Include.
88985         (_ and N_): Define.
88986         (parse_user_spec): Mark translatable strings.
88987
88988 2000-02-10  Jim Meyering  <meyering@lucent.com>
88989
88990         With these changes, nanosleep.[ch] are finally enough like the other
88991         lib/* replacement files to compile on a few more losing systems.
88992
88993         * lib/nanosleep.h: Don't include config.h.
88994         Remove prototype from declaration of nanosleep.
88995         (PARAMS): Remove now-unneeded definition.
88996         * lib/nanosleep.c: #undef nanosleep.
88997         (rpl_nanosleep): Rename from nanosleep.
88998
88999 2000-02-10  Jim Meyering  <meyering@lucent.com>
89000
89001         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89002         gnu_nanosleep to rpl_nanosleep.
89003
89004 2000-02-09  Jim Meyering  <meyering@lucent.com>
89005
89006         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89007         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89008
89009 2000-02-08  Akim Demaille  <akim@epita.fr>
89010
89011         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89012         `[' and `]' and remove uses of `changequote'.
89013         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89014         (AC_SYS_LARGEFILE): Likewise.
89015         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89016         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89017         of changequote.
89018         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89019         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89020         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89021         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89022
89023 2000-02-05  Jim Meyering  <meyering@lucent.com>
89024
89025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89026         Remove explicit use of AC_HEADER_TIME.  It is required by
89027         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89028         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89029         in autoconf whereby the expansion of the latter ended up preceding
89030         the expansion of its prerequisite, AC_HEADER_TIME.
89031         Reported by Volker Borchert.
89032
89033 2000-02-03  Jim Meyering  <meyering@lucent.com>
89034
89035         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89036
89037 2000-02-03  Jim Meyering  <meyering@lucent.com>
89038
89039         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89040         rather than with `#if HAVE_UTMPNAME'.
89041
89042 2000-02-02  Jim Meyering  <meyering@lucent.com>
89043
89044         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89045         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89046         Reported by Eli Zaretskii.
89047
89048 2000-02-01  Jim Meyering  <meyering@lucent.com>
89049
89050         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89051
89052 2000-01-31  Jim Meyering  <meyering@lucent.com>
89053
89054         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89055         functions.  Add the time.h and sys/time.h headers along with the
89056         AC_REQUIRE'ment of AC_HEADER_TIME.
89057
89058 2000-01-31  Jim Meyering  <meyering@lucent.com>
89059
89060         * lib/nanosleep.h (nanosleep): Guard declaration with
89061         `#if ! HAVE_DECL_NANOSLEEP'.
89062         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89063         the declaration in that vendor's sys/timers.h.
89064         Reported by Christian Krackowizer.
89065
89066         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89067         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89068         (ISPRINT): Likewise.
89069         Reported by Tom Tromey.
89070
89071 2000-01-30  Jim Meyering  <meyering@lucent.com>
89072
89073         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89074
89075         * m4/prereq.m4 (utmp_includes): Define.
89076         Check for ut_user and ut_name members in both struct utmpx
89077         and struct utmp.
89078
89079 2000-01-30  Jim Meyering  <meyering@lucent.com>
89080
89081         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89082         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89083         header files where only utmpx.ut_user is declared.
89084
89085         * lib/readutmp.h (UT_USER): Define.
89086
89087 2000-01-29  Jim Meyering  <meyering@lucent.com>
89088
89089         * m4/lib-check.m4: New file containing library-related checks from
89090         fileutils and sh-utils (textutils had none).
89091
89092 2000-01-28  Jim Meyering  <meyering@lucent.com>
89093
89094         * m4/perl.m4: Change format of warning message to look more like that
89095         from the missing script.  Suggestion from François Pinard.
89096
89097 2000-01-25  Jim Meyering  <meyering@lucent.com>
89098
89099         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89100         well as time.h in the compile check.
89101         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89102         Fix typo in cross-compiling case: s/yes/no/.
89103
89104 2000-01-23  Jim Meyering  <meyering@lucent.com>
89105
89106         * m4/jm-macros.m4: Move df-related tests here from
89107         fileutils/configure.in
89108
89109         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89110         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89111
89112         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89113         s/space/ac_fsusage_space/.
89114         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89115
89116         * m4/ftruncate.m4: New file (derived from part of
89117         fileutils/configure.in).
89118         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89119         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89120
89121         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89122         AC_SUBST these here, rather than just in sh-util/configure.in, so
89123         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89124         all the same.
89125         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89126         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89127         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89128         (AC_SUBST(POW_LIBM)): Likewise.
89129         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89130
89131 2000-01-23  Jim Meyering  <meyering@lucent.com>
89132
89133         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89134         obstack.c.
89135
89136 2000-01-22  Jim Meyering  <meyering@lucent.com>
89137
89138         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89139
89140         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89141
89142         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89143         configure.in
89144         (AC_CHECK_HEADERS): Likewise for sh-utils.
89145         (AC_CHECK_HEADERS): Likewise for textutils.
89146         Merge the three lists of headers.
89147
89148         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89149         from fileutils' configure.in.
89150
89151         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89152         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89153         check-decl.m4.
89154
89155         * m4/check-decl.m4: Use #if rather than #ifdef.
89156         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89157         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89158         (_jm_DECL_HEADERS): Define new function.
89159         (jm_CHECK_DECLARATIONS): Require it.
89160
89161 2000-01-22  Jim Meyering  <meyering@lucent.com>
89162
89163         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89164         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89165         Required for some AIX systems.  Reported by Christian Krackowizer.
89166         [TESTING] (main): New function.
89167
89168         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89169         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89170         letters.
89171
89172         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89173         iswprint.
89174
89175         * lib/strverscmp.c (ISDIGIT): Define.
89176         (strverscmp): Use ISDIGIT, not isdigit.
89177
89178 2000-01-19  Jim Meyering  <meyering@lucent.com>
89179
89180         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89181         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89182         defines `struct timespec' in <sys/time.h>
89183
89184         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89185         Thanks to Akim for explaining.
89186
89187 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89188
89189         * lib/nanosleep.c (nanosleep):
89190         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89191         POSIX.1 doesn't require SA_INTERRUPT and some systems
89192         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89193         it's been part of POSIX.1 since day 1 (in 1988).
89194
89195 2000-01-17  Jim Meyering  <meyering@lucent.com>
89196
89197         * lib/interlock: Remove unused file.  Reported by François Pinard.
89198
89199 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89200
89201         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89202         alert, backslash, formfeed, and vertical tab unnecessarily in
89203         shell quoting style.
89204
89205 2000-01-16  Jim Meyering  <meyering@lucent.com>
89206
89207         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89208         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89209         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89210         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89211
89212 2000-01-16  Jim Meyering  <meyering@lucent.com>
89213
89214         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89215         because the latter didn't work.
89216
89217 2000-01-15  Jim Meyering  <meyering@lucent.com>
89218
89219         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89220         (AC_REPLACE_FUNCS): Add memcpy and memset.
89221         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89222         Add strpbrk.
89223         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89224
89225 2000-01-12  Jim Meyering  <meyering@lucent.com>
89226
89227         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89228         (jm_PREREQ): Use it.
89229         (jm_PREREQ_READUTMP): New macro.
89230         (jm_PREREQ): Use it.
89231
89232 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89233
89234         Quote multibyte characters correctly.
89235         * m4/c-bs-a.m4: New file.
89236         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89237         (jm_PREREQ): Use it.
89238
89239 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89240
89241         * m4/uintmax_t.m4: Port to autoconf 2.13.
89242
89243 2000-01-08  Jim Meyering  <meyering@ascend.com>
89244
89245         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89246         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89247
89248 2000-01-04  Jim Meyering  <meyering@ascend.com>
89249
89250         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89251         jm_STRUCT_DIRENT_D_TYPE.
89252         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89253         jm_STRUCT_DIRENT_D_INO.
89254         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89255         jm_STRUCT_UTIMBUF.
89256         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89257         renamings.
89258         * m4/utime.m4: Likewise.
89259
89260         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89261         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89262
89263 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89264
89265         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89266         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89267
89268 2000-01-02  Jim Meyering  <meyering@ascend.com>
89269
89270         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89271         remember if this is necessary.
89272
89273 1999-12-26  Jim Meyering  <meyering@ascend.com>
89274
89275         * m4/jm-macros.m4: Use it here.
89276         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89277
89278 1999-12-23  Jim Meyering  <meyering@ascend.com>
89279
89280         * m4/jm-macros.m4: Check for clock_gettime (moved from
89281         fileutils/configure.in)
89282         Check for gettimeofday.
89283
89284 1999-12-20  Jim Meyering  <meyering@ascend.com>
89285
89286         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89287         autoconf-2.14a-1999-12-20.
89288
89289 1999-12-19  Jim Meyering  <meyering@ascend.com>
89290
89291         * m4/lstat-slash.m4: New file.
89292         * m4/jm-macros.m4: Use the new macro:
89293         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89294
89295 1999-12-07  Jim Meyering  <meyering@ascend.com>
89296
89297         * m4/perl.m4: Require that File::Compare be available, too.
89298         Too many systems seem to lack it.
89299
89300         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89301         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89302
89303 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89304
89305         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89306         problem with the QNX 4.25 shell, which doesn't propagate exit
89307         status of failed commands inside shell assignments.
89308
89309 1999-11-17  Jim Meyering  <meyering@ascend.com>
89310
89311         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89312
89313 1999-11-07  Jim Meyering  <meyering@ascend.com>
89314
89315         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89316
89317 1999-11-06  Jim Meyering  <meyering@ascend.com>
89318
89319         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89320         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89321
89322 1999-11-05  Jim Meyering  <meyering@ascend.com>
89323
89324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89325         configure.in of textutils, fileutils, and sh-utils into this one
89326         (shared between those packages) file.
89327         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89328         AC_STRUCT_ST_BLKSIZE.
89329
89330 1999-11-03  Jim Meyering  <meyering@ascend.com>
89331
89332         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89333         of AC_CHECK_TYPE checks includes unistd.h.
89334         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89335         Suggestion from Akim Demaille.
89336
89337 1999-10-30  Jim Meyering  <meyering@ascend.com>
89338
89339         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89340         m4-quoted string.
89341         * m4/ls-mntd-fs.m4: Likewise.
89342         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89343         * m4/jm-winsz1.m4: Likewise.
89344
89345         * m4/const.m4: Remove file, since the fix made it into the experimental
89346         version of autoconf.
89347         * m4/mktime.m4: Likewise.
89348
89349         * m4/check-type.m4: Remove file, now that the latest version of
89350         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89351
89352         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89353         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89354         AC_CHECK_TYPE.
89355
89356 1999-10-04  Jim Meyering  <meyering@ascend.com>
89357
89358         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89359
89360 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89361
89362         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89363         2.95.1 bug with HP-UX 10.20.
89364
89365 1999-09-17  Jim Meyering  <meyering@ascend.com>
89366
89367         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89368         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89369         due to missing strdup (against sh-utils-2.0).
89370
89371 1999-08-29  Jim Meyering  <meyering@ascend.com>
89372
89373         * m4/jm-macros.m4: Require jm_BISON.
89374         * m4/bison.m4: New file.
89375
89376 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89377
89378         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89379         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89380
89381 1999-08-05  Jim Meyering  <meyering@ascend.com>
89382
89383         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89384         to avoid conflicts with `conftest' on 8+3 filesystems.
89385         Suggestion from Eli Zaretskii.
89386
89387 1999-08-04  Jim Meyering  <meyering@ascend.com>
89388
89389         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89390         fileutils and sh-utils (textutils's getline test was inadequate).
89391         (AM_FUNC_GETLINE): Run this test.
89392         (AC_CHECK_FUNCS): Check for getdelim.
89393         Reported by Bob Proulx.
89394
89395 1999-08-02  Jim Meyering  <meyering@ascend.com>
89396
89397         * m4/jm-macros.m4: Add a comment.
89398
89399 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89400
89401         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89402         <inttypes.h> defines strtoumax as a macro (and not as a
89403         function).
89404
89405 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89406
89407         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89408         that we can shift, multiply and divide unsigned long long
89409         values; Ultrix cc can't do it.
89410
89411 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89412
89413         * m4/mktime.m4: New file, which is a preview of what should appear
89414         in the next public autoconf release.
89415
89416 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89417
89418         * m4/lfs.m4: Remove this file.
89419         * m4/largefile.m4: New file.  It contains the old contents of
89420         lfs.m4, except that all names with prefix AC_LFS have been
89421         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89422         compatible with future autoconf versions.  Also, some minor m4
89423         quoting problems have been fixed.
89424
89425 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89426
89427         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89428         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89429         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89430         and simplify the shell code.
89431
89432 1999-08-01  Jim Meyering  <meyering@ascend.com>
89433
89434         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89435         m4.
89436
89437 1999-07-20  Jim Meyering  <meyering@ascend.com>
89438
89439         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89440
89441 1999-07-15  Jim Meyering  <meyering@ascend.com>
89442
89443         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89444
89445 1999-05-22  Jim Meyering  <meyering@ascend.com>
89446
89447         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89448
89449 1999-05-20  Jim Meyering  <meyering@ascend.com>
89450
89451         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89452         Add a colon after each `then' in case $4 is empty.
89453
89454 1999-05-16  Jim Meyering  <meyering@ascend.com>
89455
89456         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89457
89458 1999-05-10  Jim Meyering  <meyering@ascend.com>
89459
89460         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89461
89462         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89463         AC_FUNC_MKTIME.
89464
89465 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89466
89467         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89468
89469 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89470
89471         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89472         not CPPFLAGS, so that linking works correctly in IRIX.
89473
89474 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89475
89476         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89477
89478 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89479
89480         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89481         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89482         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89483         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89484         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89485
89486         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89487
89488 1999-04-20  Jim Meyering  <meyering@ascend.com>
89489
89490         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89491         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89492         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89493
89494 1999-04-18  Jim Meyering  <meyering@ascend.com>
89495
89496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89497         * m4/jm-macros.m4: Use it.
89498
89499 1999-04-06  Jim Meyering  <meyering@ascend.com>
89500
89501         * m4/strftime.m4: Remove test for %f.
89502
89503 1999-03-29  Jim Meyering  <meyering@ascend.com>
89504
89505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89506         superset of the AC_TYPE_* checks in the textutils, fileutils,
89507         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89508         AC_TYPE_PID_T.
89509
89510 1999-03-28  Jim Meyering  <meyering@ascend.com>
89511
89512         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89513         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89514         replaced e.g., in the *.sh files of the sh-utils.
89515
89516 1999-03-20  Jim Meyering  <meyering@ascend.com>
89517
89518         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89519         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89520         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89521
89522 1999-03-19  Jim Meyering  <meyering@ascend.com>
89523
89524         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89525
89526 1999-03-12  Jim Meyering  <meyering@ascend.com>
89527
89528         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89529
89530 1999-03-07  Jim Meyering  <meyering@ascend.com>
89531
89532         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89533         declared.
89534
89535 1999-02-17  Jim Meyering  <meyering@ascend.com>
89536
89537         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89538         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89539
89540 1999-02-07  Jim Meyering  <meyering@ascend.com>
89541
89542         * m4/group-member.m4: New file -- extracted from sh-utils'
89543         configure.in.
89544
89545         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89546         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89547
89548 1999-02-06  Jim Meyering  <meyering@ascend.com>
89549
89550         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89551         * m4/fnmatch.m4: Likewise.
89552         * m4/getgroups.m4: Likewise.
89553         * m4/lstat.m4: Likewise.
89554         * m4/malloc.m4: Likewise.
89555         * m4/putenv.m4: Likewise.
89556         * m4/realloc.m4: Likewise.
89557         * m4/regex.m4: Likewise.
89558         * m4/stat.m4: Likewise.
89559         * m4/strftime.m4: Likewise.
89560         Suggestion from Alain Magloire.
89561
89562         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89563         * m4/fnmatch.m4: Likewise.
89564         * m4/getgroups.m4: Likewise.
89565         * m4/getline.m4: Likewise.
89566         * m4/lstat.m4: Likewise.
89567         * m4/malloc.m4: Likewise.
89568         * m4/memcmp.m4: Likewise.
89569         * m4/putenv.m4: Likewise.
89570         * m4/realloc.m4: Likewise.
89571         * m4/regex.m4: Likewise.
89572         * m4/stat.m4: Likewise.
89573         * m4/strftime.m4: Likewise.
89574         Suggestion from Alain Magloire.
89575
89576         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89577         an argument.
89578
89579         * m4/regex.m4: Add a run-time Test for proper operation of
89580         re_compile_pattern.
89581
89582 1999-01-31  Jim Meyering  <meyering@ascend.com>
89583
89584         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89585
89586 1999-01-30  Jim Meyering  <meyering@ascend.com>
89587
89588         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89589
89590         * m4/jm-mktime.m4: Make this a wrapper around the official
89591         AM_FUNC_MKTIME rather than my private copy, now that the official one
89592         is up to date.
89593         * m4/mktime.m4: Remove file.
89594
89595         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89596         * m4/uptime.m4: Likewise.
89597         * m4/uintmax_t.m4: Likewise.
89598
89599 1999-01-28  Jim Meyering  <meyering@ascend.com>
89600
89601         * m4/jm-macros.m4: Use jm_AFS.
89602         * m4/afs.m4: New file (from fileutils' configure.in).
89603
89604         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89605         * m4/chown.m4: Likewise.
89606         * m4/d-ino.m4: Likewise.
89607         * m4/d-type.m4: Likewise.
89608         * m4/fnmatch.m4: Likewise.
89609         * m4/getgroups.m4: Likewise.
89610         * m4/gettext.m4: Likewise.
89611         * m4/jm-mktime.m4: Likewise.
89612         * m4/jm-winsz2.m4: Likewise.
89613         * m4/lcmessage.m4: Likewise.
89614         * m4/ls-mntd-fs.m4: Likewise.
89615         * m4/malloc.m4: Likewise.
89616         * m4/memcmp.m4: Likewise.
89617         * m4/putenv.m4: Likewise.
89618         * m4/realloc.m4: Likewise.
89619         * m4/st_mtim.m4: Likewise.
89620         * m4/strftime.m4: Likewise.
89621
89622 1999-01-16  Jim Meyering  <meyering@ascend.com>
89623
89624         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89625         (ARGMATCH_DIE_DECL): Define.
89626
89627 1999-01-12  Jim Meyering  <meyering@ascend.com>
89628
89629         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89630         Reported by Lars Hecking.
89631
89632 1999-01-10  Jim Meyering  <meyering@ascend.com>
89633
89634         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89635         gross kludge.
89636         * m4/inttypes_h.m4: Likewise.
89637         * m4/lstat.m4: Likewise.
89638         * m4/malloc.m4: Likewise.
89639         * m4/readdir.m4: Likewise.
89640         * m4/realloc.m4: Likewise.
89641         * m4/st_dm_mode.m4: Likewise.
89642         * m4/stat.m4: Likewise.
89643         * m4/utimbuf.m4: Likewise.
89644         * m4/utimes.m4: Likewise.
89645
89646         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89647         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89648         comments in config.h.in are meaningful.
89649
89650         * m4/jm-macros.m4: Require autoconf-2.13 here.
89651
89652         * m4/regex.m4: By default, don't use the included regex.c on systems
89653         with glibc 2.  Suggestion from Uli Drepper.
89654
89655 1999-01-02  Jim Meyering  <meyering@ascend.com>
89656
89657         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89658
89659 1998-12-18  Jim Meyering  <meyering@ascend.com>
89660
89661         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89662         Based on a suggestion from Lars Hecking.
89663
89664 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89665
89666         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89667
89668 1998-11-16  Jim Meyering  <meyering@ascend.com>
89669
89670         * m4/lfs.m4: Double-quote the `uname...` expression.
89671
89672 1998-11-14  Jim Meyering  <meyering@ascend.com>
89673
89674         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89675         * m4/stat.m4: Likewise.
89676
89677 1998-11-03  Jim Meyering  <meyering@ascend.com>
89678
89679         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89680         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89681
89682 1998-10-18  Jim Meyering  <meyering@ascend.com>
89683
89684         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89685
89686 1998-10-17  Jim Meyering  <meyering@ascend.com>
89687
89688         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89689         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89690         calls for those previously hard-coded headers.  Instead, take a new
89691         parameter.
89692         (jm_CHECK_DECLARATIONS): Reflect interface change.
89693         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89694         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89695
89696         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89697
89698 1998-10-14  Jim Meyering  <meyering@ascend.com>
89699
89700         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89701         instead of "TZ=America/Vancouver".  From Paul Eggert.
89702
89703 1998-10-11  Jim Meyering  <meyering@ascend.com>
89704
89705         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89706         This adds a test for a recently added compatibility fix for mktime.c.
89707         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89708
89709 1998-09-27  Jim Meyering  <meyering@ascend.com>
89710
89711         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89712
89713         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89714         ../configure.in, including a change from Gordon Matzigkeit to allow
89715         cross-compiling for the Hurd.
89716
89717         * m4/glibc.m4: New file/macro to test for the GNU C Library
89718         versions 1 and 2.  From Gordon Matzigkeit.
89719         Indent.
89720
89721 1998-09-21  Jim Meyering  <meyering@ascend.com>
89722
89723         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89724
89725 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89726
89727         Port nanosecond-resolution times to UnixWare 2.1.2 and
89728         pedantic Solaris 2.6.
89729
89730         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89731         AC_STRUCT_ST_MTIM.
89732         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89733         Generate name of ns member, instead of just 1 or undef.
89734         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89735
89736 1998-08-15  Jim Meyering  <meyering@ascend.com>
89737
89738         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89739         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89740         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89741         instead of jm_TYPE_SSIZE_T.
89742
89743 1998-08-12  Jim Meyering  <meyering@ascend.com>
89744
89745         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89746
89747 1998-08-02  Jim Meyering  <meyering@ascend.com>
89748
89749         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89750         in acconfig.h manually.
89751
89752 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89753
89754         * m4/st_mtim.m4: New file.
89755
89756 1998-07-28  Jim Meyering  <meyering@ascend.com>
89757
89758         * m4/utimes.m4: Undef stat.
89759
89760 1998-07-25  Jim Meyering  <meyering@ascend.com>
89761
89762         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89763         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89764
89765 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89766
89767         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89768         uid and gid actually remain unchanged.
89769
89770 1998-07-07  Jim Meyering  <meyering@ascend.com>
89771
89772         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89773
89774 1998-07-04  Jim Meyering  <meyering@ascend.com>
89775
89776         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89777         to prove that this macro can be used in packages without regex.c.
89778
89779 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89780
89781         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89782         is to be used.
89783
89784 1998-07-03  Jim Meyering  <meyering@ascend.com>
89785
89786         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89787
89788         * m4/gettext.m4: New file -- from gettext-0.10.35.
89789         * m4/lcmessage.m4: Likewise.
89790         * m4/progtest.m4: Likewise.
89791
89792         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89793         * m4/jm-macros.m4: Require the new macro.
89794
89795 1998-06-29  Jim Meyering  <meyering@ascend.com>
89796
89797         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89798         for the definition of NGROUPS (used in a system header included
89799         by sys/mount.h).
89800
89801 1998-06-28  Jim Meyering  <meyering@ascend.com>
89802
89803         * m4/ls-mntd-fs.m4: New file.
89804         * m4/fstypename.m4: New file.
89805
89806         * m4/jm-macros.m4: Require the new macro.
89807         * m4/jm-glibc-io.m4: New file.
89808
89809 1998-05-19  Jim Meyering  <meyering@ascend.com>
89810
89811         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89812         * m4/lchown.m4: New file.
89813
89814         * m4/Makefile.am.in: New file.
89815         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89816
89817 1998-05-14  Jim Meyering  <meyering@ascend.com>
89818
89819         * m4/Makefile.am (EXTRA_DIST): Add them.
89820         * m4/jm-macros.m4: New file.
89821         * m4/utimbuf.m4: New file.
89822
89823 1998-05-12  Jim Meyering  <meyering@ascend.com>
89824
89825         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89826
89827 1998-05-11  Jim Meyering  <meyering@ascend.com>
89828
89829         * m4/isc-posix.m4: New file.
89830
89831 1998-05-10  Jim Meyering  <meyering@ascend.com>
89832
89833         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89834
89835 1998-05-09  Jim Meyering  <meyering@ascend.com>
89836
89837         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89838         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89839         with automake.
89840
89841         * m4/ssize_t.m4: New file.
89842         * m4/mktime.m4: Remove file -- the new automake has this now.
89843
89844 1998-04-26  Jim Meyering  <meyering@ascend.com>
89845
89846         * m4/assert.m4: New file.
89847         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89848
89849 1998-04-05  Jim Meyering  <meyering@ascend.com>
89850
89851         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89852         (jm_PREREQ): Use it here.
89853
89854 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89855
89856         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89857         in acconfig.h.
89858
89859 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89860
89861         * m4/prereq.m4: New file.
89862         * m4/error.m4: New file.
89863         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89864
89865 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89866
89867         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89868         cache-check for the same variable -- that defeated the purpose of
89869         the test; the test program was never run.  This was a problem only
89870         on systems with losing getline functions -- HP-UX 10.20 is one.
89871         Reported by Bjorn Helgaas.
89872
89873 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89874
89875         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89876
89877 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89878
89879         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89880
89881         * m4/const.m4: New file.  Use an initializer in this declaration
89882         typedef int charset[2]; const charset x;
89883         Reported by Bob Glickstein.
89884
89885 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89886
89887         * m4/chown.m4: Fix reversed types on -1 args to chown.
89888         From Kaveh Ghazi.
89889
89890 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89891
89892         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89893         Add lseek and memchr.
89894
89895         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89896         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89897         have a 20-character limit on names.
89898
89899 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89900
89901         * m4/inttypes_h.m4: New file.
89902         * m4/uintmax_t.m4: New file.
89903         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89904
89905
89906         -----
89907
89908         Local Variables:
89909         coding: utf-8
89910         End:
89911
89912         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89913
89914         Copying and distribution of this file, with or without
89915         modification, are permitted provided the copyright notice
89916         and this notice are preserved.